Application configuration information management method and device, equipment and medium

By configuring the target client and server cluster of the information management system, the management of configuration information in the distributed system is optimized, automatic update and disaster recovery capabilities are realized in the global scope, persistent storage problems of configuration information management are solved, and the stability and user experience of the system are improved.

CN120528795APending Publication Date: 2025-08-22SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510706039.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-08-22

AI Technical Summary

Technical Problem

In distributed systems, the management method of configuration information is difficult to maintain, resulting in failure to synchronize configuration items, causing program errors, affecting user experience, and may cause application downtime when configuration center abnormalities.

Method used

Through the configuration information management system, the target client obtains the address list of the server cluster from the address server, querys the local disaster recovery directory, obtains and saves configuration information, and performs change checks and verifications based on the preset frequency, and optimizes configuration information management using cache and preset disaster recovery directory.

Benefits of technology

It realizes automatic update of configuration information in a global scope, improves management efficiency, enhances system flexibility and disaster recovery capabilities, avoids network failures and incomplete configuration data, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120528795A_ABST
    Figure CN120528795A_ABST
Patent Text Reader

Abstract

The invention discloses a configuration information management method and device for an application program, equipment and a medium, and relates to the technical field of configuration management, and the method comprises the steps: obtaining a server address list of a server cluster from an address server according to a pre-bound address server domain name after a target application program is started, querying whether the target configuration information exists in a local preset disaster recovery directory or not; if the query result shows that the target configuration information does not exist, obtaining the target configuration information from a target server in a server cluster according to a server address list, and storing the target configuration information in a local cache; initiating a configuration change check request to the target server based on a preset configuration change check frequency, so that the target server judges whether the target configuration data is changed or not, and feeds back a judgment result to the target client; and acquiring a judgment result, and if the judgment result represents that the target configuration data is changed, initiating a configuration acquisition request to the target server to obtain changed target configuration information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of configuration management, and in particular to a method, apparatus, device and medium for managing configuration information of an application. Background Art

[0002] Complex systems in real-world scenarios such as e-commerce platforms, social networks, and online education platforms contain extensive configuration data. Since current applications are often split from a single system into multiple subsystems, each corresponding to multiple running instances, and configurations are dispersed across multiple business subsystems, the translation of the same configuration often differs across these subsystems. Loss of synchronization between configuration items can lead to program errors. To address this issue, configurations are often converged into a public service to effectively address these issues. However, when modifying a configuration item in a complex application, it's impossible to determine which related subsystems need to be refreshed. Therefore, a full refresh or even a downtime release is required, significantly impacting the user experience for downtime-sensitive applications. Furthermore, after configuration convergence, the configuration center serves as a single point of failure within the application. If an anomaly occurs in the configuration center, the application will also experience anomalies or even downtime. Consequently, traditional configuration file approaches are not only difficult to maintain but also struggle to cope with frequent changes.

[0003] In summary, how to optimize the management method of configuration information to solve the problem of persistent storage management of configuration information in distributed systems is a technical problem that needs to be solved urgently. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a method, apparatus, device, and medium for managing application configuration information, which can optimize the management of configuration information to solve the problem of persistent storage management of configuration information in distributed systems. The specific solution is as follows:

[0005] In a first aspect, the present application provides a method for managing configuration information of an application, which is applied to a target client of a configuration information management system, wherein the configuration information management system further includes an address server, a server cluster, and a management console for operating and maintaining configuration information; wherein the method comprises:

[0006] After the target application is started, the server address list of the server cluster is obtained from the corresponding address server according to the pre-bound address server domain name, and the target configuration information is checked in the local preset disaster recovery directory to obtain the corresponding query result;

[0007] If the query result indicates that the target configuration information does not exist in the preset disaster recovery directory, then obtaining the target configuration information from the target server in the server cluster according to the server address list, and saving the target configuration information to a local cache; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information;

[0008] Initiating a configuration change check request to the target server based on a preset configuration change check frequency, so that the target server determines whether the target configuration data has changed according to the configuration change check request, and feeds back the obtained determination result to the target client;

[0009] Obtain a judgment result fed back by the target server. If the judgment result indicates that the target configuration data has changed, initiate a configuration acquisition request to the target server to obtain the changed target configuration information; the changed target configuration information is the configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

[0010] Optionally, after obtaining the target configuration information from the target server in the server cluster, the method further includes:

[0011] Initiate a configuration information verification request to the target server using the target configuration data and the configuration identification information in the target configuration information as a request body and the target data verification value in the target configuration information as a request header, so that the target server verifies the configuration information verification request with the corresponding local configuration information of the target server, and feeds back the obtained verification result to the target client;

[0012] Obtaining the verification result fed back by the target server, and if the verification result indicates that the target configuration information fails verification, determining that the target configuration data is abnormal, and feeding back the corresponding abnormal situation;

[0013] Correspondingly, the verification based on the configuration information verification request and the corresponding local configuration information of the target server includes:

[0014] Determining the target configuration data, the target data check value, and the configuration identification information in the configuration information verification request;

[0015] Determining local configuration information corresponding to the target configuration data from the local portion of the target server according to the configuration identification information;

[0016] Comparing the target data check value with the local data check value in the local configuration information to obtain a corresponding first comparison result;

[0017] If the first comparison result indicates that the target data verification value is consistent with the local data verification value, a verification result indicating that the target configuration information has passed verification is obtained;

[0018] If the first comparison result indicates that the target data verification value is inconsistent with the local data verification value, a verification result indicating that the target configuration information verification fails is obtained.

[0019] Optionally, the saving the target configuration information to a local cache includes:

[0020] Saving the target configuration information in a local cache with an expiration time, so that after the expiration time expires, a configuration update request including the configuration identification information is initiated to the target server, so that the target server determines the first current configuration information corresponding to the target configuration information locally based on the configuration identification information in the configuration update request, and feeds the first current configuration information back to the target client;

[0021] The first current configuration information fed back by the target server is obtained, and the target configuration information in the cache is replaced by the first current configuration information, and the expiration time is updated.

[0022] In a second aspect, the present application provides a method for managing configuration information of an application, which is applied to a target server in a server cluster of a configuration information management system, wherein the configuration information management system further includes an address server, a target client, and a management console for operating and maintaining configuration information; wherein the method includes:

[0023] Obtaining a target configuration information acquisition instruction initiated by the target client; the target configuration information acquisition instruction is an instruction initiated by the target client to the target server for obtaining target configuration information according to the server address list; the server address list is a server address list of the server cluster obtained by the target client from the corresponding address server according to the pre-bound address server domain name;

[0024] Feeding back the target configuration information stored in the local target file to the target client according to the target configuration information acquisition instruction, so that the target client saves the target configuration information to the local cache and initiates a configuration change check request to the target server based on a preset configuration change check frequency; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information;

[0025] Obtaining the configuration change check request initiated by the target client, determining whether the target configuration data has changed based on the configuration change check request, and feeding back the obtained determination result to the target client, so that the target client can initiate a configuration acquisition request to the target server after the determination result indicates that the target configuration data has changed;

[0026] The changed target configuration information is fed back to the target client based on the configuration acquisition request initiated by the target client; the changed target configuration information is configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

[0027] Optionally, before obtaining the target configuration information obtaining instruction initiated by the target client, the method further includes:

[0028] Registering the IP addresses of several servers in the server cluster with the address server so that the address server adds the IP addresses to the server address list;

[0029] If the number of servers in the server cluster changes, a server address list update request is initiated to the address server so that the address server can cancel the IP address corresponding to the server to be cancelled from the server address list according to the server address list update request, or add the IP address corresponding to the server to be added to the server address list.

[0030] Optionally, determining whether the target configuration data has changed according to the configuration change check request, and feeding back the obtained determination result to the target client, includes:

[0031] Obtaining the target data check value and the configuration identification information in the configuration change check request;

[0032] Determining, based on the configuration identification information, second current configuration information locally corresponding to the target configuration information, and determining a current data check value in the second current configuration information;

[0033] Comparing the current data check value with the target data check value to obtain a corresponding second comparison result;

[0034] If the second comparison result indicates that the current data check value is consistent with the target data check value, it is determined that the target configuration data has not been changed, and the corresponding determination result is fed back to the target client;

[0035] If the second comparison result indicates that the current data check value is inconsistent with the target data check value, it is determined that the target configuration data has been changed, and the corresponding determination result is fed back to the target client.

[0036] Optionally, the application configuration information management method further includes:

[0037] If the management console detects that there is configuration information to be synchronized, the configuration information to be synchronized is written into the target database and the local computer;

[0038] An information synchronization request is sent to other servers in the server cluster except the target server, so that after receiving the information synchronization request, the other servers transfer the configuration information to be synchronized in the target database to their respective local locations, or, based on a preset information synchronization frequency, transfer several configuration information to be synchronized in the target database to their respective local locations through the other servers.

[0039] In a third aspect, the present application provides an application configuration information management device, which is applied to a target client of a configuration information management system, wherein the configuration information management system further includes an address server, a server cluster, and a management console for operating and maintaining configuration information; wherein the device includes:

[0040] An information query module is used to obtain the server address list of the server cluster from the corresponding address server according to the pre-bound address server domain name after the target application is started, and to query whether the target configuration information exists in the local preset disaster recovery directory to obtain the corresponding query result;

[0041] An information saving module is configured to obtain the target configuration information from a target server in the server cluster according to the server address list and save the target configuration information to a local cache if the query result indicates that the target configuration information does not exist in the preset disaster recovery directory; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information;

[0042] a configuration change check request initiating module, configured to initiate a configuration change check request to the target server based on a preset configuration change check frequency, so that the target server determines whether the target configuration data has changed according to the configuration change check request, and feeds back the obtained determination result to the target client;

[0043] A configuration acquisition request initiation module is used to obtain the judgment result fed back by the target server. If the judgment result indicates that the target configuration data has changed, a configuration acquisition request is initiated to the target server to obtain the changed target configuration information; the changed target configuration information is the configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

[0044] In a fourth aspect, the present application provides an electronic device, comprising:

[0045] Memory, used to store computer programs;

[0046] The processor is used to execute the computer program to implement the aforementioned configuration information management method for the application program.

[0047] In a fifth aspect, the present application provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the configuration information management method of the aforementioned application is implemented.

[0048] In the present application, after the target application is started, the target client obtains the server address list of the server cluster from the corresponding address server according to the pre-bound address server domain name, and queries whether the target configuration information exists in the local preset disaster recovery directory to obtain the corresponding query result; if the query result indicates that the target configuration information does not exist in the preset disaster recovery directory, the target configuration information is obtained from the target server in the server cluster according to the server address list, and the target configuration information is saved in the local cache; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information; based on the preset configuration change check frequency, a configuration change check request is initiated to the target server, so that the target server determines whether the target configuration data has changed according to the configuration change check request, and feeds back the obtained judgment result to the target client; obtains the judgment result fed back by the target server, and if the judgment result indicates that the target configuration data has changed, a configuration acquisition request is initiated to the target server to obtain the changed target configuration information; the changed target configuration information is the configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console. As can be seen from the above, after the target application is started, the target client obtains the server address list of the server cluster from the address server, and after failing to query the target configuration information in the local preset disaster recovery directory, the target client obtains the target configuration information from the target server in the server cluster according to the server address list and saves it to the local cache. At the same time, based on the preset configuration change check frequency, a configuration change check request is initiated to the target server, so that the target server feeds back the judgment result obtained after judging whether the target configuration data has changed to the target client. If the judgment result indicates that the target configuration data has changed, the target client initiates a configuration acquisition request to the target server to obtain the changed target configuration information. In this way, through the above process of the present application, the user only needs to operate in the management console to automatically complete the global update through the target client, address server and server cluster in the configuration information management system, which can effectively centrally manage the configuration information of all applications. At the same time, a preset disaster recovery directory is defined locally on the target client, and the local configuration can be used preferentially in an offline state, thereby improving the efficiency of configuration information management, thereby optimizing the management method of configuration information to solve the problem of persistent storage management of configuration information in distributed systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0050] Figure 1 A flow chart of a configuration information management method for an application disclosed in this application;

[0051] Figure 2 This is a schematic diagram of the architecture of a configuration information management system framework for an application disclosed in this application;

[0052] Figure 3 A flowchart of a configuration information management method for a specific application disclosed in this application;

[0053] Figure 4 A schematic diagram of the structure of a configuration information management device for an application disclosed in this application;

[0054] Figure 5 A schematic diagram of the structure of a configuration information management device for an application disclosed in this application;

[0055] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0056] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0057] Since current applications are usually split from a single system into multiple subsystems, each subsystem will correspond to multiple running instances, and the configuration is scattered across multiple business subsystems, the translation of the same configuration is often inconsistent in multiple subsystems. If the configuration items are not synchronized, program errors will occur. For this reason, the configuration is usually converged into a public service to effectively improve the above problems. However, when modifying a configuration item in a complex application, it is impossible to know exactly which related subsystems need to be refreshed, so a full refresh can only be performed, or even a shutdown release can be performed. For some downtime-sensitive applications, this greatly affects the user experience. At the same time, after the configuration converges, the configuration center is a single point in the application. If the configuration center has an abnormality, the application will also have an abnormality or even crash. In other words, the traditional configuration file method is not only difficult to maintain, but also seems powerless when facing frequent changes.

[0058] In order to overcome the above technical problems, the present application provides a configuration information management method for an application program, so as to optimize the management mode of configuration information and solve the persistent storage management problem of configuration information in a distributed system.

[0059] See also Figure 1 As shown, an embodiment of the present invention discloses a configuration information management method for an application, which is applied to a target client of a configuration information management system, wherein the configuration information management system also includes an address server, a server cluster, and a management console for operating and maintaining configuration information; wherein the method includes:

[0060] Step S11: After the target application is started, the server address list of the server cluster is obtained from the corresponding address server according to the pre-bound address server domain name, and the target configuration information is checked in the local preset disaster recovery directory to obtain the corresponding query result.

[0061] In this embodiment, the target client in the configuration information management system of this application does not specify the code of the target server address in the server cluster when in use, so the acquisition of the address is transparent to the user, and the target server address is stored on a machine with a domain name, that is, the address server, so it is necessary to first access the address server to obtain the latest server address list of the server cluster. Specifically, the target client needs to perform the correct domain name binding locally before use, so that after the target application is started, the target client obtains the server address list of the server cluster from the address server of the corresponding environment according to the pre-bound address server domain name. At the same time, in order to improve the flexibility and stability of the configuration information management system, this embodiment can define a preset disaster recovery directory. After the target client is started, the preset disaster recovery directory containing the configuration data that may be needed is automatically created according to preset fixed rules to achieve complete separation of the target client from the server cluster and use it separately. That is, after obtaining the server address list, it is first queried whether the target configuration information exists in the local preset disaster recovery directory to obtain the corresponding query result.

[0062] It can be understood that if the query result indicates that the target configuration information exists in the preset disaster recovery directory, that is, the preset disaster recovery directory is configured with the currently required data, the target client can directly obtain the target configuration information without having to obtain data from the server cluster through the network. At the same time, the preset disaster recovery directory will be polled first each time it is polled. If it is found that the configuration still exists therein, the polling request will no longer be sent to the server cluster to avoid unnecessary network polling operations and reduce the load pressure of the server cluster. This not only greatly reduces the delay and resource consumption caused by network interaction and improves the data response speed, but also ensures the normal operation of the target client in extreme cases such as network failure or abnormality of the server cluster, realizes continuous and stable acquisition of data, and enhances the disaster recovery capability of the configuration information management system.

[0063] It should be pointed out that, after the target client of this embodiment obtains the server address list, it will be saved locally on the target client, so that when a network anomaly occurs and the server address list cannot be obtained from the address server through the network, or when the address server is down, the locally saved server address list can be used to access the target server in the server cluster to pull configuration information. At the same time, in order to ensure that the server address list is always up to date, the target client can automatically enable a scheduled task after startup to obtain the latest server address list from the address server and save it locally, so as to realize the dynamic update of the server address list, ensure that the held address information is always synchronized, and effectively avoid problems such as connection failure and data transmission errors caused by outdated addresses.

[0064] It needs to be explained that, Figure 2The figure shows an architectural diagram of the configuration information management system framework of an application disclosed in the present application. The configuration information management system of the present application includes the management console (ops), the address server (http-server), a database for persistent management of configuration information, the target client (client) and the server cluster (server). Among them, the client, as the target client of the present application, is embedded into the application service through SDK (software development kit), and mainly uses configuration query, configuration monitoring functions, and other functions such as configuration publishing. It provides the application with a service interface for using configuration management, and is responsible for establishing a connection with the address server and the server cluster, and can dynamically obtain and receive configuration information; the address server serves as an intermediate provider for the target client to access the server cluster, and is used to save the server address of each cluster, provide query services to the target client, and provide registration address and deregistration address services to the server cluster; the server cluster, as the core service of the present application, adopts spring The mvc framework (a request-driven lightweight network framework) provides a functional interface to the outside world and is responsible for storing the user's configuration content in the database. At the same time, the configuration content is also saved in the server disk and cache on the server side; the management console is a configuration tool used for operation and maintenance, used to provide basic configuration query, change, release and other operation and maintenance functions; the database can be a MySQL persistence database, and the configuration content of the operation and maintenance personnel is stored in the MySQL database, which is used to persist the configuration of each application and ensure strong consistency of key components. The deployment method of "one primary database and two backup databases" is usually adopted to ensure data security. In this way, this embodiment stores the server addresses of the server cluster in the address server, provides service discovery capabilities, and can easily perform operation and maintenance management of the server cluster; defines a preset disaster recovery directory in the target client, and gives priority to querying its configuration information, which can allow the client to access the necessary configuration information even when there is no network connection, thereby improving the flexibility, stability and disaster recovery capabilities of the configuration information management system; after obtaining the server address list, it is saved locally to the target client, and the latest server address list is obtained from the address server at regular intervals, which can ensure that the held address information is always synchronized, effectively avoiding problems such as connection failure and data transmission errors caused by outdated addresses.

[0065] Step S12: If the query result indicates that the target configuration information does not exist in the preset disaster recovery directory, the target configuration information is obtained from the target server in the server cluster according to the server address list, and the target configuration information is saved in the local cache; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information.

[0066] In this embodiment, if the query result indicates that the target configuration information does not exist in the preset disaster recovery directory, the target address of the target server in the server cluster is determined from the server address list, so as to obtain the target configuration information from the target server according to the target address and save it to the local cache. The target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information; the target data check value can be the MD5 value of the target configuration data (an irreversible encryption method); the MD5 value is calculated by a preset encryption algorithm, which can ensure that the MD5 is different if the data content is different; the configuration identification information is the unique information used to identify the target configuration data, including dataId and group, both of which are String type (a string data type), combined as a unique key for saving data, the dataId represents the serial number of the target configuration data, and the group represents the group to which the target configuration data belongs; the target server is any server in the server cluster. It can be understood that after obtaining the target configuration information, the target client of this embodiment can save it to the local file system, that is, take a data snapshot, so that when the target client starts next time and finds that all servers in the server cluster are unavailable within the preset timeout period, it can use the data snapshot saved in the local file system to start.

[0067] It should be pointed out that, after the target client obtains the target configuration information, in order to avoid incomplete data in the target configuration information due to network failure, this embodiment can verify it, and the processing flow is as follows: using the target configuration data and the configuration identification information in the target configuration information as the request body, and the target data verification value in the target configuration information as the request header, a configuration information verification request is initiated to the target server, so that the target server verifies the local configuration information of the corresponding target server based on the configuration information verification request, and feeds back the obtained verification result to the target client; obtaining the verification result fed back by the target server, if the verification result indicates that the target configuration information verification fails, then the target configuration data is determined to be abnormal, and the corresponding abnormal situation is fed back. That is, after obtaining the target configuration information, the target configuration information of the target configuration data in the target configuration information is calculated using a preset encryption algorithm, and the target configuration data and the configuration identification information are used as the request body, and the target data verification value is used as the request header. A configuration information verification request is initiated to the target server, so that the target server verifies the corresponding local configuration information based on the configuration information verification request, and feeds back the obtained verification result to the target client. After the obtained verification result indicates that the verification fails, the target client determines that the target configuration data is abnormal and feeds back the corresponding abnormal situation.

[0068] It should be further pointed out that after the target server receives the configuration information verification request from the target client, the verification processing flow is as follows: determine the target configuration data, the target data verification value and the configuration identification information in the configuration information verification request; determine the local configuration information corresponding to the target configuration data from the local of the target server according to the configuration identification information; compare the target data verification value with the local data verification value in the local configuration information to obtain a corresponding first comparison result; if the first comparison result indicates that the target data verification value is consistent with the local data verification value, then a verification result of passing the target configuration information verification is obtained; if the first comparison result indicates that the target data verification value is inconsistent with the local data verification value, then a verification result of failing the target configuration information verification is obtained. That is, the target server first parses the configuration information verification request to determine the target configuration data, the target data verification value and the configuration identification information, and then determines the corresponding local configuration information from the local of the target server according to the configuration identification information, and compares the target data verification value with the local data verification value in the local configuration information. If the first comparison result obtained indicates that the two are consistent, a verification result of passing the verification is obtained. If the indications are inconsistent, a verification result of failing the verification is obtained.

[0069] It should be noted that in order to avoid a large number of data acquisition requests being sent to the target server in a short period of time, this embodiment can implement a cache with an expiration time in the target client. Therefore, the processing flow of saving the target configuration information in the local cache is as follows: the target configuration information is saved in a local cache with an expiration time, so that after the expiration time expires, a configuration update request containing the configuration identification information is initiated to the target server, so that the target server determines the first current configuration information corresponding to the target configuration information locally based on the configuration identification information in the configuration update request, and feeds back the first current configuration information to the target client; obtains the first current configuration information fed back by the target server, and uses the first current configuration information to replace the target configuration information in the cache, and updates the expiration time. That is, the target configuration information is saved in a local cache with an expiration time, so that after the expiration time expires, a configuration update request containing the configuration identification information is initiated to the target server, so that the target server, based on the configuration update request, feeds back the first current configuration information corresponding to the target configuration information locally to the target client. After obtaining the first current configuration information, the target client uses it to replace the target configuration information in the cache and updates the expiration time. It is understandable that the target client can return the target configuration information in the cache for all configuration acquisition requests received within the expiration time without issuing a request to the target server, so as to reduce the load on the target server and reduce occupancy. In this way, after the target client obtains the target configuration information, this embodiment verifies the target configuration information according to the target data verification value therein, and throws an exception if the verification fails, which can avoid incomplete data in the target configuration information due to network failure; a cache with an expiration time is implemented in the target client, and requests received within the expiration time directly feed back the data in the cache, so as to avoid a large number of data acquisition requests being sent to the target server in a short period of time, which can reduce the load on the target server and reduce occupancy.

[0070] Step S13: Initiate a configuration change check request to the target server based on a preset configuration change check frequency, so that the target server determines whether the target configuration data has changed according to the configuration change check request, and feeds back the obtained determination result to the target client.

[0071] In this embodiment, since the target configuration data may change as needed, in order to synchronize the target configuration information of the target client in real time, this embodiment can initiate a configuration change check request to the target server based on a preset configuration change check frequency, so that the target server can determine whether the target configuration data has changed based on the configuration change check request and feed back the judgment result to the target client. It is understandable that during the communication between the target client and the target server, if the target server is unavailable due to an abnormal situation, the target client can automatically switch to other servers in the server cluster for access, so as to further improve the disaster recovery capability of the system.

[0072] Step S14: Obtain the judgment result fed back by the target server. If the judgment result indicates that the target configuration data has changed, initiate a configuration acquisition request to the target server to obtain the changed target configuration information; the changed target configuration information is the configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

[0073] In this embodiment, the target client obtains the judgment result fed back by the target server, and after the judgment result indicates that the target configuration data has changed, initiates a configuration acquisition request to the target server, so that the target server feeds back the local changed target configuration information to the target client based on the configuration acquisition request, thereby enabling the target client to obtain the changed target configuration information and synchronize the configuration information in real time to avoid the situation where the service provided by itself is outdated and the user experience is poor due to the inability to discover the configuration data change.

[0074] It should be pointed out that the target configuration information after the change is the configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console. That is, the configuration information in the configuration information management system is changed through the configuration change instruction received by the management console. Among them, the configuration change instruction is initiated by the user manually. Specifically, the user can enter the address of the management console in the browser to log in to the front-end management interface of the management console, and then use the Add Configuration Information function in the configuration information management to enter the configuration identification data and configuration data of the configuration information to be changed, and trigger the configuration change instruction by clicking the Submit button.

[0075] As can be seen from the above, in the embodiment of the present application, after the target application is started, the target client obtains the server address list of the server cluster from the address server, and after failing to query the target configuration information in the local preset disaster recovery directory, obtains the target configuration information from the target server in the server cluster according to the server address list, and saves it to the local cache. At the same time, based on the preset configuration change check frequency, a configuration change check request is initiated to the target server, so that the target server can feed back the judgment result obtained after judging whether the target configuration data has changed to the target client. If the judgment result indicates that the target configuration data has changed, the target client initiates a configuration acquisition request to the target server to obtain the changed target configuration information. In this way, through the above process of the embodiment of the present application, on the one hand, the user only needs to operate in the management console to automatically complete the global update through the target client, address server and server cluster in the configuration information management system; on the one hand, the server address of the server cluster is stored in the address server, which provides service discovery capabilities and can easily perform operation and maintenance management of the server cluster; on the one hand, a preset disaster recovery directory is defined in the target client, and configuration information is queried for it first, which allows the client to access the necessary configuration information when there is no network connection, thereby improving the flexibility, stability and disaster recovery capabilities of the configuration information management system; on the one hand, after obtaining the server address list, it is saved locally to the target client, and the latest server address list is obtained from the address server at regular intervals, which can ensure that the held address information is always synchronized, effectively avoiding connection failures caused by outdated addresses, Problems such as data transmission errors; on the one hand, after the target client obtains the target configuration information, the target configuration information is verified according to the target data verification value therein, and an exception is thrown if the verification fails, which can avoid incomplete data in the target configuration information caused by network failure; on the other hand, a cache with an expiration time is implemented in the target client, and requests received within the expiration time directly feed back the data in the cache to avoid a large number of data acquisition requests being sent to the target server in a short period of time, which can reduce the load on the target server and reduce occupancy; on the other hand, configuration change checks are performed based on the preset configuration change check frequency, and configuration changes are updated in time after they are discovered, so as to synchronize configuration information in real time, so as to avoid the situation where the services provided by itself are outdated and the user experience is poor due to the inability to discover configuration data changes, and thus optimize the management method of configuration information to solve the problem of persistent storage management of configuration information in distributed systems.

