A configuration updating method and device, computer device, and storage medium

By introducing a two-tiered association mechanism of service-level version number and namespace version in the distributed system, the problem of fine-grained and efficient configuration version management in medium and large-scale distributed systems is solved. This enables efficient and unified release and query of configuration changes, avoids configuration coordination anomalies, and improves the stability and efficiency of the system.

CN123157243APending Publication Date: 2026-11-24CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611440607.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-16
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing configuration management solutions cannot meet the needs for fine-grained and efficient control of configuration versions in medium and large-scale distributed systems. In particular, when configuration projects are complex and versions change frequently, configuration coordination anomalies are likely to occur.

Method used

By introducing service-level version numbers, the versions of all namespaces within the service are uniformly associated, enabling a one-time release of configuration changes for multiple namespaces. Unchanged namespaces automatically retain the current version, and forward and reverse index mechanisms are used for fast query and rollback operations.

Benefits of technology

It enables efficient and unified release of configuration changes, avoids configuration coordination anomalies caused by independent namespace releases, improves query and rollback efficiency, and ensures the traceability and real-time nature of configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157243A_ABST
    Figure CN123157243A_ABST
Patent Text Reader

Abstract

The application relates to a configuration updating method and device, computer equipment and a storage medium. The method comprises the following steps: receiving a configuration change request of a target service; based on the configuration change request, generating a service-level version number, determining a namespace which is changed under the target service and a namespace which is not changed; based on the namespace which is changed, generating a corresponding newly-added namespace version number; based on the namespace which is not changed, taking a current version number of the namespace which is not changed as a continued namespace version number; storing configuration data of the changed namespace after the change and the newly-added namespace version number in a database; and obtaining an association relationship between the service-level version number and all namespace version numbers under the target service and storing the association relationship in the database, wherein the all namespace version numbers comprise the newly-added namespace version number and the continued namespace version number.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of big data technology, and in particular to a configuration update method, apparatus, computer equipment, and storage medium. Background Technology

[0002] In a distributed system architecture, the configuration center, as a core infrastructure, bears the core responsibility of centralized storage, distribution, and updating of configurations for all service nodes. The stability and efficiency of its configuration management directly determine the reliability of the distributed system. With the expansion of distributed system scale, the surge in the number of service nodes, and the popularization of microservice architecture, configuration changes are becoming increasingly frequent, highlighting the growing importance of configuration version management.

[0003] Traditional software configuration management typically uses static configuration files, which is clearly insufficient for scenarios with complex configuration projects and frequent version changes. Currently, there are various configuration center products in the industry, among which mainstream open-source configuration centers have implemented basic configuration version management functions. However, in practical applications, existing version management solutions cannot meet the needs of medium and large-scale distributed systems for fine-grained and efficient control over configuration versions. Summary of the Invention

[0004] Therefore, it is necessary to provide a configuration update method, apparatus, computer device, and storage medium to address the aforementioned technical problems.

[0005] Firstly, this application provides a configuration update method. The method includes:

[0006] Receive configuration change requests for the target service;

[0007] Based on the configuration change request, a service-level version number is generated, and the namespaces under the target service that have been changed and those that have not been changed are determined.

[0008] Based on the changed namespace, generate the corresponding new namespace version number;

[0009] Based on the unchanged namespace, the current version number of the unchanged namespace is used as the version number of the inherited namespace;

[0010] The modified configuration data of the changed namespace is stored in the database along with the version number of the newly added namespace;

[0011] Obtain the association between the service-level version number and all namespace version numbers under the target service and store it in the database. The namespace version numbers include the newly added namespace version number and the inherited namespace version number.

[0012] In one embodiment, the method further includes:

[0013] Receive a version query request, the version query request including the target service identifier and the target service level version number;

[0014] Based on the aforementioned association, obtain all namespace version numbers and corresponding configuration data corresponding to the target service-level version number;

[0015] Specifically, the namespace that has been modified returns configuration data corresponding to the version number of the newly added namespace, while the namespace that has not been modified returns configuration data corresponding to the version number of the namespace that has been retained.

[0016] In one embodiment, the method further includes:

[0017] Receive a rollback request for a target service, the rollback request including the target service identifier and the target service-level version number;

[0018] Based on the association, obtain the version information of all namespaces corresponding to the target service-level version number. The version information includes the new namespace version number corresponding to the namespace that has been changed and the existing version number corresponding to the namespace that has not been changed.

[0019] Update the current configuration of the target service to the configuration content corresponding to the version number of each namespace.

[0020] In one embodiment, the association includes a forward index and a reverse index;

[0021] The forward index uses the service identifier and the service-level version number as keys, and a list of all namespace version numbers under the target service as values. The list includes each namespace identifier and the corresponding newly added namespace version number or the namespace version number that is reused.

[0022] The reverse index uses the service identifier, namespace identifier, and namespace version number as keys, and the set of all service-level version numbers that use the namespace version number as values.

[0023] In one embodiment, the method further includes:

[0024] A configuration change notification is pushed to the associated nodes of the target service. The configuration change notification contains only the configuration data after the namespace change.

[0025] In one embodiment, using the current version number of the unchanged namespace as the inherited namespace version number, based on the unchanged namespace, includes:

[0026] The unchanged namespace does not add new storage configuration data, and the version number of the inherited namespace is associated with the configuration data already stored in the database.

[0027] Secondly, this application also provides a configuration update apparatus, the apparatus comprising:

[0028] The receiving module is used to receive configuration change requests from the target service.

[0029] The determination module is used to generate a service-level version number based on the configuration change request, and to determine the namespaces that have been changed and the namespaces that have not been changed under the target service;

[0030] The generation module is used to generate a corresponding new namespace version number based on the changed namespace;

[0031] Based on the unchanged namespace, the current version number of the unchanged namespace is used as the version number of the inherited namespace;

[0032] The storage module is used to store the modified configuration data of the changed namespace and the corresponding version number of the newly added namespace in the database;

[0033] Obtain the association between the service-level version number and all namespace version numbers under the target service and store it in the database. The namespace version numbers include the newly added namespace version number and the inherited namespace version number.

[0034] Thirdly, this disclosure also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of a configuration update method.

[0035] Fourthly, this disclosure also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of a configuration update method.

[0036] Fifthly, this disclosure also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of a configuration update method.

[0037] The above configuration update method has at least the following beneficial effects:

[0038] The embodiments provided in this disclosure unify the association of versions of all namespaces within a service through service-level version numbers. Configuration changes to the association of multiple namespaces can be completed in a single service-level release, with unmodified namespaces automatically retaining their current versions. When multiple namespaces within a service have dependencies, unified service-level version releases ensure that all changes take effect simultaneously, avoiding configuration coordination anomalies caused by independent releases of each namespace.

[0039] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments or conventional technologies of this disclosure, the accompanying drawings used in the description of the embodiments or conventional technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is an application environment diagram of the configuration update method in one embodiment;

[0042] Figure 2 This is a schematic diagram illustrating the configuration of a version management system in one embodiment of this disclosure;

[0043] Figure 3 This is a flowchart illustrating the configuration update method in one embodiment;

[0044] Figure 4 A flowchart illustrating the configuration update in one embodiment of this disclosure;

[0045] Figure 5 This is a structural block diagram of the configuration update device in one embodiment;

[0046] Figure 6 This is an internal structural diagram of a computer device in one embodiment;

[0047] Figure 7 This is an internal structure diagram of a server in one embodiment. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. It should be noted that existing industry solutions such as software, components, and models may be mentioned in the embodiments of this application. These should be considered exemplary and are intended only to illustrate the feasibility of implementing the technical solutions of this application, but do not imply that the applicant has already used or necessarily used such solutions.

[0049] It should be noted that the user information involved in this application, including but not limited to user device information and user personal information, and the data, including but not limited to data used for analysis, stored data, and displayed data, are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with relevant regulations. The acquisition, storage, use, and processing of data in the technical solution of this application all comply with the relevant provisions of national laws and regulations.

[0050] This disclosure provides a configuration update method that can be applied to, for example, Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located in the cloud or on other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0051] In some embodiments of this disclosure, a configuration version management system is provided. Figure 2 This is a schematic diagram of a version management system configured in one embodiment of the present disclosure. It mainly consists of 5 core modules. Each module runs independently and works in collaboration. The specific module composition, function and interaction relationship are as follows: (1) Version system management module: Its core function is to build and maintain a two-layer association system between service-level versions and namespace versions, generate service-level version numbers, and establish a bidirectional association mapping relationship between service-level versions and each namespace version. For example, when a new version of a service is released, only the namespace is changed to generate a new version. If the namespace is not changed, no new version is generated. It is directly associated with its old version and records the version association information, including the version identifier of each namespace. The old version identifier is directly reused.

