Configuration file updating method and system, configuration manager, electronic equipment and medium

Through the configuration manager, the service address information of the container node is monitored and updated in real time, the problem of unstable configuration file updates in the microservice architecture is solved, and automated configuration management is realized to ensure the continuous stability of the service.

CN120358270APending Publication Date: 2025-07-22SHANG HAI RUI DE HUI ZHI KE JI YOU XIAN GONG SI BEI JING FEN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311600960.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

The prior art cannot realize dynamic configuration file updates of microservice architectures in non-k8s cluster environments, resulting in unstable services.

Method used

The configuration manager monitors container nodes in the distributed data storage system, obtains service address information, and updates the configuration files of the reverse proxy server when changes are made to achieve automated configuration file updates.

Benefits of technology

Dynamic configuration file updates in non-k8s cluster environments are realized to avoid human misoperation and ensure the continuous stability of services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120358270A_ABST
    Figure CN120358270A_ABST
Patent Text Reader

Abstract

The invention provides a configuration file updating method and system, a configuration manager, electronic equipment and a medium, and relates to the technical field of computers. The method comprises the following steps: a configuration manager monitors a container node in a traffic access state of a service in the distributed data storage system, and obtains service address information of the container node in the traffic access state; and under the condition that the service address information changes, updating the service address information of the container node in the access flow state to an upstream configuration file of the reverse proxy server, and reloading the reverse proxy server. The back-end service address information is ensured to be the latest service address information, and the user can access the service based on the latest service address in the reverse proxy server. The whole configuration file updating process does not need human participation, so that the risk of human misoperation is avoided, the automation of dynamic configuration change of the micro-service architecture is realized, and the continuous stability of the service is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a method, a system, a configuration manager, an electronic device, and a medium for updating a configuration file. Background Art

[0002] With the continuous development of business, product functions are updated more and more frequently, and the number of microservices is also increasing. When the system becomes complex and the number of configuration items increases, on the one hand, configuration management becomes cumbersome, and on the other hand, it is also relatively complex to redeploy after configuration modification. Therefore, the demand for real-time update of configuration files intensifies.

[0003] For microservices, frequent service changes lead to IP changes, and the IP addresses in the backend configuration files of proxy services also need to be changed to the latest IP addresses in real time to ensure service continuity.

[0004] In related technologies, k8s (Kubernetes) realizes the function of dynamic IP address change through the functions of Ingress (entry) and service (server) services. For example, Ingress receives external request traffic and forwards the request traffic to the service of the service. The service of the service is mainly responsible for monitoring the IP addresses of pod (container group) services and changing the IP addresses of backend forwarding in real time. However, this method can only achieve good results based on the microservices in the environment using the k8s cluster, and cannot meet the function of dynamically updating configurations in the microservices architecture of other technologies. Summary of the Invention

[0005] One technical problem to be solved by the present disclosure is to provide a method, a system, a configuration manager, an electronic device, and a medium for updating a configuration file, which can ensure the continuous stability of services.

[0006] According to one aspect of the present disclosure, a method for updating a configuration file is provided, including: a configuration manager monitors container nodes of a service in an access traffic state in a distributed data storage system, and obtains service address information of the container nodes in the access traffic state; and when the service address information changes, updates the service address information of the container nodes in the access traffic state to an upstream configuration file of a reverse proxy server, and reloads the reverse proxy server.

[0007] In some embodiments, when the service address information changes, updating the service address information of the container nodes in the access traffic state to the upstream configuration file of the reverse proxy server includes: the configuration manager updates the service address information of the container nodes in the access traffic state to the service template to generate a staging area file; compares the staging area file with the upstream configuration file; and when the staging area file is inconsistent with the upstream configuration file, updates the upstream configuration file using the staging area file.

[0008] In some embodiments, the service address information of the container nodes in the access traffic state is stored in a distributed data storage system in the form of key-value pairs.

[0009] In some embodiments, comparing the staging area file with the upstream configuration file includes: the configuration manager compares the value corresponding to each key in the staging area file with the value corresponding to each key in the upstream configuration file.

[0010] In some embodiments, the publishing system identifies the container nodes to obtain the container nodes where the current service is started; and sets the status of the container nodes where the current service is started and are in a healthy state and not in the excluded traffic access state to the access traffic state.

