Blue-green version seamless switching distributed system

By introducing version control, automated deployment, traffic management, monitoring and analysis and rollback management modules in distributed systems, the challenges of traditional blue-green deployment methods in large-scale, multi-region, and multi-instance environments are solved, and the smooth version is achieved Switching, fine traffic management and fast failure rollback significantly improve system stability and business continuity.

CN119440607AInactive Publication Date: 2025-02-14HEBEI TONGFU SHARING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411456814.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-02-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional blue-green deployment method seems to be incompetent when dealing with large-scale, multi-region, and multi-instance traffic allocation. The complexity of automated control increases, and the perfection and efficiency of the failure rollback mechanism also faces challenges, especially in enterprises with multi-region, multi-instance. in a level environment.

Method used

Adopt a distributed system with seamless switching of blue and green versions, including version control module, automated deployment module, traffic management module, monitoring and analysis module and rollback management module. Through the coordinated work of these modules, smooth version switching and fine-grained Traffic management, automation control and rapid failure rollback.

Benefits of technology

It realizes seamless migration and precise control of user traffic, reduces user experience interruptions caused by version switching, optimizes the efficiency of system resources, and significantly enhances the stability and business continuity of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440607A_ABST
    Figure CN119440607A_ABST
Patent Text Reader

Abstract

The invention relates to a distributed system for seamless switching of blue and green versions. The distributed system comprises a version control module VCM, an automatic deployment module ADM, a traffic management module TMM, a monitoring and analysis module MAM and a rollback management module RMM. The VCM ensures version synchronization and tracing; the ADM realizes parallel deployment, and the deployment time is shortened; the TMM optimizes global traffic scheduling and maintains load balance; the MAM monitors node performance and user feedback in real time; and when the RMM detects a problem, the RMM rapidly and globally rolls back to guarantee the stability of the system. According to the invention, smooth version switching in a complex environment is supported, fine flow management, automatic control and a rapid fault rollback mechanism are also included, and the system stability and service continuity in the version upgrading process are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of computer technology, in particular to a distributed system for seamless switching of blue and green versions. Background Art

[0002] In modern enterprises, version updates of software systems are an important means to maintain business competitiveness and technological advancement. In order to avoid service interruptions caused by downtime maintenance during software deployment and reduce the negative impact on user experience and business continuity, blue-green deployment, as a common zero-downtime upgrade technology, has been applied in some enterprises.

[0003] In the field of software development and operation (DevOps), especially in the field of enterprise applications, Blue-Green Deployment is a deployment strategy used to reduce the impact on users when upgrading a system or releasing a new version. Its core idea is to maintain two production environments, one running the current stable version (usually called the blue environment) and the other running the new version (usually called the green environment). The two environments are exactly the same at all times, but only the blue environment will provide services to the outside world.

[0004] In a blue-green deployment, the development team will develop a new version of the application and test it in the green environment. The green environment is isolated and will not have any impact on the blue environment that is providing services externally. Once the new version is tested in the green environment and confirmed to be problem-free, the system will switch traffic from the blue environment to the green environment. If a problem occurs with the new version in the green environment, the traffic can be quickly switched back to the blue environment, thereby achieving a quick rollback and ensuring the stability and reliability of the system.

[0005] As the scale and complexity of enterprise systems continue to increase, traditional blue-green deployment methods face a series of significant and increasingly prominent challenges in meeting the needs of modern enterprise-level applications. These challenges are not only related to the depth and breadth of technical implementation, but are also directly related to system stability, availability, and business continuity.

[0006] First, in terms of traffic management, the traditional blue-green deployment method is unable to handle large-scale, multi-region, and multi-instance traffic distribution. With the expansion of the user base and the wide distribution range, how to ensure smooth and imperceptible migration of traffic between the blue and green versions has become a huge challenge. This requires not only an efficient load balancing mechanism, but also the ability to intelligently identify user requests and accurately distribute them according to preset strategies (such as region, user profile, etc.) to maximize resource utilization and optimize user experience.

[0007] Secondly, the complexity and depth of automated control are also increasing. In large distributed systems, operations such as version switching, configuration updates, and environment synchronization require highly automated support to reduce human errors and improve efficiency. However, with the increase in system components and the complexity of dependencies, the design and implementation of automated control processes have become extremely difficult. This requires developers to not only master advanced automation tools and technologies, but also have a deep understanding of system architecture and business logic to ensure the accuracy and reliability of automated processes.

[0008] Furthermore, the integrity and efficiency of the fault rollback mechanism is also a major challenge faced by the traditional blue-green deployment method. In enterprise-level applications, the release of any version may be accompanied by potential risks. Once a problem occurs in the new version, rolling back to the old version quickly and accurately is the key to ensuring business continuity. However, as the complexity of the system increases, the rollback process may involve collaborative operations of multiple components and multiple levels, which requires the rollback mechanism to be highly flexible and scalable. At the same time, in order to reduce data loss and service interruption during the rollback process, it is also necessary to design efficient caching and backup strategies.

[0009] These challenges are particularly prominent in multi-region, multi-instance enterprise environments. Issues such as network latency, data synchronization, and version consistency between different regions may affect the effectiveness of blue-green deployment. In addition, multi-instance deployment also increases the complexity and management difficulty of the system, requiring developers to fully consider these factors during the design and implementation process to ensure the overall stability and availability of the system.

[0010] The information disclosed in this background technology section is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to those skilled in the art. Summary of the invention

[0011] In view of the defects existing in the prior art, the purpose of the present invention is to provide a distributed system with seamless switching between blue and green versions, supporting smooth version switching in complex environments, and also including sophisticated traffic management, automatic control and rapid fault rollback mechanism to ensure system stability and business continuity during version upgrades.

[0012] In order to achieve the above purpose, the technical solution adopted by the present invention is:

[0013] A distributed system for seamless switching between blue and green versions, characterized by comprising:

[0014] Version Control Module (VCM), which is used to synchronize configuration files between multiple nodes in a distributed system, manage blue and green versions across multiple nodes, and ensure the consistency and traceability of versions in a distributed environment;

[0015] Automated Deployment Module (ADM), which is used to execute deployment tasks in parallel on multiple instances or nodes of a distributed system; parallel deployment can significantly shorten the overall deployment time;

[0016] Traffic Management Module (TMM), which is used to finely dispatch traffic between multiple geographic regions or data centers through load balancers, service meshes, or DNS routing technologies to ensure global load balancing of distributed systems;

[0017] The monitoring and analysis module MAM is used to monitor the performance indicators, error rates, user feedback, etc. of each node in the distributed system in real time to ensure accurate understanding of the global operating status;

[0018] The Rollback Management Module (RMM) is used to start a global rollback mechanism when a problem is detected, switching traffic distributed in multiple nodes or regions back to the old version to ensure rapid system recovery.

[0019] Based on the above technical solution, the synchronization configuration file includes the following contents: environment variables, dependencies, and network configuration;

[0020] The synchronization profile is used to ensure that each node can handle the new version correctly.

[0021] Based on the above technical solution, the automated deployment module ADM is integrated with the continuous integration / continuous deployment tool to support automated code integration, construction and deployment processes in a distributed build environment.

[0022] On the basis of the above technical solution, the traffic management module TMM intelligently adjusts traffic distribution according to system load and network conditions to optimize user experience and system performance.

[0023] On the basis of the above technical solution, the monitoring and analysis module MAM adopts cross-node analysis to aggregate and analyze data from different nodes to identify potential distributed system problems.

[0024] On the basis of the above technical solution, the rollback management module RMM synchronously restores the configuration status of each node during the rollback process to ensure the consistency of the system status.

[0025] Based on the above technical solutions, during the blue-green version preparation and configuration phase, the parallel processing capabilities of the distributed system are used to prepare and deploy new versions of multiple nodes at the same time;

[0026] During the traffic guidance and monitoring phase, distributed monitoring technology is used to collect and analyze the operation data from each node in real time to ensure smooth traffic switching.

[0027] During the version verification and health check phase, a comprehensive global health check is performed to ensure the stability and reliability of the new version in the distributed system;

[0028] When a problem is discovered in a new version, the global rollback process is quickly initiated to ensure that the system quickly returns to a stable state.

[0029] On the basis of the above technical solution, in the traffic guidance and monitoring stage, part of the user traffic is guided to the green version according to the preset strategy. During the traffic switching process, the monitoring and analysis module collects the operation data of the green version in real time. The operation data at least includes CPU utilization, memory consumption, request response time, and error log. The operation data of the blue version and the green version are compared and analyzed. If the difference is within the allowable range, the traffic management module TMM is used to gradually increase the proportion of traffic guided to the green version until all traffic switching is completed. If the difference exceeds the allowable range, a global rollback is initiated through the rollback management module RMM.

[0030] Based on the above technical solutions, during the version verification and health check phase, we will perform comprehensive health checks through automated testing, user feedback analysis, and system stress testing to ensure that the functions and performance of the green version meet expectations.

[0031] After passing the test, the green version is set as the new blue version, the old blue version is taken offline and resources are released.

[0032] The distributed system for seamless switching of blue and green versions described in the present invention has the following beneficial effects:

[0033] Through intelligent load balancing and service mesh technology, seamless migration and precise control of user traffic are achieved, which not only reduces the user experience interruption caused by version switching, but also optimizes the efficiency of system resource utilization and significantly enhances the stability of the system.

[0034] The automated deployment and testing process reduces human intervention, reduces the risk of human error, and accelerates version iteration, meeting the needs of rapid iteration of enterprise-level applications.

[0035] The efficient fault rollback mechanism can be quickly activated when a new version problem is detected, ensuring that the system quickly recovers to a stable state, thus ensuring business continuity and availability;

[0036] By integrating traffic management, automated deployment, real-time monitoring and rollback mechanisms, it solves the shortcomings of traditional blue-green deployment in enterprise environments, significantly improves the security and efficiency of version switching, and is suitable for large-scale enterprise systems that require high availability and continuous deployment. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The present invention has the following accompanying drawings:

[0038] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0039] Figure 1 System architecture diagram of embodiment 1 of a distributed system for seamless switching between blue and green versions described in the present invention. DETAILED DESCRIPTION

[0040] The present invention is further described in detail below in conjunction with the accompanying drawings. The detailed description is an explanation made in conjunction with the exemplary embodiments of the present invention, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0041] like Figure 1 As shown, the distributed system for seamless switching of blue and green versions described in the present invention includes:

[0042] Version Control Module (VCM), which is used to synchronize configuration files between multiple nodes in a distributed system, manage blue and green versions across multiple nodes, and ensure the consistency and traceability of versions in a distributed environment;

[0043] Automated Deployment Module (ADM), which is used to execute deployment tasks in parallel on multiple instances or nodes of a distributed system; parallel deployment can significantly shorten the overall deployment time;

[0044] Traffic Management Module (TMM), which is used to finely dispatch traffic between multiple geographic regions or data centers through load balancers, service meshes, or DNS routing technologies to ensure global load balancing of distributed systems;

[0045] The monitoring and analysis module MAM is used to monitor the performance indicators, error rates, user feedback, etc. of each node in the distributed system in real time to ensure accurate understanding of the global operating status;

[0046] The Rollback Management Module (RMM) is used to start a global rollback mechanism when a problem is detected, switching traffic distributed in multiple nodes or regions back to the old version to ensure rapid system recovery.

[0047] For example, by adopting intelligent load balancing algorithms and service mesh technology, fine-grained traffic scheduling can be achieved in multi-region and multi-instance environments; through refined traffic management and real-time monitoring, the system performance and stability can be ensured to meet the expected standards when the new version is launched.

[0048] For example, by integrating the Jenkins tool, unit testing, integration testing, and performance testing can be automatically performed to ensure the quality of version releases; by using automated deployment tools, manual intervention can be reduced, the time to release a version can be shortened, and the rapid iteration requirements of enterprise-level applications can be met.

[0049] For example, based on tools such as Prometheus and skywalking, we implement fine-grained indicator monitoring and alarm strategies, and support customized health check rules; for example, we set rollback strategies, and use cache technology and automated scripts to quickly locate faults and roll back immediately, thus minimizing system recovery time. Through automated monitoring and rollback mechanisms, we ensure that when new version problems are discovered, they can be rolled back in a timely manner, thus reducing the risk of system failures.

[0050] This embodiment supports version switching in complex environments, and through multi-instance and multi-region support, it can adapt to the deployment requirements of large-scale distributed systems and global enterprises. Figure 1 As shown in the figure, the version control module (VCM) is the core management module of the system, responsible for managing the release, storage, configuration management and version rollback functions of the blue and green versions; the automated deployment module (ADM) provides an automated pipeline from code integration, construction to deployment, ensuring the automated release of the new version (green version) and running it in parallel with the existing version (blue version); code acquisition can be obtained through the code repository, and the deployment target is the distributed production environment; the traffic management module (TMM) controls the distribution of user traffic through load balancers, service grids or DNS routing technologies, and realizes the gradual guidance from the blue version to the green version; the actual execution point of traffic control is through It is often the entrance for user traffic; the monitoring and analysis module (MAM) monitors the operation status of the new version in real time, including performance indicators, error rates, user feedback, etc., and provides data analysis and early warning mechanisms; the monitoring and analysis module (MAM) can receive real-time operation data from the traffic management module (TMM), trigger alarms when problems occur, and store monitoring data and analysis results in the data warehouse / log system; when a problem is detected in the new version, the rollback management module (RMM) quickly starts the rollback mechanism, switches the traffic back to the old version, and performs automatic recovery operations; the target location of the rollback operation is the production environment, and the rollback process and failure cause can be recorded in the data warehouse / log system.

[0051] Based on the above technical solution, the synchronization configuration file includes the following contents: environment variables, dependencies, and network configuration;

[0052] The synchronization configuration file is used to ensure that each node can correctly process the new version. The following synchronization mechanism can be used:

[0053] When configuration files are updated in the version control system, you can set up an automated process (such as a CI / CD pipeline) to push updates to each node, pull the latest code and configuration files from the version control system, and perform the necessary update operations on each node;

[0054] Alternatively, each node can periodically pull the latest configuration files from the central repository or configuration server, which can be achieved by writing scripts or using existing configuration management tools (such as Ansible, Chef, Puppet, etc.);

[0055] After the configuration files are successfully synchronized and verified, the new version of the application and configuration files can be deployed to each node through the automated deployment module ADM. During the deployment process, the traffic management module TMM can gradually switch the traffic from the old version to the new version for blue-green deployment. At the same time, the monitoring and analysis module MAM will monitor the system's performance indicators and error rates in real time to ensure the stable operation of the system. If problems are encountered during deployment or operation, the rollback management module RMM will initiate a global rollback mechanism to switch the traffic and configuration files back to the old version to ensure rapid recovery of the system.

[0056] The specific contents contained in the synchronization configuration file include but are not limited to:

[0057] Environment variables: used to set various parameters when the application is running, such as database connection information, API keys, log levels, etc.

[0058] Dependencies: Lists all external libraries, services, or resources required by the application, along with their version information;

[0059] Network configuration: including the communication protocol, port number, IP address or domain name between services to ensure correct connection between services.

[0060] In order to manage blue and green versions across multiple nodes, a version control system (such as Git) can be used to manage configuration files. Each version can be marked with a specific tag or branch for tracking and rollback. For example: create a unique version number or tag for each changed configuration file, use the master branch as the stable version (usually the version in the current production environment), and feature, develop or green branches for testing new versions.

[0061] Based on the above technical solution, the automated deployment module ADM is integrated with the continuous integration / continuous deployment (CI / CD) tool to support automated code integration, construction and deployment processes in a distributed build environment.

[0062] On the basis of the above technical solution, the traffic management module TMM intelligently adjusts traffic distribution according to system load and network conditions to optimize user experience and system performance.

[0063] The traffic management module TMM has the ability to monitor the system load in real time, including collecting performance indicators from each node, such as CPU usage, memory usage, disk I / O, network bandwidth, etc. Through real-time monitoring of these indicators, the traffic management module TMM can evaluate the processing capacity and current pressure status of each node.

[0064] Based on real-time data on system load, a variety of traffic distribution strategies can be implemented to optimize user experience and system performance:

[0065] Load balancing: Use load balancing algorithms (such as polling, least number of connections, source address hashing, etc.) to distribute user requests to multiple nodes to ensure that no single node is overloaded.

[0066] Dynamic adjustment: Dynamically adjust the proportion of traffic allocated to a node based on the real-time load of the node. For example, if the load on a node is too high, the number of requests sent to the node can be reduced until its load drops to a reasonable level.

[0067] Priority queue: Set priority queues for different types of requests. For example, requests with high real-time requirements (such as transaction processing, real-time video streaming, etc.) can be given higher priority to ensure that they are processed in a timely manner.

[0068] In addition to system load, the traffic management module TMM also needs to consider the impact of network conditions on traffic distribution. Factors such as network delay, packet loss rate, and bandwidth availability may affect user experience and system performance. The following indicators can be considered for specific analysis:

[0069] Geolocation awareness: Through DNS routing or any geolocation awareness technology, user requests are directed to the data center or node closest to them to reduce network latency and improve response speed.

[0070] Network quality monitoring: monitor the quality indicators of each network link (such as latency and packet loss rate) in real time, and adjust the traffic routing strategy based on these indicators. For example, when it is detected that the quality of a certain network link has deteriorated, the traffic can be automatically switched to other links with better quality.

[0071] The intelligent adjustment of traffic distribution can be achieved based on machine learning, for example, by using machine learning algorithms to analyze historical data and real-time data to predict future traffic patterns and system load trends; it can also be achieved through adaptive control algorithms, for example, the parameters and strategies of the system can be dynamically adjusted according to the actual performance of the system. When it is found that a certain strategy fails to achieve the expected effect, the traffic management module TMM can automatically switch to another more suitable strategy.

[0072] In addition to monitoring the effectiveness of traffic distribution (such as response time, throughput, error rate, etc.) and optimizing traffic distribution strategies based on the monitoring results, the traffic management module TMM can also provide a visual monitoring interface and alarm function so that operation and maintenance personnel can understand the system's operating status in real time and respond to problems quickly.

[0073] On the basis of the above technical solution, the monitoring and analysis module MAM adopts cross-node analysis to aggregate and analyze data from different nodes to identify potential distributed system problems.

[0074] The distributed system problems include performance indicators, error rates, user feedback, network delays, resource bottlenecks, etc.

[0075] On the basis of the above technical solution, the rollback management module RMM synchronously restores the configuration status of each node during the rollback process to ensure the consistency of the system status.

[0076] The following is a simple example.

[0077] Pull old version configuration: The rollback management module (RMM) pulls the configuration file of the target version from the version control system and stores it in a temporary location;

[0078] Distribute configuration files: The rollback management module (RMM) distributes the old version of the configuration files to each node of the distributed system. The distribution process can be parallel to speed up the recovery.

[0079] Application configuration file: After the distribution is completed, the rollback management module RMM will instruct each node to apply the old version of the configuration file as the current configuration file;

[0080] Verify configuration: To ensure the correctness of the configuration, the Rollback Management Module (RMM) performs a series of verification operations, such as syntax checking of configuration files and integrity verification of dependencies.

[0081] Based on the above technical solutions, during the blue-green version preparation and configuration phase, the parallel processing capabilities of the distributed system are used to prepare and deploy new versions of multiple nodes at the same time;

[0082] During the traffic guidance and monitoring phase, distributed monitoring technology is used to collect and analyze the operation data from each node in real time to ensure smooth traffic switching.

[0083] During the version verification and health check phase, a comprehensive global health check is performed to ensure the stability and reliability of the new version in the distributed system;

[0084] When a problem is discovered in a new version, the global rollback process is quickly initiated to ensure that the system quickly returns to a stable state.

[0085] On the basis of the above technical solution, in the traffic guidance and monitoring stage, part of the user traffic is guided to the green version according to the preset strategy. During the traffic switching process, the monitoring and analysis module collects the operation data of the green version in real time. The operation data at least includes CPU utilization, memory consumption, request response time, and error log. The operation data of the blue version and the green version are compared and analyzed. If the difference is within the allowable range, the traffic management module TMM is used to gradually increase the proportion of traffic guided to the green version until all traffic switching is completed. If the difference exceeds the allowable range, a global rollback is initiated through the rollback management module RMM.

[0086] Fault rollback mechanism If a problem is found in the green version during traffic guidance or health check, the rollback management module RMM immediately starts the rollback process and quickly switches user traffic back to the blue version; the rollback management module RMM is responsible for restoring the configuration status of the blue version and generating a rollback report to record the cause of the fault and detailed information of the rollback process for subsequent analysis and improvement.

[0087] Based on the above technical solutions, during the version verification and health check phase, we will perform comprehensive health checks through automated testing, user feedback analysis, and system stress testing to ensure that the functions and performance of the green version meet expectations.

[0088] After passing the test, the green version is set as the new blue version, the old blue version is taken offline and resources are released.

[0089] After the version switch is completed and the log is recorded, the automated deployment module shuts down the old version of the service, cleans up unnecessary resources, and updates the version status in the version control module; the monitoring and analysis module MAM generates detailed logs and performance reports of the version switch for system operation and maintenance personnel to perform subsequent optimization and verification.

[0090] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.

[0091] The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiment. Any equivalent modifications or changes made by those skilled in the art based on the contents disclosed by the present invention should be included in the protection scope recorded in the claims.

Claims

1. A distributed system with seamless blue-green version switching, characterized in that: include: Version Control Module (VCM), which is used to synchronize configuration files between multiple nodes in a distributed system, manage blue and green versions across multiple nodes, and ensure the consistency and traceability of versions in a distributed environment; Automated Deployment Module (ADM), which is used to execute deployment tasks in parallel on multiple instances or nodes of a distributed system; parallel deployment can significantly shorten the overall deployment time; Traffic Management Module (TMM), which is used to finely dispatch traffic between multiple geographic regions or data centers through load balancers, service meshes, or DNS routing technologies to ensure global load balancing of distributed systems; The monitoring and analysis module MAM is used to monitor the performance indicators, error rates, user feedback, etc. of each node in the distributed system in real time to ensure accurate understanding of the global operating status; The Rollback Management Module (RMM) is used to start a global rollback mechanism when a problem is detected, switching traffic distributed in multiple nodes or regions back to the old version to ensure rapid system recovery.

2. A distributed system for seamless switching between blue and green versions as claimed in claim 1, characterized in that: The synchronization configuration file includes the following contents: Environment variables, dependencies, network configuration; The synchronization profile is used to ensure that each node can handle the new version correctly.

3. A distributed system for seamless switching between blue and green versions as claimed in claim 1, characterized in that: The automated deployment module ADM is integrated with continuous integration / continuous deployment tools to support automated code integration, building and deployment processes in a distributed build environment.

4. A distributed system for seamless switching between blue and green versions as claimed in claim 1, characterized in that: The traffic management module TMM intelligently adjusts traffic distribution according to system load and network conditions to optimize user experience and system performance.

5. A distributed system for seamless switching between blue and green versions as claimed in claim 1, characterized in that: The monitoring and analysis module MAM adopts cross-node analysis to aggregate and analyze data from different nodes to identify potential distributed system problems.

6. A distributed system for seamless switching between blue and green versions as claimed in claim 1, characterized in that: During the rollback process, the rollback management module RMM synchronously restores the configuration status of each node to ensure the consistency of the system status.

7. A distributed system for seamless switching between blue and green versions as claimed in claim 1, characterized in that: During the blue-green version preparation and configuration phase, the parallel processing capabilities of the distributed system are used to prepare and deploy new versions on multiple nodes simultaneously. During the traffic guidance and monitoring phase, distributed monitoring technology is used to collect and analyze the operation data from each node in real time to ensure smooth traffic switching. During the version verification and health check phase, a comprehensive global health check is performed to ensure the stability and reliability of the new version in the distributed system; When a problem is discovered in a new version, the global rollback process is quickly initiated to ensure that the system quickly returns to a stable state.

8. A distributed system for seamless switching between blue and green versions as claimed in claim 7, characterized in that: In the traffic guidance and monitoring stage, part of the user traffic is guided to the green version according to the preset strategy. During the traffic switching process, the monitoring and analysis module collects the operation data of the green version in real time. The operation data includes at least CPU utilization, memory consumption, request response time, and error log. The operation data of the blue version and the green version are compared and analyzed. If the difference is within the allowable range, the traffic management module TMM is used to gradually increase the proportion of traffic guided to the green version until all traffic switching is completed. If the difference exceeds the allowable range, a global rollback is initiated through the rollback management module RMM.

9. A distributed system for seamless switching between blue and green versions as claimed in claim 7, characterized in that: During the version verification and health check phase, we conduct comprehensive health checks through automated testing, user feedback analysis, and system stress testing to ensure that the functions and performance of the green version meet expectations. After passing the test, the green version is set as the new blue version, the old blue version is taken offline and resources are released.