[0052] (2) Configuration full storage module: Its core function is to receive service-level configuration release requests and store only the full configuration data and new version number of the namespaces that have changed under the service. The full configuration of the namespaces that have not changed is not stored again, and the full storage data of the old version is reused directly. At the same time, the service-level version number is associated with the version number of all namespaces and stored together, replacing the existing technology of independent full storage of each namespace without service-level association.

[0053] (3) Precise rollback control module: Its core function is to receive user rollback requests, support users to choose service-level full rollback or namespace-level targeted rollback, quickly locate the namespace version data associated with the target service-level version according to the two-layer version mapping relationship, perform rollback operation and generate new version records, with the minimum rollback dimension being the namespace.

[0054] (4) Version traceability module: Its core function is to record the full-link traceability information of each configuration change in each namespace, and associate it with service-level version, namespace version, changer, change content, change reason, approval record, etc. It can accurately locate the configuration item change details in a single namespace. No new traceability record is generated for namespaces that have not been changed, but only the traceability association information of its old version is reused, providing multi-dimensional traceability query function;

[0055] (5) Multi-environment version collaboration module: Its core function is to associate the version data of multiple test environments under the same configuration center cluster. All of them depend on the same configuration center, including the service-level version and all associated namespace versions. Changes associate the new version, and no changes associate the old version. It establishes the version mapping relationship between each test environment, realizes the service-level version synchronization, comparison and conflict detection between multiple test environments, and follows the rule of associating the service-level version with the corresponding namespace version during synchronization to avoid version synchronization conflicts between test environments. The interaction flow of each module is as follows: The configuration release request first enters the version system management module, generating a corresponding service-level version number. A new version number is generated for the changed namespace, and the old version number is associated with the namespace that has not been changed, establishing a two-way association mapping. It is then passed to the full configuration storage module, which stores only the full configuration data for the changed namespace and the new version association information, reusing the old version storage data for the namespace that has not been changed. The version traceability module only synchronously records the change traceability information for the changed namespace. The precise rollback control module, based on the user request, retrieves the version data of each namespace associated with the target service-level version from the full configuration storage module and performs a rollback operation. The multi-environment version collaboration module associates the version data of each test environment to achieve collaborative management. In some embodiments of this disclosure, such as... Figure 3 As shown, a configuration update method is provided. In one specific embodiment, the method may include the following steps:

[0056] S302: Receive configuration change request for the target service.

[0057] A service can be associated with multiple namespaces, and a request may contain changes to one or more namespaces or one or more configuration items under that service.

[0058] The system will verify the changed configuration content. The verification includes whether the configuration format is correct, whether the parameter range is compliant, and whether the namespace association is reasonable. Only if the verification passes will the subsequent version generation and storage process be triggered; otherwise, the request will be rejected.

[0059] S304: Based on the configuration change request, generate a service-level version number and determine the namespaces under the target service that have been changed and those that have not been changed.

[0060] S306: Based on the changed namespace, generate a corresponding new namespace version number; based on the unchanged namespace, use the current version number of the unchanged namespace as the inherited namespace version number.

[0061] The system retrieves the latest version number of the target service and then generates a new service-level version number based on preset rules. This service-level version number serves as a unified identifier for this change. In one specific embodiment, the system retrieves the latest service-level version number and generates a new service-level version number using a rule that combines the service identifier with sequentially increasing numbers.

[0062] The process iterates through all namespaces under the target service. Based on whether the configuration change request includes changes to each namespace, namespaces are marked as changed or unchanged. If a namespace's configuration item values ​​are modified, added, or deleted in the request, that namespace is marked as changed. If no configuration items in the request change a namespace, that namespace is marked as unchanged.

[0063] S308: Store the modified configuration data of the changed namespace in the database along with the corresponding version number of the newly added namespace; obtain the association between the service-level version number and all namespace version numbers under the target service and store it in the database, wherein all namespace version numbers include the newly added namespace version number and the inherited namespace version number.

[0064] Once the system identifies which namespaces have undergone configuration changes, it only performs configuration data storage operations on these changed namespaces. It binds the complete configuration content of each changed namespace to its newly generated version number and stores it in the database. No storage operations are performed on unchanged namespaces; their existing configuration data and version numbers remain unchanged.

[0065] For each namespace marked as changed, a new namespace version number is generated based on a preset version number generation rule. This version number is unique within its namespace and will not duplicate historical version numbers. The complete configuration content after the namespace change is extracted from the configuration change request, and this complete changed configuration content is stored in the database as the configuration data uniquely corresponding to the new namespace version number. Namespaces that have not changed undergo no storage operations; their configuration data and namespace version numbers remain unchanged and are already stored in the database. Through this differentiated processing method, regardless of the number of namespaces a service contains, each release only needs to store the configuration data for the changed namespaces.

[0066] For each namespace that has been modified, obtain its corresponding new namespace version number. For each namespace that has not been modified, obtain its current in-use namespace version number. Bind the generated service-level version number with all the above namespace version numbers and persist the above association relationship in the database for subsequent operations such as querying, rolling back, and environment synchronization.

[0067] In the above configuration update method, this application uses service-level version numbers to uniformly associate the versions of all namespaces within the service. Configuration changes for multiple namespaces can be completed in a single service-level release, and unmodified namespaces automatically retain their current versions. When multiple namespaces within the service have dependencies, unified service-level version releases ensure that all changes take effect simultaneously, avoiding configuration coordination anomalies caused by independent releases for each namespace.

[0068] In some embodiments of this disclosure, the method further includes:

[0069] Receive a version query request, the version query request including the target service identifier and the target service level version number;

[0070] Based on the aforementioned association, obtain all namespace version numbers and corresponding configuration data corresponding to the target service-level version number;

[0071] Specifically, the namespace that has been modified returns configuration data corresponding to the version number of the newly added namespace, while the namespace that has not been modified returns configuration data corresponding to the version number of the namespace that has been retained.

[0072] The version query request must include at least the target service identifier and the target service-level version number. The system reads the associated records for that service-level version number from the database, obtaining a list of all associated namespace version numbers. Based on each namespace version number, the system reads the corresponding full configuration data from the database. For namespaces that have changed, the system reads the configuration data corresponding to the new version from the full namespace configuration table. For namespaces that have not changed, the system reads the configuration data corresponding to the existing version from the full namespace configuration table. The system combines the configuration data from all the namespaces and returns it to the user, presenting the complete configuration content of the service under the target version.

[0073] The version query method described in this application allows users to obtain the complete configuration of the entire service at once simply by entering the service identifier and service-level version number. This eliminates the need to manually piece together the version information of each namespace, thereby significantly improving the efficiency and accuracy of configuration queries.

[0074] In some embodiments of this disclosure, the method further includes:

[0075] Receive a rollback request for a target service, the rollback request including the target service identifier and the target service-level version number;

[0076] Based on the association, obtain the version information of all namespaces corresponding to the target service-level version number. The version information includes the new namespace version number corresponding to the namespace that has been changed and the existing version number corresponding to the namespace that has not been changed.

[0077] Update the current configuration of the target service to the configuration content corresponding to the version number of each namespace.

[0078] When a user discovers an anomaly in the currently running configuration and needs to roll back the entire service to a historical version, a service-level full rollback request is initiated. The full rollback request must include at least the target service identifier and the target service-level version number. The system reads the associated records for that service-level version number from the database, retrieving all associated namespace version information. For changed namespaces, the system returns the version number of the newly added namespace under the target service version; for unchanged namespaces, it returns the version number of the inherited namespace under the target service version. Based on these namespace version numbers, the system reads the corresponding full configuration content from the full namespace configuration table in the database and applies the retrieved namespace configuration content to all associated nodes of the target service in one go, completing the service-level full rollback.

[0079] The service-level full rollback method described in this application allows users to complete the rollback of the entire service simply by specifying a single service-level version number, eliminating the need to rollback each namespace individually. This significantly improves rollback efficiency and fundamentally avoids configuration coordination anomalies caused by asynchronous rollbacks across namespaces. Furthermore, generating a new version number to record the rollback operation ensures the integrity and traceability of the version history.

[0080] In some embodiments of this disclosure, the association includes forward indexes and reverse indexes;

[0081] The forward index uses the service identifier and the service-level version number as keys, and a list of all namespace version numbers under the target service as values. The list includes each namespace identifier and the corresponding newly added namespace version number or the namespace version number that is reused.

[0082] The reverse index uses the service identifier, namespace identifier, and namespace version number as keys, and the set of all service-level version numbers that use the namespace version number as values.

[0083] Forward and reverse indexes are two specific data structure implementations of the association relationships in this invention. Together, they form a bidirectional lookup channel between the service-level version number and the namespace version number, enabling the system to quickly find all namespace versions from a service version, and also to quickly reverse-search all service versions that reference a given namespace version.

[0084] A forward index is a lookup table that, given a service-level version number, can find the corresponding namespace version numbers for all namespaces under that version. The forward index is created or updated with each service release. Once the service-level version number is generated, the system immediately creates the corresponding forward index record, writing all namespace version information related to this release into the index.

[0085] An inverted index is a reverse lookup table that, given a namespace version number, can find which service-level versions use that namespace version. The inverted index is updated synchronously with each service release. For namespaces that have changed, the system creates a new inverted index record for the new version number. For namespaces that have not changed, the system does not create a new inverted index on the existing version number; instead, it directly adds the association with the current service-level version number to the existing inverted index values.

[0086] Through the collaborative mechanism of the aforementioned forward and reverse indexes, the system enables bidirectional fast queries between service-level versions and namespace versions. The forward index supports quickly retrieving version information for all namespaces from the service-level version, while the reverse index supports quickly locating all service-level versions that reference that version from the namespace version, thus providing efficient data support for operations such as version queries, rollbacks, and impact assessments.

[0087] In some embodiments of this disclosure, Figure 4 This is a flowchart of a configuration update in one embodiment of the present disclosure, and the method further includes:

[0088] S402: Push a configuration change notification to the associated node of the target service. The configuration change notification contains only the configuration data after the namespace change.

[0089] The configuration changes will be communicated to all associated nodes of the target service in real time, enabling these nodes to update their local configurations synchronously, thus ensuring that the configuration changes in the configuration center take effect in real time.

[0090] By using the differentiated push method described above, only one notification is sent for each service release, and the notification content only includes the changed data. In cases of large service scale and numerous associated nodes, this can significantly reduce network transmission overhead, prevent the configuration of unchanged namespaces from being updated ineffectively, and improve the real-time performance and efficiency of configuration distribution.

[0091] In some embodiments of this disclosure, using the current version number of the unchanged namespace as the inherited namespace version number, based on the unchanged namespace, includes:

[0092] The unchanged namespace does not add new storage configuration data, and the version number of the inherited namespace is associated with the configuration data already stored in the database.

[0093] For namespaces determined to have not changed, the system does not generate a new version number for them, but directly uses their current version number as the namespace version number, and does not add any new configuration data.

[0094] When establishing the association between the service-level version number and all namespace version numbers, the associated storage module records the inherited version number of the namespace in the version association table, so that the inherited version number points to the configuration data already stored in the database, and there is no need to store it again this time.

[0095] In this way, configuration data without changing the namespace can be reused, avoiding full storage redundancy caused by service release, while version association ensures the traceability of configuration and the convenience of querying.

[0096] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0097] Based on the same inventive concept, this disclosure also provides a configuration update apparatus for implementing the configuration update method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in the configuration update apparatus embodiments provided below can be found in the limitations of the configuration update method described above, and will not be repeated here.

[0098] The apparatus may include a system (including a distributed system), software (application), module, component, server, client, etc., that uses the methods described in the embodiments of this specification, combined with necessary hardware implementation. Based on the same innovative concept, the apparatuses in one or more embodiments provided in this disclosure are as described in the following embodiments. Since the implementation schemes and methods for solving the problem by the apparatus are similar, the implementation of the specific apparatus in the embodiments of this specification can refer to the implementation of the foregoing methods, and repeated details will not be repeated. As used below, the terms "unit" or "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the apparatuses described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.

[0099] In one embodiment, such as Figure 5 As shown, a configuration update device 500 is provided. The device can be the aforementioned server, or a module, component, device, or unit integrated into the server. The device 500 may include:

[0100] Receiver module 502 is used to receive configuration change requests for the target service;

[0101] The determination module 504 is used to generate a service-level version number based on the configuration change request, and to determine the namespaces that have been changed and the namespaces that have not been changed under the target service;

[0102] The generation module 506 is used to generate a corresponding new namespace version number based on the changed namespace;

[0103] Based on the unchanged namespace, the current version number of the unchanged namespace is used as the version number of the inherited namespace;

[0104] Storage module 508 is used to store the configuration data of the changed namespace and the version number of the newly added namespace in the database;

[0105] Obtain the association between the service-level version number and all namespace version numbers under the target service and store it in the database. The namespace version numbers include the newly added namespace version number and the inherited namespace version number.

[0106] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0107] The modules in the configuration update device described above can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0108] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a configuration update method.

[0109] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. The computer program, when executed by the processor, implements a configuration update method. The display screen can be an LCD screen or an e-ink display screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad located on the computer device's casing, or an external keyboard, touchpad, or mouse.

[0110] Those skilled in the art will understand that Figure 6 , Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the computer device to which the present disclosure is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0111] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the methods described in any embodiment of this disclosure.

[0112] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the methods described in any embodiment of this disclosure.

[0113] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this disclosure may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this disclosure may be general-purpose processors, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0114] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0115] The embodiments described above are merely illustrative of several implementations of this disclosure, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent disclosure. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this disclosure, and these all fall within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the appended claims.

Claims

1. A configuration update method, characterized in that, The method includes: Receive configuration change requests for the target service; Based on the configuration change request, a service-level version number is generated, and the namespaces under the target service that have been changed and those that have not been changed are determined. Based on the changed namespace, generate the corresponding new namespace version number; Based on the unchanged namespace, the current version number of the unchanged namespace is used as the version number of the inherited namespace; The modified configuration data of the changed namespace is stored in the database along with the version number of the newly added namespace; Obtain the association between the service-level version number and all namespace version numbers under the target service and store it in the database. The namespace version numbers include the newly added namespace version number and the inherited namespace version number.

2. The method according to claim 1, characterized in that, The method further includes: Receive a version query request, the version query request including the target service identifier and the target service level version number; Based on the aforementioned association, obtain all namespace version numbers and corresponding configuration data corresponding to the target service-level version number; Specifically, the namespace that has been modified returns configuration data corresponding to the version number of the newly added namespace, while the namespace that has not been modified returns configuration data corresponding to the version number of the namespace that has been retained.

3. The method according to claim 1, characterized in that, The method further includes: Receive a rollback request for a target service, the rollback request including the target service identifier and the target service-level version number; Based on the association, obtain the version information of all namespaces corresponding to the target service-level version number. The version information includes the new namespace version number corresponding to the namespace that has been changed and the existing version number corresponding to the namespace that has not been changed. Update the current configuration of the target service to the configuration content corresponding to the version number of each namespace.

4. The method according to claim 1, characterized in that, The associations include forward indexes and reverse indexes; The forward index uses the service identifier and the service-level version number as keys, and a list of all namespace version numbers under the target service as values. The list includes each namespace identifier and the corresponding newly added namespace version number or the namespace version number that is reused. The reverse index uses the service identifier, namespace identifier, and namespace version number as keys, and the set of all service-level version numbers that use the namespace version number as values.

5. The method according to claim 1, characterized in that, The method further includes: A configuration change notification is pushed to the associated nodes of the target service. The configuration change notification contains only the configuration data after the namespace change.

6. The method according to claim 1, characterized in that, The step of using the current version number of the unchanged namespace as the inherited namespace version number includes: The unchanged namespace does not add new storage configuration data, and the version number of the inherited namespace is associated with the configuration data already stored in the database.

7. A configuration update device, characterized in that, The device includes: The receiving module is used to receive configuration change requests from the target service. The determination module is used to generate a service-level version number based on the configuration change request, and to determine the namespaces that have been changed and the namespaces that have not been changed under the target service; The generation module is used to generate a corresponding new namespace version number based on the changed namespace; Based on the unchanged namespace, the current version number of the unchanged namespace is used as the version number of the inherited namespace; The storage module is used to store the modified configuration data of the changed namespace and the corresponding version number of the newly added namespace in the database; Obtain the association between the service-level version number and all namespace version numbers under the target service and store it in the database. The namespace version numbers include the newly added namespace version number and the inherited namespace version number.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.