[0011] In some embodiments, the publishing system stores the service address information of the container nodes in the access traffic state in a distributed data storage system by calling an application programming interface.

[0012] In some embodiments, the publishing system saves the service code in an image and builds container nodes through the image.

[0013] In some embodiments, the service address information includes an IP address and a port.

[0014] According to another aspect of the present disclosure, a configuration manager is further proposed, including: a first processing module configured to monitor the container nodes in the access traffic state of the service in the distributed data storage system and obtain the service address information of the container nodes in the access traffic state; and a second processing module configured to update the service address information of the container nodes in the access traffic state to the upstream configuration file of the reverse proxy server and reload the reverse proxy server when the service address information changes.

[0015] In some embodiments, the second processing module is configured to update the service address information of the container nodes in the access traffic state to the service template to generate a staging area file; compare the staging area file with the upstream configuration file; and when the staging area file is inconsistent with the upstream configuration file, update the upstream configuration file using the staging area file.

[0016] In some embodiments, the service address information of container nodes in the access traffic state is stored in a distributed data storage system in the form of key-value pairs.

[0017] In some embodiments, the second processing module is configured to compare the value corresponding to each key in the staging area file with the value corresponding to each key in the upstream configuration file.

[0018] According to another aspect of the present disclosure, a configuration file update system is further provided, including: the above-mentioned configuration manager; and a publishing system configured to identify container nodes to obtain the container nodes where the current service is started; and set the status of the container nodes that are in a healthy state and do not belong to the excluded traffic access state among the container nodes where the current service is started to the access traffic state.

[0019] In some embodiments, the publishing system is further configured to store the service address information of the container nodes in the access traffic state in a distributed data storage system by calling an application programming interface.

[0020] In some embodiments, the publishing system is further configured to save the service code in an image and build container nodes through the image.

[0021] According to another aspect of the present disclosure, an electronic device is further provided, including: a memory; and a processor coupled to the memory, the processor being configured to execute the configuration file update method as described above based on instructions stored in the memory.

[0022] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is further provided, on which computer program instructions are stored, and when the instructions are executed by a processor, the configuration file update method as described above is implemented.

[0023] In the embodiments of the present disclosure, the configuration manager updates the service address information of the container nodes in the access traffic state corresponding to the service to the upstream configuration file of the reverse proxy server and reloads the reverse proxy server, so that users can access the service based on the latest service address in the reverse proxy server. The entire configuration file update process does not require human participation, avoids the risk of human misoperation, realizes the automation of dynamic change, and ensures the continuous stability of the service.

[0024] Other features and advantages of the present disclosure will become clear through the following detailed description of the exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings constituting a part of the specification depict embodiments of the present disclosure and, together with the specification, are used to explain the principles of the present disclosure.

[0026] With reference to the accompanying drawings, the present disclosure can be more clearly understood according to the following detailed description, wherein:

[0027] Figure 1 It is a schematic flowchart of some embodiments of the configuration file update method of the present disclosure;

[0028] Figure 2 It is a schematic flowchart of some other embodiments of the configuration file update method of the present disclosure;

[0029] Figure 3 It is a schematic structural diagram of some embodiments of the configuration manager of the present disclosure;

[0030] Figure 4 It is a schematic structural diagram of some embodiments of the configuration file update system of the present disclosure;

[0031] Figure 5 It is a schematic structural diagram of some other embodiments of the configuration file update system of the present disclosure;

[0032] Figure 6 It is a schematic structural diagram of some embodiments of the electronic device of the present disclosure. Detailed Description of the Embodiments

[0033] Now, various exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that: Unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure.

[0034] Meanwhile, it should be understood that, for the sake of convenience of description, the dimensions of the various parts shown in the drawings are not drawn in actual proportional relationship.

[0035] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way a limitation on the present disclosure, its application, or its use.

[0036] Technologies, methods, and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such technologies, methods, and devices should be regarded as part of the specification.

[0037] In all the examples shown and discussed herein, any specific value should be construed as merely exemplary and not as a limitation. Therefore, other examples of the exemplary embodiments may have different values.

[0038] It should be noted that: Similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.

[0039] To make the objectives, technical solutions, and advantages of the present disclosure clearer and more understandable, the present disclosure will be further described in detail below with reference to specific embodiments and the accompanying drawings.

[0040] Figure 1 It is a schematic flowchart of some embodiments of the configuration file update method of the present disclosure.

[0041] In step 110, the configuration manager monitors the container nodes of the service in the access traffic state in the distributed data storage system, and obtains the service address information of the container nodes in the access traffic state.

[0042] In some embodiments, the service address information of the container node is stored in the distributed data storage system in the form of key-value (key-value pair).

[0043] In some embodiments, the configuration manager is Confd, and the distributed data storage system is etcd.

[0044] In some embodiments, the service address information includes an IP address and a port.

[0045] Confd monitors etcd in real time and obtains the IP address and port of the container node in the access traffic state.

[0046] In step 120, when the service address information changes, update the service address information of the container node in the access traffic state to the upstream configuration file of the reverse proxy server, and reload the reverse proxy server.

[0047] In some embodiments, the reverse proxy server is, for example, Nginx.

[0048] In some embodiments, when Confd monitors that the IP address and port of the container node in the access traffic state change, it updates the IP address and port of the container node to the upstream configuration file of Nginx and performs the operation of reloading Nginx.

[0049] In the above embodiments, the configuration manager updates the service address information of the container node in the access traffic state corresponding to the service to the upstream configuration file of the reverse proxy server and reloads the reverse proxy server, so that users can access the service based on the latest service address in the reverse proxy server. The entire configuration file update process does not require manual participation, avoiding the risk of human error, realizing the automation of dynamic configuration change of the microservices architecture, and maintaining the stability of the service.

[0050] Figure 2 It is a schematic flowchart of other embodiments of the configuration file update method of the present disclosure.

[0051] In step 210, obtain the service address information of the container nodes in the access traffic state.

[0052] In some embodiments, Confd queries the backend storage, i.e., the IP addresses and ports of the container nodes stored in cted.

[0053] In some embodiments, the service address information of the container nodes is stored in a distributed data storage system in the form of key-value (key-value pair). Storing the service address information in the form of key-value makes the storage structure clearer and facilitates subsequent change comparison.

[0054] For example, name the key according to the name of the service, and the value is the IP address and port.

[0055] In step 220, update the service address information of the container nodes in the access traffic state to the service template to generate a staging area file.

[0056] In some embodiments, Confd combines with a configuration service template engine to dynamically render the service template using the IP address and port of the container node to generate a stage_file (staging area file).

[0057] For example, Confd periodically monitors changes in the corresponding directory in cted through the HTTP API, obtains the latest value, and then renders the service template.

[0058] In step 230, compare the staging area file with the upstream configuration file of Nginx. The upstream configuration file of Nginx is consistent with the target file stored in cted.

[0059] In some embodiments, compare the value corresponding to each key in the staging area file with the value corresponding to each key in the upstream configuration file.

[0060] For example, compare the value of each key in the staging area file with the value of the corresponding key in the upstream configuration file. If there is a pair of inconsistent values, it means that the IP address and port number of the service have changed.

[0061] In step 240, when the staging area file is inconsistent with the upstream configuration file, update the upstream configuration file using the staging area file.

[0062] In some embodiments, if the value of one key changes, it means that the IP address and port number of the service have changed. At this time, update the upstream configuration file.

[0063] If the values of all keys have not changed, perform the next listening loop.

[0064] In step 250, reload Nginx.

[0065] In the above embodiments, the configuration manager monitors the distributed data storage system in real time, dynamically renders the service template with the service address information of the container nodes in the access traffic state obtained, keeps the local configuration up-to-date, and uses the Confd periodic detection mechanism to reload Nginx after the configuration file changes, ensuring that the backend service address information is the latest service address information. Through centralized configuration management, the entire process fully realizes the automatic distribution and timely effectiveness of configuration changes, ensuring the continuous stability of the service.

[0066] In some embodiments of the present disclosure, the publishing system identifies the container nodes, obtaining the container nodes where the current service is started; and sets the status of the container nodes that are in a healthy state and do not belong to the excluded traffic access state among the container nodes where the current service is started to the access traffic state.