[0076] For further information, see Figure 3As shown, an embodiment of the present application further provides a configuration information management method for an application, which is applied to a target server in a server cluster of a configuration information management system, wherein the configuration information management system further includes an address server, a target client, and a management console for operating and maintaining configuration information; wherein the method includes:

[0077] Step S21, obtain the target configuration information acquisition instruction initiated by the target client; the target configuration information acquisition instruction is an instruction for obtaining target configuration information initiated by the target client to the target server according to the server address list; the server address list is the server address list of the server cluster obtained by the target client from the corresponding address server according to the pre-bound address server domain name.

[0078] In this embodiment, a target server in a server cluster of a configuration information management system obtains an instruction initiated by the target client to obtain target configuration information from the target server based on a server address list. The server address list is a server address list of the server cluster obtained by the target client from the corresponding address server based on a pre-bound address server domain name.

[0079] It should be noted that before the target server obtains the target configuration information acquisition instruction, it needs to register its own IP (Internet Protocol) address with the address server. The processing flow is as follows: register the IP addresses of several servers in the server cluster with the address server so that the address server can add the IP addresses to the server address list; if the number of servers in the server cluster changes, initiate a server address list update request to the address server so that the address server can cancel the IP address corresponding to the server to be cancelled from the server address list, or add the IP address corresponding to the server to be added to the server address list according to the server address list update request. That is, register the IP addresses of several servers in the server cluster with the address server so that the address server can add the IP addresses to the server address list. At the same time, if the number of servers in the server cluster changes, that is, if the capacity is expanded or reduced, a server address list update request is initiated to the address server so that the address server can deregister the IP address corresponding to the server to be deregistered from the server address list, or add the IP address corresponding to the server to be added to the server address list. In this way, before the target server in the server cluster performs a service operation, this embodiment first registers the address with the address server so that the target client can obtain the address of the server in the server cluster through the address server, thereby achieving the transparent and imperceptible expansion, reduction, online and offline of the server cluster to the application.

[0080] Step S22: according to the target configuration information acquisition instruction, the target configuration information stored in the local target file is fed back to the target client, so that the target client saves the target configuration information to the local cache and initiates a configuration change check request to the target server based on the preset configuration change check frequency; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information.

[0081] Among them, the specific implementation process of the above steps can be found in the corresponding content disclosed in the above embodiments, and will not be repeated here.

[0082] Step S23: Obtain the configuration change check request initiated by the target client, and determine whether the target configuration data has changed based on the configuration change check request, and feed back the obtained judgment result to the target client, so that the target client can initiate a configuration acquisition request to the target server after the judgment result indicates that the target configuration data has changed.

[0083] In this embodiment, the configuration change check request initiated by the target client is obtained, and whether the target configuration data has changed is determined based on the configuration change check request, and a corresponding judgment result is obtained. The judgment result is fed back to the target client, so that the target client can initiate a configuration acquisition request to the target server after the judgment result indicates that the target configuration data has changed.

[0084] It should be pointed out that the processing flow for determining whether the target configuration data has changed and feeding back the obtained judgment result to the target client is as follows: obtaining the target data verification value and the configuration identification information in the configuration change check request; determining the second current configuration information corresponding to the target configuration information locally based on the configuration identification information, and determining the current data verification value in the second current configuration information; comparing the current data verification value with the target data verification value to obtain a corresponding second comparison result; if the second comparison result indicates that the current data verification value is consistent with the target data verification value, then determining that the target configuration data has not changed, and feeding back the corresponding judgment result to the target client; if the second comparison result indicates that the current data verification value is inconsistent with the target data verification value, then determining that the target configuration data has changed, and feeding back the corresponding judgment result to the target client. That is, when the server cluster of the present application is started, the MD5 values ​​of the configuration data corresponding to all configuration information will be loaded from the database into the memory, and when the data is updated, the corresponding MD5 value in the memory will be updated. Therefore, after the target server receives the configuration change check request initiated by the target client, it determines the target data verification value and the configuration identification information, and determines the second current configuration information corresponding to the target configuration information locally based on the configuration identification information, as well as the current data verification value therein, and compares it with the target data verification value. If the second comparison result obtained indicates that the two are consistent, it is determined that the target configuration data has not changed, and the judgment result containing the character string representing the unchanged data is fed back to the target client. If the characterization is inconsistent, it is determined that the target configuration data has changed, and the judgment result containing the configuration identification information corresponding to the changed data is fed back to the target client. In this way, this embodiment uses the MD5 value to assist in determining whether the target configuration data has changed, and saves the MD5 value in advance, thereby improving the efficiency of data change checking.

[0085] Step S24: Feedback the changed target configuration information to the target client based on the configuration acquisition request initiated by the target client; the changed target configuration information is configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

[0086] In this embodiment, the changed target configuration information is fed back to the target client in response to the configuration acquisition request initiated by the target client; the changed target configuration information is configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

[0087] It should be pointed out that since there are many servers in the server cluster, when one of the servers receives a data write instruction, it needs to synchronize the data to other servers in the server cluster. The processing flow is as follows: if the management console detects that there is currently configuration information to be synchronized, the configuration information to be synchronized is written to the target database and the local; an information synchronization request is sent to other servers in the server cluster except the target server, so that after receiving the information synchronization request, the other servers transfer the configuration information to be synchronized in the target database to their respective locals, or, based on the preset information synchronization frequency, transfer several configuration information to be synchronized in the target database to their respective locals through the other servers. That is, if the management console detects that there is currently configuration information to be synchronized, the target server writes the configuration information to be synchronized to the target database and the local, and then needs to synchronize the configuration information to be synchronized to other servers in the server cluster except the target server. In order to synchronize data, this embodiment provides two synchronization methods. In a first embodiment, an information synchronization request is sent to other servers in the server cluster except the target server, so that the other servers transfer the configuration information to be synchronized in the target database to their respective local storage after receiving the information synchronization request. In another embodiment, based on the preset information synchronization frequency, the other servers transfer some configuration information to be synchronized in the target database to their respective local storage, so that all servers can be notified immediately when the configuration changes, thereby realizing real-time synchronization of configuration information. It should be further pointed out that the server in the server cluster of this embodiment uses a hybrid storage method of database and local files to store data. When the target client needs to obtain configuration information, it accesses the local file for feedback. In this way, when problems occur in the database, the feedback of information is not affected. A dual guarantee mechanism for data access is constructed to ensure the continuity of business processes. It not only realizes the decoupling of database and target client access, but also improves the response efficiency of data acquisition by directly reading local files, avoids the performance delay that may be caused by database queries, and optimizes the user experience while ensuring the high availability of the system.

