CN110955460B - 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
CN110955460B
CN110955460B CN201911119611.7A CN201911119611A CN110955460B CN 110955460 B CN110955460 B CN 110955460B CN 201911119611 A CN201911119611 A CN 201911119611A CN 110955460 B CN110955460 B CN 110955460B
Authority
CN
China
Prior art keywords
service process
information
configuration items
configuration
query 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.)
Active
Application number
CN201911119611.7A
Other languages
Chinese (zh)
Other versions
CN110955460A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a service process starting method, a device, electronic equipment and a storage medium, which are applied to a distributed application program coordination process of nodes in a distributed system, wherein each node comprises a distributed application program coordination process and at least one service process, the distributed application program coordination process stores information of configuration items of each service process, the distributed application program coordination process receives a first query request, and the first query request is request information for acquiring the configuration items of any service process when the service process is started; inquiring information of the configuration items corresponding to the first inquiry request from the stored information of the configuration items according to the first inquiry request; and sending the queried 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, so that the number of configuration files stored in the distributed system is reduced, and further resource waste is reduced.

Description

Service process starting method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of distributed storage, and in particular, to a method and apparatus for starting a service process, an electronic device, and a storage medium.
Background
In a distributed system, when a service process starts, information of a starting configuration item required by the service process needs to be loaded. The starting configuration item of the service process may include a port number, a maximum concurrency number, a working thread number, a cache size, and the like of the service.
In the related art, a configuration file of each service process is usually required to be obtained in advance in a distributed system, where the configuration file of each service process includes information of all starting configuration items that need to be loaded when the service process starts, so that when any service process starts, the starting configuration items that are required by the service process can be loaded by reading the configuration file of the service process, thereby starting the service process.
However, since the configuration files of each process need to be acquired in advance, when the number of processes in the distributed system is large, a large number of configuration files will be stored in the distributed system, and a large amount of repeated information will be present in the configuration files, which results in waste of resources in the distributed system.
Disclosure of Invention
The embodiment of the application aims to provide a service process starting method, a device, electronic equipment and a storage medium, so as to reduce the number of configuration files stored in a distributed system and further reduce the resource waste of the distributed system. The specific technical scheme is as follows:
the embodiment of the application 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 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 information of the configuration items corresponding to the first inquiry request from the stored information of the configuration items according to the first inquiry request;
and sending the queried information of the configuration item corresponding to the first query request to the service process so as to enable the service process to be started according to the information of the configuration item corresponding to the first query request.
Optionally, the method further comprises:
receiving update information for any one of the configuration items;
updating the stored configuration item according to the updating information;
and synchronizing the updated configuration item to the at least one service process.
Optionally, the method further comprises:
receiving registration information of any service process;
the synchronizing the updated configuration item to the at least one service process includes:
and sending the information of the updated 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 information of the updated 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 service process according to a preset time interval and used for querying a configuration item of the service process;
inquiring information of the configuration items corresponding to the second inquiry request from the stored information of the configuration items according to the second inquiry request;
and sending the queried information of the configuration items corresponding to the second query request to the service process, so that the service process updates the configuration items according to the information of the configuration items corresponding to the second query request.
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, the distributed application program coordination process stores information of configuration items of each service process, and the device comprises:
the receiving module is used for 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;
the query module is used for querying information of the configuration items corresponding to the first query request from the stored information of the configuration items according to the first query request;
and the sending module is used for sending the queried information of the configuration item corresponding to the first query request to the service process so as to enable the service process to be started according to the information of the configuration item corresponding to the first query request.
Optionally, the apparatus further includes:
the updating module is used for receiving updating information aiming at any configuration item; updating the stored configuration item according to the updating information; and synchronizing the updated configuration item to the at least one service process.
Optionally, the receiving module is further configured to receive registration information of any service process;
the updating module is further configured to send information of the updated 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 information of the updated configuration item.
Optionally, the updating 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 used for querying a configuration item of the service process;
inquiring information of the configuration items corresponding to the second inquiry request from the stored information of the configuration items according to the second inquiry request;
and sending the queried information of the configuration items corresponding to the second query request to the service process, so that the service process updates the configuration items according to the information of the configuration items corresponding to the second query request.
The embodiment of the application also provides electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface, and the memory are communicated with each other 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 programs stored in the memory.
The embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program realizes any one of the service process starting methods when being executed by a processor.
The embodiment of the application also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the service process starting method described in any one of the above.
The method and the device for starting the service process are applied to a distributed application program coordination process of a node 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 configuration items of each service process, and in the method, the distributed application program coordination process receives a first query request, wherein the first query request is request information for acquiring the configuration items of any service process when the service process is started; inquiring information of the configuration items corresponding to the first inquiry request from the stored information of the configuration items according to the first inquiry request; and sending the queried information of the configuration item corresponding to the first query request to the service process so as to enable the service process to be 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 coordination process, each service process can directly obtain the required configuration items from the distributed application coordination process, and the corresponding configuration files do not need to be stored for each service process, so that the number of the configuration files stored in the distributed system is reduced, and further the resource waste of the distributed system is reduced. Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a service process starting method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating another method for starting a service process according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a service process starting device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the related art, a configuration file of each service process is usually required to be obtained in advance in a distributed system, where the configuration file of each service process includes information of all starting configuration items that need to be loaded when the service process starts, so that when any service process starts, the starting configuration items that are required by the service process can be loaded by reading the configuration file of the service process, thereby starting the service process.
However, since the configuration files of each process need to be acquired in advance, when the number of processes in the distributed system is large, a large number of configuration files will be stored in the distributed system, and a large amount of repeated information will be present in the configuration files, which results in waste of resources in the distributed system.
The following generally describes a service process starting method provided by the embodiment of the present application, where the method 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 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 information of the configuration items corresponding to the first inquiry request from the stored information of the configuration items according to the first inquiry request;
and sending the queried information of the configuration item corresponding to the first query request to the service process so as to enable the service process to be started according to the information of the configuration item.
As can be seen from the foregoing, in the service process starting method provided by the embodiment of the present application, through the configuration items of each server process stored in the distributed application coordination process, each service process can directly obtain the required configuration item from the distributed application coordination process, without storing a corresponding configuration file for each service process, thereby reducing the number of configuration files stored in the distributed system, and further reducing resource waste of the distributed system.
The service process starting method provided by the embodiment of the application 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.
The distributed application coordination process is a distributed and coordinated system and can be deployed in each node of the distributed system. The distributed application coordination process may store information of the configuration items of each service process directly through interaction with the user, or may store information of the configuration items of each service process through 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, and maximum length of queue, which is not limited in the embodiment of the present application.
For example, in the distributed application coordination process, the information of the plurality of configuration items may be stored in a database or may be stored in a linked list, which is not limited in the embodiment of the present application. Wherein the value of each configuration item is unique.
As shown in fig. 1, a flowchart of a service process starting method provided by an embodiment of the present application is applied to a distributed application 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 request information for acquiring 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 coordination process after receiving a start instruction, where the start instruction may be obtained through interaction between a node and a user, or may be sent by another node in the distributed system to the node, 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 required by the service process when the service process starts, that is, the first query request includes the configuration items required by the service process when the service process starts. In this way, the distributed application coordination process may determine from the first query request information of which configuration items the service process needs to obtain.
S102: and according to the first query request, querying the information of the configuration items corresponding to the first query request from the stored information of the configuration items.
In the embodiment of the application, after the distributed application coordination process receives the first query request, the first query request can be analyzed to determine the starting configuration items required by the service process when the service process is started, and then the information of the starting configuration items is queried from the stored information of the plurality of configuration items.
In a distributed system, a service process may include a plurality of service processes, and each service process may have one or a plurality of configuration items, and different service processes may have the same or different configuration items. 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 items of each service process is stored, so that each service process can acquire the information of the configuration items of the service process from the distributed application program coordination process through a first query request.
S103: and sending the queried information of the configuration item corresponding to the first query request to the service process so as to enable the service process to be started according to the information of the configuration item.
After the service process acquires the information of the configuration items, the service process can be started according to the information of the configuration items to start running, so that corresponding services are provided for users. In the embodiment of the application, in the starting process of the service process, the information of the configuration items can be directly obtained from the distributed application program coordination process without obtaining the information of the configuration items from the configuration files obtained in advance, namely, on one hand, the number of the configuration files stored in the distributed system can be reduced, and on the other hand, the information of any configuration item is only required to be set in the distributed application program coordination process and is not required to be stored in a plurality of configuration files corresponding to each service process, so that the resource waste of the distributed system is reduced.
As shown in fig. 2, a flow chart of another service process starting method provided by the embodiment of the present application is applied to a distributed application 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 the 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 coordination process may search the stored configuration items for the configuration item corresponding to the update information, and then update the stored configuration items. In this way, when any service process requests the configuration items from the distributed application coordination process, the updated configuration items can be directly obtained without updating the configuration items after starting, so that the running efficiency of the distributed system is higher.
S106: and synchronizing the updated configuration item to 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, the service process can synchronize the updated configuration items directly from the distributed application coordination process, and the information of the updated configuration items in the updated configuration files is not required to be acquired again in a restarting mode, so that the configuration items are updated more simply in the distributed system, the configuration items are updated more quickly, and the efficiency of the configuration item updating 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 the updated information of the configuration item to the service process that has sent the registration information according to the received registration information. Furthermore, the service process can update the configuration items according to the updated configuration item information returned by the distributed application coordination process.
In another implementation manner, after the service process is started, a second query request is sent to the distributed application program coordination process according to a preset time interval, wherein the second query request is request information for querying configuration items of any service process. After receiving the second query request, the distributed application coordination service may query information of the configuration item corresponding to the second query request from the stored information of the configuration item according to the second query request, 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 can update the 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 the configuration items of the service process, for example, the service process may query only one or more configuration items with higher importance level for the distributed application coordination process, and does not need to query information of all the starting configuration items, so that the amount of data to be transmitted may be reduced, thereby further reducing resource waste of the distributed system.
By means of the service process sending the second query request, the service process can monitor feedback of the distributed application coordination process after sending the second query request each time, if feedback of the distributed application coordination process is not received within a long period of time, the communication between the current service process and the distributed application coordination process is judged to be faulty, further measures such as resending the second query request or reporting errors are taken, and operation errors of the distributed system caused by loss of information of configuration items corresponding to the second query request and returned by the second query request sent by the service process or the distributed application coordination process are reduced.
In addition, in one implementation manner, the above two methods for synchronizing the configuration items to be updated may be applied simultaneously, that is, the distributed application coordination process may send the updated information of the configuration items 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 coordination process according to a preset time interval after starting. In this way, the running error of the distributed system caused by the loss of the information of the configuration item corresponding to the second query request, which is sent by the service process, or the information of the configuration item corresponding to the second query request, which is returned by the distributed application coordination process, can be further reduced.
As can be seen from the foregoing, in the service process starting method provided by the embodiment of the present application, through the configuration items of each server process stored in the distributed application coordination process, each service process can directly obtain the required configuration item from the distributed application coordination process, without storing a corresponding configuration file for each service process, thereby reducing the number of configuration files stored in the distributed system, and further reducing resource waste of the distributed system.
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 information of configuration items of each service process.
Fig. 3 is a schematic structural diagram of a service process starting device according to an embodiment of the present application, where the device is applied to a distributed application coordination process of a node in a distributed system, and includes:
the receiving module 301 is configured to receive a first query request, where the first query request is request information for obtaining a configuration item when any service process is started;
a query module 302, configured to query, according to the first query request, information of a configuration item corresponding to the first query request from the stored information of the configuration items;
and the sending module 303 is 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; and synchronizing the updated configuration item to 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 also used for sending the information of the updated configuration items to at least one service process according to the registration information so that the at least one service process updates the configuration items according to the information of the updated configuration items.
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;
inquiring information of the configuration items corresponding to the second inquiry request from the stored information of the configuration items according to the second inquiry request;
and sending the queried information of the configuration items corresponding to the second query request to the service process, so that the service process updates the configuration items according to the information of the configuration items corresponding to the second query request.
As can be seen from the foregoing, in the service process starting device provided by the embodiment of the present application, through the configuration items of each server process stored in the distributed application coordination process, each service process can directly obtain the required configuration item from the distributed application coordination process, without storing a corresponding configuration file for each service process, thereby reducing the number of configuration files stored in the distributed system, and further reducing resource waste of the distributed system.
The embodiment of the application also provides an electronic device, as shown in fig. 4, which comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete communication with each other 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 information of the configuration items corresponding to the first inquiry request from the stored information of the configuration items according to the first inquiry request;
and sending the queried information of the configuration item corresponding to the first query request to the service process so as to enable the service process to be started according to the information of the configuration item.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include 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 aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
As can be seen from the above, in the electronic device provided by the embodiment of the present application, through the configuration item of each server process stored in the distributed application coordination process, each service process can directly obtain the required configuration item from the distributed application coordination process, without storing a corresponding configuration file for each service process, thereby reducing the number of configuration files stored in the distributed system, and further reducing the resource waste of the distributed system.
In yet another embodiment of the present application, a computer readable storage medium is provided, in which instructions are stored, which when executed on a computer, cause the computer to perform the service process starting method according to any one of the above embodiments.
In yet another embodiment of the present application, a computer program product containing instructions that, when run on a computer, cause the computer to perform the service process initiation method of any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part 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, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more 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)), etc.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus embodiments, the electronic device embodiments, the storage medium embodiments and the computer program product embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, and the relevant points are found in the partial description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. The service process starting method is characterized by being 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 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, and the configuration items comprise at least one of the following: thread number, cache size, port number and maximum length of queue;
inquiring information of the configuration items corresponding to the first inquiry request from the stored information of the configuration items according to the first inquiry request;
and sending the queried information of the configuration item corresponding to the first query request to the service process so as to enable the service process to be started according to the information of the configuration item corresponding to the first query request.
2. The method according to claim 1, wherein the method further comprises:
receiving update information for any one of the configuration items;
updating the stored configuration item according to the updating information;
and synchronizing the updated configuration item to the at least one service process.
3. The method according to claim 2, wherein the method further comprises:
receiving registration information of any service process;
the synchronizing the updated configuration item to the at least one service process includes:
and sending the information of the updated 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 information of the updated 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 service process according to a preset time interval and used for querying a configuration item of the service process;
inquiring information of the configuration items corresponding to the second inquiry request from the stored information of the configuration items according to the second inquiry request;
and sending the queried information of the configuration items corresponding to the second query request to the service process, so that the service process updates the configuration items according to the information of the configuration items corresponding to the second query request.
5. A service process starting device, characterized by being 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 information of configuration items of each service process, and the device comprises:
the receiving module is used for 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, and the configuration items comprise at least one of the following: thread number, cache size, port number and maximum length of queue;
the query module is used for querying information of the configuration items corresponding to the first query request from the stored information of the configuration items according to the first query request;
and the sending module is used for sending the queried information of the configuration item corresponding to the first query request to the service process so as to enable the service process to be started according to the information of the configuration item corresponding to the first query request.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the updating module is used for receiving updating information aiming at any configuration item; updating the stored configuration item according to the updating information; and synchronizing the updated configuration item to the at least one service process.
7. The apparatus according to claim 6, wherein:
the receiving module is further used for receiving registration information of any service process;
the updating module is further configured to send information of the updated 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 information of the updated 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 service process according to a preset time interval and used for querying a configuration item of the service process;
inquiring information of the configuration items corresponding to the second inquiry request from the stored information of the configuration items according to the second inquiry request;
and sending the queried information of the configuration items corresponding to the second query request to the service process, so that the service process updates the configuration items according to the information of the configuration items corresponding to the second query request.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-4 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-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 CN110955460A (en) 2020-04-03
CN110955460B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (16)

* 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
CN110333939A (en) * 2019-06-17 2019-10-15 腾讯科技(成都)有限公司 Task mixed scheduling method, device, dispatch server and Resource Server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133086B (en) * 2016-02-29 2020-09-04 阿里巴巴集团控股有限公司 Task processing method, device and system based on distributed system

Patent Citations (16)

* 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
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

Also Published As

Publication number Publication date
CN110955460A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN111327647B (en) Method and device for providing service to outside by container and electronic equipment
US10474185B2 (en) Timestamp alignment across a plurality of computing devices
CN110413845B (en) Resource storage method and device based on Internet of things operating system
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN112153095A (en) CDN function module operation method, operation device, electronic equipment and storage medium
CN112579898A (en) Enterprise information management method and device and server
CN111930770A (en) Data query method and device and electronic equipment
CN111355765B (en) Network request processing and sending method and device
CN105530323A (en) File upgrading method, related equipment and system
CN113067853A (en) Data pushing method and device, electronic equipment and storage medium
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN110677683B (en) Video storage and video access method and distributed storage and video access system
CN110309028B (en) Monitoring information acquisition method, service monitoring method, device and system
CN110427538B (en) Data query method, data storage method, data query device, data storage device and electronic equipment
CN108023920B (en) Data packet transmission method, equipment and application interface
CN114691175A (en) Application updating method, device and system
JP5353682B2 (en) Configuration information management apparatus, distributed information management system, distributed information management method, and distributed information management program
CN112131263B (en) Software package acquisition method, system, device, electronic equipment and storage medium
CN111291127B (en) Data synchronization method, device, server and storage medium
CN111221847B (en) Monitoring data storage method, device and computer readable storage medium
CN112732757B (en) Method, system, device, equipment and storage medium for processing degraded data
CN112887113A (en) Method, device and system for processing data
CN113014456A (en) Monitoring data transmission system, method, device, equipment and storage medium
CN112579682A (en) Data model change notification method and device, electronic device and storage medium
CN112861031A (en) URL (Uniform resource locator) refreshing method, device and equipment in CDN (content delivery network) and CDN node

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