[0067] For example, the publishing system saves the service code in the image and builds container nodes through the image. Then, it performs a check every minute to determine whether each container node is a container node where the current service is started or a non-current service container node manually added. If the node is a container node where the current service is started, the health status of the container node is checked. If all health checks of the container node are completed and it does not belong to the excluded traffic access state, the container node will enter the access traffic state in real time.

[0068] Furthermore, the publishing system stores the IP address and port of the latest container node corresponding to the service in etcd.

[0069] In some embodiments, the publishing system stores the service address information of the container nodes in the access traffic state into the distributed data storage system by calling an API (Application Programming Interface).

[0070] For example, the publishing system automatically writes the IP address and port after the service change into etcd by calling the API through a python command. This facilitates Confd to update the configuration file by monitoring the data changes in etcd.

[0071] In this embodiment, by dynamically changing the configuration file to replace manual modification of the configuration file, the work efficiency is improved, and the risk of human error is avoided, ensuring the stable and sustainable provision of services.

[0072] In some embodiments, taking the hfq-app-h5 service as an example, the publishing system platform publishes the latest code to the server, and records the latest IP address and port of the service in the form of key-value in the distributed storage etcd through the code logic. Confd monitors the value of the key in etcd and compares it with the content stored in Confd. If the value changes, Confd automatically updates the content of the configuration file through internal logic.

[0073] Taking a service template as an example, Confd completes the dynamic update of the configuration file by listening to the key-value changes of / superset in the distributed storage. The implementation process is as follows. However, those skilled in the art should understand that the following code is only for illustrative purposes and does not limit the present disclosure.

[0074] upstream hfq-app-h5_pool{

[0075] server 127.0.0.1 weight=10 max_fails=3 fail_timeout=20s down;

[0076] {{range jsonArray(getv " / superset")}}

[0077] server {{.}} weight=10 max_fails=3 fail_timeout=10s;

[0078] {{end}}

[0079] }

[0080] Through the above operations, Confd automatically fills the IP and port information into the service template to complete the update of the configuration file. The achieved effect is as follows.

[0081] upstream hfq-app-h5_pool{

[0082] server 127.0.0.1 weight=10 max_fails=3 fail_timeout=20s down;

[0083] server 10.10.14.74:1350 weight=10 max_fails=3

[0084] fail_timeout=10s;

[0085] server 10.10.14.240:3729 weight=10 max_fails=3

[0086] fail_timeout=10s;

[0087] }

[0088] Finally, call the nginx reload command through Confd to reload the configuration file, achieving the consistency between the latest IP addresses and port information of relevant services and the configuration file, and ensuring the stability of the service and the continuous serviceability of the website.

[0089] In the above embodiments, there is no need for manual participation in the modification and reloading process of the configuration file throughout the process, avoiding the risk of human misoperation, improving work efficiency, and ensuring the stable and sustainable provision of services.

[0090] Figure 3 The figure is a schematic structural diagram of some embodiments of the configuration manager of the present disclosure. The configuration manager includes a first processing module 310 and a second processing module 320. Among them, the configuration manager is, for example, Confd.

[0091] The first processing module 310 is configured to monitor the container nodes in the access traffic state of the service in the distributed data storage system, and obtain the service address information of the container nodes in the access traffic state.

[0092] In some embodiments, the service address information of the container nodes in the access traffic state is stored in the distributed data storage system in the form of key-value pairs.

[0093] In some embodiments, the service address information includes an IP address and a port.

[0094] The second processing module 320 is configured to update the service address information of the container nodes in the access traffic state to the upstream configuration file of the reverse proxy server and reload the reverse proxy server when the service address information changes.

[0095] In some embodiments, the second processing module is configured to update the service address information of the container nodes in the access traffic state to the service template to generate a staging area file; compare the staging area file with the upstream configuration file; and update the upstream configuration file with the staging area file when the staging area file is inconsistent with the upstream configuration file.

[0096] For example, compare the value corresponding to each key in the temporary storage area file with the value corresponding to each key in the upstream configuration file. If the value of at least one key changes, it indicates that the service address information has changed. At this time, update the upstream configuration file of Nginx and perform the operation of reloading Nginx.

[0097] In the above embodiment, on the one hand, unified configuration management of the configuration file is achieved, and on the other hand, automatic distribution of configuration file changes is also achieved, ensuring the continuous stability of the service.

[0098] Figure 4 It is a schematic structural diagram of some embodiments of the configuration file update system of the present disclosure. The configuration file update system includes a configuration manager 410 and a publishing system 420. Among them, the configuration manager 410 has been introduced in detail in the above embodiment and will not be further elaborated here.

[0099] The publishing system 420 is configured to identify container nodes to obtain the container nodes where the current service is started; and set the status of the container nodes that are in a healthy state and not in the excluded traffic access state among the container nodes where the current service is started to the access traffic state.

[0100] For example, the publishing system saves the service code in the image and builds container nodes through the image. It regularly checks the container nodes every minute to obtain the container nodes where the current service is started and checks the health status of the container nodes where the current service is started. If all health checks of the container node are completed and it is not in the excluded traffic access state, the container node will enter the access traffic state in real time.

[0101] In some embodiments, the publishing system is further configured to store the service address information of the container nodes in the access traffic state in the distributed data storage system by calling the application programming interface.

[0102] For example, call the API of cted through the python command to automatically write the IP address and port after the service change into etcd, which is convenient for Confd to update the configuration file by monitoring the data changes in etcd.

[0103] In some embodiments, as Figure 5 shown, the configuration file update system includes a publishing system 420. At the system layer, it includes a physical machine 510, at the business layer, it includes a container cluster environment 520, at the storage layer, it includes a distributed data storage cluster 530, such as etcd, and at the access layer, it includes Nginx 540 and Confd 550.

[0104] The release system 420 will release the containers built by the service to the container cluster environment 520, and the containers in the container cluster environment 520 can run on the physical machine 410. The release system 420 will also store the IP address and port of the latest service in the distributed data storage cluster 530. Confd 550 detects the distributed data storage cluster 530 in real time. When there is a change in the data in the distributed data storage cluster 530, it updates the IP address and port of the service to the upstream configuration file of Nginx 540 and performs the operation of reloading Nginx 540.

[0105] In the above embodiments, the configuration file update system can realize the dynamic change of the configuration file and ensure the stable and sustainable service provision of the service.

[0106] Figure 6 The structural schematic diagram of some embodiments of the electronic device of the present disclosure is shown. The electronic device 600 is, for example, a configuration manager or a release system. The electronic device 600 includes: a memory 610 and a processor 620. Among them: The memory 610 can be a disk, a flash memory or any other non-volatile storage medium. The memory 610 is used to store the instructions in the above embodiments. For example, when the electronic device 600 is a configuration manager, the memory 610 stores the instructions executed by the configuration manager. When it is a release system, the memory 610 stores the instructions executed by the release system. The processor 620 is coupled to the memory 610 and can be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller. The processor 1020 is used to execute the instructions stored in the memory. For example, when the electronic device 600 is a configuration manager, the processor 1020 executes the instructions of the configuration manager. When it is a release system, it executes the instructions executed by the release system.

[0107] In some embodiments, the processor 620 is coupled to the memory 610 through the BUS bus 630. The electronic device 600 can also be connected to an external storage device 650 through a storage interface 640 to call external data, and can also be connected to a network or another computer system (not shown) through a network interface 660. Details are not described here.

[0108] In this embodiment, by storing data instructions in the memory and then processing the above instructions by the processor, the automatic change function of the configuration file is realized, and the function of dynamically updating the configuration of the microservices architecture in multiple application scenarios can be satisfied.

[0109] In some other embodiments, a computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the steps of the methods in the above embodiments. Those skilled in the art should understand that the embodiments of the present disclosure can be provided as methods, apparatuses, or computer program products. Therefore, the present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present disclosure can take the form of a computer program product implemented on one or more computer-usable non-transitory storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0110] The present disclosure is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one or more of the flows Figure 1 or blocks or the combination of blocks.

[0111] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the functions specified in Figure 1 one or more of the flows Figure 1 or blocks or the combination of blocks.

[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are performed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one or more of the flows Figure 1 or blocks or the combination of blocks.

[0113] So far, the present disclosure has been described in detail. To avoid obscuring the concept of the present disclosure, some details well known in the art have not been described. Those skilled in the art can fully understand how to implement the technical solutions disclosed herein based on the above description.

[0114] The methods and apparatuses of the present disclosure can be implemented in many ways. For example, the methods and apparatuses of the present disclosure can be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the methods is for illustration only, and the steps of the methods of the present disclosure are not limited to the specific order described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure can also be implemented as a program recorded in a recording medium, and these programs include machine-readable instructions for implementing the methods according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the methods according to the present disclosure.

[0115] Although some specific embodiments of the present disclosure have been described in detail by way of examples, those skilled in the art should understand that the above examples are for illustration only and not for limiting the scope of the present disclosure. Those skilled in the art should understand that the above embodiments can be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. A configuration file update method, comprising: The configuration manager monitors container nodes in the access traffic state of services in the distributed data storage system, and obtains service address information of the container nodes in the access traffic state; And When the service address information changes, updating the service address information of the container nodes in the access traffic state to the upstream configuration file of the reverse proxy server, and reloading the reverse proxy server.

2. The configuration file update method according to claim 1, wherein, When the service address information changes, updating the service address information of the container nodes in the access traffic state to the upstream configuration file of the reverse proxy server includes: The configuration manager updates the service address information of the container nodes in the access traffic state to the service template to generate a staging area file; Comparing the staging area file with the upstream configuration file; and When the staging area file is inconsistent with the upstream configuration file, updating the upstream configuration file using the staging area file.

3. The profile update method according to claim 2, wherein, The service address information of the container nodes in the access traffic state is stored in the distributed data storage system in the form of key-value pairs.

4. The profile update method according to claim 3, wherein, Comparing the staging area file with the upstream configuration file includes: The configuration manager compares the value corresponding to each key in the staging area file with the value corresponding to each key in the upstream configuration file.

5. The configuration file update method according to any one of claims 1 to 4, further comprising: The publishing system identifies container nodes to obtain the container nodes where the current service is started; And Setting the status of the container nodes in the current service start-up that are in a healthy state and not in the excluded traffic access state to the access traffic state.

6. The configuration file update method according to claim 5, wherein The publishing system stores the service address information of the container nodes in the access traffic state in the distributed data storage system by calling the application programming interface.

7. The configuration file update method according to claim 5, further comprising: The publishing system saves the service code in the image and constructs container nodes through the image.

8. The configuration file update method according to any one of claims 1 to 4, wherein The service address information includes an IP address and a port.

9. A configuration manager, comprising: A first processing module configured to monitor container nodes in the access traffic state of services in the distributed data storage system, and obtain service address information of the container nodes in the access traffic state; And A second processing module configured to update the service address information of the container nodes in the access traffic state to the upstream configuration file of the reverse proxy server and reload the reverse proxy server when the service address information changes.

10. According to claim 9 of the configuration manager, wherein The second processing module is configured to update the service address information of the container node in the access traffic state into the service template to generate a staging area file; compare the staging area file with the upstream configuration file; and in the case where the staging area file is inconsistent with the upstream configuration file, update the upstream configuration file by using the staging area file.

11. The configuration manager according to claim 10, wherein, The service address information of the container node in the access traffic state is stored in the distributed data storage system in the form of key-value pairs.

12. The configuration manager according to claim 11, wherein, The second processing module is configured to compare the value corresponding to each key in the staging area file with the value corresponding to each key in the upstream configuration file.

13. A configuration file update system, comprising: The configuration manager according to any one of claims 9 to 12; And A publishing system, configured to identify container nodes to obtain the container nodes where the current service is started; And set the state of the container nodes that are in a healthy state and not in the excluded traffic access state among the container nodes where the current service is started to the access traffic state.

14. The configuration file update system according to claim 13, wherein, The publishing system is further configured to store the service address information of the container node in the access traffic state in the distributed data storage system by calling an application programming interface.

15. The configuration file update system according to claim 13, wherein, The publishing system is further configured to save the service code in an image and build container nodes through the image.

16. An electronic device, comprising: A memory; And A processor coupled to the memory, the processor being configured to execute the configuration file update method according to any one of claims 1 to 8 based on instructions stored in the memory.

17. A non-transitory computer-readable storage medium, on which computer program instructions are stored, and when the instructions are executed by a processor, the configuration file update method according to any one of claims 1 to 8 is implemented.