[0088] As can be seen from the above, the target server in the server cluster of the embodiment of the present application obtains the target configuration information acquisition instruction initiated by the target client according to the server address list, and feeds back the target configuration information in the local target file to the target client according to the target configuration information acquisition instruction, so that the target client saves it to the local cache, and initiates a configuration change check request at a preset frequency. The target server receives the configuration change check request, determines whether the target configuration data has changed, and feeds back the result to the target client. If the data has changed, the target server will feed back the target configuration information modified based on the configuration change instruction of the management console to the target client according to the instruction. In this way, through the above process of the embodiment of the present application, on the one hand, before the target server in the server cluster performs service operations, the address is first registered with the address server, so that the target client can obtain the address of the server in the server cluster through the address server, thereby realizing the expansion, reduction, online and offline of the server cluster without perception and transparency to the application; on the other hand, the MD5 value is used to assist in judging whether the target configuration data has changed, and the MD5 value is saved in advance, thereby improving the efficiency of data change checking; on the other hand, a hybrid storage method of database and local files is used to store data. When the target client needs to obtain configuration information, the local file is accessed for feedback, so that when a problem occurs in the database, the feedback of information is still not affected. Not only is the decoupling of database and target client access achieved, but the response efficiency of data acquisition is also improved by directly reading local files, avoiding the performance delay that may be caused by database queries, while ensuring the high availability of the system, optimizing the user experience, and then optimizing the management method of configuration information to solve the problem of persistent storage management of configuration information in distributed systems.

[0089] Accordingly, see Figure 4 As shown, an embodiment of the present application further provides an application configuration information management device, which is applied to a target client of a configuration information management system, wherein the configuration information management system further includes an address server, a server cluster, and a management console for operating and maintaining configuration information; wherein the device includes:

[0090] The information query module 11 is used to obtain the server address list of the server cluster from the corresponding address server according to the pre-bound address server domain name after the target application is started, and query whether the target configuration information exists in the local preset disaster recovery directory to obtain the corresponding query result;

[0091] An information saving module 12 is configured to obtain the target configuration information from a target server in the server cluster according to the server address list and save the target configuration information to a local cache if the query result indicates that the target configuration information does not exist in the preset disaster recovery directory; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information;

[0092] A configuration change check request initiating module 13 is configured to initiate a configuration change check request to the target server based on a preset configuration change check frequency, so that the target server determines whether the target configuration data has changed according to the configuration change check request, and feeds back the obtained determination result to the target client;

[0093] The configuration acquisition request initiation module 14 is used to obtain the judgment result fed back by the target server. If the judgment result indicates that the target configuration data has changed, a configuration acquisition request is initiated to the target server to obtain the changed target configuration information; the changed target configuration information is the configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

[0094] As can be seen from the above, in the embodiment of the present application, after the target application is started, the target client obtains the server address list of the server cluster from the address server, and after failing to query the target configuration information in the local preset disaster recovery directory, obtains the target configuration information from the target server in the server cluster according to the server address list and saves it to the local cache. At the same time, based on the preset configuration change check frequency, a configuration change check request is initiated to the target server, so that the target server feeds back the judgment result obtained after judging whether the target configuration data has changed to the target client. If the judgment result indicates that the target configuration data has changed, the target client initiates a configuration acquisition request to the target server to obtain the changed target configuration information. In this way, through the above process of the embodiment of the present application, the user only needs to operate in the management console to automatically complete the global update through the target client, address server and server cluster in the configuration information management system, which can effectively centrally manage the configuration information of all applications. At the same time, a preset disaster recovery directory is defined locally on the target client, and the local configuration can be used preferentially in an offline state, thereby improving the efficiency of configuration information management, thereby optimizing the management method of configuration information to solve the problem of persistent storage management of configuration information in distributed systems.

[0095] In some specific implementations, the application configuration information management device may further include:

[0096] a request initiation submodule, configured to initiate a configuration information verification request to the target server using the target configuration data and the configuration identification information in the target configuration information as a request body and the target data verification value in the target configuration information as a request header, so that the target server verifies the configuration information verification request with the corresponding local configuration information of the target server, and feeds back the obtained verification result to the target client;

[0097] an abnormality feedback unit, configured to obtain the verification result fed back by the target server, and if the verification result indicates that the target configuration information fails verification, determine that the target configuration data is abnormal, and provide feedback on the corresponding abnormality;

[0098] Accordingly, the request initiating submodule may specifically include:

[0099] a configuration identification information determining unit, configured to determine the target configuration data, the target data verification value, and the configuration identification information in the configuration information verification request;

[0100] a local configuration information determining unit, configured to determine local configuration information corresponding to the target configuration data from the local portion of the target server according to the configuration identification information;

[0101] a first check value comparison unit, configured to compare the target data check value with the local data check value in the local configuration information to obtain a corresponding first comparison result;

[0102] a first verification result determining unit, configured to obtain a verification result indicating that the target configuration information has passed verification if the first comparison result indicates that the target data verification value is consistent with the local data verification value;

[0103] The second verification result determining unit is configured to obtain a verification result indicating that the target configuration information verification fails if the first comparison result indicates that the target data verification value is inconsistent with the local data verification value.

[0104] In some specific implementations, the information storage module 12 may specifically include:

[0105] an information storage unit, configured to store the target configuration information in a local cache having an expiration time, so that after the expiration time expires, a configuration update request including the configuration identification information is initiated to the target server, so that the target server determines first current configuration information corresponding to the target configuration information locally based on the configuration identification information in the configuration update request, and feeds the first current configuration information back to the target client;

[0106] A time updating unit is configured to obtain the first current configuration information fed back by the target server, replace the target configuration information in the cache with the first current configuration information, and update the expiration time.

