CN110650033A - Distributed application configuration management method and distributed computing system - Google Patents

Distributed application configuration management method and distributed computing system Download PDF

Info

Publication number
CN110650033A
CN110650033A CN201810682443.1A CN201810682443A CN110650033A CN 110650033 A CN110650033 A CN 110650033A CN 201810682443 A CN201810682443 A CN 201810682443A CN 110650033 A CN110650033 A CN 110650033A
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.)
Granted
Application number
CN201810682443.1A
Other languages
Chinese (zh)
Other versions
CN110650033B (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201810682443.1A priority Critical patent/CN110650033B/en
Publication of CN110650033A publication Critical patent/CN110650033A/en
Application granted granted Critical
Publication of CN110650033B publication Critical patent/CN110650033B/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/0893Assignment of logical groups to network elements
    • 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/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication 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)
  • Computer And Data Communications (AREA)
  • Stored Programmes (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; the application server periodically acquires and loads the increment 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

Distributed application configuration management method and distributed computing system
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 normally started 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 comprise the initialization configuration parameters and running 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;
the application server periodically acquires and loads the increment 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 generated locally 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, 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.
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 plurality of 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 modify the configuration parameters uniformly through the configuration server, regardless of the initial configuration parameters necessary for starting the application or the operation configuration parameters necessary for operation. It can be understood that the incremental configuration parameter refers to a changed configuration parameter, and for example, may be a configuration parameter that does not exist originally, 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 the distributed application configuration management shown in fig. 1 with reference to specific embodiments, and 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 loaded configuration parameter value covers the loaded configuration parameter value.
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 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 computer 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 the application server obtains 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 running configuration parameters to run the application, so that various functions of the application are realized.
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, each time 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 the 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 the 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, the configuration server acquires synchronization reference time carried in the configuration parameter synchronization request after receiving the configuration parameter synchronization request, the configuration server locally inquires configuration update logs of the application after the synchronization reference time, then the configuration server further determines configuration parameters corresponding to each configuration update log according to the inquiry result to serve as incremental configuration parameters of the application, and then the incremental configuration parameters are sent 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 in 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, the configuration update logs in the time range from the update time of the last configuration update log to the current time are actually added, 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 current 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 updating 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, where 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 increment 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; determining 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 can be implemented by software plus a necessary general hardware platform, and certainly can 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 is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

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 increment configuration parameters of the application from the configuration server.
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 obtaining comprises:
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 generated locally 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.
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 3, wherein the configuration server determines incremental configuration parameters for the application from the configuration update log, comprising:
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 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.
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 obtaining and loading the increment configuration parameters of the application from the configuration server.
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;
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.
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 10, 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.
CN201810682443.1A 2018-06-27 2018-06-27 Distributed application configuration management method and distributed computing system Active CN110650033B (en)

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 true CN110650033A (en) 2020-01-03
CN110650033B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314118A (en) * 2020-01-19 2020-06-19 中移(杭州)信息技术有限公司 Data management method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314118A (en) * 2020-01-19 2020-06-19 中移(杭州)信息技术有限公司 Data management method and device, electronic equipment and storage medium
CN111314118B (en) * 2020-01-19 2023-04-07 中移(杭州)信息技术有限公司 Data management method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110650033B (en) 2022-12-20

Similar Documents

Publication Publication Date Title
US9239767B2 (en) Selective database replication
CN112019369A (en) Dynamic configuration management method and system under micro-service framework
US8904003B2 (en) Method and system for delegated job control across a network
CN105049252A (en) Method and device for managing configuration information
CN110719187B (en) Configuration management method, system and computer readable storage medium
CN106657433B (en) Naming method and device for physical network card in multi-network snap ring environment
CN115150410A (en) Multi-cluster access method and system
CN106911741B (en) Method for balancing virtual network management file downloading load and network management server
CN110650033B (en) Distributed application configuration management method and distributed computing system
CN112565475B (en) Ip address allocation method for adding new node in container cluster service layer
CN112181049B (en) Cluster time synchronization method, device, system, equipment and readable 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
CN111008023B (en) Instance deployment method and system
US20100325139A1 (en) Service Provider Management Console
CN114756385B (en) Elastic distributed training method under deep learning scene
CN106375132B (en) Cloud server system and management method thereof
CN111064643B (en) Node server and data interaction method and related device thereof
CN115189931A (en) Distributed key management method, device, equipment and storage medium
CN113254437B (en) Batch processing job processing method and device
CN112463305A (en) Management method, system and related device of cloud virtualization GPU
CN110661857B (en) Data synchronization method and device
CN113687910A (en) Method, device, equipment and storage medium for managing USB (universal serial bus) equipment in cluster
CN108196962B (en) Method and device for realizing calling of interfaces of different versions
CN115250269B (en) File distribution method and device, storage medium and electronic equipment

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