Nacos cluster lossless upgrade and flow migration method and system based on double-center environment

By deploying Nacos cluster in a dual-center environment and using Nginx servers and load balancers for traffic management, the problem of unsmooth traffic migration during Nacos cluster upgrade is solved, and lossless upgrades and capacity expansion is achieved, ensuring high availability and stability.

CN119743487AActive Publication Date: 2025-04-01CHINA CITIC BANK CO LTD
6 Cites 0 Cited by

Patent Information

Application Number
CN202411774411.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-04-01
Estimated Expiration
2044-12-05

AI Technical Summary

Technical Problem

When upgrading Nacos clusters, it is difficult to smoothly migrate traffic without affecting existing services, which can easily lead to cluster avalanches, instance drops and instance loss.

Method used

Using the lossless upgrade and traffic migration method of Nacos cluster based on a dual-center environment, a proxy that registers heartbeat traffic and subscribes traffic is realized by deploying the first and second Nacos clusters and configuring an Nginx server for the center of each cluster. Use load balancer intelligent scheduling to gradually switch traffic to the new cluster to ensure that the number of instances is stable and consistent before upgrading is completed.

Benefits of technology

The lossless upgrade and expansion of the Nacos cluster is realized, which avoids cluster avalanche, instance drop and instance loss problems, ensures high availability and stability, ensures no sense of application during the upgrade process, and has no impact on transactions, and improves the scalability and processing capabilities of the system.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to a Nacos cluster lossless upgrading and traffic migration method and system based on a double-center environment, electronic equipment and a computer readable storage medium. The method comprises the following steps: firstly, copying the flow of a first Nacos cluster to a second Nacos cluster through a first Nginx server, agenting subscription flow to the first Nacos cluster, then switching the flow to the second Nginx server through an application load balancer to realize bidirectional forwarding of the flow, completely switching the flow to the second Nacos cluster after the number of instances of the two clusters is stable and consistent, and forwarding the flow to the second Nacos cluster after the number of instances of the two clusters is consistent. And finishing upgrading. By adopting the scheme disclosed by the invention, lossless upgrading and capacity expansion of the Nacos cluster are realized, the problems of cluster avalanche, instance decline and instance loss of the Nacos cluster are avoided, high availability and stability of the Nacos cluster are ensured, and non-induction to applications and non-influence to transactions in the upgrading process are realized.
Need to check novelty before this filing date? Find Prior Art