[0107] Accordingly, see Figure 5 As shown, an embodiment of the present application further provides an application configuration information management device, which is applied to a target server in a server cluster of a configuration information management system, wherein the configuration information management system further includes an address server, a target client, and a management console for operating and maintaining configuration information; wherein the device includes:

[0108] The instruction acquisition module 21 is used to obtain a target configuration information acquisition instruction initiated by the target client; the target configuration information acquisition instruction is an instruction for obtaining target configuration information initiated by the target client to the target server according to the server address list; the server address list is a server address list of the server cluster obtained by the target client from the corresponding address server according to the pre-bound address server domain name;

[0109] A first information feedback module 22 is configured to feed back the target configuration information stored in a local target file to the target client according to the target configuration information acquisition instruction, so that the target client saves the target configuration information to a local cache and initiates a configuration change check request to the target server based on a preset configuration change check frequency; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information;

[0110] A result feedback module 23 is configured to obtain the configuration change check request initiated by the target client, determine whether the target configuration data has changed based on the configuration change check request, and feed back the obtained determination result to the target client, so that the target client can initiate a configuration acquisition request to the target server after the determination result indicates that the target configuration data has changed;

[0111] The second information feedback module 24 is used to feed back the changed target configuration information to the target client based on the configuration acquisition request initiated by the target client; the changed target configuration information is the configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

[0112] As can be seen from the above, the target server in the server cluster of the embodiment of the present application obtains the target configuration information acquisition instruction initiated by the target client according to the server address list, and feeds back the target configuration information in the local target file to the target client according to the target configuration information acquisition instruction, so that the target client saves it to the local cache, and initiates a configuration change check request at a preset frequency. The target server receives the configuration change check request, determines whether the target configuration data has changed, and feeds back the result to the target client. If the data has changed, the target server will feed back the target configuration information modified based on the configuration change instruction of the management console to the target client according to the instruction. In this way, through the above process of the embodiment of the present application, on the one hand, before the target server in the server cluster performs service operations, the address is first registered with the address server, so that the target client can obtain the address of the server in the server cluster through the address server, thereby realizing the expansion, reduction, online and offline of the server cluster without perception and transparency to the application; on the other hand, the MD5 value is used to assist in judging whether the target configuration data has changed, and the MD5 value is saved in advance, thereby improving the efficiency of data change checking; on the other hand, a hybrid storage method of database and local files is used to store data. When the target client needs to obtain configuration information, the local file is accessed for feedback, so that when a problem occurs in the database, the feedback of information is still not affected. Not only is the decoupling of database and target client access achieved, but the response efficiency of data acquisition is also improved by directly reading local files, avoiding the performance delay that may be caused by database queries, while ensuring the high availability of the system, optimizing the user experience, and then optimizing the management method of configuration information to solve the problem of persistent storage management of configuration information in distributed systems.

[0113] In some specific implementations, the application configuration information management device may further include:

[0114] An address registration unit, configured to register the IP addresses of several servers in the server cluster with the address server, so that the address server adds the IP addresses to the server address list;

[0115] The address adding unit is used to initiate a server address list update request to the address server if the number of servers in the server cluster changes, so that the address server can cancel the IP address corresponding to the server to be cancelled from the server address list according to the server address list update request, or add the IP address corresponding to the server to be added to the server address list.

[0116] In some specific implementations, the result feedback module 23 may specifically include:

[0117] an information acquisition unit, configured to acquire the target data check value and the configuration identification information in the configuration change check request;

[0118] a check value determining unit, configured to determine, based on the configuration identification information, local second current configuration information corresponding to the target configuration information, and determine a current data check value in the second current configuration information;

[0119] a second check value comparison unit, configured to compare the current data check value with the target data check value to obtain a corresponding second comparison result;

[0120] a first judgment result feedback unit, configured to judge that the target configuration data has not been changed if the second comparison result indicates that the current data check value is consistent with the target data check value, and to feed back a corresponding judgment result to the target client;

[0121] The second judgment result feedback unit is configured to judge that the target configuration data has been changed if the second comparison result indicates that the current data check value is inconsistent with the target data check value, and feed back a corresponding judgment result to the target client.

[0122] In some specific implementations, the application configuration information management device may further include:

[0123] An information writing unit, configured to write the configuration information to be synchronized into a target database and a local computer if the management console detects that there is configuration information to be synchronized.

[0124] An information transfer unit is used to send information synchronization requests to other servers in the server cluster except the target server, so that after receiving the information synchronization request, the other servers transfer the configuration information to be synchronized in the target database to their respective local locations, or, based on a preset information synchronization frequency, transfer several configuration information to be synchronized in the target database to their respective local locations through the other servers.

[0125] Furthermore, the embodiment of the present application also discloses an electronic device, Figure 6This is a structural diagram of an electronic device 30 according to an exemplary embodiment. The content in the diagram should not be considered as any limitation on the scope of use of this application. The electronic device 30 may specifically include: at least one processor 31, at least one memory 32, a power supply 33, a communication interface 34, an input / output interface 35, and a communication bus 36. The memory 32 is used to store a computer program, which is loaded and executed by the processor 31 to implement the relevant steps in the configuration information management method of the application disclosed in any of the aforementioned embodiments. In addition, the electronic device 30 in this embodiment may specifically be an electronic computer.

[0126] In this embodiment, the power supply 33 is used to provide operating voltage for each hardware device on the electronic device 30; the communication interface 34 can create a data transmission channel between the electronic device 30 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 35 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0127] In addition, the memory 32 as a carrier for resource storage can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include an operating system 321, a computer program 322, etc., and the storage method can be temporary storage or permanent storage.

[0128] The operating system 321 is used to manage and control the hardware devices on the electronic device 30 and the computer program 322. The operating system 321 can be Windows Server, NetWare, Unix, Linux, etc. In addition to including a computer program capable of implementing the vehicle diagnostic data transmission method performed by the electronic device 30 disclosed in any of the aforementioned embodiments, the computer program 322 can further include computer programs capable of performing other specific tasks.

[0129] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when executed by a processor, the computer program implements the aforementioned disclosed method for managing configuration information of an application program. The specific steps of this method can be referred to the corresponding contents disclosed in the aforementioned embodiments and will not be repeated here.

[0130] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.

[0131] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0132] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0133] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0134] The above is a detailed introduction to the technical solution provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for managing configuration information of an application, characterized in that: The method is applied to a target client of a configuration information management system, wherein the configuration information management system further includes an address server, a server cluster, and a management console for operating and maintaining configuration information; wherein the method includes: After the target application is started, the server address list of the server cluster is obtained from the corresponding address server according to the pre-bound address server domain name, and the target configuration information is checked in the local preset disaster recovery directory to obtain the corresponding query result; If the query result indicates that the target configuration information does not exist in the preset disaster recovery directory, then obtaining the target configuration information from the target server in the server cluster according to the server address list, and saving the target configuration information to a local cache; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information; Initiating a configuration change check request to the target server based on a preset configuration change check frequency, so that the target server determines whether the target configuration data has changed according to the configuration change check request, and feeds back the obtained determination result to the target client; Obtain a judgment result fed back by the target server. If the judgment result indicates that the target configuration data has changed, initiate a configuration acquisition request to the target server to obtain the changed target configuration information; the changed target configuration information is the configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

2. The method for managing application configuration information according to claim 1, wherein: After obtaining the target configuration information from the target server in the server cluster, the method further includes: Initiate a configuration information verification request to the target server using the target configuration data and the configuration identification information in the target configuration information as a request body and the target data verification value in the target configuration information as a request header, so that the target server verifies the configuration information verification request with the corresponding local configuration information of the target server, and feeds back the obtained verification result to the target client; Obtaining the verification result fed back by the target server, and if the verification result indicates that the target configuration information fails verification, determining that the target configuration data is abnormal, and feeding back the corresponding abnormal situation; Correspondingly, the verification based on the configuration information verification request and the corresponding local configuration information of the target server includes: Determining the target configuration data, the target data check value, and the configuration identification information in the configuration information verification request; Determining local configuration information corresponding to the target configuration data from the local portion of the target server according to the configuration identification information; Comparing the target data check value with the local data check value in the local configuration information to obtain a corresponding first comparison result; If the first comparison result indicates that the target data verification value is consistent with the local data verification value, a verification result indicating that the target configuration information has passed verification is obtained; If the first comparison result indicates that the target data verification value is inconsistent with the local data verification value, a verification result indicating that the target configuration information verification fails is obtained.

3. The method for managing application configuration information according to claim 1, wherein: Saving the target configuration information to a local cache includes: Saving the target configuration information in a local cache with an expiration time, so that after the expiration time expires, a configuration update request including the configuration identification information is initiated to the target server, so that the target server determines the first current configuration information corresponding to the target configuration information locally based on the configuration identification information in the configuration update request, and feeds the first current configuration information back to the target client; The first current configuration information fed back by the target server is obtained, and the target configuration information in the cache is replaced by the first current configuration information, and the expiration time is updated.

4. A method for managing configuration information of an application, characterized in that: A target server in a server cluster of a configuration information management system is applied, wherein the configuration information management system further includes an address server, a target client, and a management console for operating and maintaining configuration information; wherein the method includes: Obtaining a target configuration information acquisition instruction initiated by the target client; the target configuration information acquisition instruction is an instruction initiated by the target client to the target server for obtaining target configuration information according to the server address list; the server address list is a server address list of the server cluster obtained by the target client from the corresponding address server according to the pre-bound address server domain name; Feeding back the target configuration information stored in the local target file to the target client according to the target configuration information acquisition instruction, so that the target client saves the target configuration information to the local cache and initiates a configuration change check request to the target server based on a preset configuration change check frequency; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information; Obtaining the configuration change check request initiated by the target client, determining whether the target configuration data has changed based on the configuration change check request, and feeding back the obtained determination result to the target client, so that the target client can initiate a configuration acquisition request to the target server after the determination result indicates that the target configuration data has changed; The changed target configuration information is fed back to the target client based on the configuration acquisition request initiated by the target client; the changed target configuration information is configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

5. The method for managing application configuration information according to claim 4, wherein: Before obtaining the target configuration information obtaining instruction initiated by the target client, the method further includes: Registering the IP addresses of several servers in the server cluster with the address server so that the address server adds the IP addresses to the server address list; If the number of servers in the server cluster changes, a server address list update request is initiated to the address server so that the address server can cancel the IP address corresponding to the server to be cancelled from the server address list according to the server address list update request, or add the IP address corresponding to the server to be added to the server address list.

6. The method for managing application configuration information according to claim 4, wherein: The determining, according to the configuration change check request, whether the target configuration data has changed, and feeding back the obtained determination result to the target client, includes: Obtaining the target data check value and the configuration identification information in the configuration change check request; Determining, based on the configuration identification information, second current configuration information locally corresponding to the target configuration information, and determining a current data check value in the second current configuration information; Comparing the current data check value with the target data check value to obtain a corresponding second comparison result; If the second comparison result indicates that the current data check value is consistent with the target data check value, it is determined that the target configuration data has not been changed, and the corresponding determination result is fed back to the target client; If the second comparison result indicates that the current data check value is inconsistent with the target data check value, it is determined that the target configuration data has been changed, and the corresponding determination result is fed back to the target client.

7. The method for managing application configuration information according to any one of claims 4 to 6, characterized in that: Also includes: If the management console detects that there is configuration information to be synchronized, the configuration information to be synchronized is written into the target database and the local computer; An information synchronization request is sent to other servers in the server cluster except the target server, so that after receiving the information synchronization request, the other servers transfer the configuration information to be synchronized in the target database to their respective local locations, or, based on a preset information synchronization frequency, transfer several configuration information to be synchronized in the target database to their respective local locations through the other servers.

8. A configuration information management device for an application, characterized in that: A target client applied to a configuration information management system, wherein the configuration information management system further includes an address server, a server cluster, and a management console for operating and maintaining configuration information; wherein the device includes: An information query module is used to obtain the server address list of the server cluster from the corresponding address server according to the pre-bound address server domain name after the target application is started, and to query whether the target configuration information exists in the local preset disaster recovery directory to obtain the corresponding query result; An information saving module is configured to obtain the target configuration information from a target server in the server cluster according to the server address list and save the target configuration information to a local cache if the query result indicates that the target configuration information does not exist in the preset disaster recovery directory; the target configuration information includes target configuration data, a target data check value corresponding to the target configuration data, and configuration identification information; a configuration change check request initiating module, configured to initiate a configuration change check request to the target server based on a preset configuration change check frequency, so that the target server determines whether the target configuration data has changed according to the configuration change check request, and feeds back the obtained determination result to the target client; A configuration acquisition request initiation module is used to obtain the judgment result fed back by the target server. If the judgment result indicates that the target configuration data has changed, a configuration acquisition request is initiated to the target server to obtain the changed target configuration information; the changed target configuration information is the configuration information obtained by changing the target configuration information based on the configuration change instruction obtained by the management console.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the configuration information management method for an application program according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that Used to store a computer program; wherein, when the computer program is executed by a processor, the configuration information management method of the application according to any one of claims 1 to 7 is implemented.