WO2021223471A1 - Configuration file centralized management system, method and apparatus - Google Patents

Configuration file centralized management system, method and apparatus Download PDF

Info

Publication number
WO2021223471A1
WO2021223471A1 PCT/CN2021/073939 CN2021073939W WO2021223471A1 WO 2021223471 A1 WO2021223471 A1 WO 2021223471A1 CN 2021073939 W CN2021073939 W CN 2021073939W WO 2021223471 A1 WO2021223471 A1 WO 2021223471A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration file
instance
instance configuration
module
update request
Prior art date
Application number
PCT/CN2021/073939
Other languages
French (fr)
Chinese (zh)
Inventor
陈海钊
季统凯
贺忠堂
Original Assignee
国云科技股份有限公司
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 国云科技股份有限公司 filed Critical 国云科技股份有限公司
Publication of WO2021223471A1 publication Critical patent/WO2021223471A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Definitions

  • the embodiments of the application relate to the technical field, and in particular, to a system, method, and device for centralized management of configuration files.
  • the configuration center When the configuration file management update is performed, the configuration center is generally used to centrally manage the update. It requires the application to actively communicate with the configuration center to complete the configuration file update. However, this method requires the application to integrate part of the logic in the code, and the process is relatively cumbersome. The application needs to be modified to apply the configuration file update, and its operation and maintenance management cost is relatively large.
  • the embodiments of the present application provide a system, method, and device for centralized management of configuration files, which can perform unified management of configuration files and reduce application operation, maintenance and management costs.
  • an embodiment of the present application provides a configuration file centralized management system, including: a management module, a storage module, and an agent module running on each service processing server;
  • the agent module is used to scan the instance configuration file of the business processing server, and upload the scan result to the management module;
  • the storage module is used for the management module to store instance configuration files
  • the management module is configured to update the instance configuration file stored in the storage module according to the user's first instance configuration file update request or the scan result and/or issue a second instance configuration file update request to the agent module;
  • the proxy module is further configured to receive the second instance configuration file update request, and update the instance configuration file corresponding to the service processing server.
  • an embodiment of the present application provides a method for centralized management of configuration files, including:
  • the proxy module scans the instance configuration file on the corresponding business processing server, and uploads the scan result to the management module based on the scanned instance configuration file;
  • the management module receives the user’s first instance configuration file update request or the scan result, extracts the corresponding configuration file content, and retrieves the instance configuration file from the storage module for comparison, and updates the storage module based on the comparison result.
  • the proxy module updates the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request.
  • the agent module scans the instance configuration file on the corresponding business processing server, and uploads the scanning result to the management module based on the scanned instance configuration file, including:
  • the proxy module scans the instance on the corresponding service processing server, and obtains the application configuration file setting information of the management module.
  • the application configuration file setting information is set in the management module in advance and is used to instruct the instance configuration file in the corresponding service processing The storage path on the server;
  • the corresponding MD5 code is calculated according to the scanned instance configuration file, and the scanned instance configuration file and the MD5 code are reported to the management module as the scanning result.
  • the application configuration file setting information includes the name of the instance configuration file, the storage path of the instance configuration file, the application to which the instance configuration file belongs, and the updated automatic restart setting information;
  • the instance configuration file includes the content of the configuration file, the corresponding MD5 code, the instance to which the instance configuration file belongs, and the latest update time of the instance configuration file.
  • the management module receives the user’s first instance configuration file update request or the scan result, extracts the corresponding configuration file content, retrieves the instance configuration file from the storage module for comparison, and updates the storage based on the comparison result.
  • the instance configuration file stored by the module and/or the second instance configuration file update request issued to the agent module includes:
  • the management module retrieves the storage module based on the configuration file content included in the first instance configuration file update request;
  • If there is a corresponding instance configuration file in the storage module compare the MD5 code corresponding to the configuration file content with the corresponding instance configuration file, if they are the same, end the current process, if they are different, update the content based on the configuration file content and the corresponding MD5 code Store the corresponding instance configuration file stored by the module, and issue a second instance configuration file update request to the agent module.
  • the management module receives the user’s first instance configuration file update request or the scan result, extracts the corresponding configuration file content, retrieves the instance configuration file from the storage module for comparison, and updates the storage based on the comparison result.
  • the instance configuration file stored by the module and/or issuing the second instance configuration file update request to the agent module also includes:
  • the management module receives the scan result, and retrieves the storage module based on the scan result;
  • the instance configuration file update request is sent to the proxy module.
  • agent module updating the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request includes:
  • the current process ends, and if the MD5 codes are different, the content of the configuration file included in the second instance configuration file update request is overwritten to the instance configuration file of the corresponding instance.
  • the method further includes:
  • the management module receives the storage path update request of the corresponding instance configuration file
  • the management module sends a delete request to the storage module based on the storage path update request to delete the corresponding instance configuration file, and notifies the agent module to reacquire application configuration file setting information;
  • the proxy module rescans the instance configuration file of the corresponding business processing server, and reports the scanning result to the management module.
  • an embodiment of the present application provides an apparatus for centralized management of configuration files, including:
  • the scanning module is used to scan the instance configuration file on the corresponding business processing server through the proxy module, and upload the scanning result to the management module based on the scanned instance configuration file;
  • the comparison module is used to receive the user’s first instance configuration file update request or the scan result through the management module, extract the corresponding configuration file content, and retrieve the instance configuration file from the storage module for comparison, based on the comparison result Update the instance configuration file stored in the storage module and/or issue a second instance configuration file update request to the agent module;
  • the update module is configured to update the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request through the proxy module.
  • embodiments of the present application provide a storage medium containing computer-executable instructions, which are used to execute the method for centralized management of configuration files as described in the first aspect when the computer-executable instructions are executed by a computer processor .
  • the proxy module scans the instance configuration file on the corresponding business processing server, uploads the scan result to the management module based on the scanned instance configuration file, and the management module receives the user’s first instance configuration file update request or scan result, and updates
  • the instance configuration file stored by the storage module and/or the second instance configuration file update request is issued to the agent module, and the agent module updates the instance configuration file corresponding to the business processing server based on the received second instance configuration file update request.
  • FIG. 1 is a schematic structural diagram of a configuration file centralized management system provided by Embodiment 1 of the present application;
  • FIG. 2 is a flowchart of a method for centralized management of configuration files provided by Embodiment 1 of the present application;
  • Fig. 3 is a scanning flowchart of the proxy module in the first embodiment of the present application.
  • Fig. 4 is a search and comparison flowchart of the management module based on the update request in the first embodiment of the present application
  • Fig. 5 is a search and comparison flowchart of the management module based on the scan result in the first embodiment of the present application
  • FIG. 6 is an example configuration file update flowchart of the proxy module in the first embodiment of the present application.
  • FIG. 7 is a flowchart of configuration file update in Embodiment 1 of the present application.
  • FIG. 8 is a flowchart of updating the storage path of the example configuration file in the first embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an apparatus for centralized management of configuration files provided by Embodiment 2 of the present application.
  • the configuration file centralized management system and method provided in this application aim to reduce the operation, maintenance and management costs of various business processing server applications by uniformly managing and updating the instance configuration files of the server cluster.
  • the corresponding application code on the business processing server needs to integrate corresponding logic to realize the configuration file update.
  • This method requires that every business processing server integrates the logic code of configuration file management.
  • it needs to be modified to be applicable.
  • the way to modify the application is obviously not It is too realistic, and its transformation process is complicated, which is not convenient for the configuration file update management of this business processing server cluster.
  • a configuration file centralized management system and method according to the embodiments of the present application are provided to solve the technical problems of complicated processes and high investment costs when the existing server clusters perform configuration file management.
  • FIG. 1 shows a schematic structural diagram of a configuration file centralized management system provided in the first embodiment of the present application.
  • the configuration file centralized management system includes: a management module, a storage module, and an agent module running on each service processing server;
  • the proxy module is used to scan the instance configuration file of the business processing server and upload the scanning result to the management module;
  • the storage module is used to store the instance configuration file in the management module;
  • the management module is used to store the instance configuration file according to the user
  • the first instance configuration file update request or the scan results update the instance configuration file stored in the storage module and/or issue the second instance configuration file update request to the proxy module;
  • the proxy module is also used to receive all
  • the second instance configuration file update request is described, and the instance configuration file corresponding to the business processing server is updated.
  • an agent module (ProfileAgent) is set correspondingly, and each agent module runs on the corresponding business processing server to manage the instance configuration file of the application on the corresponding business processing server .
  • the management module (ProfileServer) and storage module are used as the centralized processing and storage modules of the system. Through the management module, each agent module is docked to centrally manage the configuration files of each business processing server instance.
  • the configuration file centralized management system of the embodiment of the present application further includes a database. The database is used to store the application configuration file setting information generated by the management module for setting the application configuration file, and call it through the management module and send it to the agent module when needed. .
  • FIG. 2 provides a flow chart of a method for centralized management of configuration files according to an embodiment of the present application.
  • the method for centralized management of configuration files provided in this embodiment can be executed by the above-mentioned centralized management system for configuration files. It can be implemented by software and/or hardware.
  • the following description takes the configuration file centralized management system as the main body that executes the configuration file centralized management method as an example. Referring to Figure 2, the method for centralized management of configuration files specifically includes:
  • the agent module scans the instance configuration file on the corresponding business processing server, and uploads the scanning result to the management module based on the scanned instance configuration file.
  • instance configuration file update triggered by the system.
  • One is to periodically scan the instance configuration file on its corresponding node (ie, business processing server) through the proxy module, and further upload the scanning result
  • the management module compares and judges whether the instance configuration file needs to be updated based on the scanning result.
  • the management module receives the user's instance configuration file update request, and compares and judges whether the instance configuration file needs to be updated based on the content contained in the instance configuration file update request.
  • the update of the instance configuration file here may be the update of the instance configuration file stored in the storage module, or the update of the instance configuration file of the corresponding business processing server.
  • the management module updates the instance configuration files in different forms according to the actual search and comparison results.
  • a scanning flowchart of the agent module wherein the routine scanning process of the agent module includes:
  • the proxy module scans the instance on the corresponding service processing server, and obtains the application configuration file setting information of the management module.
  • the application configuration file setting information is set in the management module in advance to indicate that the instance configuration file is in the corresponding The storage path on the business processing server;
  • S1103 Calculate the corresponding MD5 code according to the scanned instance configuration file, and report the scanned instance configuration file and the MD5 code to the management module as a scanning result.
  • the proxy module can be configured with a timer.
  • the timer is used to time the scan period.
  • the scan period of the timer is set according to the set time period, and the corresponding timing scan operation is performed in each scan period.
  • the agent module first obtains the application configuration file setting information from the management module according to the scanned instance to determine the storage path of the corresponding instance configuration file on the current business processing server. Since the application configuration file setting information stores the storage path of the instance configuration file on the corresponding business processing server, the agent module can scan the instance configuration file corresponding to the instance according to this information. And calculate the corresponding MD 5 code according to the configuration content in the example configuration file. In addition, based on the above scanning result, it will be sent to the management module in real time, so that the management module can compare and determine whether the instance configuration file needs to be updated.
  • the application configuration file setting information includes the name of the instance configuration file, the storage path of the instance configuration file, the application to which the instance configuration file belongs, and the updated automatic restart setting information;
  • the instance configuration file includes the content of the configuration file and the corresponding MD5 code , The instance to which the instance configuration file belongs and the latest update time of the instance configuration file.
  • the storage path of the instance configuration file supports wildcards to support the configuration of a single node with multiple instances.
  • the automatic restart setting information sets whether the instance configuration file needs to be restarted automatically after the update, which can be set according to actual operation and maintenance needs. For instance configuration files, the latest update time information contained therein should be updated according to each instance configuration file update record to ensure the real-time record of the update time.
  • the management module receives the user's first instance configuration file update request or the scan result, extracts the corresponding configuration file content, retrieves the instance configuration file from the storage module for comparison, and updates the storage module based on the comparison result The stored instance configuration file and/or issue a second instance configuration file update request to the agent module.
  • the update of the instance configuration file can be triggered by comparison according to the scanning results of the above-mentioned proxy module, or the instance configuration can be triggered according to the user's instance configuration file update request (defined as the first instance configuration file update request) File update.
  • the management module needs to retrieve the instance configuration file of the storage module for comparison when the instance configuration file update is triggered. Therefore, the scan result or the first instance configuration file update request received by the management module needs to include the corresponding configuration file content and the corresponding MD5 code. In order to compare the content of the configuration file and the corresponding MD5 code with the content of the configuration file and the MD5 code of the instance configuration file stored in the storage module, to determine whether the instance configuration file needs to be updated.
  • the retrieval and comparison process of the management module based on the update request includes:
  • the management module retrieves the storage module based on the configuration file content included in the first instance configuration file update request;
  • the storage module If the storage module has a corresponding instance configuration file, compare the MD5 code corresponding to the content of the configuration file with the corresponding instance configuration file, if they are the same, end the current process, if they are different, update based on the content of the configuration file and the corresponding MD5 code The storage module stores the corresponding instance configuration file, and issues a second instance configuration file update request to the agent module.
  • the user end sends the first instance configuration file update request to the management module.
  • the first instance configuration file update request needs to include the content of the configuration file that needs to be updated and the corresponding MD5 code, so as to facilitate subsequent comparison with the corresponding instance configuration file of the storage module.
  • the management module extracts the configuration file content and MD5 code, and further searches the storage module to determine whether there is a corresponding instance configuration file on the storage module. According to the retrieval result, if the instance configuration file does not exist in the storage module, there is no need to update the instance configuration file, and the management module ends the current process.
  • the MD5 codes of the two need to be further compared to determine whether the configuration content is the same.
  • the management module first calculates the MD5 code based on the configuration file content of the instance configuration file retrieved by the storage module, and compares it with the MD5 code contained in the first instance configuration file update request. If the same, it means the first instance configuration file update request.
  • the content of the configuration file is the same as the configuration file content of the corresponding instance configuration file on the storage module, and there is no need to update, and the management module ends the current process. If the MD5 code comparison is inconsistent, it means that the configuration file content of the first instance configuration file update request is different from the configuration file content of the corresponding instance configuration file on the storage module.
  • the management module updates the corresponding instance configuration file on the storage module. Specifically, when updating, the current time is used as the instance configuration file update time, and the configuration file content, MD5 code, and configuration file update time are overwritten in the corresponding instance configuration file of the storage module to complete the instance configuration file update of the storage module. And, further, after completing the instance configuration file update of the storage module, it is necessary to update the instance configuration file of the corresponding instance on each service processing server to realize the application update.
  • the management module defines the notification as a second instance configuration file update request by sending a notification to the agent module. One end of the proxy module updates the instance configuration file of the instance corresponding to the node based on the received second instance configuration file update request.
  • the retrieval and comparison process based on the scan result of the management module of the embodiment of the present application includes:
  • the management module receives the scan result, and retrieves the storage module based on the scan result.
  • the storage module has a corresponding instance configuration file, compare the MD5 code in the scan result with the corresponding instance configuration file, if they are the same, end the current process, if they are different, download the corresponding instance configuration file based on the retrieved Send a second instance configuration file update request to the proxy module.
  • the management module performs retrieval and comparison based on the configuration file content of the configuration file update request of the first example and the corresponding MD5.
  • the comparison is performed by extracting the instance configuration file in the scan result and the corresponding MD5 code.
  • the management module first retrieves the corresponding instance configuration file on the storage module. If the instance configuration file does not exist on the storage module, it needs to use the instance configuration file provided by the scan result to set the instance configuration file on the storage module. Use the current time as the instance configuration file update time, and save the configuration file content, MD5 code, and instance configuration file update time to the storage module.
  • the management module first calculates the MD5 code based on the configuration file content of the instance configuration file retrieved by the storage module, and compares it with the MD5 code contained in the scan result. If they are the same, it means that the configuration file content of the first instance configuration file update request is the same as The configuration file content of the corresponding instance configuration file on the storage module is the same, and there is no need to update, and the management module ends the current process. If the MD5 code comparison is inconsistent, it means that the configuration file content of the configuration file update request of the first instance is different from the configuration file content of the corresponding instance configuration file on the storage module.
  • the instance configuration file stored in the storage module shall prevail for business processing.
  • the instance configuration file on the server is updated.
  • the management module sends a notification to the corresponding agent module to notify it to update the instance configuration file. Define this notification as a second instance configuration file update request.
  • One end of the proxy module updates the instance configuration file of the instance corresponding to the node based on the received second instance configuration file update request.
  • the proxy module updates the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request.
  • the proxy module based on the second instance configuration file update request issued after the above-mentioned management module search and comparison, the proxy module correspondingly updates the instance configuration file.
  • the example configuration file update process of the proxy module includes:
  • S1301 Scan the instance configuration file of the corresponding instance of the business processing server, obtain the content of the corresponding configuration file, and calculate the corresponding MD5 code;
  • the agent module when the agent module updates the instance configuration file, it first scans the instance configuration file of the corresponding instance by acquiring the application configuration file setting information of the management module. For the scanning of the example configuration file, refer to the above step S110, which will not be repeated here. Further, based on the scanned example configuration file, extract the configuration file content, and calculate the MD5 code of the configuration file content. Based on the calculated MD5 code, compare it with the MD5 code contained in the second instance configuration file update request. If the two are the same, it will identify that the instance configuration file of the current node is the same as the instance configuration file on the storage module, and no update is required. , The agent module ends the current process.
  • the content of the configuration file in the second instance configuration file update request is overwritten to the instance configuration file corresponding to the current instance to complete the instance configuration file update of the instance corresponding to this node.
  • the instance configuration file is updated, if it is set in the application configuration file setting information previously obtained that the corresponding instance is automatically restarted after the sample configuration file is updated, the automatic restart operation is performed on the instance.
  • a configuration file update flowchart of an embodiment of the present application is provided.
  • the management module of the embodiment of the present application triggers the retrieval and comparison process through user request or the scan result of the instance configuration file reported by the agent module, and retrieves and compares the instance of the storage module.
  • Configuration file and then determine to update the instance configuration file stored in the storage module and/or issue a second instance configuration file update request to the agent module, and the agent module updates the instance configuration file of the corresponding instance of the node by receiving the second instance configuration file update request .
  • AppA The application to which the configuration file belongs: AppA;
  • AppB The application to which the configuration file belongs: AppB;
  • the agent module on the business processing server scans the instance configuration file regularly, it scans the instances on the node through the agent module to obtain the instance AppA of the application AppA, and the instances AppB-0 and AppB-1 of the application AppB.
  • the agent module further obtains the application configuration file setting information from the management module, and scans the instance configuration file of the corresponding instance based on the application configuration file setting information.
  • the content of the configuration file is obtained by scanning, and the MD5 code of the content of the configuration file is calculated.
  • the management module retrieves the storage module based on the scan result. If there is no instance configuration file of the instance AppA in the storage module at this time, the management module saves the relevant information of the instance configuration file of the instance AppA to the storage module.
  • the management module compares the MD5 codes of the instance AppB-0 and AppB-1, where the MD5 codes of AppB-1 are not the same, the management module informs the agent on the corresponding service processing server The module updates the configuration file of the instance AppB-1.
  • the proxy module scans the instance configuration file /opt/AppB/AppB-1/application.yml corresponding to the instance AppB-1, obtains the content of the configuration file, and Calculate the MD5 code of the configuration file content. Compare the calculated MD5 code with the MD5 code in the received second instance configuration file update request, and if the result is not the same, overwrite the configuration file content in the second instance configuration file update request to the instance AppB-1 The corresponding instance configuration file.
  • the application AppB is set to automatically restart after the instance configuration file is updated, the automatic restart operation is performed on the instance AppB-1 at this time.
  • a flowchart for updating the storage path of the instance configuration file is provided.
  • the update process includes:
  • the management module receives a storage path update request of the corresponding instance configuration file
  • the management module sends a deletion request to the storage module based on the storage path update request to delete the corresponding instance configuration file, and notifies the agent module to reacquire application configuration file setting information;
  • the agent module rescans the instance configuration file of the corresponding business processing server, and reports the scanning result to the management module.
  • the management module when the storage path of the instance configuration file needs to be updated, the management module sends a delete request to the storage module based on this update request, and deletes all instances under the application corresponding to the application configuration Example configuration file for file settings.
  • the management module in order to ensure that the storage module and the instance on the agent module are synchronized, the management module notifies the agent module to re-acquire the application configuration file setting information, and rescans the instance configuration file through the agent module, and reports the scan results to the management module. Realize the storage path update of the storage module and the proxy module instance configuration file.
  • the proxy module scans the instance configuration file on the corresponding business processing server, uploads the scan result to the management module based on the scanned instance configuration file, and the management module receives the user’s first instance configuration file update request or scan result, and updates the storage module The stored instance configuration file and/or issue a second instance configuration file update request to the agent module, and the agent module updates the instance configuration file corresponding to the business processing server based on the received second instance configuration file update request.
  • FIG. 9 is a schematic structural diagram of an apparatus for centralized management of configuration files provided in Embodiment 2 of this application.
  • the device for centralized management of configuration files provided by this embodiment specifically includes: a scanning module 21, a comparison module 22, and an update module 23.
  • the scanning module 21 is configured to scan the instance configuration file on the corresponding business processing server through the proxy module, and upload the scanning result to the management module based on the scanned instance configuration file;
  • the comparison module 22 is configured to receive the user’s first instance configuration file update request or the scan result through the management module, extract the corresponding configuration file content, and retrieve the instance configuration file from the storage module for comparison, based on the comparison result Update the instance configuration file stored in the storage module and/or issue a second instance configuration file update request to the agent module;
  • the update module 23 is configured to update the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request through the proxy module.
  • the proxy module scans the instance configuration file on the corresponding business processing server, uploads the scan result to the management module based on the scanned instance configuration file, and the management module receives the user’s first instance configuration file update request or scan result, and updates the storage module The stored instance configuration file and/or issue a second instance configuration file update request to the agent module, and the agent module updates the instance configuration file corresponding to the business processing server based on the received second instance configuration file update request.
  • the device for centralized management of configuration files provided in the second embodiment of the present application can be used to execute the method for centralized management of configuration files provided in the first embodiment above, and has corresponding functions and beneficial effects.
  • the embodiment of the present application also provides a storage medium containing computer-executable instructions, when the computer-executable instructions are executed by a computer processor, are used to execute a configuration file centralized management method
  • the configuration file centralized management method includes: an agent The module scans the instance configuration file on the corresponding business processing server, and uploads the scan result to the management module based on the scanned instance configuration file.
  • the scan result includes the instance configuration file and the corresponding MD5 code; the management module receives the user's first instance For the configuration file update request or the scan result, extract the corresponding configuration file content, retrieve the instance configuration file from the storage module for comparison, update the instance configuration file stored in the storage module based on the comparison result and/or issue the second An instance configuration file update request is sent to an agent module; the agent module updates the instance configuration file corresponding to the business processing server based on the received second instance configuration file update request.
  • Storage medium any of various types of storage devices or storage devices.
  • the term "storage medium” is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; Non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements.
  • the storage medium may further include other types of memory or a combination thereof.
  • the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the Internet).
  • the second computer system can provide the program instructions to the first computer for execution.
  • the term “storage medium” may include two or more storage media residing in different locations (for example, in different computer systems connected through a network).
  • the storage medium may store program instructions (for example, embodied as a computer program) executable by one or
  • the storage medium containing computer-executable instructions provided by the embodiments of the present application is not limited to the above-mentioned centralized management method for configuration files, and can also execute the configuration files provided in any embodiment of the present application. Related operations in the centralized management method.
  • the configuration file centralized management apparatus, storage medium, and electronic equipment provided in the above embodiments can execute the configuration file centralized management method provided in any embodiment of this application.
  • the method for centralized management of configuration files provided by the embodiment please refer to any of this application.

Abstract

Disclosed are a configuration file centralized management system, method and apparatus. According to the technical solution provided in the embodiments of the present application, the method comprises: a proxy module scanning instance configuration files on corresponding service processing servers, and uploading a scanning result to a management module on the basis of the scanned instance configuration files; the management module receiving a first instance configuration file updating request from a user or the scanning result, and updating instance configuration files stored in a storage module and/or issuing a second instance configuration file updating request to the proxy module; and the proxy module updating the corresponding instance configuration files of the service processing servers on the basis of the received second instance configuration file updating request. By using the technical means, the unified management of instance configuration files of a server cluster can be realized, and the process of updating the configuration files is optimized, thereby reducing the operation, maintenance and management costs of application of service processing servers.

Description

一种配置文件集中管理系统、方法及装置System, method and device for centralized management of configuration files 技术领域Technical field
本申请实施例涉及...技术领域,尤其涉及一种配置文件集中管理系统、方法及装置。The embodiments of the application relate to the technical field, and in particular, to a system, method, and device for centralized management of configuration files.
背景技术Background technique
随着微服务、分布式技术的发展,一个系统往往会拆分为多个应用,且单个应用需要通过多个实例支撑。并且,对实例进行定制化,或者控制不同实例的行为,往往需要采用配置文件的方式实现。With the development of microservices and distributed technologies, a system is often split into multiple applications, and a single application needs to be supported by multiple instances. In addition, customizing instances or controlling the behavior of different instances often requires the use of configuration files.
在进行配置文件管理更新时,一般采用配置中心集中管理更新的方式。其要求应用主动与配置中心进行通信,完成配置文件更新。但是,这种方式要求应用在代码上集成部分逻辑,其流程较为繁琐,需要对应用进行改造才能适用配置文件更新,其运维管理成本相对较大。When the configuration file management update is performed, the configuration center is generally used to centrally manage the update. It requires the application to actively communicate with the configuration center to complete the configuration file update. However, this method requires the application to integrate part of the logic in the code, and the process is relatively cumbersome. The application needs to be modified to apply the configuration file update, and its operation and maintenance management cost is relatively large.
发明内容Summary of the invention
本申请实施例提供一种配置文件集中管理系统、方法及装置,能够对配置文件进行统一管理,降低应用的运维与管理成本。The embodiments of the present application provide a system, method, and device for centralized management of configuration files, which can perform unified management of configuration files and reduce application operation, maintenance and management costs.
在第一方面,本申请实施例提供了一种配置文件集中管理系统,包括:管理模块、存储模块和运行在各个业务处理服务器的代理模块;In the first aspect, an embodiment of the present application provides a configuration file centralized management system, including: a management module, a storage module, and an agent module running on each service processing server;
所述代理模块用于对所述业务处理服务器的实例配置文件进行扫描,将扫描结果上传至所述管理模块;The agent module is used to scan the instance configuration file of the business processing server, and upload the scan result to the management module;
所述存储模块用于所述管理模块存储实例配置文件;The storage module is used for the management module to store instance configuration files;
所述管理模块用于根据用户的第一实例配置文件更新请求或所述扫描结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至所述代理模块;The management module is configured to update the instance configuration file stored in the storage module according to the user's first instance configuration file update request or the scan result and/or issue a second instance configuration file update request to the agent module;
所述代理模块还用于接收所述第二实例配置文件更新请求,并进行所述业务处理服务器对应实例配置文件的更新。The proxy module is further configured to receive the second instance configuration file update request, and update the instance configuration file corresponding to the service processing server.
在第二方面,本申请实施例提供了一种配置文件集中管理方法,包括:In the second aspect, an embodiment of the present application provides a method for centralized management of configuration files, including:
代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例 配置文件上传扫描结果至管理模块;The proxy module scans the instance configuration file on the corresponding business processing server, and uploads the scan result to the management module based on the scanned instance configuration file;
所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块;The management module receives the user’s first instance configuration file update request or the scan result, extracts the corresponding configuration file content, and retrieves the instance configuration file from the storage module for comparison, and updates the storage module based on the comparison result. The instance configuration file and/or issue a second instance configuration file update request to the agent module;
所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新。The proxy module updates the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request.
进一步的,所述代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块,包括:Further, the agent module scans the instance configuration file on the corresponding business processing server, and uploads the scanning result to the management module based on the scanned instance configuration file, including:
代理模块扫描对应业务处理服务器上的实例,并获取所述管理模块的应用配置文件设置信息,所述应用配置文件设置信息预先在所述管理模块进行设置,用于指示实例配置文件在对应业务处理服务器上的存储路径;The proxy module scans the instance on the corresponding service processing server, and obtains the application configuration file setting information of the management module. The application configuration file setting information is set in the management module in advance and is used to instruct the instance configuration file in the corresponding service processing The storage path on the server;
基于所述应用配置文件设置信息扫描获取对应所述实例的实例配置文件;Scanning and acquiring an instance configuration file corresponding to the instance based on the application configuration file setting information;
根据扫描到的实例配置文件计算得到对应的MD5码,将扫描到的实例配置文件和所述MD5码作为扫描结果汇报至所述管理模块。The corresponding MD5 code is calculated according to the scanned instance configuration file, and the scanned instance configuration file and the MD5 code are reported to the management module as the scanning result.
进一步的,所述应用配置文件设置信息包括实例配置文件名称、实例配置文件存储路径、实例配置文件所属应用及更新后的自动重启设置信息;Further, the application configuration file setting information includes the name of the instance configuration file, the storage path of the instance configuration file, the application to which the instance configuration file belongs, and the updated automatic restart setting information;
所述实例配置文件包括配置文件内容、对应的MD5码、实例配置文件所属实例以及实例配置文件的最新更新时间。The instance configuration file includes the content of the configuration file, the corresponding MD5 code, the instance to which the instance configuration file belongs, and the latest update time of the instance configuration file.
进一步的,所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块,包括:Further, the management module receives the user’s first instance configuration file update request or the scan result, extracts the corresponding configuration file content, retrieves the instance configuration file from the storage module for comparison, and updates the storage based on the comparison result. The instance configuration file stored by the module and/or the second instance configuration file update request issued to the agent module includes:
管理模块响应于用户的第一实例配置文件更新请求,基于所述第一实例配置文件更新请求包含的配置文件内容检索存储模块;In response to the user’s first instance configuration file update request, the management module retrieves the storage module based on the configuration file content included in the first instance configuration file update request;
若所述存储模块不存在对应实例配置文件,则结束当前流程;If the storage module does not have a corresponding instance configuration file, the current process is ended;
若所述存储模块存在对应实例配置文件,将配置文件内容对应的MD5码与对应实例配置文件进行比对,若相同,结束当前流程,若不同,基于配置文件内容及对应的MD5码更新所述存储模块存储的对应实例配置文件,并下发第二实例配置文件更新请求至代理模块。If there is a corresponding instance configuration file in the storage module, compare the MD5 code corresponding to the configuration file content with the corresponding instance configuration file, if they are the same, end the current process, if they are different, update the content based on the configuration file content and the corresponding MD5 code Store the corresponding instance configuration file stored by the module, and issue a second instance configuration file update request to the agent module.
进一步的,所述管理模块接收用户的第一实例配置文件更新请求或所述扫 描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块,还包括:Further, the management module receives the user’s first instance configuration file update request or the scan result, extracts the corresponding configuration file content, retrieves the instance configuration file from the storage module for comparison, and updates the storage based on the comparison result. The instance configuration file stored by the module and/or issuing the second instance configuration file update request to the agent module also includes:
管理模块接收所述扫描结果,基于所述扫描结果检索存储模块;The management module receives the scan result, and retrieves the storage module based on the scan result;
若所述存储模块不存在对应实例配置文件,基于所述扫描结果更新所述存储模块存储的对应实例配置文件;If the corresponding instance configuration file does not exist in the storage module, update the corresponding instance configuration file stored in the storage module based on the scan result;
若所述存储模块存在对应实例配置文件,将所述扫描结果中的MD5码与对应实例配置文件进行比对,若相同,结束当前流程,若不同,基于检索到的对应实例配置文件下发第二实例配置文件更新请求至代理模块。If there is a corresponding instance configuration file in the storage module, compare the MD5 code in the scan result with the corresponding instance configuration file, if they are the same, end the current process, if they are different, issue the first instance configuration file based on the retrieved corresponding instance configuration file. 2. The instance configuration file update request is sent to the proxy module.
进一步的,所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新,包括:Further, the agent module updating the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request includes:
扫描所述业务处理服务器对应实例的实例配置文件,获取对应的配置文件内容并计算得到相应的MD5码;Scan the instance configuration file of the corresponding instance of the business processing server, obtain the content of the corresponding configuration file, and calculate the corresponding MD5 code;
将计算得到的MD5码与所述第二实例配置文件更新请求包含的MD5码进行比对;Comparing the calculated MD5 code with the MD5 code included in the second instance configuration file update request;
若MD5码相同,结束当前流程,若MD5码不同,将所述第二实例配置文件更新请求包含的配置文件内容覆盖至对应实例的实例配置文件。If the MD5 codes are the same, the current process ends, and if the MD5 codes are different, the content of the configuration file included in the second instance configuration file update request is overwritten to the instance configuration file of the corresponding instance.
进一步的,在所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新之后,还包括:Further, after the proxy module updates the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request, the method further includes:
管理模块接收对应实例配置文件的存储路径更新请求;The management module receives the storage path update request of the corresponding instance configuration file;
管理模块基于所述存储路径更新请求发送删除请求至存储模块以删除对应实例配置文件,并通知代理模块重新获取应用配置文件设置信息;The management module sends a delete request to the storage module based on the storage path update request to delete the corresponding instance configuration file, and notifies the agent module to reacquire application configuration file setting information;
代理模块重新扫描对应业务处理服务器的实例配置文件,并将扫描结果汇报至所述管理模块。The proxy module rescans the instance configuration file of the corresponding business processing server, and reports the scanning result to the management module.
在第三方面,本申请实施例提供了一种配置文件集中管理装置,包括:In the third aspect, an embodiment of the present application provides an apparatus for centralized management of configuration files, including:
扫描模块,用于通过代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块;The scanning module is used to scan the instance configuration file on the corresponding business processing server through the proxy module, and upload the scanning result to the management module based on the scanned instance configuration file;
比对模块,用于通过所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块;The comparison module is used to receive the user’s first instance configuration file update request or the scan result through the management module, extract the corresponding configuration file content, and retrieve the instance configuration file from the storage module for comparison, based on the comparison result Update the instance configuration file stored in the storage module and/or issue a second instance configuration file update request to the agent module;
更新模块,用于通过所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新。The update module is configured to update the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request through the proxy module.
在第四方面,本申请实施例提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面所述的配置文件集中管理方法。In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions, which are used to execute the method for centralized management of configuration files as described in the first aspect when the computer-executable instructions are executed by a computer processor .
本申请实施例通过代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块,由管理模块接收用户的第一实例配置文件更新请求或扫描结果,更新存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块,由代理模块基于接收到的第二实例配置文件更新请求进行业务处理服务器对应实例配置文件的更新。采用上述技术手段,可以实现服务器集群的实例配置文件统一管理,优化配置文件更新流程,降低各个业务处理服务器的应用的运维和管理成本。In this embodiment of the application, the proxy module scans the instance configuration file on the corresponding business processing server, uploads the scan result to the management module based on the scanned instance configuration file, and the management module receives the user’s first instance configuration file update request or scan result, and updates The instance configuration file stored by the storage module and/or the second instance configuration file update request is issued to the agent module, and the agent module updates the instance configuration file corresponding to the business processing server based on the received second instance configuration file update request. Using the above technical means, it is possible to realize unified management of the instance configuration files of the server cluster, optimize the configuration file update process, and reduce the operation and maintenance and management costs of the application of each business processing server.
附图说明Description of the drawings
图1是本申请实施例一提供的一种配置文件集中管理系统的结构示意图;FIG. 1 is a schematic structural diagram of a configuration file centralized management system provided by Embodiment 1 of the present application;
图2是本申请实施例一提供的一种配置文件集中管理方法的流程图;2 is a flowchart of a method for centralized management of configuration files provided by Embodiment 1 of the present application;
图3是本申请实施例一中的代理模块的扫描流程图;Fig. 3 is a scanning flowchart of the proxy module in the first embodiment of the present application;
图4是本申请实施例一中管理模块基于更新请求的检索比对流程图;Fig. 4 is a search and comparison flowchart of the management module based on the update request in the first embodiment of the present application;
图5是本申请实施例一中管理模块基于扫描结果的检索比对流程图;Fig. 5 is a search and comparison flowchart of the management module based on the scan result in the first embodiment of the present application;
图6是本申请实施例一中代理模块的实例配置文件更新流程图;FIG. 6 is an example configuration file update flowchart of the proxy module in the first embodiment of the present application;
图7是本申请实施例一中的配置文件更新流程图;FIG. 7 is a flowchart of configuration file update in Embodiment 1 of the present application;
图8是本申请实施例一中实例配置文件的存储路径更新流程图;FIG. 8 is a flowchart of updating the storage path of the example configuration file in the first embodiment of the present application;
图9是本申请实施例二提供的一种配置文件集中管理装置的结构示意图。FIG. 9 is a schematic structural diagram of an apparatus for centralized management of configuration files provided by Embodiment 2 of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚,下面结合附图对本申请具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在 附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the objectives, technical solutions, and advantages of the present application clearer, specific embodiments of the present application will be described in further detail below with reference to the accompanying drawings. It can be understood that the specific embodiments described here are only used to explain the application, but not to limit the application. In addition, it should be noted that, for ease of description, the drawings only show part of the content related to the present application, but not all of the content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart describes various operations (or steps) as sequential processing, many of the operations can be implemented in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The processing may be terminated when its operation is completed, but may also have additional steps not included in the drawings. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and so on.
本申请提供的配置文件集中管理系统及方法,旨在通过对服务器集群的实例配置文件进行统一管理更新,以减低各个业务处理服务器应用的运维和管理成本。相对于传统的配置文件管理方式,其在进行配置文件更新时,需要在业务处理服务器上的对应应用代码集成相应的逻辑,以实现配置文件更新。这种方式要求每一个业务处理服务器都集成配置文件管理的逻辑代码,这对于一些遗留应用或者开源应用来说,需要进行改造才能适用,出于运维管理成本的考虑,改造应用的方式显然不太现实,且其进行改造的流程繁杂,不便于这个业务处理服务器集群的配置文件更新管理。基于此,提供本申请实施例的一种配置文件集中管理系统及方法,以解决现有服务器集群进行配置文件管理时流程繁杂、投入成本大的技术问题。The configuration file centralized management system and method provided in this application aim to reduce the operation, maintenance and management costs of various business processing server applications by uniformly managing and updating the instance configuration files of the server cluster. Compared with the traditional configuration file management method, when the configuration file is updated, the corresponding application code on the business processing server needs to integrate corresponding logic to realize the configuration file update. This method requires that every business processing server integrates the logic code of configuration file management. For some legacy applications or open source applications, it needs to be modified to be applicable. For the consideration of operation and maintenance management costs, the way to modify the application is obviously not It is too realistic, and its transformation process is complicated, which is not convenient for the configuration file update management of this business processing server cluster. Based on this, a configuration file centralized management system and method according to the embodiments of the present application are provided to solve the technical problems of complicated processes and high investment costs when the existing server clusters perform configuration file management.
实施例一:Example one:
图1给出了本申请实施例一提供一种配置文件集中管理系统的结构示意图,其中该配置文件集中管理系统,包括:管理模块、存储模块和运行在各个业务处理服务器的代理模块;所述代理模块用于对所述业务处理服务器的实例配置文件进行扫描,将扫描结果上传至所述管理模块;所述存储模块用于所述管理模块存储实例配置文件;所述管理模块用于根据用户的第一实例配置文件更新请求或所述扫描结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至所述代理模块;所述代理模块还用于接收所述第二实例配置文件更新请求,并进行所述业务处理服务器对应实例配置文件的更新。可以理解的是,对应业务处理服务器集群上的每一个服务器,都对应设置代理模块(ProfileAgent),各个代理模块运行于对应的业务处理服务器上,以进行对应业务处理服务器上应用的实例配置文件管理。而管理模块(ProfileServer)和存储模块则作为系统的集中处理和存储模块,通过管理模块对接各个代理模块,以进行各个业务处理服务器实例配置文件的集中管理。此外,本申请实施例的配置文件集中管理系统还包括数据库,数据库用于存储管理模块进行应用配置文件设置所产生的应用配置文件设置信息,并在需要时通过管理模块调用并下发至代理模块。Figure 1 shows a schematic structural diagram of a configuration file centralized management system provided in the first embodiment of the present application. The configuration file centralized management system includes: a management module, a storage module, and an agent module running on each service processing server; The proxy module is used to scan the instance configuration file of the business processing server and upload the scanning result to the management module; the storage module is used to store the instance configuration file in the management module; the management module is used to store the instance configuration file according to the user The first instance configuration file update request or the scan results update the instance configuration file stored in the storage module and/or issue the second instance configuration file update request to the proxy module; the proxy module is also used to receive all The second instance configuration file update request is described, and the instance configuration file corresponding to the business processing server is updated. It can be understood that, corresponding to each server on the business processing server cluster, an agent module (ProfileAgent) is set correspondingly, and each agent module runs on the corresponding business processing server to manage the instance configuration file of the application on the corresponding business processing server . The management module (ProfileServer) and storage module are used as the centralized processing and storage modules of the system. Through the management module, each agent module is docked to centrally manage the configuration files of each business processing server instance. In addition, the configuration file centralized management system of the embodiment of the present application further includes a database. The database is used to store the application configuration file setting information generated by the management module for setting the application configuration file, and call it through the management module and send it to the agent module when needed. .
进一步的,图2提供了本申请实施例的一种配置文件集中管理方法的流程图,本实施例中提供的配置文件集中管理方法可以由上述配置文件集中管理系 统执行,该配置文件集中管理系统可以通过软件和/或硬件的方式实现,下述以配置文件集中管理系统为执行配置文件集中管理方法的主体为例,进行描述。参照图2,该配置文件集中管理方法具体包括:Further, FIG. 2 provides a flow chart of a method for centralized management of configuration files according to an embodiment of the present application. The method for centralized management of configuration files provided in this embodiment can be executed by the above-mentioned centralized management system for configuration files. It can be implemented by software and/or hardware. The following description takes the configuration file centralized management system as the main body that executes the configuration file centralized management method as an example. Referring to Figure 2, the method for centralized management of configuration files specifically includes:
S110、代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块。S110. The agent module scans the instance configuration file on the corresponding business processing server, and uploads the scanning result to the management module based on the scanned instance configuration file.
具体的,在实际应用中,系统触发进行实例配置文件的更新一般有两种,一种是通过代理模块定时扫描自身对应节点(即业务处理服务器)上的实例配置文件,并进一步将扫描结果上传至管理模块,由管理模块基于扫描结果进行比对判断是否需要进行实例配置文件的更新。一种是由管理模块接收用户的实例配置文件更新请求,基于实例配置文件更新请求包含的内容进行比对判断是否需要进行实例配置文件的更新。需要说明的是,此处实例配置文件的更新,可以是存储模块存储的实例配置文件的更新,也可以是对应业务处理服务器的实例配置文件更新。管理模块根据实际的检索比对结果,以进行不同形式的实例配置文件更新。Specifically, in practical applications, there are generally two types of instance configuration file update triggered by the system. One is to periodically scan the instance configuration file on its corresponding node (ie, business processing server) through the proxy module, and further upload the scanning result To the management module, the management module compares and judges whether the instance configuration file needs to be updated based on the scanning result. One is that the management module receives the user's instance configuration file update request, and compares and judges whether the instance configuration file needs to be updated based on the content contained in the instance configuration file update request. It should be noted that the update of the instance configuration file here may be the update of the instance configuration file stored in the storage module, or the update of the instance configuration file of the corresponding business processing server. The management module updates the instance configuration files in different forms according to the actual search and comparison results.
进一步的,参照图3,提供代理模块的扫描流程图,其中代理模块定时扫描的流程包括:Further, referring to Fig. 3, a scanning flowchart of the agent module is provided, wherein the routine scanning process of the agent module includes:
S1101、代理模块扫描对应业务处理服务器上的实例,并获取所述管理模块的应用配置文件设置信息,所述应用配置文件设置信息预先在所述管理模块进行设置,用于指示实例配置文件在对应业务处理服务器上的存储路径;S1101. The proxy module scans the instance on the corresponding service processing server, and obtains the application configuration file setting information of the management module. The application configuration file setting information is set in the management module in advance to indicate that the instance configuration file is in the corresponding The storage path on the business processing server;
S1102、基于所述应用配置文件设置信息扫描获取对应所述实例的实例配置文件;S1102, scan and obtain an instance configuration file corresponding to the instance based on the application configuration file setting information;
S1103、根据扫描到的实例配置文件计算得到对应的MD5码,将扫描到的实例配置文件和所述MD5码作为扫描结果汇报至所述管理模块。S1103: Calculate the corresponding MD5 code according to the scanned instance configuration file, and report the scanned instance configuration file and the MD5 code to the management module as a scanning result.
通过各个代理模块定时扫描本节点(即业务处理服务器)上的实例,获取示例配置文件。其中,根据预先设定的时间段进行定时扫描。代理模块可配置计时器,计时器用于扫描周期计时,根据设定的时间段设置该计时器的扫描周期,并在每一个扫描周期进行对应的定时扫描操作。具体的,代理模块根据扫描到的实例,会先向管理模块获取应用配置文件设置信息,以确定对应实例配置文件在当前业务处理服务器上的存储路径。由于应用配置文件设置信息存储了实例配置文件在对应业务处理服务器上的存储路径,则根据这一信息代理模块可以扫描实例所对应的实例配置文件。并根据实例配置文件中的配置内容计 算得到对应的MD 5码。并且,基于上述扫描结果,会实时发送至管理模块,以便于管理模块进行比对判断是否需要进行实例配置文件的更新。Periodically scan the instances on the node (that is, the business processing server) through each agent module to obtain sample configuration files. Among them, the timing scan is performed according to the preset time period. The proxy module can be configured with a timer. The timer is used to time the scan period. The scan period of the timer is set according to the set time period, and the corresponding timing scan operation is performed in each scan period. Specifically, the agent module first obtains the application configuration file setting information from the management module according to the scanned instance to determine the storage path of the corresponding instance configuration file on the current business processing server. Since the application configuration file setting information stores the storage path of the instance configuration file on the corresponding business processing server, the agent module can scan the instance configuration file corresponding to the instance according to this information. And calculate the corresponding MD 5 code according to the configuration content in the example configuration file. In addition, based on the above scanning result, it will be sent to the management module in real time, so that the management module can compare and determine whether the instance configuration file needs to be updated.
具体的,所述应用配置文件设置信息包括实例配置文件名称、实例配置文件存储路径、实例配置文件所属应用及更新后的自动重启设置信息;所述实例配置文件包括配置文件内容、对应的MD5码、实例配置文件所属实例以及实例配置文件的最新更新时间。其中,实例配置文件存储路径支持通配符,以此来支持单节点多实例进行配置的情况。而自动重启设置信息则设定实例配置文件在更新之后是否需要自动重启,可根据实际运维需要设置。而对于实例配置文件,其包含的最新更新时间信息应当根据每一次实例配置文件更新记录进行更新,以确保更新时间的实时性记录。Specifically, the application configuration file setting information includes the name of the instance configuration file, the storage path of the instance configuration file, the application to which the instance configuration file belongs, and the updated automatic restart setting information; the instance configuration file includes the content of the configuration file and the corresponding MD5 code , The instance to which the instance configuration file belongs and the latest update time of the instance configuration file. Among them, the storage path of the instance configuration file supports wildcards to support the configuration of a single node with multiple instances. The automatic restart setting information sets whether the instance configuration file needs to be restarted automatically after the update, which can be set according to actual operation and maintenance needs. For instance configuration files, the latest update time information contained therein should be updated according to each instance configuration file update record to ensure the real-time record of the update time.
S120、所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块。S120. The management module receives the user's first instance configuration file update request or the scan result, extracts the corresponding configuration file content, retrieves the instance configuration file from the storage module for comparison, and updates the storage module based on the comparison result The stored instance configuration file and/or issue a second instance configuration file update request to the agent module.
进一步的,对于管理模块一端,可根据上述代理模块的扫描结果进行比对触发实例配置文件的更新,也可以根据用户的实例配置文件更新请求(定义为第一实例配置文件更新请求)触发实例配置文件的更新。需要说明的是,上述在触发进行实例配置文件更新时管理模块需要检索存储模块的实例配置文件进行比对。因此,管理模块所接受到的扫描结果或者第一实例配置文件更新请求,均需要包含相应的配置文件内容及对应的MD5码。以便于根该配置文件内容及对应的MD5码比对存储模块所存储的实例配置文件的配置文件内容和MD5码,进而判断确定是否需要进行实例配置文件的更新。Further, for the management module, the update of the instance configuration file can be triggered by comparison according to the scanning results of the above-mentioned proxy module, or the instance configuration can be triggered according to the user's instance configuration file update request (defined as the first instance configuration file update request) File update. It should be noted that the management module needs to retrieve the instance configuration file of the storage module for comparison when the instance configuration file update is triggered. Therefore, the scan result or the first instance configuration file update request received by the management module needs to include the corresponding configuration file content and the corresponding MD5 code. In order to compare the content of the configuration file and the corresponding MD5 code with the content of the configuration file and the MD5 code of the instance configuration file stored in the storage module, to determine whether the instance configuration file needs to be updated.
下述分别对应扫描结果和第一实例配置文件更新请求进行检索比对触发实例配置文件的更新进行描述。其中,参照图4,管理模块基于更新请求的检索比对流程包括:The following describes the retrieval and comparison of the trigger instance configuration file update corresponding to the scan result and the first instance configuration file update request respectively. Among them, referring to Figure 4, the retrieval and comparison process of the management module based on the update request includes:
S1201、管理模块响应于用户的第一实例配置文件更新请求,基于所述第一实例配置文件更新请求包含的配置文件内容检索存储模块;S1201. In response to the user’s first instance configuration file update request, the management module retrieves the storage module based on the configuration file content included in the first instance configuration file update request;
S1202、若所述存储模块不存在对应实例配置文件,则结束当前流程;S1202, if there is no corresponding instance configuration file in the storage module, end the current process;
S1203、若所述存储模块存在对应实例配置文件,将配置文件内容对应的MD5码与对应实例配置文件进行比对,若相同,结束当前流程,若不同,基于配置文件内容及对应的MD5码更新所述存储模块存储的对应实例配置文件,并 下发第二实例配置文件更新请求至代理模块。S1203. If the storage module has a corresponding instance configuration file, compare the MD5 code corresponding to the content of the configuration file with the corresponding instance configuration file, if they are the same, end the current process, if they are different, update based on the content of the configuration file and the corresponding MD5 code The storage module stores the corresponding instance configuration file, and issues a second instance configuration file update request to the agent module.
实际应用中,根据用户的实际需求,当需要进行实例配置文件更新时,用户一端发送第一实例配置文件更新请求至管理模块。其中,第一实例配置文件更新请求需包含需要更新的配置文件内容和对应的MD5码,以便于后续与存储模块的对应实例配置文件进行比对。进一步的,根据接收到的用户的第一实例配置文件更新请求,管理模块提取其配置文件内容和MD5码,并进一步检索存储模块,确定存储模块上是否存在对应的实例配置文件。根据检索结果,如若存储模块不存在该实例配置文件,则无需进行实例配置文件的更新,管理模块结束当前流程。而如若检索到了对应的实例配置文件,则需要进一步比对两者的MD5码以判断其配置内容是否相同。管理模块先基于存储模块检索到的实例配置文件的配置文件内容计算MD5码,将其与第一实例配置文件更新请求中包含的MD5码进行对比,若相同,则表示第一实例配置文件更新请求的配置文件内容与存储模块上对应实例配置文件的配置文件内容相同,无需进行更新,管理模块结束当前流程。而如若MD5码比对不一致,表示第一实例配置文件更新请求的配置文件内容与存储模块上对应实例配置文件的配置文件内容不同,此时管理模块对存储模块上的相应实例配置文件进行更新。具体的,在进行更新时,将当前时间作为实例配置文件更新时间,将配置文件内容、MD5码、配置文件更新时间覆盖至存储模块的对应实例配置文件中,完成存储模块的实例配置文件更新。并且,进一步的,在完成存储模块的实例配置文件更新后,需要对各个业务处理服务器上的对应实例进行实例配置文件更新,以此来实现应用更新。管理模块通过下发通知至代理模块,定义该通知为第二实例配置文件更新请求。代理模块一端基于接收到的第二实例配置文件更新请求进行本节点对应实例的实例配置文件更新。In actual applications, according to the actual needs of the user, when the instance configuration file needs to be updated, the user end sends the first instance configuration file update request to the management module. Among them, the first instance configuration file update request needs to include the content of the configuration file that needs to be updated and the corresponding MD5 code, so as to facilitate subsequent comparison with the corresponding instance configuration file of the storage module. Further, according to the received user's first instance configuration file update request, the management module extracts the configuration file content and MD5 code, and further searches the storage module to determine whether there is a corresponding instance configuration file on the storage module. According to the retrieval result, if the instance configuration file does not exist in the storage module, there is no need to update the instance configuration file, and the management module ends the current process. If the corresponding instance configuration file is retrieved, the MD5 codes of the two need to be further compared to determine whether the configuration content is the same. The management module first calculates the MD5 code based on the configuration file content of the instance configuration file retrieved by the storage module, and compares it with the MD5 code contained in the first instance configuration file update request. If the same, it means the first instance configuration file update request The content of the configuration file is the same as the configuration file content of the corresponding instance configuration file on the storage module, and there is no need to update, and the management module ends the current process. If the MD5 code comparison is inconsistent, it means that the configuration file content of the first instance configuration file update request is different from the configuration file content of the corresponding instance configuration file on the storage module. At this time, the management module updates the corresponding instance configuration file on the storage module. Specifically, when updating, the current time is used as the instance configuration file update time, and the configuration file content, MD5 code, and configuration file update time are overwritten in the corresponding instance configuration file of the storage module to complete the instance configuration file update of the storage module. And, further, after completing the instance configuration file update of the storage module, it is necessary to update the instance configuration file of the corresponding instance on each service processing server to realize the application update. The management module defines the notification as a second instance configuration file update request by sending a notification to the agent module. One end of the proxy module updates the instance configuration file of the instance corresponding to the node based on the received second instance configuration file update request.
另一方面,参照图5,本申请实施例管理模块基于扫描结果的检索比对流程包括:On the other hand, referring to FIG. 5, the retrieval and comparison process based on the scan result of the management module of the embodiment of the present application includes:
S1204、管理模块接收所述扫描结果,基于所述扫描结果检索存储模块;S1204. The management module receives the scan result, and retrieves the storage module based on the scan result.
S1205、若所述存储模块不存在对应实例配置文件,基于所述扫描结果更新所述存储模块存储的对应实例配置文件;S1205: If the corresponding instance configuration file does not exist in the storage module, update the corresponding instance configuration file stored in the storage module based on the scanning result;
S1206、若所述存储模块存在对应实例配置文件,将所述扫描结果中的MD5码与对应实例配置文件进行比对,若相同,结束当前流程,若不同,基于检索到的对应实例配置文件下发第二实例配置文件更新请求至代理模块。S1206. If the storage module has a corresponding instance configuration file, compare the MD5 code in the scan result with the corresponding instance configuration file, if they are the same, end the current process, if they are different, download the corresponding instance configuration file based on the retrieved Send a second instance configuration file update request to the proxy module.
其中,参照上述管理模块基于第一实例配置文件更新请求的配置文件内容和对应MD5进行检索比对的方式。在基于扫描结果检索比对存储模块的对应实例配置文件时,通过提取扫描结果中的实例配置文件和对应的MD5码进行比对。管理模块首先检索存储模块上对应的实例配置文件,若存储模块上不存在该实例配置文件,则需要以扫描结果提供的实例配置文件进行存储模块上的实例配置文件设置。将当前时间作为实例配置文件更新时间,将配置文件内容、MD5码、实例配置文件更新时间保存至存储模块中。如若存储模块上存在对应的实例配置文件,则需要进一步比对两者的MD5码以判断其配置内容是否相同。管理模块先基于存储模块检索到的实例配置文件的配置文件内容计算MD5码,将其与扫描结果中包含的MD5码进行对比,若相同,则表示第一实例配置文件更新请求的配置文件内容与存储模块上对应实例配置文件的配置文件内容相同,无需进行更新,管理模块结束当前流程。而如若MD5码比对不一致,表示第一实例配置文件更新请求的配置文件内容与存储模块上对应实例配置文件的配置文件内容不同,此时以存储模块存储的实例配置文件为准,进行业务处理服务器上的实例配置文件更新。管理模块通过下发通知至对应代理模块,以通知其进行实例配置文件更新。定义该通知为第二实例配置文件更新请求。代理模块一端基于接收到的第二实例配置文件更新请求进行本节点对应实例的实例配置文件更新。Wherein, refer to the manner in which the management module performs retrieval and comparison based on the configuration file content of the configuration file update request of the first example and the corresponding MD5. When the corresponding instance configuration file of the comparison storage module is retrieved based on the scan result, the comparison is performed by extracting the instance configuration file in the scan result and the corresponding MD5 code. The management module first retrieves the corresponding instance configuration file on the storage module. If the instance configuration file does not exist on the storage module, it needs to use the instance configuration file provided by the scan result to set the instance configuration file on the storage module. Use the current time as the instance configuration file update time, and save the configuration file content, MD5 code, and instance configuration file update time to the storage module. If there is a corresponding instance configuration file on the storage module, it is necessary to further compare the MD5 codes of the two to determine whether the configuration content is the same. The management module first calculates the MD5 code based on the configuration file content of the instance configuration file retrieved by the storage module, and compares it with the MD5 code contained in the scan result. If they are the same, it means that the configuration file content of the first instance configuration file update request is the same as The configuration file content of the corresponding instance configuration file on the storage module is the same, and there is no need to update, and the management module ends the current process. If the MD5 code comparison is inconsistent, it means that the configuration file content of the configuration file update request of the first instance is different from the configuration file content of the corresponding instance configuration file on the storage module. At this time, the instance configuration file stored in the storage module shall prevail for business processing. The instance configuration file on the server is updated. The management module sends a notification to the corresponding agent module to notify it to update the instance configuration file. Define this notification as a second instance configuration file update request. One end of the proxy module updates the instance configuration file of the instance corresponding to the node based on the received second instance configuration file update request.
S130、所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新。S130. The proxy module updates the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request.
进一步的,基于上述管理模块检索比对之后下发的第二实例配置文件更新请求,代理模块对应进行实例配置文件的更新。其中,参照图6,代理模块的实例配置文件更新流程包括:Further, based on the second instance configuration file update request issued after the above-mentioned management module search and comparison, the proxy module correspondingly updates the instance configuration file. Among them, referring to Figure 6, the example configuration file update process of the proxy module includes:
S1301、扫描所述业务处理服务器对应实例的实例配置文件,获取对应的配置文件内容并计算得到相应的MD5码;S1301: Scan the instance configuration file of the corresponding instance of the business processing server, obtain the content of the corresponding configuration file, and calculate the corresponding MD5 code;
S1302、将计算得到的MD5码与所述第二实例配置文件更新请求包含的MD5码进行比对;S1302. Compare the calculated MD5 code with the MD5 code included in the second instance configuration file update request.
S1303、若MD5码相同,结束当前流程,若MD5码不同,将所述第二实例配置文件更新请求包含的配置文件内容覆盖至对应实例的实例配置文件。S1303. If the MD5 codes are the same, end the current process; if the MD5 codes are different, overwrite the configuration file content included in the second instance configuration file update request to the instance configuration file of the corresponding instance.
具体的,代理模块在进行实例配置文件更新时,首先通过获取管理模块的应用配置文件设置信息在本节点扫描得到对应实例的实例配置文件。实例配置 文件的扫描参照上述步骤S110,在此不多赘述。进一步的,基于扫描到的实例配置文件,提取其配置文件内容,并计算得出配置文件内容的MD5码。基于计算到的MD5码,与第二实例配置文件更新请求包含的MD5码进行比对,若两者相同,则标识当前本节点的实例配置文件与存储模块上的实例配置文件相同,无需进行更新,代理模块结束当前流程。如若两者不同,则将第二实例配置文件更新请求中的配置文件内容覆盖至当前实例所对应的实例配置文件上,完成本节点对应实例的实例配置文件更新。并且,在进行实例配置文件更新时,若此前获取到的应用配置文件设置信息中设定了对应实例在示例配置文件更新后进行自动重启,则对该实例执行自动重启操作。Specifically, when the agent module updates the instance configuration file, it first scans the instance configuration file of the corresponding instance by acquiring the application configuration file setting information of the management module. For the scanning of the example configuration file, refer to the above step S110, which will not be repeated here. Further, based on the scanned example configuration file, extract the configuration file content, and calculate the MD5 code of the configuration file content. Based on the calculated MD5 code, compare it with the MD5 code contained in the second instance configuration file update request. If the two are the same, it will identify that the instance configuration file of the current node is the same as the instance configuration file on the storage module, and no update is required. , The agent module ends the current process. If the two are different, the content of the configuration file in the second instance configuration file update request is overwritten to the instance configuration file corresponding to the current instance to complete the instance configuration file update of the instance corresponding to this node. In addition, when the instance configuration file is updated, if it is set in the application configuration file setting information previously obtained that the corresponding instance is automatically restarted after the sample configuration file is updated, the automatic restart operation is performed on the instance.
参照图7,提供本申请实施例的配置文件更新流程图,本申请实施例的管理模块通过用户请求或者代理模块汇报的实例配置文件扫描结果触发检索比对流程,通过检索比对存储模块的实例配置文件,进而确定更新存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块,代理模块通过接收第二实例配置文件更新请求进行本节点对应实例的实例配置文件更新。举例而言,有两个应用AppA和AppB,其中,业务处理服务器上面部署了AppA的实例AppA,以及AppB的实例AppB-0和AppB-1。则对应两个应用的应用配置文件设置如下:Referring to FIG. 7, a configuration file update flowchart of an embodiment of the present application is provided. The management module of the embodiment of the present application triggers the retrieval and comparison process through user request or the scan result of the instance configuration file reported by the agent module, and retrieves and compares the instance of the storage module. Configuration file, and then determine to update the instance configuration file stored in the storage module and/or issue a second instance configuration file update request to the agent module, and the agent module updates the instance configuration file of the corresponding instance of the node by receiving the second instance configuration file update request . For example, there are two applications AppA and AppB. Among them, an instance of AppA, AppA, and an instance of AppB, AppB-0 and AppB-1, are deployed on the business processing server. Then the application configuration files corresponding to the two applications are set as follows:
AppA:AppA:
(1)配置文件所属应用:AppA;(1) The application to which the configuration file belongs: AppA;
(2)配置文件名:xx.conf;(2) Configuration file name: xx.conf;
(3)配置文件路径:/etc/AppA/{instanceName}/xx.conf;(3) Configuration file path: /etc/AppA/{instanceName}/xx.conf;
(4)自动重启:true。(4) Automatic restart: true.
AppB:AppB:
(1)配置文件所属应用:AppB;(1) The application to which the configuration file belongs: AppB;
(2)配置文件名:application.yml;(2) Configuration file name: application.yml;
(3)配置文件路径:/opt/AppB/{instanceName}/application.yml;(3) Configuration file path: /opt/AppB/{instanceName}/application.yml;
(4)自动重启:true。(4) Automatic restart: true.
进一步的,业务处理服务器上的代理模块在定时扫描实例配置文件时,通过代理模块扫描本节点上的实例,得出应用AppA的实例AppA,应用AppB的实例AppB-0和AppB-1。进一步的代理模块向管理模块获取应用配置文件设置信息,基于应用配置文件设置信息进行对应实例的实例配置文件扫描。通过扫 描获取其配置文件内容,并计算得出配置文件内容的MD5码。其中,在进行实例配置文件扫描时,扫描实例AppA的配置文件/etc/AppA/AppA/xx.conf、实例AppB-0的配置文件/opt/AppB/AppB-0/application.ym以及实例AppB-1的配置文件/opt/AppB/AppB-1/application.yml。进一步的,基于扫描到的实例配置文件和对应的MD5码,汇报扫描结果至管理模块。管理模块基于扫描结果检索存储模块,若此时存储模块不存在实例AppA的实例配置文件,则管理模块将实例AppA的实例配置文件的相关信息保存至存储模块中。若此时存储模块存在实例AppB的实例配置文件,则管理模块对比实例AppB-0和AppB-1的MD5码,其中AppB-1的MD5码不相同,则管理模块通知对应业务处理服务器上的代理模块更新实例AppB-1的配置文件。Further, when the agent module on the business processing server scans the instance configuration file regularly, it scans the instances on the node through the agent module to obtain the instance AppA of the application AppA, and the instances AppB-0 and AppB-1 of the application AppB. The agent module further obtains the application configuration file setting information from the management module, and scans the instance configuration file of the corresponding instance based on the application configuration file setting information. The content of the configuration file is obtained by scanning, and the MD5 code of the content of the configuration file is calculated. Among them, when scanning the instance configuration file, scan the configuration file /etc/AppA/AppA/xx.conf of the instance AppA, the configuration file /opt/AppB/AppB-0/application.ym of the instance AppB-0, and the instance AppB- 1 configuration file /opt/AppB/AppB-1/application.yml. Further, based on the scanned instance configuration file and the corresponding MD5 code, the scan result is reported to the management module. The management module retrieves the storage module based on the scan result. If there is no instance configuration file of the instance AppA in the storage module at this time, the management module saves the relevant information of the instance configuration file of the instance AppA to the storage module. If the instance configuration file of the instance AppB exists in the storage module at this time, the management module compares the MD5 codes of the instance AppB-0 and AppB-1, where the MD5 codes of AppB-1 are not the same, the management module informs the agent on the corresponding service processing server The module updates the configuration file of the instance AppB-1.
进一步的,代理模块接收到更新实例AppB-1的实例配置文件更新请求后,扫描实例AppB-1所对应的实例配置文件/opt/AppB/AppB-1/application.yml,获取配置文件内容,并计算得出配置文件内容的MD5码。将计算得出的MD5码与接收到的第二实例配置文件更新请求中的MD5码进行对比,发现结果不相同,则将第二实例配置文件更新请求中的配置文件内容覆盖至实例AppB-1所对应的实例配置文件。并且,由于应用AppB设置了实例配置文件更新后自动重启,则此时对实例AppB-1执行自动重启操作。Further, after receiving the instance configuration file update request for updating the instance AppB-1, the proxy module scans the instance configuration file /opt/AppB/AppB-1/application.yml corresponding to the instance AppB-1, obtains the content of the configuration file, and Calculate the MD5 code of the configuration file content. Compare the calculated MD5 code with the MD5 code in the received second instance configuration file update request, and if the result is not the same, overwrite the configuration file content in the second instance configuration file update request to the instance AppB-1 The corresponding instance configuration file. In addition, since the application AppB is set to automatically restart after the instance configuration file is updated, the automatic restart operation is performed on the instance AppB-1 at this time.
此外,参照图8,提供实例配置文件的存储路径更新流程图,本申请实施例在进行实例配置文件管理更新时,还进一步提供实例配置文件的存储路径更新。其中其更新流程包括:In addition, referring to FIG. 8, a flowchart for updating the storage path of the instance configuration file is provided. When the embodiment of the present application performs management and updating of the instance configuration file, it further provides an update of the storage path of the instance configuration file. The update process includes:
S1401、管理模块接收对应实例配置文件的存储路径更新请求;S1401. The management module receives a storage path update request of the corresponding instance configuration file;
S1402、管理模块基于所述存储路径更新请求发送删除请求至存储模块以删除对应实例配置文件,并通知代理模块重新获取应用配置文件设置信息;S1402. The management module sends a deletion request to the storage module based on the storage path update request to delete the corresponding instance configuration file, and notifies the agent module to reacquire application configuration file setting information;
S1403、代理模块重新扫描对应业务处理服务器的实例配置文件,并将扫描结果汇报至所述管理模块。S1403. The agent module rescans the instance configuration file of the corresponding business processing server, and reports the scanning result to the management module.
可以理解的是,在实际应用中,当需要对实例配置文件的存储路径进行更新时,则管理模块基于这一更新请求,向存储模块发送删除请求,删除该应用下的所有实例对应该应用配置文件设置的实例配置文件。并且,为了保证存储模块与代理模块上的实例同步,则管理模块通知代理模块重新获取应用配置文件设置信息,并通过代理模块重新扫描实例配置文件,将扫描结果向管理模块进行汇报,以此来实现存储模块和代理模块实例配置文件的存储路径更新。It is understandable that, in actual applications, when the storage path of the instance configuration file needs to be updated, the management module sends a delete request to the storage module based on this update request, and deletes all instances under the application corresponding to the application configuration Example configuration file for file settings. In addition, in order to ensure that the storage module and the instance on the agent module are synchronized, the management module notifies the agent module to re-acquire the application configuration file setting information, and rescans the instance configuration file through the agent module, and reports the scan results to the management module. Realize the storage path update of the storage module and the proxy module instance configuration file.
上述,通过代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块,由管理模块接收用户的第一实例配置文件更新请求或扫描结果,更新存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块,由代理模块基于接收到的第二实例配置文件更新请求进行业务处理服务器对应实例配置文件的更新。采用上述技术手段,可以实现服务器集群的实例配置文件统一管理,优化配置文件更新流程,降低各个业务处理服务器的应用的运维和管理成本。As mentioned above, the proxy module scans the instance configuration file on the corresponding business processing server, uploads the scan result to the management module based on the scanned instance configuration file, and the management module receives the user’s first instance configuration file update request or scan result, and updates the storage module The stored instance configuration file and/or issue a second instance configuration file update request to the agent module, and the agent module updates the instance configuration file corresponding to the business processing server based on the received second instance configuration file update request. Using the above technical means, it is possible to realize unified management of the instance configuration files of the server cluster, optimize the configuration file update process, and reduce the operation and maintenance and management costs of the application of each business processing server.
实施例二:Embodiment two:
在上述实施例的基础上,图9为本申请实施例二提供的一种配置文件集中管理装置的结构示意图。参考图9,本实施例提供的配置文件集中管理装置具体包括:扫描模块21、比对模块22和更新模块23。On the basis of the foregoing embodiment, FIG. 9 is a schematic structural diagram of an apparatus for centralized management of configuration files provided in Embodiment 2 of this application. Referring to FIG. 9, the device for centralized management of configuration files provided by this embodiment specifically includes: a scanning module 21, a comparison module 22, and an update module 23.
其中,扫描模块21用于通过代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块;Wherein, the scanning module 21 is configured to scan the instance configuration file on the corresponding business processing server through the proxy module, and upload the scanning result to the management module based on the scanned instance configuration file;
比对模块22用于通过所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块;The comparison module 22 is configured to receive the user’s first instance configuration file update request or the scan result through the management module, extract the corresponding configuration file content, and retrieve the instance configuration file from the storage module for comparison, based on the comparison result Update the instance configuration file stored in the storage module and/or issue a second instance configuration file update request to the agent module;
更新模块23用于通过所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新。The update module 23 is configured to update the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request through the proxy module.
上述,通过代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块,由管理模块接收用户的第一实例配置文件更新请求或扫描结果,更新存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块,由代理模块基于接收到的第二实例配置文件更新请求进行业务处理服务器对应实例配置文件的更新。采用上述技术手段,可以实现服务器集群的实例配置文件统一管理,优化配置文件更新流程,降低各个业务处理服务器的应用的运维和管理成本。As mentioned above, the proxy module scans the instance configuration file on the corresponding business processing server, uploads the scan result to the management module based on the scanned instance configuration file, and the management module receives the user’s first instance configuration file update request or scan result, and updates the storage module The stored instance configuration file and/or issue a second instance configuration file update request to the agent module, and the agent module updates the instance configuration file corresponding to the business processing server based on the received second instance configuration file update request. Using the above technical means, it is possible to realize unified management of the instance configuration files of the server cluster, optimize the configuration file update process, and reduce the operation and maintenance and management costs of the application of each business processing server.
本申请实施例二提供的配置文件集中管理装置可以用于执行上述实施例一提供的配置文件集中管理方法,具备相应的功能和有益效果。The device for centralized management of configuration files provided in the second embodiment of the present application can be used to execute the method for centralized management of configuration files provided in the first embodiment above, and has corresponding functions and beneficial effects.
实施例三:Example three:
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种配置文件集中管理方法,该配置文件集中管理方法包括:代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块,所述扫描结果包括实例配置文件及对应的MD5码;所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块;所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新。The embodiment of the present application also provides a storage medium containing computer-executable instructions, when the computer-executable instructions are executed by a computer processor, are used to execute a configuration file centralized management method, the configuration file centralized management method includes: an agent The module scans the instance configuration file on the corresponding business processing server, and uploads the scan result to the management module based on the scanned instance configuration file. The scan result includes the instance configuration file and the corresponding MD5 code; the management module receives the user's first instance For the configuration file update request or the scan result, extract the corresponding configuration file content, retrieve the instance configuration file from the storage module for comparison, update the instance configuration file stored in the storage module based on the comparison result and/or issue the second An instance configuration file update request is sent to an agent module; the agent module updates the instance configuration file corresponding to the business processing server based on the received second instance configuration file update request.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。Storage medium-any of various types of storage devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; Non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements. The storage medium may further include other types of memory or a combination thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the Internet). The second computer system can provide the program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected through a network). The storage medium may store program instructions (for example, embodied as a computer program) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的配置文件集中管理方法,还可以执行本申请任意实施例所提供的配置文件集中管理方法中的相关操作。Of course, the storage medium containing computer-executable instructions provided by the embodiments of the present application is not limited to the above-mentioned centralized management method for configuration files, and can also execute the configuration files provided in any embodiment of the present application. Related operations in the centralized management method.
上述实施例中提供的配置文件集中管理装置、存储介质及电子设备可执行本申请任意实施例所提供的配置文件集中管理方法,未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的配置文件集中管理方法。The configuration file centralized management apparatus, storage medium, and electronic equipment provided in the above embodiments can execute the configuration file centralized management method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to any of this application. The method for centralized management of configuration files provided by the embodiment.
上述仅为本申请的较佳实施例及所运用的技术原理。本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构 思的情况下,还可以包括更多其他等效实施例,而本申请的范围由权利要求的范围决定。The above are only the preferred embodiments of this application and the technical principles used. The application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the application. Therefore, although the application has been described in more detail through the above embodiments, the application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the application. The scope of is determined by the scope of the claims.

Claims (10)

  1. 一种配置文件集中管理系统,其特征在于,包括:管理模块、存储模块和运行在各个业务处理服务器的代理模块;A centralized management system for configuration files, which is characterized by comprising: a management module, a storage module, and an agent module running on each service processing server;
    所述代理模块用于对所述业务处理服务器的实例配置文件进行扫描,将扫描结果上传至所述管理模块;The agent module is used to scan the instance configuration file of the business processing server, and upload the scan result to the management module;
    所述存储模块用于所述管理模块存储实例配置文件;The storage module is used for the management module to store instance configuration files;
    所述管理模块用于根据用户的第一实例配置文件更新请求或所述扫描结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至所述代理模块;The management module is configured to update the instance configuration file stored in the storage module according to the user's first instance configuration file update request or the scan result and/or issue a second instance configuration file update request to the agent module;
    所述代理模块还用于接收所述第二实例配置文件更新请求,并进行所述业务处理服务器对应实例配置文件的更新。The proxy module is further configured to receive the second instance configuration file update request, and update the instance configuration file corresponding to the service processing server.
  2. 一种配置文件集中管理方法,应用于如权利要求1所述的一种配置文件集中管理系统,其特征在于,包括:A method for centralized management of configuration files, applied to the system for centralized management of configuration files according to claim 1, characterized in that it comprises:
    代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块;The proxy module scans the instance configuration file on the corresponding business processing server, and uploads the scan result to the management module based on the scanned instance configuration file;
    所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块;The management module receives the user’s first instance configuration file update request or the scan result, extracts the corresponding configuration file content, and retrieves the instance configuration file from the storage module for comparison, and updates the storage module based on the comparison result. The instance configuration file and/or issue a second instance configuration file update request to the agent module;
    所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新。The proxy module updates the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request.
  3. 根据权利要求2所述的一种配置文件集中管理方法,其特征在于,所述代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块,包括:The method for centralized management of configuration files according to claim 2, wherein the proxy module scans the instance configuration file on the corresponding service processing server, and uploads the scanning result to the management module based on the scanned instance configuration file, comprising:
    代理模块扫描对应业务处理服务器上的实例,并获取所述管理模块的应用配置文件设置信息,所述应用配置文件设置信息预先在所述管理模块进行设置,用于指示实例配置文件在对应业务处理服务器上的存储路径;The proxy module scans the instance on the corresponding service processing server, and obtains the application configuration file setting information of the management module. The application configuration file setting information is set in the management module in advance and is used to instruct the instance configuration file in the corresponding service processing The storage path on the server;
    基于所述应用配置文件设置信息扫描获取对应所述实例的实例配置文件;Scanning and acquiring an instance configuration file corresponding to the instance based on the application configuration file setting information;
    根据扫描到的实例配置文件计算得到对应的MD5码,将扫描到的实例配置文件和所述MD5码作为扫描结果汇报至所述管理模块。The corresponding MD5 code is calculated according to the scanned instance configuration file, and the scanned instance configuration file and the MD5 code are reported to the management module as the scanning result.
  4. 根据权利要求3所述的一种配置文件集中管理方法,其特征在于,所述应用配置文件设置信息包括实例配置文件名称、实例配置文件存储路径、实例配 置文件所属应用及更新后的自动重启设置信息;The method for centralized management of configuration files according to claim 3, wherein the application configuration file setting information includes the name of the instance configuration file, the storage path of the instance configuration file, the application to which the instance configuration file belongs, and the updated automatic restart settings information;
    所述实例配置文件包括配置文件内容、对应的MD5码、实例配置文件所属实例以及实例配置文件的最新更新时间。The instance configuration file includes the content of the configuration file, the corresponding MD5 code, the instance to which the instance configuration file belongs, and the latest update time of the instance configuration file.
  5. 根据权利要求2所述的一种配置文件集中管理方法,其特征在于,所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块,包括:The method for centralized management of configuration files according to claim 2, wherein the management module receives the user’s first instance configuration file update request or the scan result, extracts the corresponding configuration file content, and sends it to the storage module Retrieving the instance configuration file for comparison, updating the instance configuration file stored in the storage module based on the comparison result and/or issuing a second instance configuration file update request to the agent module includes:
    管理模块响应于用户的第一实例配置文件更新请求,基于所述第一实例配置文件更新请求包含的配置文件内容检索存储模块;In response to the user’s first instance configuration file update request, the management module retrieves the storage module based on the configuration file content included in the first instance configuration file update request;
    若所述存储模块不存在对应实例配置文件,则结束当前流程;If the storage module does not have a corresponding instance configuration file, the current process is ended;
    若所述存储模块存在对应实例配置文件,将配置文件内容对应的MD5码与对应实例配置文件进行比对,若相同,结束当前流程,若不同,基于配置文件内容及对应的MD5码更新所述存储模块存储的对应实例配置文件,并下发第二实例配置文件更新请求至代理模块。If there is a corresponding instance configuration file in the storage module, compare the MD5 code corresponding to the configuration file content with the corresponding instance configuration file, if they are the same, end the current process, if they are different, update the content based on the configuration file content and the corresponding MD5 code Store the corresponding instance configuration file stored by the module, and issue a second instance configuration file update request to the agent module.
  6. 根据权利要求2所述的一种配置文件集中管理方法,其特征在于,所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块,还包括:The method for centralized management of configuration files according to claim 2, wherein the management module receives the user’s first instance configuration file update request or the scan result, extracts the corresponding configuration file content, and sends it to the storage module Retrieving the instance configuration file for comparison, updating the instance configuration file stored in the storage module based on the comparison result and/or issuing a second instance configuration file update request to the agent module, further includes:
    管理模块接收所述扫描结果,基于所述扫描结果检索存储模块;The management module receives the scan result, and retrieves the storage module based on the scan result;
    若所述存储模块不存在对应实例配置文件,基于所述扫描结果更新所述存储模块存储的对应实例配置文件;If the corresponding instance configuration file does not exist in the storage module, update the corresponding instance configuration file stored in the storage module based on the scan result;
    若所述存储模块存在对应实例配置文件,将所述扫描结果中的MD5码与对应实例配置文件进行比对,若相同,结束当前流程,若不同,基于检索到的对应实例配置文件下发第二实例配置文件更新请求至代理模块。If there is a corresponding instance configuration file in the storage module, compare the MD5 code in the scan result with the corresponding instance configuration file, if they are the same, end the current process, if they are different, issue the first instance configuration file based on the retrieved corresponding instance configuration file. 2. The instance configuration file update request is sent to the proxy module.
  7. 根据权利要求2所述的一种配置文件集中管理方法,其特征在于,所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新,包括:The method for centralized management of configuration files according to claim 2, wherein the proxy module updates the configuration file of the corresponding instance of the service processing server based on the received second instance configuration file update request, comprising: :
    扫描所述业务处理服务器对应实例的实例配置文件,获取对应的配置文件内容并计算得到相应的MD5码;Scan the instance configuration file of the corresponding instance of the business processing server, obtain the content of the corresponding configuration file, and calculate the corresponding MD5 code;
    将计算得到的MD5码与所述第二实例配置文件更新请求包含的MD5码进行比对;Comparing the calculated MD5 code with the MD5 code included in the second instance configuration file update request;
    若MD5码相同,结束当前流程,若MD5码不同,将所述第二实例配置文件更新请求包含的配置文件内容覆盖至对应实例的实例配置文件。If the MD5 codes are the same, the current process ends, and if the MD5 codes are different, the content of the configuration file included in the second instance configuration file update request is overwritten to the instance configuration file of the corresponding instance.
  8. 根据权利要求2-7任一所述的一种配置文件集中管理方法,其特征在于,在所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新之后,还包括:A method for centralized management of configuration files according to any one of claims 2-7, wherein the proxy module performs configuration of the corresponding instance of the service processing server based on the received second instance configuration file update request After the file is updated, it also includes:
    管理模块接收对应实例配置文件的存储路径更新请求;The management module receives the storage path update request of the corresponding instance configuration file;
    管理模块基于所述存储路径更新请求发送删除请求至存储模块以删除对应实例配置文件,并通知代理模块重新获取应用配置文件设置信息;The management module sends a delete request to the storage module based on the storage path update request to delete the corresponding instance configuration file, and notifies the agent module to reacquire application configuration file setting information;
    代理模块重新扫描对应业务处理服务器的实例配置文件,并将扫描结果汇报至所述管理模块。The proxy module rescans the instance configuration file of the corresponding business processing server, and reports the scanning result to the management module.
  9. 一种配置文件集中管理装置,其特征在于,包括:A device for centralized management of configuration files is characterized in that it comprises:
    扫描模块,用于通过代理模块扫描对应业务处理服务器上的实例配置文件,基于扫描到的实例配置文件上传扫描结果至管理模块;The scanning module is used to scan the instance configuration file on the corresponding business processing server through the proxy module, and upload the scanning result to the management module based on the scanned instance configuration file;
    比对模块,用于通过所述管理模块接收用户的第一实例配置文件更新请求或所述扫描结果,提取对应的配置文件内容,并向存储模块检索实例配置文件进行比对,基于比对结果更新所述存储模块存储的实例配置文件和/或下发第二实例配置文件更新请求至代理模块;The comparison module is used to receive the user’s first instance configuration file update request or the scan result through the management module, extract the corresponding configuration file content, and retrieve the instance configuration file from the storage module for comparison, based on the comparison result Update the instance configuration file stored in the storage module and/or issue a second instance configuration file update request to the agent module;
    更新模块,用于通过所述代理模块基于接收到的所述第二实例配置文件更新请求进行所述业务处理服务器对应实例配置文件的更新。The update module is configured to update the instance configuration file corresponding to the service processing server based on the received second instance configuration file update request through the proxy module.
  10. 一种包含计算机可执行指令的存储介质,其特征在于,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-7任一所述的配置文件集中管理方法。A storage medium containing computer-executable instructions, wherein the computer-executable instructions are used to execute the method for centralized management of configuration files according to any one of claims 1-7 when the computer-executable instructions are executed by a computer processor.
PCT/CN2021/073939 2020-05-08 2021-01-27 Configuration file centralized management system, method and apparatus WO2021223471A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202010383996 2020-05-08
CN202010383996.4 2020-05-08
CN202010449879.3 2020-05-25
CN202010449879.3A CN111654532B (en) 2020-05-08 2020-05-25 Centralized management system, method and device for configuration files

Publications (1)

Publication Number Publication Date
WO2021223471A1 true WO2021223471A1 (en) 2021-11-11

Family

ID=72350996

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/073939 WO2021223471A1 (en) 2020-05-08 2021-01-27 Configuration file centralized management system, method and apparatus

Country Status (2)

Country Link
CN (1) CN111654532B (en)
WO (1) WO2021223471A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143196A (en) * 2021-11-25 2022-03-04 北京百度网讯科技有限公司 Instance configuration update method, device, apparatus, storage medium, and program product
CN115001974A (en) * 2022-05-20 2022-09-02 中电信数智科技有限公司 Cluster system consistency detection method, device, system, equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654532B (en) * 2020-05-08 2023-08-01 国云科技股份有限公司 Centralized management system, method and device for configuration files
CN112506580A (en) * 2020-12-16 2021-03-16 青岛海尔科技有限公司 Data fusion method and device, storage medium and electronic device
CN113079270B (en) * 2021-03-17 2024-01-02 思看科技(杭州)股份有限公司 Three-dimensional scanning system, method, electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120216182A1 (en) * 1998-12-04 2012-08-23 Digital River, Inc. Scheduling of a File Download and Search for Updates
CN102713836A (en) * 2010-01-15 2012-10-03 微软公司 Persistent application activation and timer notifications
CN104094248A (en) * 2012-02-02 2014-10-08 微软公司 Self-updating functionality in a distributed system
CN106909411A (en) * 2015-12-23 2017-06-30 中国移动通信集团江苏有限公司 A kind of file updating method and device
CN109976822A (en) * 2017-12-25 2019-07-05 中国电信股份有限公司 Configuration method, device and the distributed system of Distributed Application
CN110262848A (en) * 2019-06-05 2019-09-20 阿里巴巴集团控股有限公司 The method and apparatus of loading application programs example in application development framework
CN111654532A (en) * 2020-05-08 2020-09-11 国云科技股份有限公司 Centralized management system, method and device for configuration files
CN111880929A (en) * 2020-07-07 2020-11-03 腾讯科技(深圳)有限公司 Instance management method and device and computer equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2496231A1 (en) * 2005-02-04 2006-08-04 Shopplex.Com Corporation System and method for controlling and monitoring an application in a network
CN100414890C (en) * 2005-12-14 2008-08-27 华为技术有限公司 Method and system for centrally configurating terminal equipment
US10091055B2 (en) * 2015-02-13 2018-10-02 Amazon Technologies, Inc. Configuration service for configuring instances
CN106059825A (en) * 2016-07-08 2016-10-26 福建天晴数码有限公司 Distributed system and configuration method
CN106685706A (en) * 2016-12-14 2017-05-17 深圳中顺易金融服务有限公司 Zookeeper based configuration update method and system
CN106878376B (en) * 2016-12-23 2020-08-14 微梦创科网络科技(中国)有限公司 Configuration management method and system
CN107908708A (en) * 2017-11-09 2018-04-13 北京锐安科技有限公司 A kind of method, system, equipment and the storage medium of group document synchronization
CN108037961B (en) * 2017-12-07 2021-01-19 北京锐安科技有限公司 Application program configuration method, device, server and storage medium
CN111078238A (en) * 2018-10-19 2020-04-28 中国移动通信集团浙江有限公司 Centralized processing method and device for application configuration in container environment
CN110673881B (en) * 2019-09-06 2023-03-28 深圳平安通信科技有限公司 Configuration management method and device for micro-service cluster and computer equipment
CN110620695B (en) * 2019-09-29 2022-11-15 重庆小雨点小额贷款有限公司 Data processing method and related equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120216182A1 (en) * 1998-12-04 2012-08-23 Digital River, Inc. Scheduling of a File Download and Search for Updates
CN102713836A (en) * 2010-01-15 2012-10-03 微软公司 Persistent application activation and timer notifications
CN104094248A (en) * 2012-02-02 2014-10-08 微软公司 Self-updating functionality in a distributed system
CN106909411A (en) * 2015-12-23 2017-06-30 中国移动通信集团江苏有限公司 A kind of file updating method and device
CN109976822A (en) * 2017-12-25 2019-07-05 中国电信股份有限公司 Configuration method, device and the distributed system of Distributed Application
CN110262848A (en) * 2019-06-05 2019-09-20 阿里巴巴集团控股有限公司 The method and apparatus of loading application programs example in application development framework
CN111654532A (en) * 2020-05-08 2020-09-11 国云科技股份有限公司 Centralized management system, method and device for configuration files
CN111880929A (en) * 2020-07-07 2020-11-03 腾讯科技(深圳)有限公司 Instance management method and device and computer equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143196A (en) * 2021-11-25 2022-03-04 北京百度网讯科技有限公司 Instance configuration update method, device, apparatus, storage medium, and program product
CN114143196B (en) * 2021-11-25 2023-07-28 北京百度网讯科技有限公司 Instance configuration updating method, device, equipment, storage medium and program product
CN115001974A (en) * 2022-05-20 2022-09-02 中电信数智科技有限公司 Cluster system consistency detection method, device, system, equipment and storage medium

