CN110650033B - Distributed application configuration management method and distributed computing system - Google Patents
Distributed application configuration management method and distributed computing system Download PDFInfo
- Publication number
- CN110650033B CN110650033B CN201810682443.1A CN201810682443A CN110650033B CN 110650033 B CN110650033 B CN 110650033B CN 201810682443 A CN201810682443 A CN 201810682443A CN 110650033 B CN110650033 B CN 110650033B
- Authority
- CN
- China
- Prior art keywords
- configuration
- application
- server
- configuration parameters
- parameters
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
- H04L41/0846—Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a distributed application configuration management method and a distributed computing system, and belongs to the technical field of software. The method comprises the following steps: the method comprises the steps that an application server receives a starting request of an application, and full configuration parameters of the application are obtained from a configuration server and comprise initialization configuration parameters and operation configuration parameters; the application server starts the application according to the initialization configuration parameters and operates the application according to the operation configuration parameters; and the application server periodically acquires and loads the incremental configuration parameters of the application from the configuration server. The invention can reduce the workload of the manager, reduce the consumption of data transmission resources and save the cost.
Description
Technical Field
The present invention relates to the field of software technologies, and in particular, to a distributed application configuration management method and a distributed computing system.
Background
The distributed computing system is a system which is based on a client/server structure, puts a business logic layer of application on an application server, only reserves a user service layer of the application at a client, and the client and the application server can realize various functions of the application together through network connection.
In order to ensure that the application can be started normally and reduce the data volume of local storage, the application server usually only stores initialization configuration parameters for starting the application, and the full configuration parameters of the application are stored in the configuration server and include the initialization configuration parameters and operation configuration parameters for running the application. After receiving a start request of an application, the application server starts the application by using the initialized configuration parameters stored locally, and after the application is started, the application server sends a request to the configuration server to obtain the full configuration parameters and runs the application according to the full configuration parameters. When any configuration parameter of the application on the configuration server is updated, the configuration server pushes the updated full configuration parameter of the application to the application server, and the application server updates the application after receiving the updated full configuration parameter.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
on one hand, the application server cannot automatically update the stored configuration parameters based on the received full configuration parameters, and when the initial configuration parameters need to be updated, technicians need to update the configuration parameters on the application server one by one, so that the workload is large; on the other hand, after any configuration parameter is updated, the configuration server needs to push the full configuration parameter, and the consumption of data transmission resources is large.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide a method for distributed application configuration management and a distributed computing system. The technical scheme is as follows:
in a first aspect, a method for distributed application configuration management is provided, the method including:
the method comprises the steps that an application server receives a starting request of an application, and full configuration parameters of the application are obtained from a configuration server and comprise initialization configuration parameters and operation configuration parameters;
the application server starts the application according to the initialization configuration parameters and operates the application according to the operation configuration parameters;
and the application server periodically acquires and loads the incremental configuration parameters of the application from the configuration server.
Further, the receiving, by the application server, a start request of an application, and obtaining full configuration parameters of the application from a configuration server includes:
and the application server receives a starting request of the application and downloads the full configuration parameters according to the URL of the full configuration parameters of the application provided by the configuration server.
Further, the periodically obtaining, by the application server, incremental configuration parameters of the application from the configuration server includes:
the application server periodically sends a configuration parameter synchronization request to the configuration server, wherein the configuration parameter synchronization request carries synchronization reference time;
the configuration server inquires a configuration update log of the application locally generated after the synchronization reference time;
and the configuration server determines the increment configuration parameters of the application according to the configuration updating log and sends the increment configuration parameters to the application server.
Further, the method further comprises:
the configuration server sends the latest generation timestamp of the configuration update log to the application server;
and the application server updates the synchronization reference time to the latest generation timestamp.
Further, the determining, by the configuration server, the incremental configuration parameter of the application according to the configuration update log includes:
the configuration server determines a configuration parameter ID corresponding to each configuration updating log;
and the configuration server determines the latest configuration parameter corresponding to the configuration parameter ID as the increment configuration parameter of the application.
Further, the loading, by the application server, the incremental configuration parameters of the application includes:
the application server receives the increment configuration parameters of the application and determines configuration parameter IDs corresponding to the increment configuration parameters;
and the application server loads the incremental configuration parameters according to the configuration parameter ID.
Furthermore, each configuration parameter of the application has at least one layer of configuration range, each layer of configuration range corresponds to one configuration parameter value, the configuration parameter values corresponding to each layer of configuration range are loaded in the sequence from large to small, and the loaded configuration parameter value covers the loaded configuration parameter value.
In a second aspect, a distributed computing system is provided, the system comprising an application server and a configuration server:
the application server is used for receiving a starting request of an application and acquiring full configuration parameters of the application from the configuration server, wherein the full configuration parameters comprise initialization configuration parameters and operation configuration parameters;
the application server is used for starting the application according to the initialization configuration parameters and running the application according to the running configuration parameters;
the application server is further used for periodically obtaining and loading the increment configuration parameters of the application from the configuration server.
Further, the application server is specifically configured to:
and receiving a starting request of the application, and downloading the full configuration parameters according to the URL of the full configuration parameters of the application provided by the configuration server.
Further, the application server is specifically configured to periodically send a configuration parameter synchronization request to the configuration server, where the configuration parameter synchronization request carries synchronization reference time;
the configuration server is specifically configured to query a configuration update log of the application locally generated after the synchronization reference time; determining increment configuration parameters of the application according to the configuration updating log, and sending the increment configuration parameters to the application server.
Further, the configuration server is further configured to send a latest generation timestamp of the configuration update log to the application server;
the application server is further configured to update the synchronization reference time to the latest generation timestamp.
Further, the configuration server is specifically configured to:
determining a configuration parameter ID corresponding to each configuration updating log;
and determining the latest configuration parameter corresponding to the configuration parameter ID as the increment configuration parameter of the application.
Further, the application server is specifically configured to:
receiving the increment configuration parameter of the application, and determining a configuration parameter ID corresponding to the increment configuration parameter;
and loading the incremental configuration parameters according to the configuration parameter ID.
Furthermore, each configuration parameter of the application has at least one layer of configuration range, each layer of configuration range corresponds to one configuration parameter value, the configuration parameter values corresponding to each layer of configuration range are loaded in the sequence from large to small, and the loaded configuration parameter value covers the loaded configuration parameter value.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, an application server receives a starting request of an application, and acquires full configuration parameters of the application from a configuration server, wherein the full configuration parameters comprise initialization configuration parameters and operation configuration parameters; the application server starts the application according to the initialization configuration parameters and runs the application according to the running configuration parameters; the application server periodically obtains and loads the incremental configuration parameters of the application from the configuration server. Therefore, managers can perform unified management configuration on the full configuration parameters of the application in the configuration server, workload of the managers is reduced, and the updated incremental configuration parameters are only issued to the application server for updating after the configuration parameters are updated, so that consumption of data transmission resources is reduced, and cost is saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a method for distributed application configuration management according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a distributed computing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a distributed application configuration management method which can be applied to a distributed computing system formed by an application server and a configuration server, wherein the application server is used for installing a service logic layer of application to realize various functions of the application, and the configuration server is used for managing configuration parameters of the application. In the system, one or more application servers and one or more configuration servers can be provided, one or more applications can be installed on each application server, and each configuration server can manage configuration parameters of one or more applications; multiple applications on the same application server can be configured and managed on the same configuration server, and also can be configured and managed on different configuration servers; the multiple applications configured and managed on the configuration server may be distributed on the same application server or may be distributed on different application servers. The application scenario of this embodiment may be: the full configuration parameters required by application starting and running are configured on the configuration server in advance, and the application server does not need to store any configuration parameters locally and permanently. When the application is started, the configuration server sends the full configuration parameters corresponding to the application server according to the request of the application server, the application server starts and runs the application by using the full configuration parameters, and in the normal running process of the application, the application server periodically inquires a configuration update log from the configuration server and updates the incremental configuration parameters. When the configuration parameters of the application need to be modified, the administrator can uniformly modify the configuration parameters through the configuration server, no matter the configuration parameters are the initial configuration parameters required by the start of the application or the operation configuration parameters required by the operation. It can be understood that the incremental configuration parameter refers to a changed configuration parameter, for example, the incremental configuration parameter may be a configuration parameter that does not exist originally and is newly added currently, or a configuration parameter that exists originally and is deleted currently; the configuration parameter may be a configuration parameter whose configuration parameter value is increased, or may be a configuration parameter whose configuration parameter value is decreased (increment is negative).
The following describes a detailed process flow of distributed application configuration management shown in fig. 1 with reference to a specific embodiment, where the detailed process flow may be as follows:
step 101: the application server receives a starting request of the application, and obtains the full configuration parameters of the application from the configuration server.
The full configuration parameters comprise initialization configuration parameters and operation configuration parameters.
In implementation, the full configuration parameters of the application are all stored on the configuration server, and the application server does not locally store any configuration parameters, and the full configuration parameters of the application comprise initialization configuration parameters necessary for starting the application and operation configuration parameters required for running the application. Therefore, when the application server receives a start request of an application, the application server cannot directly start the application, and needs to acquire initial configuration parameters for starting the application from the configuration server first and then start the application. Therefore, the application server can simultaneously acquire the operation configuration parameters of the application while acquiring the initialization configuration parameters of the application, that is, all the configuration parameters of the application are acquired at one time, so that the information transmission times between the application server and the configuration server can be reduced, and the problem that the application cannot be normally used and user experience is influenced due to network delay and the like when the operation configuration parameters are acquired is avoided.
Optionally, since there may be multiple configuration servers and each configuration server may store the full configuration parameters of multiple applications, in order to enable the application server to accurately obtain the full configuration parameters of the applications, the configuration server may provide the URL of the full configuration parameters to the application server, and accordingly, the processing of step 101 may be as follows: and the application server receives the starting request of the application and downloads the full configuration parameters according to the URL of the full configuration parameters of the application provided by the configuration server.
In an implementation, the configuration server may provide a unique URL for the stored full configuration parameters of each application, and the application server may obtain the full configuration parameters of the application through the URL. The method comprises the steps that a URL for obtaining the full configuration parameters of an application is configured for each application in advance in an application server, after the application server receives a starting request of the application, the URL for obtaining the full configuration parameters of the application is determined, and then the full configuration parameters of the application are obtained through downloading of the URL.
Optionally, each applied configuration parameter has at least one layer of configuration range, each layer of configuration range corresponds to one configuration parameter value, the configuration parameter values corresponding to each layer of configuration range are loaded in the descending order of configuration range, and the configuration parameter value loaded later covers the configuration parameter value loaded first.
In implementation, a manager needs to configure configuration parameters of an application in a configuration server in advance, where the configuration parameters include: the method comprises the following steps of configuring parameter names, configuration ranges, configuration parameter IDs, configuration parameter values, creation time, modification time, enabling or not and the like, wherein the configuration ranges comprise multiple layers of service types, machine rooms, machine IPs and the like. Each configuration parameter comprises a unique configuration parameter name and at least one layer of configuration range, each layer of configuration range corresponds to a unique configuration parameter ID and a configuration parameter value, and each layer of configuration range can also independently configure the creation time, the modification time, whether to enable or not and the like. When the application server loads the configuration parameters, the configuration parameter values corresponding to the configuration ranges of the layers are loaded in the order from large to small, and the configuration parameter values loaded later cover the configuration parameter values loaded first.
For example, one configuration parameter of the application a includes a service type, a machine room, and a three-layer configuration range of machine IP, where a configuration parameter value of the service type is V1, a configuration parameter value of the machine room is V2, a configuration parameter value of the machine IP is V3, and a configuration range size is: service type > machine room > machine IP. When the application server loads the configuration parameter of the application a, the configuration parameter value V1 of the service type is loaded first, then the configuration parameter value V2 of the machine room is loaded, at this time, the configuration parameter value V2 covers the configuration parameter value V1, the configuration parameter value V2 takes effect, finally the configuration parameter value V3 of the machine IP is loaded, the configuration parameter value V3 covers the configuration parameter value V2, and the configuration parameter value V3 takes effect.
Step 102: and the application server starts the application according to the initialization configuration parameters and runs the application according to the running configuration parameters.
In implementation, after acquiring the full configuration parameters, the application server starts the application by using the initial configuration parameters in the full configuration parameters, and after the application is started, the application server continues to use the operation configuration parameters to operate the application, thereby realizing various functions of the application.
Step 103: the application server periodically obtains and loads the incremental configuration parameters of the application from the configuration server.
In implementation, after the application is started, in the normal operation process, the application server periodically obtains the incremental configuration parameters of the application from the configuration server according to a preset time interval, and loads the incremental configuration parameters on the application server
Optionally, the processing that the application server periodically obtains the incremental configuration parameters of the application from the configuration server may specifically be as follows: the application server periodically sends a configuration parameter synchronization request to the configuration server; the configuration server inquires a configuration update log of the locally generated application after the synchronization reference time; and the configuration server determines the increment configuration parameters of the application according to the configuration update log and sends the increment configuration parameters to the application server.
The configuration parameter synchronization request carries synchronization reference time.
In implementation, on the configuration server, whenever a configuration parameter is updated, the configuration server generates a configuration update log, and stores the configuration update log locally in the configuration server, all configuration update logs of the same application are stored together, the configuration update log records the configuration parameter ID and the update time of the updated configuration parameter, and all configuration update logs of the same application can be sorted according to the sequence of the update time. In the application running process, every preset period duration, an application server sends a configuration parameter synchronization request to a configuration server, after receiving the configuration parameter synchronization request, the configuration server acquires synchronization reference time carried in the configuration parameter synchronization request, locally queries configuration update logs of the application after the synchronization reference time, then further determines configuration parameters corresponding to each configuration update log according to query results by the configuration server, and takes the configuration parameters as incremental configuration parameters of the application, and then sends the incremental configuration parameters to the application server.
Optionally, for the configuration update log with an earlier update time, in a previous period, the configuration server has already determined the incremental configuration parameters of the application according to the incremental configuration parameters, and sends the incremental configuration parameters to the application server, so it is not necessary to query all configuration update logs of the application each time, and the corresponding processing may be as follows: the configuration server sends a latest generation timestamp of the configuration update log to the application server; the application server updates the synchronization reference time to the newly generated timestamp.
In implementation, in all the configuration update logs of the application stored on the configuration server, the configuration server has already determined that, when the last query is finished, the last configuration update log and the incremental configuration parameters corresponding to the previous configuration update log are added, so that, only when the last query is finished actually, the configuration update logs in the time range from the update time of the last configuration update log to the current time are added, and therefore, after each query is finished, the configuration server can obtain the update time of the last configuration update log in all the configuration update logs of the application as the latest generation timestamp of the configuration update logs, and then send the latest generation timestamp to the application server, and the application server updates the synchronization reference time according to the received latest generation timestamp. When the configuration update log is applied, the configuration update log with the update time after the synchronous reference time can be directly selected without inquiring all the configuration update logs, so that the workload of the inquiry process can be reduced, the resources can be saved, and the inquiry efficiency can be improved. It can be understood that, for the first period after the application is started, since the configuration server first queries the configuration update log of the application, the timestamp is not newly generated, and at this time, the synchronization reference time may be considered as a null value, so that the configuration update log of the application may be queried from the first configuration update log after the application is started this time.
Optionally, the processing that the configuration server determines the incremental configuration parameters of the application according to the configuration update log may specifically be as follows: the configuration server determines a configuration parameter ID corresponding to each configuration update log; and the configuration server determines the latest configuration parameters corresponding to the configuration parameter ID as the increment configuration parameters of the application.
In implementation, as described above, the configuration update log includes the configuration parameter ID, so that after querying the configuration update log, the configuration server can further obtain the configuration parameter ID in each configuration update log, and then, according to the configuration parameter ID, the configuration server can find the latest configuration parameter corresponding to the configuration parameter ID from the total configuration parameters of the application stored in the configuration server, and use the latest configuration parameter as the incremental configuration parameter of the application. It can be understood that if the configuration parameter corresponding to the same configuration parameter ID is updated for multiple times, the configuration parameter IDs corresponding to the multiple configuration update logs are the same, and at this time, the configuration parameter corresponding to the configuration ID is the latest configuration parameter after being updated for multiple times.
Optionally, the processing of loading the incremental configuration parameters of the application by the application server may specifically be as follows: the application server receives the increment configuration parameters of the application and determines configuration parameter IDs corresponding to the increment configuration parameters; and the application server loads the incremental configuration parameters according to the configuration parameter ID.
In implementation, after determining the incremental configuration parameters of the application, the configuration server sends the incremental configuration parameters of the application to the application server, and after receiving the incremental configuration parameters sent by the configuration server, the application server determines the configuration parameter ID corresponding to the incremental configuration parameters according to the incremental configuration parameters, and then the application server uses the incremental configuration parameters to replace the original configuration parameters corresponding to the configuration parameter ID.
In the embodiment of the invention, an application server receives a starting request of an application, and acquires full configuration parameters of the application from a configuration server, wherein the full configuration parameters comprise initialization configuration parameters and operation configuration parameters; the application server starts the application according to the initialization configuration parameters and runs the application according to the running configuration parameters; the application server periodically obtains and loads the incremental configuration parameters of the application from the configuration server. Therefore, managers can perform unified management configuration on the full configuration parameters of the application in the configuration server, the workload of the managers is reduced, and the updated incremental configuration parameters are only issued to the application server for updating after the configuration parameters are updated, so that the consumption of data transmission resources is reduced, and the cost is saved.
Based on the same technical concept, the embodiment of the present invention further provides a distributed computing system, as shown in fig. 2, the system includes an application server and a configuration server.
The application server is used for receiving a starting request of an application and acquiring full configuration parameters of the application from the configuration server, wherein the full configuration parameters comprise initialization configuration parameters and operation configuration parameters.
And the application server is used for starting the application according to the initialization configuration parameters and running the application according to the running configuration parameters.
The application server is further used for periodically obtaining and loading the incremental configuration parameters of the application from the configuration server.
Optionally, the application server is specifically configured to:
and receiving a starting request of the application, and downloading the full configuration parameters according to the URL of the full configuration parameters of the application provided by the configuration server.
Optionally, the application server is specifically configured to periodically send a configuration parameter synchronization request to the configuration server, where the configuration parameter synchronization request carries synchronization reference time.
The configuration server is specifically configured to query a configuration update log of the application locally generated after the synchronization reference time; and determining the increment configuration parameters of the application according to the configuration updating log, and sending the increment configuration parameters to the application server.
Optionally, the configuration server is further configured to send a latest generation timestamp of the configuration update log to the application server;
the application server is further configured to update the synchronization reference time to the latest generation timestamp.
Optionally, the configuration server is specifically configured to:
determining a configuration parameter ID corresponding to each configuration updating log;
and determining the latest configuration parameter corresponding to the configuration parameter ID as the increment configuration parameter of the application.
Optionally, the application server is specifically configured to:
receiving the increment configuration parameter of the application, and determining a configuration parameter ID corresponding to the increment configuration parameter;
and loading the incremental configuration parameters according to the configuration parameter ID.
Optionally, each configuration parameter of the application has at least one layer of configuration range, each layer of configuration range corresponds to one configuration parameter value, the configuration parameter values corresponding to each layer of configuration range are loaded in the order from large to small, and the configuration parameter value loaded later covers the configuration parameter value loaded first.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the method according to the embodiments or some parts of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.
Claims (14)
1. A method of distributed application configuration management, the method comprising:
the method comprises the steps that an application server receives a starting request of an application, and full configuration parameters of the application are obtained from a configuration server and comprise initialization configuration parameters and operation configuration parameters;
the application server starts the application according to the initialization configuration parameters and operates the application according to the operation configuration parameters;
the application server periodically acquires and loads the incremental configuration parameters of the application from the configuration server;
the method further comprises the following steps:
the configuration server inquires a configuration update log of the application locally generated after the synchronization reference time;
and the configuration server determines the latest configuration parameters according to the configuration update log, and determines the latest configuration parameters as the increment configuration parameters of the application.
2. The method of claim 1, wherein the application server receives a start request of an application, and obtains full configuration parameters of the application from a configuration server, and the method comprises:
and the application server receives a starting request of the application and downloads the full configuration parameters according to the URL of the full configuration parameters of the application provided by the configuration server.
3. The method of claim 1, wherein the application server periodically obtains incremental configuration parameters of the application from the configuration server, and wherein the method comprises:
and the application server periodically sends a configuration parameter synchronization request to the configuration server, wherein the configuration parameter synchronization request carries the synchronization reference time.
4. The method of claim 3, further comprising:
the configuration server sends the latest generation timestamp of the configuration update log to the application server;
and the application server updates the synchronization reference time to the latest generation timestamp.
5. The method of claim 1, wherein the configuration server determines a latest configuration parameter from the configuration update log, and wherein determining the latest configuration parameter as an incremental configuration parameter for the application comprises:
the configuration server determines a configuration parameter ID corresponding to each configuration updating log;
and the configuration server determines the latest configuration parameter corresponding to the configuration parameter ID as the increment configuration parameter of the application.
6. The method of claim 5, wherein the loading, by the application server, the incremental configuration parameters for the application comprises:
the application server receives the increment configuration parameters of the application and determines configuration parameter IDs corresponding to the increment configuration parameters;
and the application server loads the incremental configuration parameters according to the configuration parameter ID.
7. The method according to claim 1, wherein each configuration parameter of the application has at least one layer of configuration range, each layer of configuration range corresponds to one configuration parameter value, the configuration parameter values corresponding to each layer of configuration range are loaded in an order from large configuration range to small configuration range, and the configuration parameter value loaded later covers the configuration parameter value loaded first.
8. A distributed computing system, the system comprising an application server and a configuration server:
the application server is used for receiving a starting request of an application and acquiring full configuration parameters of the application from the configuration server, wherein the full configuration parameters comprise initialization configuration parameters and operation configuration parameters;
the application server is used for starting the application according to the initialization configuration parameters and running the application according to the running configuration parameters;
the application server is further used for periodically acquiring and loading the incremental configuration parameters of the application from the configuration server;
the configuration server is used for inquiring a configuration update log of the application locally generated after the synchronization reference time; and determining the latest configuration parameters according to the configuration updating log, and determining the latest configuration parameters as the increment configuration parameters of the application.
9. The system of claim 8, wherein the application server is specifically configured to:
and receiving a starting request of the application, and downloading the full configuration parameters according to the URL of the full configuration parameters of the application provided by the configuration server.
10. The system of claim 8, wherein:
the application server is specifically configured to periodically send a configuration parameter synchronization request to the configuration server, where the configuration parameter synchronization request carries synchronization reference time.
11. The system of claim 10,
the configuration server is further used for sending a latest generation timestamp of the configuration update log to the application server;
the application server is further configured to update the synchronization reference time to the latest generation timestamp.
12. The system of claim 8, wherein the configuration server is specifically configured to:
determining a configuration parameter ID corresponding to each configuration updating log;
and determining the latest configuration parameter corresponding to the configuration parameter ID as the increment configuration parameter of the application.
13. The system of claim 12, wherein the application server is specifically configured to:
receiving the increment configuration parameter of the application, and determining a configuration parameter ID corresponding to the increment configuration parameter;
and loading the incremental configuration parameters according to the configuration parameter ID.
14. The system according to claim 8, wherein each configuration parameter of the application has at least one layer of configuration range, each layer of the configuration range corresponds to one configuration parameter value, the configuration parameter values corresponding to each layer of the configuration range are loaded in the descending order of the configuration range, and the configuration parameter value loaded later covers the configuration parameter value loaded first.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810682443.1A CN110650033B (en) | 2018-06-27 | 2018-06-27 | Distributed application configuration management method and distributed computing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810682443.1A CN110650033B (en) | 2018-06-27 | 2018-06-27 | Distributed application configuration management method and distributed computing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110650033A CN110650033A (en) | 2020-01-03 |
CN110650033B true CN110650033B (en) | 2022-12-20 |
Family
ID=68988877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810682443.1A Active CN110650033B (en) | 2018-06-27 | 2018-06-27 | Distributed application configuration management method and distributed computing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110650033B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111314118B (en) * | 2020-01-19 | 2023-04-07 | 中移(杭州)信息技术有限公司 | Data management method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255752A (en) * | 2011-06-30 | 2011-11-23 | 北京新媒传信科技有限公司 | Configuration management system and method of server cluster |
CN104394024A (en) * | 2014-12-18 | 2015-03-04 | 上海斐讯数据通信技术有限公司 | Method for incrementally configuring AP (Access Point) wireless parameters based on template |
CN105592127A (en) * | 2014-11-20 | 2016-05-18 | 中国银联股份有限公司 | Application management system for cloud computing environment |
WO2017041649A1 (en) * | 2015-09-09 | 2017-03-16 | 阿里巴巴集团控股有限公司 | Application deployment method and device |
-
2018
- 2018-06-27 CN CN201810682443.1A patent/CN110650033B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255752A (en) * | 2011-06-30 | 2011-11-23 | 北京新媒传信科技有限公司 | Configuration management system and method of server cluster |
CN105592127A (en) * | 2014-11-20 | 2016-05-18 | 中国银联股份有限公司 | Application management system for cloud computing environment |
CN104394024A (en) * | 2014-12-18 | 2015-03-04 | 上海斐讯数据通信技术有限公司 | Method for incrementally configuring AP (Access Point) wireless parameters based on template |
WO2017041649A1 (en) * | 2015-09-09 | 2017-03-16 | 阿里巴巴集团控股有限公司 | Application deployment method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110650033A (en) | 2020-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9239767B2 (en) | Selective database replication | |
CN103685590B (en) | Obtain the method and system of IP address | |
CN110719187B (en) | Configuration management method, system and computer readable storage medium | |
CN105049252A (en) | Method and device for managing configuration information | |
CN115150410B (en) | Multi-cluster access method and system | |
CN106657433B (en) | Naming method and device for physical network card in multi-network snap ring environment | |
WO2016115896A1 (en) | Method and device for management of virtual network function (vnf) | |
CN110990025B (en) | Instance deployment method and system | |
US20110307444A1 (en) | Replicating server configuration data in distributed server environments | |
CN109522043A (en) | Method and device for managing configuration data and storage medium | |
CN110650033B (en) | Distributed application configuration management method and distributed computing system | |
CN112181049B (en) | Cluster time synchronization method, device, system, equipment and readable storage medium | |
WO2016032500A1 (en) | Resource trees by management controller | |
CN111008023B (en) | Instance deployment method and system | |
CN111064643B (en) | Node server and data interaction method and related device thereof | |
JP2013229042A (en) | System and method for managing distribution of content to devices | |
CN112463305A (en) | Management method, system and related device of cloud virtualization GPU | |
CN113254437B (en) | Batch processing job processing method and device | |
US20100325139A1 (en) | Service Provider Management Console | |
CN110798358A (en) | Distributed service identification method and device, computer readable medium and electronic equipment | |
CN114756385B (en) | Elastic distributed training method under deep learning scene | |
CN108196962B (en) | Method and device for realizing calling of interfaces of different versions | |
CN115189931A (en) | Distributed key management method, device, equipment and storage medium | |
JPH10301786A (en) | Automatic install system for software through network | |
CN110661857B (en) | Data synchronization 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 |