CN113342852B - Method and equipment for realizing distributed configuration - Google Patents

Method and equipment for realizing distributed configuration Download PDF

Info

Publication number
CN113342852B
CN113342852B CN202110645066.6A CN202110645066A CN113342852B CN 113342852 B CN113342852 B CN 113342852B CN 202110645066 A CN202110645066 A CN 202110645066A CN 113342852 B CN113342852 B CN 113342852B
Authority
CN
China
Prior art keywords
configuration
distributed
updated
service system
field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110645066.6A
Other languages
Chinese (zh)
Other versions
CN113342852A (en
Inventor
吴义良
王辉
程伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wanwu Xinsheng Environmental Technology Group Co
Original Assignee
Shanghai Wanwu Xinsheng Environmental Technology Group Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wanwu Xinsheng Environmental Technology Group Co filed Critical Shanghai Wanwu Xinsheng Environmental Technology Group Co
Priority to CN202110645066.6A priority Critical patent/CN113342852B/en
Publication of CN113342852A publication Critical patent/CN113342852A/en
Application granted granted Critical
Publication of CN113342852B publication Critical patent/CN113342852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The application aims to provide a method and equipment for realizing distributed configuration, wherein a distributed configuration client is introduced into a service system, and a configuration field to be updated in the service system is scanned by the distributed configuration client to be locally cached; pulling configuration information of the configuration field to be updated from a distributed configuration server corresponding to a service system; and verifying the pulled configuration information of the configuration field to be updated, and updating the configuration field of the local cache according to a verification result. Therefore, the independence and the stability of the configuration management system can be ensured, the maintenance cost of the system is reduced, and the timely feedback of the verification result and the consistency of the configuration data are ensured.

Description

Method and equipment for realizing distributed configuration
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method and apparatus for implementing distributed configuration.
Background
The distributed configuration mainly solves the problems of unified management and real-time change of service configuration in a distributed system cluster. Most current implementations lack validity checks for service configurations, which results in mishandling of the configuration that can lead to a series of on-line problems. Currently there are generally several solutions: 1) Checking by adding service check logic in the configuration management system; 2) Checking when the service system monitors the configuration change, refusing to update the configuration and alarming to notify service personnel if the configuration change does not pass. The disadvantages of the two modes are as follows: 1) The strong coupling of the configuration management system and the service system can seriously affect the stability and maintenance cost of the configuration management system; 2) The verification result during configuration change cannot be directly fed back to the service personnel, and if the verification result alarms and the service personnel are not timely touched, the situation that the configuration in the service management system is inconsistent with the configuration in the service system can occur.
Disclosure of Invention
An object of the present application is to provide a method and apparatus for implementing distributed configuration, which solve the problems in the prior art that strong coupling between a configuration management system and a service system seriously affects stability and maintenance cost of the configuration management system, and fails to guarantee timely feedback of a verification result.
According to one aspect of the present application, there is provided a method of distributed configuration implementation, the method comprising:
introducing a distributed configuration client into a service system, and scanning a configuration field to be updated in the service system by the distributed configuration client to carry out local caching;
pulling configuration information of the configuration field to be updated from a distributed configuration server corresponding to a service system;
and verifying the pulled configuration information of the configuration field to be updated, and updating the configuration field of the local cache according to a verification result.
Optionally, scanning, by the distributed configuration client, a configuration field to be updated in the service system for local caching, including:
and scanning a configuration field to be updated in the service system and a configuration validity checker corresponding to the configuration field to be updated by the distributed configuration client to perform local caching.
Optionally, before pulling the configuration information of the configuration field to be updated from the distributed configuration server corresponding to the service system, the method includes:
and starting a remote call service, and registering the domain name or the IP address of the service system to the distributed configuration server.
Optionally, pulling the configuration information of the configuration field to be updated from the distributed configuration server corresponding to the service system, including:
refreshing a change mark of the current latest configuration change after the distributed configuration client finishes local caching;
comparing the updated change mark of the latest configuration change with the change mark in the distributed server, and if the updated change mark is inconsistent with the change mark in the distributed server, pulling the configuration information of the configuration field to be updated from the distributed configuration server corresponding to the service system.
Optionally, verifying the pulled configuration information of the configuration field to be updated includes:
and verifying the pulled configuration information of the configuration field to be updated according to the online state of the service system.
Optionally, verifying the pulled configuration information of the configuration field to be updated according to the online state of the service system, and updating the locally cached configuration field according to a verification result, including:
if the online state of the service system is not online, acquiring a configuration validity checker from a local cache through a configuration key, and checking the pulled configuration information of the configuration field to be updated by using the configuration validity checker;
if the verification result is that the verification fails, the configuration is not updated and the alarm is given, and if the verification result is that the verification is successful, the configuration field of the local cache is directly updated.
Optionally, verifying the pulled configuration information of the configuration field to be updated according to the online state of the service system, and updating the locally cached configuration field according to a verification result, including:
if the online state of the service system is online, calling a configuration validity checker corresponding to a configuration key in the service system through a domain name or an IP address registered in a distributed configuration server, and checking the pulled configuration information of the configuration field to be updated by using the called configuration validity checker;
if the verification result is that the verification fails, the updating configuration is not stored any more, and meanwhile, the verification result is fed back to service personnel, and if the verification result is that the verification is successful, the configuration change information is stored, and meanwhile, the configuration change mark is refreshed.
Optionally, the method comprises:
establishing long connection between the distributed configuration client and the distributed configuration server;
transmitting a change notification of a configuration change flag on the distributed configuration server to the distributed configuration client through the long connection;
and the distributed configuration client pulls all the configuration fields to be updated of the local cache from the distributed configuration server according to the change notification so as to update the distributed configuration information.
According to another aspect of the present application, there is also provided an apparatus for distributed configuration implementation, the apparatus including:
the cache device is used for introducing a distributed configuration client into the service system, and scanning a configuration field to be updated in the service system through the distributed configuration client to carry out local cache;
the pulling device is used for pulling the configuration information of the configuration field to be updated from the distributed configuration server corresponding to the service system;
and the verification device is used for verifying the pulled configuration information of the configuration field to be updated, and updating the configuration field of the local cache according to the verification result.
According to yet another aspect of the present application, there is also provided an apparatus for distributed configuration implementation, the apparatus including:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform operations of the method as described above.
According to yet another aspect of the present application, there is also provided a computer readable medium having stored thereon computer readable instructions executable by a processor to implement a method as described above.
Compared with the prior art, the method and the device have the advantages that the distributed configuration client is introduced into the service system, and the configuration field to be updated in the service system is scanned by the distributed configuration client to be locally cached; pulling configuration information of the configuration field to be updated from a distributed configuration server corresponding to a service system; and verifying the pulled configuration information of the configuration field to be updated, and updating the configuration field of the local cache according to a verification result. Therefore, the independence and the stability of the configuration management system can be ensured, the maintenance cost of the system is reduced, and the timely feedback of the verification result and the consistency of the configuration data are ensured.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
FIG. 1 illustrates a method flow diagram for a distributed configuration implementation provided in accordance with an aspect of the subject application;
FIG. 2 is a schematic diagram illustrating a distributed configuration implementation method supporting verification in an embodiment of the present application;
fig. 3 illustrates a schematic structural diagram of a device implemented in a distributed configuration, provided in accordance with another aspect of the present application.
The same or similar reference numbers in the drawings refer to the same or similar parts.
Detailed Description
The present application is described in further detail below with reference to the accompanying drawings.
In one typical configuration of the present application, the terminal, the devices of the service network, and the trusted party each include one or more processors (e.g., central processing units (Central Processing Unit, CPU)), input/output interfaces, network interfaces, and memory.
The Memory may include non-volatile Memory in a computer readable medium, random access Memory (Random Access Memory, RAM) and/or non-volatile Memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase-Change RAM (PRAM), static random access Memory (Static Random Access Memory, SRAM), dynamic random access Memory (Dynamic Random Access Memory, DRAM), other types of Random Access Memory (RAM), read-Only Memory (ROM), electrically erasable programmable read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash Memory or other Memory technology, read-Only optical disk read-Only Memory (Compact Disc Read-Only Memory, CD-ROM), digital versatile disks (Digital Versatile Disk, DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by the computing device. Computer readable media, as defined herein, does not include non-transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
FIG. 1 illustrates a method flow diagram for a distributed configuration implementation provided in accordance with an aspect of the present application, the method comprising: step S11 to step S13, wherein,
in step S11, a distributed configuration client is introduced into a service system, and a configuration field to be updated in the service system is scanned by the distributed configuration client to perform local caching; when the service management in the distributed cluster is performed, a distributed configuration client is introduced to a service system side to be managed, the distributed configuration client is also a configuration component, all configuration fields needing updating in the service system are scanned through the introduced configuration component during initialization, so that local caching is performed, the local caching is distributed configuration information in the service system, and maintenance is performed through the distributed configuration client.
In step S12, the configuration information of the configuration field to be updated is pulled from the distributed configuration server corresponding to the service system; the distributed configuration client is introduced into the service system, and there is a distributed configuration server corresponding to the service system, the distributed configuration server performs data interaction with the distributed configuration client, and the distributed configuration server stores relevant configuration information of the service system, so that when whether to update the configuration information needs to be checked, the current configuration information needs to be pulled from the distributed configuration server, namely, the configuration information of a configuration field to be updated in the service system is pulled, and a subsequent checking step is performed.
In step S13, the pulled configuration information of the configuration field to be updated is checked, and the configuration field of the local cache is updated according to the check result. And checking the configuration information pulled from the distributed configuration server side, thereby judging whether to update the configuration field of the local cache.
In some embodiments of the present application, in step S11, the distributed configuration client scans a configuration field to be updated in the service system and a configuration validity checker corresponding to the configuration field to be updated for local caching. The distributed configuration client scans all the fields to be updated and configured and the configuration validity checker corresponding to the fields to perform local caching during initialization, so that the configuration client is used for increasing the check expansion points. And simultaneously, starting a remote call service, and registering the domain name or the IP address of the service system to a distributed configuration server. The remote calling service can be started through netty, and the domain name or ip of the service system is registered to the configuration system server, so that when the configuration management system changes configuration, the RPC service provided by the configuration client calls the calling implementation provided by the service system for configuration to perform validity check, and the purpose of avoiding online faults caused by configuration errors caused by misoperation is achieved.
In an embodiment of the present application, in step S12, after the distributed configuration client finishes local caching, the change flag of the current latest configuration change is refreshed; comparing the updated change mark of the latest configuration change with the change mark in the distributed server, and if the updated change mark is inconsistent with the change mark in the distributed server, pulling the configuration information of the configuration field to be updated from the distributed configuration server corresponding to the service system. The distributed configuration client and the distributed configuration server mainly judge whether to update the local configuration by pulling the configuration information again through the change mark, when the distributed configuration client updates the cache of the local configuration information each time, the change mark which is updated currently is refreshed, and the distributed configuration client and the distributed configuration server carry out communication to confirm whether the configuration change happens or not each time, the distributed configuration client and the distributed configuration server can identify whether the change mark of the distributed configuration client is consistent with the change mark of the distributed configuration server or not, if the change mark is inconsistent with the change mark of the distributed configuration server, the distributed configuration client pulls the configuration information of all the configuration fields to be updated of the local cache from the distributed configuration server to prepare for updating.
In some embodiments of the present application, in step S13, the pulled configuration information of the configuration field to be updated is checked according to the online state of the service system. Specifically, if the online state of the service system is not online, acquiring a configuration validity checker from a local cache through a configuration key, and checking the pulled configuration information of the configuration field to be updated by using the configuration validity checker; if the verification result is that the verification fails, the configuration is not updated and the alarm is given, and if the verification result is that the verification is successful, the configuration field of the local cache is directly updated. If the online state of the service system is online, calling a configuration validity checker corresponding to a configuration key in the service system through a domain name or an IP address registered in a distributed configuration server, and checking the pulled configuration information of the configuration field to be updated by using the called configuration validity checker; if the verification result is that the verification fails, the updating configuration is not stored any more, and meanwhile, the verification result is fed back to service personnel, and if the verification result is that the verification is successful, the configuration change information is stored, and meanwhile, the configuration change mark is refreshed.
In order to avoid that the verification result during configuration change cannot be directly fed back to service personnel, the situation that the configuration in the service management system is inconsistent with the configuration in the service system can occur, and in the embodiment of the application, verification is performed in different modes according to the online state of the service system; when the service system is not on line, in order to avoid verification failure caused by changing configuration of service personnel in a configuration management system when a configuration validity checker corresponding to newly added service configuration in the service system is not on line, the configuration information needs to be subjected to validity verification again when the service system is started, and the process is as follows: when updating configuration, the configuration validity checker is obtained from the local cache through a configuration KEY (configuration KEY), then verification is carried out, if the configuration is not passed, the configuration is not updated and an alarm is given, if the configuration is passed, the local configuration is directly updated, and meanwhile, the local configuration change mark is refreshed. When the service system is on line, service personnel can call a configuration validity checker corresponding to a configuration KEY in the service system to check through a domain name or ip registered in the service system initialization when the service personnel changes configuration in the configuration management system, if the verification is not passed, the updating configuration is not saved, meanwhile, a check result is directly returned to the service personnel to adjust, if the verification is passed, the configuration change information is directly saved, and meanwhile, the configuration change mark is refreshed. Therefore, the coupling between the configuration verification operation of the service system and the configuration management system can be removed, the independence and the stability of the configuration management system are ensured, the maintenance cost of the system is reduced, the timely feedback of the verification result and the consistency of the configuration in the service system and the configuration data in the configuration management system are ensured through the synchronous processing of the verification operation. The refreshing configuration change mark occurs at the distributed configuration server, and the distributed configuration client and the distributed configuration server judge whether to re-pull the configuration information to update the local configuration or not through the change mark. The specific operation of configuration validity verification is completed by remotely calling a service system, and an operator adjusts configuration information through a distributed configuration management system and then performs verification and storage operation in a distributed configuration server.
In one embodiment of the present application, the method includes: establishing long connection between the distributed configuration client and the distributed configuration server; sending a change notification of a configuration change flag on the distributed configuration server to the distributed configuration client over the long connection; and the distributed configuration client pulls all the configuration fields to be updated of the local cache from the distributed configuration server according to the change notification so as to update the distributed configuration information. Here, the distributed configuration client and the distributed configuration server communicate in real time through long connection, and when the configuration change mark changes, the distributed configuration client repeats the processes of step S12 and step S13, so as to implement the update operation of the local configuration.
In a specific embodiment of the present application, a service system provides a verification implementation for a configuration KEY, and then when the configuration management system changes configuration, the RPC service provided by the configuration client invokes the service system to perform validity verification for the call implementation provided by the configuration KEY, so as to finally achieve the purpose of avoiding online faults caused by configuration errors caused by misoperation, and a specific process is shown in fig. 2: introducing a distributed configuration client into a service system and initializing the distributed configuration client, scanning a service system configuration field through the distributed configuration client to perform cache unified management, preparing to pull the value of a service side configuration field to update the local configuration field, pulling configuration information corresponding to the service system from the distributed configuration service side according to a configured service side address, wherein the pulled configuration information is used locally when the service system is started, namely, updating the value of the service system configuration field, checking the configuration through a service system configuration checker, judging whether the check passes or not, stopping updating and alarming if the check passes, directly updating the configuration, returning a configuration check result to the configuration service side, judging if the check passes, notifying that the client configuration is changed, if the check passes, directly feeding back to an operator, changing the service configuration by the operator, and preparing to pull the value of the service side configuration information again to update the local configuration field, wherein the operator needs to notify the configuration information in the distributed configuration client synchronous updating service system if the change is successful when the configuration information is allocated to the configuration management system; when an operator changes service configuration, the distributed configuration server side can check the configuration again by calling a configuration validity checker in the service system.
Furthermore, embodiments of the present application provide a computer readable medium having stored thereon computer readable instructions executable by a processor to implement a method of the aforementioned distributed configuration implementation.
Corresponding to the above-described method, the present application further provides a terminal, which includes modules or units capable of performing the steps of the method described in fig. 1 or fig. 2 or the respective embodiments, where the modules or units may be implemented by hardware, software or a combination of hardware and software, and the present application is not limited thereto. For example, in an embodiment of the present application, there is also provided an apparatus for distributed configuration implementation, where the apparatus includes:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform operations of the method as described above.
For example, computer-readable instructions, when executed, cause the one or more processors to:
introducing a distributed configuration client into a service system, and scanning a configuration field to be updated in the service system by the distributed configuration client to carry out local caching;
pulling configuration information of the configuration field to be updated from a distributed configuration server corresponding to a service system;
and verifying the pulled configuration information of the configuration field to be updated, and updating the configuration field of the local cache according to a verification result.
Fig. 3 shows a schematic structural diagram of a device implemented in a distributed configuration according to another aspect of the present application, where the device includes: the system comprises a caching device 11, a pulling device 12 and a checking device 13, wherein the caching device 11 is used for introducing a distributed configuration client into a service system, and scanning a configuration field to be updated in the service system through the distributed configuration client to carry out local caching; the pulling device 12 is configured to pull configuration information of the configuration field to be updated from a distributed configuration server corresponding to the service system; the verification device 13 is configured to verify the pulled configuration information of the configuration field to be updated, and update the configuration field of the local cache according to the verification result.
It should be noted that, the contents executed by the buffer 11, the pull 12 and the check 13 are the same as or corresponding to the contents in the steps S11, S12 and S13, and are not described herein for brevity.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, using Application Specific Integrated Circuits (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions as described above. Likewise, the software programs of the present application (including associated data structures) may be stored on a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. In addition, some steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
Furthermore, portions of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application by way of operation of the computer. Program instructions for invoking the methods of the present application may be stored in fixed or removable recording media and/or transmitted via a data stream in a broadcast or other signal bearing medium and/or stored within a working memory of a computer device operating according to the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to operate a method and/or a solution according to the embodiments of the present application as described above.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the apparatus claims can also be implemented by means of one unit or means in software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.

Claims (8)

1. A method for distributed configuration implementation, the method comprising:
introducing a distributed configuration client into a service system, and scanning a configuration field to be updated in the service system by the distributed configuration client to carry out local caching;
pulling configuration information of the configuration field to be updated from a distributed configuration server corresponding to a service system;
if the online state of the service system is not online, acquiring a configuration validity checker from a local cache through a configuration key, and checking the pulled configuration information of the configuration field to be updated by using the configuration validity checker;
if the verification result is that the verification fails, the configuration is not updated and the alarm is given, and if the verification result is that the verification is successful, the configuration field of the local cache is directly updated;
if the online state of the service system is online, calling a configuration validity checker corresponding to a configuration key in the service system through a domain name or an IP address registered in a distributed configuration server, and checking the pulled configuration information of the configuration field to be updated by using the called configuration validity checker;
if the verification result is that the verification fails, the updating configuration is not stored any more, and meanwhile, the verification result is fed back to service personnel, and if the verification result is that the verification is successful, the configuration change information is stored, and meanwhile, the configuration change mark is refreshed.
2. The method of claim 1, wherein scanning configuration fields to be updated in the business system for local caching by the distributed configuration client comprises:
and scanning a configuration field to be updated in the service system and a configuration validity checker corresponding to the configuration field to be updated by the distributed configuration client to perform local caching.
3. The method of claim 2, wherein before pulling the configuration information of the configuration field to be updated from the distributed configuration server corresponding to the service system, the method comprises:
and starting a remote call service, and registering the domain name or the IP address of the service system to the distributed configuration server.
4. The method of claim 1, wherein pulling the configuration information of the configuration field to be updated from the distributed configuration server corresponding to the service system comprises:
refreshing a change mark of the current latest configuration change after the distributed configuration client finishes local caching;
comparing the updated change mark of the latest configuration change with the change mark in the distributed server, and if the updated change mark is inconsistent with the change mark in the distributed server, pulling the configuration information of the configuration field to be updated from the distributed configuration server corresponding to the service system.
5. The method according to claim 1, characterized in that the method comprises:
establishing long connection between the distributed configuration client and the distributed configuration server;
transmitting a change notification of a configuration change flag on the distributed configuration server to the distributed configuration client through the long connection;
and the distributed configuration client pulls all the configuration fields to be updated of the local cache from the distributed configuration server according to the change notification so as to update the distributed configuration information.
6. An apparatus for distributed configuration implementation, the apparatus comprising:
the cache device is used for introducing a distributed configuration client into the service system, and scanning a configuration field to be updated in the service system through the distributed configuration client to carry out local cache;
the pulling device is used for pulling the configuration information of the configuration field to be updated from the distributed configuration server corresponding to the service system;
the verification device is used for acquiring a configuration validity checker from the local cache through a configuration key if the online state of the service system is not online, verifying the pulled configuration information of the configuration field to be updated by using the configuration validity checker, if the verification result is that the verification is failed, not updating the configuration and alarming any more, and if the verification result is that the verification is successful, directly updating the configuration field of the local cache;
and the verification device is used for calling a configuration validity checker corresponding to a configuration key in the service system through a domain name or an IP address registered in the distributed configuration server when the online state of the service system is online, verifying the pulled configuration information of the configuration field to be updated by using the called configuration validity checker, if the verification result is that the verification fails, not storing the update configuration and feeding the verification result back to service personnel at the same time, and if the verification result is that the verification is successful, storing configuration change information and refreshing a change mark of the configuration.
7. An apparatus for distributed configuration implementation, the apparatus comprising:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform the operations of the method of any one of claims 1 to 5.
8. A computer readable medium having stored thereon computer readable instructions executable by a processor to implement the method of any of claims 1 to 5.
CN202110645066.6A 2021-06-09 2021-06-09 Method and equipment for realizing distributed configuration Active CN113342852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110645066.6A CN113342852B (en) 2021-06-09 2021-06-09 Method and equipment for realizing distributed configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110645066.6A CN113342852B (en) 2021-06-09 2021-06-09 Method and equipment for realizing distributed configuration

Publications (2)

Publication Number Publication Date
CN113342852A CN113342852A (en) 2021-09-03
CN113342852B true CN113342852B (en) 2023-06-30

Family

ID=77476698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110645066.6A Active CN113342852B (en) 2021-06-09 2021-06-09 Method and equipment for realizing distributed configuration

Country Status (1)

Country Link
CN (1) CN113342852B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804121A (en) * 2018-05-28 2018-11-13 泰康保险集团股份有限公司 Method for edition management, device, medium in distributed system and electronic equipment
CN111813791A (en) * 2020-06-17 2020-10-23 上海悦易网络信息技术有限公司 Method and equipment for distributed transaction compensation
CN112817953A (en) * 2021-01-22 2021-05-18 深圳依时货拉拉科技有限公司 Data verification method and device, computer equipment and computer-readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10073880B2 (en) * 2015-08-06 2018-09-11 International Business Machines Corporation Vertical tuning of distributed analytics clusters
CN106095462A (en) * 2016-06-22 2016-11-09 南京南瑞继保电气有限公司 A kind of embedded distribution system program configuration version management method
CN107483250A (en) * 2017-08-21 2017-12-15 郑州云海信息技术有限公司 Decentralized configuration management method, device and the system for realizing decentralized configuration management
US10367957B1 (en) * 2018-10-12 2019-07-30 Xerox Corporation Highly-scalable native fleet management
CN109471865B (en) * 2018-11-06 2020-12-08 用友网络科技股份有限公司 Offline data management method, system, server and storage medium
CN110825420B (en) * 2019-11-26 2023-09-22 中国银行股份有限公司 Method, device, equipment and storage medium for updating configuration parameters of distributed cluster
CN111158792B (en) * 2020-01-02 2023-05-16 普元信息技术股份有限公司 Service parameter verification processing system and method capable of realizing dynamic configuration under distributed architecture
CN112486531A (en) * 2020-11-24 2021-03-12 航天信息股份有限公司 Method and system for updating equipment application software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804121A (en) * 2018-05-28 2018-11-13 泰康保险集团股份有限公司 Method for edition management, device, medium in distributed system and electronic equipment
CN111813791A (en) * 2020-06-17 2020-10-23 上海悦易网络信息技术有限公司 Method and equipment for distributed transaction compensation
CN112817953A (en) * 2021-01-22 2021-05-18 深圳依时货拉拉科技有限公司 Data verification method and device, computer equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN113342852A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
CN107729176B (en) Disaster recovery method and disaster recovery system for configuration file management system
CN113452617B (en) Dynamic gateway route management method, device and storage medium
US11362912B2 (en) Support ticket platform for improving network infrastructures
US10936591B2 (en) Idempotent command execution
KR20190070332A (en) Fault-tolerant automatic secret rotation technique
CN112486814A (en) System migration test method, migration test system, device and storage medium
CN114144761A (en) Publishing system, pushing method, application device, receiving device and service management device
CN113342852B (en) Method and equipment for realizing distributed configuration
CN110795495A (en) Data processing method and device, electronic equipment and computer readable medium
CN112202605A (en) Service configuration method, device, equipment and storage medium
CN107528703B (en) Method and equipment for managing node equipment in distributed system
CN111181779A (en) Method and device for testing cluster failover performance and storage medium
CN116737662A (en) Method, device, electronic equipment and storage medium for processing business data
CN116957764A (en) Account data processing method and device, electronic equipment and storage medium
US20170139758A1 (en) Nondeterministic Operation Execution Environment Utilizing Resource Registry
CN107197018B (en) Method and device for data synchronization between systems
US20200099788A1 (en) Context data management interface for contact center
CN111934886A (en) RSA-based credit investigation report unified display method
CN111310043B (en) Method and device for pushing information
CN112882908B (en) Method and device for generating information
CN116643733B (en) Service processing system and method
CN117369955A (en) Transaction processing method and device and electronic equipment
CN113157615B (en) Service bus communication method, electronic equipment and computer storage medium
CN114911498A (en) PaaS distributed system configuration information updating method, device and system
CN115344585A (en) Data version management method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant