CN110955460A - Service process starting method and device, electronic equipment and storage medium - Google Patents

Service process starting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110955460A
CN110955460A CN201911119611.7A CN201911119611A CN110955460A CN 110955460 A CN110955460 A CN 110955460A CN 201911119611 A CN201911119611 A CN 201911119611A CN 110955460 A CN110955460 A CN 110955460A
Authority
CN
China
Prior art keywords
information
service process
configuration item
configuration
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911119611.7A
Other languages
Chinese (zh)
Other versions
CN110955460B (en
Inventor
黎海兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201911119611.7A priority Critical patent/CN110955460B/en
Publication of CN110955460A publication Critical patent/CN110955460A/en
Application granted granted Critical
Publication of CN110955460B publication Critical patent/CN110955460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the invention provides a service process starting method, a service process starting device, electronic equipment and a storage medium, which are applied to distributed application program coordination processes of nodes in a distributed system, wherein each node comprises a distributed application program coordination process and at least one service process, and the distributed application program coordination process stores information of a configuration item of each service process, wherein the distributed application program coordination process receives a first query request which is request information for acquiring the configuration item of any service process when the service process is started; inquiring the information of the configuration item corresponding to the first inquiry request from the stored information of the configuration item according to the first inquiry request; and sending the inquired information of the configuration items to the service process so that the service process is started according to the information of the configuration items. Each service process can directly acquire configuration items from the distributed application program coordination process, the number of configuration files stored in the distributed system is reduced, and resource waste is further reduced.

Description

Service process starting method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of distributed storage, and in particular, to a method and an apparatus for starting a service process, an electronic device, and a storage medium.
Background
In a distributed system, when a service process is started, information of a start configuration item required by the service process needs to be loaded. The start configuration items of the service process may include a port number, a maximum concurrency number, a work thread number, a cache size, and the like of the service.
In the related art, a distributed system usually needs to acquire a configuration file of each service process in advance, where the configuration file of each service process includes information of all startup configuration items that need to be loaded when the service process is started, so that when any service process is started, the startup configuration items needed by the service process can be loaded by reading the configuration file of the service process, and the service process is started.
However, since the configuration files of the respective processes need to be obtained in advance, when the number of processes in the distributed system is large, a large number of configuration files are stored in the distributed system, and a large amount of repeated information exists in the configuration files, which results in waste of resources in the distributed system.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method, an apparatus, an electronic device, and a storage medium for starting a service process, so as to reduce the number of configuration files stored in a distributed system, thereby reducing resource waste of the distributed system. The specific technical scheme is as follows:
the embodiment of the invention provides a service process starting method, which is applied to a distributed application program coordination process of a node in a distributed system, wherein the node comprises a distributed application program coordination process and at least one service process, the distributed application program coordination process stores the information of a configuration item of each service process, and the method comprises the following steps:
receiving a first query request, wherein the first query request is request information for acquiring configuration items of any service process when the service process is started;
inquiring the information of the configuration item corresponding to the first inquiry request from the stored information of the configuration item according to the first inquiry request;
and sending the inquired information of the configuration item corresponding to the first inquiry request to the service process so that the service process is started according to the information of the configuration item corresponding to the first inquiry request.
Optionally, the method further includes:
receiving update information for any of the configuration items;
updating the stored configuration item according to the updating information;
synchronizing the updated configuration items to the at least one service process.
Optionally, the method further includes:
receiving registration information of any service process;
the synchronizing the updated configuration items to the at least one service process comprises:
and sending the updated information of the configuration items to the at least one service process according to the registration information, so that any service process updates the configuration items according to the updated information of the configuration items.
Optionally, the synchronizing the updated configuration item to the at least one service process includes:
receiving a second query request, wherein the second query request is request information which is sent by any one of the service processes according to a preset time interval and is used for querying configuration items of the service processes;
according to the second query request, querying the information of the configuration item corresponding to the second query request from the stored information of the configuration item;
and sending the inquired information of the configuration item corresponding to the second inquiry request to the service process so that the service process updates the configuration item according to the information of the configuration item corresponding to the second inquiry request.
The embodiment of the present invention further provides a service process starting apparatus, which is applied to a distributed application program coordination process of a node in a distributed system, where the node includes a distributed application program coordination process and at least one service process, and the distributed application program coordination process stores information of a configuration item of each service process, and the apparatus includes:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a first query request which is request information for acquiring configuration items of any service process when the service process is started;
the query module is used for querying the information of the configuration item corresponding to the first query request from the stored information of the configuration item according to the first query request;
and the sending module is used for sending the inquired information of the configuration item corresponding to the first inquiry request to the service process so that the service process is started according to the information of the configuration item corresponding to the first inquiry request.
Optionally, the apparatus further comprises:
the updating module is used for receiving the updating information aiming at any one configuration item; updating the stored configuration item according to the updating information; synchronizing the updated configuration items to the at least one service process.
Optionally, the receiving module is further configured to receive registration information of any one of the service processes;
the updating module is further configured to send the updated information of the configuration item to the at least one service process according to the registration information, so that the at least one service process updates the configuration item according to the updated information of the configuration item.
Optionally, the update module is further configured to:
receiving a second query request, wherein the second query request is request information which is sent by any one of the service processes according to a preset time interval and is used for querying configuration items of the service processes;
according to the second query request, querying the information of the configuration item corresponding to the second query request from the stored information of the configuration item;
and sending the inquired information of the configuration item corresponding to the second inquiry request to the service process so that the service process updates the configuration item according to the information of the configuration item corresponding to the second inquiry request.
The embodiment of the invention also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the service process starting methods when executing the program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any of the above-mentioned service process starting methods.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any of the above-mentioned service process starting methods.
The method and the device for starting the service process are applied to distributed application program coordination processes of nodes in a distributed system, each node comprises a distributed application program coordination process and at least one service process, the distributed application program coordination process stores information of a configuration item of each service process, in the method, the distributed application program coordination process receives a first query request, and the first query request is request information for acquiring the configuration item of any service process when the service process is started; inquiring the information of the configuration item corresponding to the first inquiry request from the stored information of the configuration item according to the first inquiry request; and sending the inquired information of the configuration item corresponding to the first inquiry request to the service process so that the service process is started according to the information of the configuration item. In this way, through the configuration items of each server process stored in the distributed application program coordination process, each service process can directly acquire the required configuration items from the distributed application program coordination process without storing corresponding configuration files for each service process, so that the number of the configuration files stored in the distributed system is reduced, and the resource waste of the distributed system is further reduced. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for starting a service process according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another service process starting method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service process starting apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the related art, a distributed system usually needs to acquire a configuration file of each service process in advance, where the configuration file of each service process includes information of all startup configuration items that need to be loaded when the service process is started, so that when any service process is started, the startup configuration items needed by the service process can be loaded by reading the configuration file of the service process, and the service process is started.
However, since the configuration files of the respective processes need to be obtained in advance, when the number of processes in the distributed system is large, a large number of configuration files are stored in the distributed system, and a large amount of repeated information exists in the configuration files, which results in waste of resources in the distributed system.
The following generally describes a service process starting method provided in an embodiment of the present invention, where the method is applied to a distributed application coordination process of a node in a distributed system, where the node includes one distributed application coordination process and at least one service process, and the distributed application coordination process stores information of a configuration item of each service process, and the method includes:
receiving a first query request, wherein the first query request is request information for acquiring configuration items of any service process when the service process is started;
inquiring the information of the configuration item corresponding to the first inquiry request from the stored information of the configuration item according to the first inquiry request;
and sending the inquired information of the configuration item corresponding to the first inquiry request to the service process so that the service process is started according to the information of the configuration item.
As can be seen from the above, according to the service process starting method provided in the embodiment of the present invention, through the configuration item of each server process stored in the distributed application program coordination process, each service process can directly obtain a required configuration item from the distributed application program coordination process without storing a corresponding configuration file for each service process, so that the number of configuration files stored in the distributed system is reduced, and further, the resource waste of the distributed system is reduced.
The following describes in detail a service process starting method provided by an embodiment of the present invention, where the method is applied to a distributed application program coordination process of a node in a distributed system, where the node includes one distributed application program coordination process and at least one service process, and the distributed application program coordination process stores information of a configuration item of each service process.
The distributed application program coordination process is a distributed and coordinatable system and can be deployed in each node of the distributed system. The distributed application program coordination process can directly store the information of the configuration item of each service process through the interaction with the user, or can also store the information of the configuration item of each service process through the communication with other devices in the distributed system. For example, the distributed application coordination process may be a zookeeper process.
The configuration items may include thread number, cache size, port number, maximum queue length, and the like, which is not limited in the embodiment of the present invention.
For example, in the distributed application program coordination process, the information of the configuration items may be stored in the form of a database or a linked list, which is not limited in the embodiment of the present invention. Wherein, the value of each configuration item is unique.
As shown in fig. 1, a schematic flow chart of a service process starting method provided in an embodiment of the present invention is applied to a distributed application program coordination process of a node in a distributed system, and includes the following steps:
s101: and receiving a first query request, wherein the first query request is used for acquiring request information of the configuration items of any service process when the service process is started.
The first query request may be sent by the service process to the distributed application program coordination process after receiving a start instruction, where the start instruction may be obtained through interaction between the node and the user, or may be sent to the node by another node in the distributed system, or may be generated by the node according to a preset rule.
After receiving the start instruction, the service process may generate a first query request according to the configuration items that need to be obtained when the service process starts, that is, the first query request includes the configuration items that need to be obtained when the service process starts. In this way, the distributed application coordination process may determine, from the first query request, which configuration items the service process needs to obtain information.
S102: and inquiring the information of the configuration item corresponding to the first inquiry request from the stored information of the configuration item according to the first inquiry request.
In the embodiment of the present invention, after the distributed application program coordination process receives the first query request, the distributed application program coordination process may analyze the first query request to determine the startup configuration items required when the service process is started, and then query the information of the startup configuration items from the stored information of the plurality of configuration items.
In a distributed system, the service process may include multiple service processes, and the configuration item of each service process may be one or multiple, and the configuration items of different service processes may be the same or different. Thus, the first query request generated by each service process is also different.
In the distributed application program coordination process, the information of the configuration item of each service process is stored, so that each service process can acquire the information of the configuration item of the service process from the distributed application program coordination process through the first query request.
S103: and sending the inquired information of the configuration item corresponding to the first inquiry request to the service process so that the service process is started according to the information of the configuration item.
After the service process acquires the information of the configuration item, the service process can be started according to the information of the configuration item and starts to run, so that corresponding service is provided for the user. In the embodiment of the present invention, in the starting process of the service process, the information of the configuration item may be directly obtained from the distributed application program coordination process, and the information of the configuration item does not need to be obtained from the configuration file obtained in advance, that is, on one hand, the number of the configuration files stored in the distributed system may be reduced, and on the other hand, for the information of any configuration item, only the setting is performed in the distributed application program coordination process, and the information does not need to be stored in a plurality of configuration files corresponding to each service process, thereby reducing the resource waste of the distributed system.
As shown in fig. 2, a schematic flow chart of another service process starting method provided in the embodiment of the present invention is applied to a distributed application program coordination process of a node in a distributed system, and on the basis of the service process starting method shown in fig. 1, the service process starting method further includes:
s104: update information for any configuration item is received.
For example, the update information for any configuration item may be generated through interaction with a user, and when the user modifies any configuration item, the update information for the configuration item may be generated according to the modification content of the user.
S105: and updating the stored configuration item according to the updating information.
After receiving the update information, the distributed application program coordination process may search for a configuration item corresponding to the update information from the stored configuration items, and further update the stored configuration item. Therefore, when any service process requests the configuration item from the distributed application program coordination process, the updated configuration item can be directly obtained without updating the configuration item after starting, and the operation efficiency of the distributed system is higher.
S106: synchronizing the updated configuration items to the at least one service process.
After the distributed application coordination process updates the stored configuration items, the updated configuration items may be synchronized to at least one service process. That is to say, the service process can directly coordinate the process synchronization updated configuration item from the distributed application program, and does not need to re-acquire the information of the configuration item in the updated configuration file in a restarting manner, so that the update of the configuration item in the distributed system is simpler, the update of the configuration item takes effect faster, and the update efficiency of the configuration item in the distributed system is improved.
For example, in one implementation, the distributed application coordination process may receive registration information of any service process, so that after updating the stored configuration item, the distributed application coordination process may send information of the updated configuration item to the service process that has sent the registration information according to the received registration information. Furthermore, the service process may update its own configuration item according to the updated configuration item information returned by the distributed application program coordination process.
In another implementation manner, after being started, the service process may send a second query request to the distributed application coordination process at a preset time interval, where the second query request is request information for querying a configuration item of any service process. After receiving the second query request, the distributed application coordination service may query, according to the second query request, information of the configuration item corresponding to the second query request from the stored information of the configuration item, and then send the queried information of the configuration item corresponding to the second query request to the service process. In this way, the service process may update its configuration item according to the information of the configuration item corresponding to the second query request.
The second query request may also be request information for querying a part of configuration items of the service process, for example, the service process may query only the distributed application coordination process for one or more configuration items with a higher importance level, without querying information of all startup configuration items, so that the amount of data to be transmitted may be reduced, and resource waste of the distributed system may be further reduced.
By means of sending the second query request by the service process, the service process can monitor feedback of the distributed application program coordination process after the second query request is sent each time, if the feedback of the distributed application program coordination process is not received within a long time, it is judged that communication between the current service process and the distributed application program coordination process fails, measures such as resending the second query request or error reporting are further taken, and running errors of the distributed system caused by loss of information of configuration items corresponding to the second query request returned by the second query request sent by the service process or the distributed application program coordination process are reduced.
In addition, in an implementation manner, the two synchronization methods for the configuration item to be updated may also be applied simultaneously, that is, the distributed application program coordination process may send the updated information of the configuration item to the service process according to the received registration information, and at the same time, the service process may send the second query request to the distributed application program coordination process according to a preset time interval after being started. In this way, the operation error of the distributed system caused by the loss of the second query request sent by the service process or the information of the configuration item corresponding to the second query request returned by the distributed application program coordination process can be further reduced.
As can be seen from the above, according to the service process starting method provided in the embodiment of the present invention, through the configuration item of each server process stored in the distributed application program coordination process, each service process can directly obtain a required configuration item from the distributed application program coordination process without storing a corresponding configuration file for each service process, so that the number of configuration files stored in the distributed system is reduced, and further, the resource waste of the distributed system is reduced.
Corresponding to the service process starting method, the embodiment of the application also provides a service process starting device, which is applied to a distributed application program coordination process of a node in a distributed system, wherein the node comprises a distributed application program coordination process and at least one service process, and the distributed application program coordination process stores the information of the configuration item of each service process.
As shown in fig. 3, a schematic structural diagram of a service process starting apparatus provided in an embodiment of the present invention, where the apparatus is applied to a distributed application coordination process of a node in a distributed system, includes:
a receiving module 301, configured to receive a first query request, where the first query request is request information for acquiring a configuration item when any service process is started;
the query module 302 is configured to query, according to the first query request, information of the configuration item corresponding to the first query request from the stored information of the configuration item;
a sending module 303, configured to send the queried information of the configuration item corresponding to the first query request to the service process, so that the service process is started according to the information of the configuration item corresponding to the first query request.
In one implementation, the apparatus further comprises:
an update module (not shown in the figure) for receiving update information for any configuration item; updating the stored configuration item according to the updating information; synchronizing the updated configuration items to the at least one service process.
In one implementation, the receiving module 301 is further configured to receive registration information of any service process;
and the updating module is further used for sending the updated information of the configuration item to at least one service process according to the registration information, so that the at least one service process updates the configuration item according to the updated information of the configuration item.
In one implementation, the update module is further configured to:
receiving a second query request, wherein the second query request is request information which is sent by any service process according to a preset time interval and is used for querying configuration items of the service process;
according to the second query request, querying the information of the configuration item corresponding to the second query request from the stored information of the configuration item;
and sending the inquired information of the configuration item corresponding to the second inquiry request to the service process so that the service process updates the configuration item according to the information of the configuration item corresponding to the second inquiry request.
As can be seen from the above, according to the service process starting apparatus provided in the embodiment of the present invention, through the configuration item of each server process stored in the distributed application program coordination process, each service process can directly obtain a required configuration item from the distributed application program coordination process without storing a corresponding configuration file for each service process, so that the number of configuration files stored in the distributed system is reduced, and further, the resource waste of the distributed system is reduced.
An embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401, when executing the program stored in the memory 403, implements the following steps:
receiving a first query request, wherein the first query request is request information for acquiring configuration items of any service process when the service process is started;
inquiring the information of the configuration item corresponding to the first inquiry request from the stored information of the configuration item according to the first inquiry request;
and sending the inquired information of the configuration item corresponding to the first inquiry request to the service process so that the service process is started according to the information of the configuration item.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
As can be seen from the above, according to the electronic device provided in the embodiment of the present invention, through the configuration item of each server process stored in the distributed application program coordination process, each service process can directly obtain a required configuration item from the distributed application program coordination process without storing a corresponding configuration file for each service process, so that the number of configuration files stored in the distributed system is reduced, and further, the resource waste of the distributed system is reduced.
In another embodiment of the present invention, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to execute the service process starting method described in any of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the service process initiation method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, apparatus embodiments, electronic device embodiments, storage medium embodiments, and computer program product embodiments are described in greater detail with reference to the method embodiments, where relevant, in the description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A service process starting method is applied to a distributed application program coordination process of a node in a distributed system, wherein the node comprises a distributed application program coordination process and at least one service process, and the distributed application program coordination process stores information of configuration items of each service process, and the method comprises the following steps:
receiving a first query request, wherein the first query request is request information for acquiring configuration items of any service process when the service process is started;
inquiring the information of the configuration item corresponding to the first inquiry request from the stored information of the configuration item according to the first inquiry request;
and sending the inquired information of the configuration item corresponding to the first inquiry request to the service process so that the service process is started according to the information of the configuration item corresponding to the first inquiry request.
2. The method of claim 1, further comprising:
receiving update information for any of the configuration items;
updating the stored configuration item according to the updating information;
synchronizing the updated configuration items to the at least one service process.
3. The method of claim 2, further comprising:
receiving registration information of any service process;
the synchronizing the updated configuration items to the at least one service process comprises:
and sending the updated information of the configuration items to the at least one service process according to the registration information, so that any service process updates the configuration items according to the updated information of the configuration items.
4. The method of claim 2, wherein synchronizing the updated configuration item to the at least one service process comprises:
receiving a second query request, wherein the second query request is request information which is sent by any one of the service processes according to a preset time interval and is used for querying configuration items of the service processes;
according to the second query request, querying the information of the configuration item corresponding to the second query request from the stored information of the configuration item;
and sending the inquired information of the configuration item corresponding to the second inquiry request to the service process so that the service process updates the configuration item according to the information of the configuration item corresponding to the second inquiry request.
5. A service process starting device is applied to a distributed application program coordination process of a node in a distributed system, wherein the node comprises a distributed application program coordination process and at least one service process, and the distributed application program coordination process stores information of configuration items of each service process, and the device comprises:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a first query request which is request information for acquiring configuration items of any service process when the service process is started;
the query module is used for querying the information of the configuration item corresponding to the first query request from the stored information of the configuration item according to the first query request;
and the sending module is used for sending the inquired information of the configuration item corresponding to the first inquiry request to the service process so that the service process is started according to the information of the configuration item corresponding to the first inquiry request.
6. The apparatus of claim 5, further comprising:
the updating module is used for receiving the updating information aiming at any one configuration item; updating the stored configuration item according to the updating information; synchronizing the updated configuration items to the at least one service process.
7. The apparatus of claim 6, wherein:
the receiving module is further configured to receive registration information of any one of the service processes;
the updating module is further configured to send the updated information of the configuration item to the at least one service process according to the registration information, so that the at least one service process updates the configuration item according to the updated information of the configuration item.
8. The apparatus of claim 6, wherein the update module is further configured to:
receiving a second query request, wherein the second query request is request information which is sent by any one of the service processes according to a preset time interval and is used for querying configuration items of the service processes;
according to the second query request, querying the information of the configuration item corresponding to the second query request from the stored information of the configuration item;
and sending the inquired information of the configuration item corresponding to the second inquiry request to the service process so that the service process updates the configuration item according to the information of the configuration item corresponding to the second inquiry request.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN201911119611.7A 2019-11-15 2019-11-15 Service process starting method and device, electronic equipment and storage medium Active CN110955460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911119611.7A CN110955460B (en) 2019-11-15 2019-11-15 Service process starting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911119611.7A CN110955460B (en) 2019-11-15 2019-11-15 Service process starting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110955460A true CN110955460A (en) 2020-04-03
CN110955460B CN110955460B (en) 2023-10-03

Family

ID=69977554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911119611.7A Active CN110955460B (en) 2019-11-15 2019-11-15 Service process starting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110955460B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708586A (en) * 2020-06-22 2020-09-25 平安养老保险股份有限公司 Application starting configuration item loading method and device, computer equipment and storage medium
CN112118298A (en) * 2020-09-03 2020-12-22 杭州海康威视数字技术股份有限公司 Configuration management method and device for distributed service

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6944857B1 (en) * 2000-10-12 2005-09-13 International Business Machines Corporation Method, system, computer program product, and article of manufacture for updating a computer program according to a stored configuration
CN102255752A (en) * 2011-06-30 2011-11-23 北京新媒传信科技有限公司 Configuration management system and method of server cluster
CN102710554A (en) * 2012-06-25 2012-10-03 深圳中兴网信科技有限公司 Distributed message system and service status detection method thereof
CN104660689A (en) * 2015-02-04 2015-05-27 中国南方电网有限责任公司 Distributed computing system
WO2017185961A1 (en) * 2016-04-26 2017-11-02 中兴通讯股份有限公司 Method and apparatus for processing service discovery
CN107347093A (en) * 2017-07-03 2017-11-14 北京京东尚科信息技术有限公司 Collocation method and device for distributed server system
CN107544828A (en) * 2017-09-01 2018-01-05 北京奇虎科技有限公司 Configuring load application method and device
US9998551B1 (en) * 2016-10-24 2018-06-12 Palantir Technologies Inc. Automatic discovery and registration of service application for files introduced to a user interface
US10055421B1 (en) * 2017-04-14 2018-08-21 Xactly Corporation Pre-execution query optimization
CN108874549A (en) * 2018-07-19 2018-11-23 北京百度网讯科技有限公司 resource multiplexing method, device, terminal and computer readable storage medium
CN109002350A (en) * 2018-05-23 2018-12-14 中国石油天然气集团有限公司 Way of Process Communication and device in a kind of group system
CN109039730A (en) * 2018-07-25 2018-12-18 网宿科技股份有限公司 Server cluster and server cluster configuration information management method
CN109274734A (en) * 2018-09-07 2019-01-25 海信集团有限公司 A kind of service processes call method and device based on Internet of Things cloud platform
CN109347675A (en) * 2018-10-31 2019-02-15 新华三大数据技术有限公司 Server configuration method, device and electronic equipment
WO2019154353A1 (en) * 2018-02-07 2019-08-15 中兴通讯股份有限公司 System running parameter query method, matching method and apparatus, and node device
US20190266011A1 (en) * 2016-02-29 2019-08-29 Alibaba Group Holding Limited Task processing method, apparatus, and system based on distributed system
CN110333939A (en) * 2019-06-17 2019-10-15 腾讯科技(成都)有限公司 Task mixed scheduling method, device, dispatch server and Resource Server

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6944857B1 (en) * 2000-10-12 2005-09-13 International Business Machines Corporation Method, system, computer program product, and article of manufacture for updating a computer program according to a stored configuration
CN102255752A (en) * 2011-06-30 2011-11-23 北京新媒传信科技有限公司 Configuration management system and method of server cluster
CN102710554A (en) * 2012-06-25 2012-10-03 深圳中兴网信科技有限公司 Distributed message system and service status detection method thereof
CN104660689A (en) * 2015-02-04 2015-05-27 中国南方电网有限责任公司 Distributed computing system
US20190266011A1 (en) * 2016-02-29 2019-08-29 Alibaba Group Holding Limited Task processing method, apparatus, and system based on distributed system
WO2017185961A1 (en) * 2016-04-26 2017-11-02 中兴通讯股份有限公司 Method and apparatus for processing service discovery
US9998551B1 (en) * 2016-10-24 2018-06-12 Palantir Technologies Inc. Automatic discovery and registration of service application for files introduced to a user interface
US10055421B1 (en) * 2017-04-14 2018-08-21 Xactly Corporation Pre-execution query optimization
CN107347093A (en) * 2017-07-03 2017-11-14 北京京东尚科信息技术有限公司 Collocation method and device for distributed server system
CN107544828A (en) * 2017-09-01 2018-01-05 北京奇虎科技有限公司 Configuring load application method and device
WO2019154353A1 (en) * 2018-02-07 2019-08-15 中兴通讯股份有限公司 System running parameter query method, matching method and apparatus, and node device
CN109002350A (en) * 2018-05-23 2018-12-14 中国石油天然气集团有限公司 Way of Process Communication and device in a kind of group system
CN108874549A (en) * 2018-07-19 2018-11-23 北京百度网讯科技有限公司 resource multiplexing method, device, terminal and computer readable storage medium
CN109039730A (en) * 2018-07-25 2018-12-18 网宿科技股份有限公司 Server cluster and server cluster configuration information management method
CN109274734A (en) * 2018-09-07 2019-01-25 海信集团有限公司 A kind of service processes call method and device based on Internet of Things cloud platform
CN109347675A (en) * 2018-10-31 2019-02-15 新华三大数据技术有限公司 Server configuration method, device and electronic equipment
CN110333939A (en) * 2019-06-17 2019-10-15 腾讯科技(成都)有限公司 Task mixed scheduling method, device, dispatch server and Resource Server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708586A (en) * 2020-06-22 2020-09-25 平安养老保险股份有限公司 Application starting configuration item loading method and device, computer equipment and storage medium
CN111708586B (en) * 2020-06-22 2023-06-20 平安养老保险股份有限公司 Application starting configuration item loading method and device, computer equipment and storage medium
CN112118298A (en) * 2020-09-03 2020-12-22 杭州海康威视数字技术股份有限公司 Configuration management method and device for distributed service

Also Published As

Publication number Publication date
CN110955460B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN109885786B (en) Data caching processing method and device, electronic equipment and readable storage medium
CN111327647B (en) Method and device for providing service to outside by container and electronic equipment
CN109450969B (en) Method and device for acquiring data from third-party data source server and server
CN112579898A (en) Enterprise information management method and device and server
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN111355765B (en) Network request processing and sending method and device
CN111125240B (en) Distributed transaction realization method and device, electronic equipment and storage medium
CN108132836B (en) Task distribution method and device and electronic equipment
CN111159131A (en) Performance optimization method, device, equipment and computer readable storage medium
CN110674153B (en) Data consistency detection method and device and electronic equipment
CN110427538B (en) Data query method, data storage method, data query device, data storage device and electronic equipment
CN111309693A (en) Data synchronization method, device and system, electronic equipment and storage medium
CN112887113A (en) Method, device and system for processing data
CN110765125B (en) Method and device for storing data
CN114090268B (en) Container management method and container management system
CN110727895A (en) Sensitive word sending method and device, electronic equipment and storage medium
CN111221847B (en) Monitoring data storage method, device and computer readable storage medium
CN113014456A (en) Monitoring data transmission system, method, device, equipment and storage medium
CN109254855B (en) Registration method and device of parameter transmission protocol and electronic equipment
CN111291127A (en) Data synchronization method, device, server and storage medium
CN112579682A (en) Data model change notification method and device, electronic device and storage medium
CN111400327A (en) Data synchronization method and device, electronic equipment and storage medium
JP5402066B2 (en) Information search system, information search device, information search program, and information search method
CN112732757B (en) Method, system, device, equipment and storage medium for processing degraded data
CN110858848B (en) Correction method and device for task resources of cluster system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant