CN110719187B - Configuration management method, system and computer readable storage medium - Google Patents

Configuration management method, system and computer readable storage medium Download PDF

Info

Publication number
CN110719187B
CN110719187B CN201810774239.2A CN201810774239A CN110719187B CN 110719187 B CN110719187 B CN 110719187B CN 201810774239 A CN201810774239 A CN 201810774239A CN 110719187 B CN110719187 B CN 110719187B
Authority
CN
China
Prior art keywords
configuration
service cluster
application server
configuration management
configuration data
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
CN201810774239.2A
Other languages
Chinese (zh)
Other versions
CN110719187A (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.)
Shenzhen Sinosun Technology Co ltd
Original Assignee
Shenzhen Sinosun 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 Shenzhen Sinosun Technology Co ltd filed Critical Shenzhen Sinosun Technology Co ltd
Priority to CN201810774239.2A priority Critical patent/CN110719187B/en
Publication of CN110719187A publication Critical patent/CN110719187A/en
Application granted granted Critical
Publication of CN110719187B publication Critical patent/CN110719187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Abstract

The invention discloses a configuration management method, which comprises the following steps: when the application server is started or restarted, sending a registration request carrying role information of the application server to the configuration management service cluster; the configuration management service cluster searches corresponding configuration data and inter-server dependency rules from the storage service cluster according to the role information; generating a configuration data identifier, returning the configuration data identifier and the inter-server dependency rule to the application server, and simultaneously sending the configuration data and the inter-server dependency rule to the distributed coordination service cluster; and the application server respectively obtains the configuration data of the application server and the configuration data of the server depended by the application server from the distributed coordination service cluster according to the configuration data identification and the inter-server dependency rule. The invention also discloses a configuration management system and a computer readable storage medium. The invention can realize unified and efficient management of the configuration of the application server in the distributed cluster system.

Description

Configuration management method, system and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a configuration management method, system, and computer-readable storage medium.
Background
With the development of information technology, more and more internet services depend on a distributed cluster system, the distributed cluster system has the characteristics of a large number of application servers and complex configuration of communication networks among the servers, and in large-scale cluster application, an application program runs on hundreds or even thousands of servers, and the maintenance and management of configuration information are more important.
In the existing configuration management mode, configuration data in configuration files of each application server in an application server cluster are often set respectively by manpower, and a unified management platform is not provided; when there is a dependency relationship between servers, if configuration data of one server needs to be modified, the configuration of the server needs to be modified first, and then configurations of other servers associated with the server need to be modified, so as to ensure that configuration data on the servers are consistent, which is also manually completed. Because the types and the number of the application servers in the distributed cluster system are various and the application servers are mutually depended to form a mesh structure, when the configuration of the depended server changes, a large number of configurations of the application servers depending on the change need to be modified manually, and the method is low in efficiency, high in error rate and low in timeliness.
Disclosure of Invention
The invention mainly aims to provide a configuration management method, a configuration management system and a computer readable storage medium, and aims to realize uniform and efficient management of the configuration of an application server in a distributed cluster system.
In order to achieve the above object, the present invention provides a configuration management method, which is applied to a configuration management system, wherein the configuration management system comprises a configuration management service cluster, a storage service cluster, a distributed coordination service cluster and an application server cluster composed of a plurality of application servers, and the configuration management method comprises the following steps:
when the application server is started or restarted, sending a registration request to a configuration management service cluster, wherein the registration request carries role information of the application server;
the configuration management service cluster searches corresponding configuration data and inter-server dependency rules from the storage service cluster according to the role information;
a configuration management service cluster generates a configuration data identifier corresponding to the configuration data, returns the configuration data identifier and the inter-server dependency rule to an application server, and simultaneously sends the configuration data and the inter-server dependency rule to a distributed coordination service cluster for caching;
and the application server obtains the configuration data of the application server from the distributed coordination service cluster according to the configuration data identification, and obtains the configuration data of the server depended on from the distributed coordination service cluster according to the inter-server dependency rule.
Preferably, before the step of sending the registration request to the configuration management service cluster when the application server is started or restarted, the method further includes:
the configuration management service cluster acquires application server configuration information set by a user;
and the configuration management service cluster sends the configuration information to a storage service cluster for persistent storage, wherein the configuration information comprises role information of an application server, configuration data corresponding to the role information and a dependency rule between servers.
Preferably, the step of acquiring the application server configuration information set by the user by the configuration management service cluster includes:
the configuration management service cluster receives an application server configuration instruction triggered by a user based on a WEB console, and obtains application server configuration information carried in the configuration instruction.
Preferably, the configuration management method further includes:
the configuration management service cluster receives an application server configuration data adding/deleting/modifying/inquiring instruction triggered by a user based on a WEB console;
and the configuration management service cluster controls the storage service cluster to execute corresponding operation according to the configuration data adding/deleting/modifying/inquiring instruction, and returns a corresponding execution result to the WEB console.
Preferably, after the step of controlling, by the configuration management service cluster, the storage service cluster to execute the corresponding operation according to the configuration data add/delete/modify/query instruction, and returning the corresponding execution result to the WEB console, the method further includes:
when the storage service cluster executes the configuration data adding/deleting/modifying operation, the configuration management service cluster controls the distributed coordination service cluster to execute the corresponding configuration data adding/deleting/modifying operation, and returns the corresponding execution result to the WEB console.
Preferably, the configuration management method further comprises:
and the application server initializes the communication channel between the servers according to the acquired configuration data of the application server and the configuration data of the server depended on the application server.
Preferably, the configuration management method further includes:
the application server sends a configuration data change notification subscription request to the distributed coordination service cluster to subscribe the configuration data change notification;
when the distributed coordination service cluster adds, deletes or modifies the configuration data cached by the distributed coordination service cluster, the distributed coordination service cluster sends a corresponding configuration data change notification to the application server which has subscribed the configuration data change notification.
Preferably, a configuration management client is embedded in the application server, and the configuration management client is used for interacting with the configuration management service cluster and the distributed coordination service cluster.
In addition, in order to achieve the above object, the present invention further provides a configuration management system, where the configuration management system includes a configuration management service cluster, a storage service cluster, a distributed coordination service cluster, an application server cluster composed of a plurality of application servers, and a configuration management program, and when the configuration management program is executed by the configuration management system, the configuration management method as described above is implemented.
Furthermore, to achieve the above object, the present invention also provides a computer readable storage medium, on which a configuration management program is stored, the configuration management program, when executed by a processor, implementing the steps of the configuration management method as described above.
According to the configuration management method provided by the invention, through data interaction among the configuration management service cluster, the storage service cluster, the distributed coordination service cluster and the application servers, when any application server is started or restarted, not only can the configuration data of the application server be automatically obtained, but also the configuration data of the server depending on the application server can be automatically obtained.
Drawings
FIG. 1 is a schematic diagram of a configuration management system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a configuration management method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a configuration management method according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a configuration management method according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when the application server is started or restarted, sending a registration request to a configuration management service cluster, wherein the registration request carries role information of the application server; the configuration management service cluster searches corresponding configuration data and inter-server dependency rules from the storage service cluster according to the role information; the configuration management service cluster generates a configuration data identifier corresponding to the configuration data, returns the configuration data identifier and the inter-server dependency rules to an application server, and simultaneously sends the configuration data and the inter-server dependency rules to the distributed coordination service cluster for caching; and the application server acquires the configuration data of the application server from the distributed coordination service cluster according to the configuration data identification, and acquires the configuration data of the server depended on the application server from the distributed coordination service cluster according to the inter-server dependency rule.
In the existing configuration management mode, configuration data in configuration files of each application server in an application server cluster are often set respectively by manpower, and a unified management platform is not provided; when there is a dependency relationship between servers, if configuration data of one server needs to be modified, the configuration of the server needs to be modified first, and then configurations of other servers associated with the server need to be modified, so as to ensure that configuration data on the servers are consistent, which is also manually completed. Because the types and the number of the application servers in the distributed cluster system are various and the application servers are mutually depended to form a mesh structure, when the configuration of the depended server changes, a large number of configurations of the application servers depending on the change need to be modified manually, and the method is low in efficiency, high in error rate and low in timeliness.
According to the configuration management method provided by the invention, through data interaction among the configuration management service cluster, the storage service cluster, the distributed coordination service cluster and the application servers, when any application server is started or restarted, not only can the configuration data of the application server be automatically obtained, but also the configuration data of the server depending on the application server can be automatically obtained.
As shown in fig. 1, fig. 1 is a schematic composition diagram of a configuration management system according to an embodiment of the present invention.
In this embodiment, the configuration management system includes a configuration management service cluster, a storage service cluster, a distributed coordination service cluster, an application server cluster composed of a plurality of application servers, and a configuration management program; the configuration management service cluster is respectively communicated with the storage service cluster, the distributed coordination service cluster and the application server cluster and is used for carrying out unified management on configuration data of each application server in the application server cluster, the front end of the configuration management service cluster can be a WEB console, operation and maintenance managers send configuration instructions to the configuration management service cluster based on the WEB console, a configuration management client is embedded in the application server and used for interacting with the configuration management service cluster and the distributed coordination service cluster, the application server only needs to initialize a configuration management client instance, and the system can dynamically and centrally manage the configuration data of the application server. Specifically, the method comprises the following steps:
the application server is used for sending a registration request to the configuration management service cluster when the application server is started or restarted, wherein the registration request carries role information of the application server;
the configuration management service cluster is used for searching corresponding configuration data and the inter-server dependency rules from the storage service cluster according to the role information; generating a configuration data identifier corresponding to the configuration data, returning the configuration data identifier and the inter-server dependency rule to an application server, and simultaneously sending the configuration data and the inter-server dependency rule to a distributed coordination service cluster for caching;
and the application server is also used for acquiring self configuration data from the distributed coordination service cluster according to the configuration data identification and acquiring the configuration data of the server which is depended on by the application server from the distributed coordination service cluster according to the inter-server dependency rule.
Further, the configuration management service cluster is also used for acquiring application server configuration information set by a user; and sending the configuration information to a storage service cluster for persistent storage, wherein the configuration information comprises role information of an application server, configuration data corresponding to the role information and a dependency rule between servers.
Further, the configuration management service cluster is also used for receiving an application server configuration instruction triggered by a user based on a WEB console, and obtaining application server configuration information carried in the configuration instruction.
Furthermore, the configuration management service cluster is also used for receiving an application server configuration data adding/deleting/modifying/inquiring instruction triggered by a user based on a WEB console; and controlling the storage service cluster to execute corresponding operation according to the configuration data adding/deleting/modifying/inquiring instruction, and returning a corresponding execution result to the WEB console.
And further, the configuration management service cluster is also used for controlling the distributed coordination service cluster to execute corresponding configuration data adding/deleting/modifying operation and returning a corresponding execution result to the WEB console when the storage service cluster executes configuration data adding/deleting/modifying operation.
Further, the application server is further configured to initialize the inter-server communication channel according to the obtained configuration data of the application server and the configuration data of the server on which the application server depends.
Further, the application server is further configured to send a configuration data change notification subscription request to the distributed coordination service cluster to subscribe to a configuration data change notification;
the distributed coordination service cluster is also used for sending a corresponding configuration data change notice to the application server which has subscribed the configuration data change notice when adding, deleting and modifying the configuration data cached by the distributed coordination service cluster.
The method for implementing the configuration management program when executed by the configuration management system may refer to the following embodiments of the configuration management method of the present invention, which are not described herein again.
Based on the configuration management system, the invention provides various embodiments of the configuration management method.
Referring to fig. 2, fig. 2 is a schematic flowchart of a configuration management method according to a first embodiment of the present invention, where the method includes:
step S10, when the application server is started or restarted, sending a registration request to the configuration management service cluster, wherein the registration request carries role information of the application server;
in this embodiment, the application server cluster is a business service cluster managed by the configuration management system, the application server cluster includes a plurality of application servers, a configuration management client is embedded in each application server, the configuration management client is used for interacting with the configuration management service cluster and the distributed coordination service cluster, the application server only needs to initialize the configuration management client, and the system can dynamically and centrally manage the configuration data of the application servers.
In an application server cluster, when any application server is started or restarted, a registration request is required to be sent to a configuration management service cluster, the registration request carries role information of the application server, and the role information is used for representing roles played by the application server in a distributed cluster system, wherein different roles have different permissions; besides the role information, the application server should also carry its own address information in the registration request, so as to facilitate the configuration of the management service cluster to distinguish different application servers.
Step S20, the configuration management service cluster searches the corresponding configuration data and the inter-server dependency rules from the storage service cluster according to the role information;
in this embodiment, the storage service cluster stores configuration information of different application servers in advance, where the configuration information includes role information of the application servers, corresponding configuration data, and inter-server dependency rules, where the configuration data, that is, the configuration data of applications in the application servers, may be stored in a configuration file in a format such as XML, Properties, Json, and the inter-server dependency rules indicate dependency relationships between different application servers.
After receiving a registration request sent by an application server, the configuration management service cluster analyzes role information of the application server from the registration request, and then according to the role information, the corresponding configuration data and the dependency rules between the servers can be searched from the storage service cluster.
Step S30, the configuration management service cluster generates configuration data identification corresponding to the configuration data, and returns the configuration data identification and the inter-server dependency rule to the application server, and at the same time, sends the configuration data and the inter-server dependency rule to the distributed coordination service cluster for caching;
in the step, after finding the configuration data of the application server and the inter-server dependency rule, the configuration management service cluster generates a configuration data identifier corresponding to the configuration data, and returns the configuration data identifier and the inter-server dependency rule to the application server to indicate that the application server is successfully registered; and meanwhile, the configuration management service cluster sends the searched configuration data of the application server and the inter-server dependency rules to the distributed coordination service cluster, and the distributed coordination service cluster creates node information of the application server and caches the related configuration data and the inter-server dependency rules after receiving the configuration data of the application server and the inter-server dependency rules.
And step S40, the application server obtains the configuration data of itself from the distributed coordination service cluster according to the configuration data identification, and obtains the configuration data of the server depended on itself from the distributed coordination service cluster according to the inter-server dependency rule.
After receiving the configuration data identifier and the inter-server dependency rule sent by the configuration management service cluster, the application server obtains the configuration data of the application server from the distributed coordination service cluster according to the configuration data identifier, and obtains the configuration data of the server depended on by the application server from the distributed coordination service cluster according to the inter-server dependency rule. Specifically, for example, there is currently an application server A, B, C that sends a registration request to the configuration management service cluster and the registration is successful, the configuration data of the application server A, B, C and the inter-server dependency rule are cached in the distributed coordination service cluster, and the distributed coordination service cluster receives the configuration data identification and the inter-server dependency rule sent by the application server a, then, the configuration data of the application server A can be obtained according to the configuration data identification, if the dependency rule of the application server A is that the application server A depends on the application server B, the distributed coordination service cluster looks up the configuration data of the application server B from the cache and returns the configuration data to the application server a, thus, the application server a can obtain the configuration data of itself and the configuration data of the application server B on which it depends.
Further, after step S40, the method may further include: and the application server initializes the communication channel between the servers according to the acquired configuration data of the application server and the configuration data of the server depended on the application server. In this way, the communication channel can be ensured to be established between the application servers according to the preset dependence rule so as to exchange the service data.
According to the configuration management method provided by the embodiment, through data interaction among the configuration management service cluster, the storage service cluster, the distributed coordination service cluster and the application servers, when any application server is started or restarted, not only can the configuration data of the application server be automatically obtained, but also the configuration data of the server depending on the application server can be automatically obtained.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a configuration management method according to a second embodiment of the present invention. Based on the above embodiment shown in fig. 2, before step S10, the method may further include:
step S50, the configuration management service cluster obtains the application server configuration information set by the user;
step S60, the configuration management service cluster sends the configuration information to the storage service cluster for persistent storage, where the configuration information includes role information of the application server, and configuration data corresponding to the role information and inter-server dependency rules.
In this embodiment, a user may set configuration information of each application server according to a service requirement, and after obtaining the configuration information of the application server set by the user, the configuration management service cluster sends the configuration information to the storage service cluster, so that the storage service cluster persistently stores the configuration information, where the configuration information includes role information of each application server, and configuration data corresponding to the role information and a dependency rule between servers.
Further, the step S50 may include: the configuration management service cluster receives an application server configuration instruction triggered by a user based on a WEB console, and obtains application server configuration information carried in the configuration instruction.
As a configuration information acquisition mode, the configuration management service cluster can be connected with a WEB console, and when an application server configuration instruction triggered by a user based on the WEB console is received, the configuration information of the application server carried in the configuration instruction is acquired. It should be noted that the WEB console is a WEB-based user interface, manages configuration information of the distributed cluster service based on the WEB console, better conforms to the use habits of most operation and maintenance personnel, and is intuitive and effective. Certainly, the configuration management service cluster may also obtain the application server configuration information set by the user through other user interfaces, and the configuration management service cluster may be flexibly set in specific implementation.
Further, the configuration management method may further include: the configuration management service cluster receives an application server configuration data adding/deleting/modifying/inquiring instruction triggered by a user based on a WEB console; and the configuration management service cluster controls the storage service cluster to execute corresponding operation according to the configuration data adding/deleting/modifying/inquiring instruction, and returns a corresponding execution result to the WEB console.
In this embodiment, a user may trigger an application server configuration data add/delete/modify/query instruction based on a WEB console, and after receiving the application server configuration data add/delete/modify/query instruction triggered by the user based on the WEB console, the configuration management service cluster controls the storage service cluster to execute a corresponding add/delete/modify/query operation, and returns an execution result to the front-end WEB console. Therefore, flexible addition/deletion/modification/query of the configuration data of the application server is realized, and the operation of a user is facilitated.
Further, after the step of configuring the management service cluster to control the storage service cluster to execute the corresponding operation according to the configuration data add/delete/modify/query instruction, and returning the corresponding execution result to the WEB console, the method may further include: when the storage service cluster executes the configuration data adding/deleting/modifying operation, the configuration management service cluster controls the distributed coordination service cluster to execute the corresponding configuration data adding/deleting/modifying operation, and returns the corresponding execution result to the WEB console.
In this embodiment, when the storage service cluster executes the configuration data add/delete/modify operation, the configuration management service cluster simultaneously controls the distributed coordination service cluster to execute the corresponding configuration data add/delete/modify operation, and returns the corresponding execution result to the WEB console. Therefore, when the configuration data changes, the configuration data in the distributed coordination service cluster and the configuration data stored in the storage service cluster are kept consistent, and the configuration data obtained by the subsequent application server from the distributed coordination service cluster is the latest configuration data, so that the configuration data of the application server is dynamically and timely updated.
In this embodiment, the configuration management service cluster acquires the configuration information of the application server set by the user, and sends the configuration information to the storage service cluster for persistent storage, thereby providing a precondition guarantee for loading the required configuration data when the subsequent application server is started or restarted.
Further, referring to fig. 4, fig. 4 is a flowchart illustrating a configuration management method according to a third embodiment of the present invention. Based on the embodiment described in fig. 2, after step S40, the method may further include:
step S70, the application server sends a subscription request for the notification of the change of the configuration data to the distributed coordination service cluster to subscribe the notification of the change of the configuration data;
step S80, when adding/deleting/modifying the configuration data cached by the distributed coordination service cluster, sending a corresponding configuration data change notification to the application server subscribed with the configuration data change notification.
In this embodiment, the distributed coordination service cluster provides a configuration data change notification function. In order to enable the dependent application servers to sense when the configuration data of the dependent application servers changes, each application server can send a configuration data change notification subscription request to the distributed coordination service cluster to subscribe the configuration data change notification, and when the subsequent distributed coordination service cluster adds, deletes or modifies the configuration data cached by the subsequent distributed coordination service cluster, the corresponding configuration data change notification is sent to the application server which has subscribed the configuration data change notification, so that the application server which has subscribed the configuration data change notification can timely acquire the configuration data change information of the application server and the dependent application server, and the changed data can be conveniently and timely loaded.
The embodiment dynamically notifies the configuration change event based on the distributed coordination service, and has strong real-time performance and reliability; the configuration of all the application servers of the application server cluster can be uniformly and dynamically managed, the configuration dependence among the application servers in the application server cluster can be dynamically managed, and the change can be dynamically sensed and other application servers can be informed to be dynamically loaded.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention has stored thereon a configuration management program which, when executed by a processor, implements the steps of the configuration management method as described above.
The method implemented when the configuration management program running on the processor is executed may refer to each embodiment of the configuration management method of the present invention, and details are not described here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A configuration management method is applied to a configuration management system, and is characterized in that the configuration management system comprises a configuration management service cluster, a storage service cluster, a distributed coordination service cluster and an application server cluster consisting of a plurality of application servers, and the configuration management method comprises the following steps:
when the application server is started or restarted, sending a registration request to a configuration management service cluster, wherein the registration request carries role information of the application server;
the configuration management service cluster searches corresponding configuration data and inter-server dependency rules from the storage service cluster according to the role information;
the configuration management service cluster generates a configuration data identifier corresponding to the configuration data, returns the configuration data identifier and the inter-server dependency rules to an application server, and simultaneously sends the configuration data and the inter-server dependency rules to the distributed coordination service cluster for caching;
the application server obtains self configuration data from the distributed coordination service cluster according to the configuration data identification, and obtains the configuration data of the server depended on by the application server from the distributed coordination service cluster according to the inter-server dependency rule;
wherein, the configuration management method further comprises:
and the application server initializes the communication channel between the servers according to the acquired configuration data of the application server and the configuration data of the server depended on the application server.
2. The configuration management method according to claim 1, wherein the step of sending a registration request to the configuration management service cluster by the application server at startup or restart further comprises:
the configuration management service cluster acquires application server configuration information set by a user;
and the configuration management service cluster sends the configuration information to a storage service cluster for persistent storage, wherein the configuration information comprises role information of an application server, configuration data corresponding to the role information and a dependency rule between servers.
3. The configuration management method according to claim 2, wherein the step of the configuration management service cluster acquiring the application server configuration information set by the user comprises:
the configuration management service cluster receives an application server configuration instruction triggered by a user based on a WEB console, and obtains application server configuration information carried in the configuration instruction.
4. The configuration management method according to claim 3, wherein the configuration management method further comprises:
the configuration management service cluster receives an application server configuration data adding/deleting/modifying/inquiring instruction triggered by a user based on a WEB console;
and the configuration management service cluster controls the storage service cluster to execute corresponding operation according to the configuration data adding/deleting/modifying/inquiring instruction, and returns a corresponding execution result to the WEB console.
5. The configuration management method according to claim 4, wherein after the step of controlling the storage service cluster to execute the corresponding operation according to the configuration data add/delete/modify/query instruction, and returning the corresponding execution result to the WEB console, the configuration management service cluster further comprises:
when the storage service cluster executes the configuration data adding/deleting/modifying operation, the configuration management service cluster controls the distributed coordination service cluster to execute the corresponding configuration data adding/deleting/modifying operation, and returns the corresponding execution result to the WEB console.
6. The configuration management method according to claim 1, wherein the configuration management method further comprises:
the application server sends a configuration data change notification subscription request to the distributed coordination service cluster to subscribe the configuration data change notification;
when the distributed coordination service cluster adds, deletes or modifies the configuration data cached by the distributed coordination service cluster, the distributed coordination service cluster sends a corresponding configuration data change notification to the application server which has subscribed the configuration data change notification.
7. The configuration management method according to any one of claims 1 to 6, wherein a configuration management client is embedded inside the application server, and the configuration management client is used for interacting with a configuration management service cluster and a distributed coordination service cluster.
8. A configuration management system, characterized in that it comprises a configuration management service cluster, a storage service cluster, a distributed coordination service cluster, an application server cluster consisting of several application servers, and a configuration management program, which when executed by said configuration management system implements the steps of the configuration management method according to any one of claims 1 to 7.
9. A computer-readable storage medium, having a configuration management program stored thereon, which, when executed by a processor, implements the steps of the configuration management method according to any one of claims 1 to 7.
CN201810774239.2A 2018-07-13 2018-07-13 Configuration management method, system and computer readable storage medium Active CN110719187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810774239.2A CN110719187B (en) 2018-07-13 2018-07-13 Configuration management method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810774239.2A CN110719187B (en) 2018-07-13 2018-07-13 Configuration management method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110719187A CN110719187A (en) 2020-01-21
CN110719187B true CN110719187B (en) 2022-05-20

Family

ID=69208706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810774239.2A Active CN110719187B (en) 2018-07-13 2018-07-13 Configuration management method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110719187B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478812B (en) * 2020-04-07 2023-10-24 中国建设银行股份有限公司 Configuration center server, application method and distributed platform system
CN112118298A (en) * 2020-09-03 2020-12-22 杭州海康威视数字技术股份有限公司 Configuration management method and device for distributed service
CN113010229A (en) * 2021-03-25 2021-06-22 中国电子科技集团公司第二十九研究所 Distributed heterogeneous software cluster configuration management framework
CN113364620B (en) * 2021-06-03 2023-01-17 上海井星信息科技有限公司 Soft exchange centralized configuration management system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014169A (en) * 2010-12-22 2011-04-13 北京中电普华信息技术有限公司 Distributed service system as well as distributed service system task execution method and device
CN102255752A (en) * 2011-06-30 2011-11-23 北京新媒传信科技有限公司 Configuration management system and method of server cluster
CN105187431A (en) * 2015-09-17 2015-12-23 网易(杭州)网络有限公司 Log-in method, server, client and communication system for third party application
CN106357447A (en) * 2016-09-21 2017-01-25 努比亚技术有限公司 Synchronizing method and device for configuration data
CN107347093A (en) * 2017-07-03 2017-11-14 北京京东尚科信息技术有限公司 Collocation method and device for distributed server system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10057323B2 (en) * 2016-01-26 2018-08-21 Phizzle, Inc. Distributed work processing across a network where each machine is operative as both an application server and a database server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014169A (en) * 2010-12-22 2011-04-13 北京中电普华信息技术有限公司 Distributed service system as well as distributed service system task execution method and device
CN102255752A (en) * 2011-06-30 2011-11-23 北京新媒传信科技有限公司 Configuration management system and method of server cluster
CN105187431A (en) * 2015-09-17 2015-12-23 网易(杭州)网络有限公司 Log-in method, server, client and communication system for third party application
CN106357447A (en) * 2016-09-21 2017-01-25 努比亚技术有限公司 Synchronizing method and device for configuration data
CN107347093A (en) * 2017-07-03 2017-11-14 北京京东尚科信息技术有限公司 Collocation method and device for distributed server system

Also Published As

Publication number Publication date
CN110719187A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN110719187B (en) Configuration management method, system and computer readable storage medium
US20190220274A1 (en) Systems and methods for tracking configuration file changes
US8139509B2 (en) Installation and management of mobile device [{S]} configuration
JP5433907B2 (en) Device management server, device management client, and method of locating a target operation object
CN111200657B (en) Method for managing resource state information and resource downloading system
KR101389101B1 (en) Method and apparatus for tracking device management data changes
US20220210493A1 (en) Method and apparatus for downloading resources
CN111083219A (en) Request processing method, device, equipment and computer readable storage medium
US10430441B1 (en) Tagging resources of a remote computing service based on locality
JP2009151560A (en) Resource management method, information processing system, information processor and program
CN111782259A (en) Micro-service management method based on reverse proxy
CN110741617A (en) Resource updating method and device, computer equipment and storage medium
JP2013229042A (en) System and method for managing distribution of content to devices
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN112579877A (en) Information source system control method, device, storage medium and equipment
JP2019520000A (en) Method and apparatus for managing managed function objects
US11403093B1 (en) Application modification with proxy service process
CN113438095B (en) Method, device and equipment for managing configuration data and storage medium
US20200218708A1 (en) Methods, Systems, Databases and Network Nodes of Data Communication Networks for Handling Data Posts
CN113542409B (en) Management system and processing method for instances of RocktMQ message queues
CN115185997A (en) Host information processing method and device, electronic equipment and storage medium
CN106371867B (en) Financial equipment software updating method and system
US8195781B2 (en) Network management with scalable trap definitions
CN110650033B (en) Distributed application configuration management method and distributed computing system
CN112783842B (en) Log collection method and device

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