Also Published As

Publication number Publication date
CN111654532A (en) 2020-09-11
CN111654532B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
WO2021223471A1 (en) Configuration file centralized management system, method and apparatus
EP3428811B1 (en) Database interface agent for a tenant-based upgrade system
US8782604B2 (en) Sandbox support for metadata in running applications
US9298752B2 (en) Facilitating data migration between database clusters while the database continues operating
US8069141B2 (en) Interfaces for high availability systems and log shipping
US8412674B2 (en) Replication resynchronization
US11709863B2 (en) Synchronizing online and offline transfer of data to cloud storage system
US20120324436A1 (en) Method of updating versioned software using a shared cache
US7281014B2 (en) Method and apparatus for moving data between storage devices
WO2020108544A1 (en) Method, apparatus and system for synchronously caching data
US10089375B2 (en) Idling individually specified objects during data replication
CN111177159A (en) Data processing system and method and data updating equipment
US20240020267A1 (en) Distributed storage system, method, device, and storage medium for metadata management
CN115309819A (en) Data processing method, device, system, computer equipment and storage medium
CN111737201A (en) Method for closing opened file, computer equipment and storage medium
US11321374B2 (en) External storage of unstructured database objects
US11157462B2 (en) Namespace data object name persistence after decoupling of transportable storage device from data server
US10572503B2 (en) Database system, information processing device, method and medium
CN114528260A (en) File access request processing method, electronic equipment and computer program product
CN114253572A (en) Process updating method and device
CN113297316A (en) Method, device and system for realizing data synchronization
CN108874592B (en) Data cold standby method and system for Log-structured storage engine
CN107153699B (en) Method and device for dynamically expanding cluster server
US10713121B1 (en) Dynamic migration of a cloud based distributed file system metadata server
CN112799781B (en) Block storage pool access method based on object storage protocol

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21800546

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21800546

Country of ref document: EP

Kind code of ref document: A1