Flow routing management and control method and system based on conditional routing

By using conditional routing technology in a remote disaster recovery environment, the synchronization of remote OB data copy nodes and the issuance of dynamic routing rules are realized, which solves the problems of startup and readiness of the disaster recovery environment and the shortcomings of traffic routing control in multiple environments in the existing technology. , improving the reliability and timeliness of the drill.

CN118740710APending Publication Date: 2024-10-01INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410860327.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the current off-site disaster recovery drill, the business current limiting switch and container start and stop prevent the disaster recovery environment from being normally started and ready. Moreover, label routing only supports flexible dynamic routing of a single cluster. The implementation is not perfect and cannot satisfy multiple environments. Traffic routing control requirements.

Method used

Adopt a traffic routing control method based on conditional routing, and deploy remote OB data copy nodes between the production cluster and the disaster recovery cluster through Zookeeper's observer mechanism to achieve unified storage and real-time delivery of routing rules, combined with incremental difference synchronization and yaml Format rule parsing and dynamic configuration of routing rules to achieve non-stop traffic routing.

Benefits of technology

It achieves lightweight, low-coupling traffic routing management and control capabilities in multiple environments. Traffic can be controlled without starting or stopping applications, which enhances the reliability and timeliness of drills and reduces business impact.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740710A_ABST
    Figure CN118740710A_ABST
Patent Text Reader

Abstract

The invention provides a traffic routing management and control method and system based on conditional routing, relates to the field of operation and maintenance management, can be applied to the financial field or other fields, and comprises the following steps: deploying a remote OB data copy node of a registration center of a disaster recovery backup cluster in a production cluster based on a Zookeeper observer mechanism, deploying a remote OB data copy node of the production cluster in the disaster recovery backup cluster; and a service consumer obtains service information of the production cluster and the disaster recovery backup cluster and a routing rule provided by a configuration center through client subscription, screens the service information through the routing rule to obtain a target address subset, and sends request traffic through routing addressing according to the target address subset.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of operation and maintenance management and can be applied to the financial field or other fields, especially to a traffic routing control method and system based on conditional routing. Background Art

[0002] At present, off-site disaster recovery drills rely on business flow limiting switches and container start and stop. Applications and services in the disaster recovery environment cannot be kept up and ready on a regular basis. It is difficult to ensure that the minimum RTO is achieved in the subsequent implementation of real disaster recovery takeover drills such as load drills. Specifically, an open source "application multi-active" middleware Appactive project is disclosed in the prior art. It is compatible with service frameworks such as Dubbo and Spring Cloud in the form of a plug-in and supports full-link business flow switching in the computer room dimension. In this project, the Dubbo open source community focused on planning traffic routing capabilities in Dubbo3, which is a typical label routing and supports flexible dynamic routing of a single cluster, but the implementation is not perfect enough; this project changes the registration service address of the registration center by starting and shutting down the application server, and the caller eliminates the server shutdown to achieve traffic switching; traffic routing switching is achieved through domain name resolution or load balancer. The operation is simple, and the timeliness can be controlled in minutes. The current main application scenarios are unitized traffic routing and scenarios with a single traffic entrance for business channels. For this project, label routing only supports flexible dynamic routing of a single cluster, and the implementation is not perfect enough; only a prototype has been implemented, the community activity is low, and the maturity is not high; traffic routing based on a unified entrance does not support multi-active campuses. Summary of the invention

[0003] The purpose of this application is to provide a traffic routing control method and system based on conditional routing, which uniformly identifies and forwards request traffic based on dynamic routing rules. Through the lightweight routing capability of the DSF service framework, the configuration center is linked to realize the unified storage and real-time distribution of routing rules, realize the non-stop allocation of traffic routing, and improve the lightweight and low-coupling traffic routing control capabilities in multiple environments within the bank.

[0004] To achieve the above-mentioned purpose, the present application provides a traffic routing control method based on conditional routing, which includes: deploying an off-site OB data replica node of the registration center of the disaster recovery cluster in the production cluster based on the Zookeeper observer mechanism, and deploying an off-site OB data replica node of the production cluster in the disaster recovery cluster; the service consumer obtains the service information of the production cluster and the disaster recovery cluster and the routing rules provided by the configuration center through client subscription, obtains a target address subset from the service information through the routing rules, and sends the request traffic through routing addressing according to the target address subset.

[0005] In the above-mentioned traffic routing control method based on conditional routing, optionally, the method further includes: registering and subscribing the environmental servers of the production cluster and the disaster recovery cluster in a local registration center, and enabling the transaction log of the environmental server; completing data synchronization between the production cluster and the disaster recovery cluster by means of incremental differences according to the off-site OB data replica node.

[0006] In the above-mentioned traffic routing control method based on conditional routing, optionally, filtering and obtaining a target address subset in the service information through the routing rules includes: obtaining a traffic control strategy through YAML format rule parsing and executor parsing the routing rules; and filtering and obtaining a target address subset in a pre-stored address set according to the traffic control strategy.

[0007] In the above-mentioned traffic routing control method based on conditional routing, optionally, the routing rules include a rule directory and a rule body, the rule directory is used to record the information of the rule body, and the rule body is used to identify the effective time, effective dimension and screening strategy of the service provider of the rule.

[0008] In the above-mentioned traffic routing control method based on conditional routing, optionally, the method further includes: monitoring the enabled status and deployment area of ​​the routing rules, the traffic call information of the production cluster and the disaster recovery cluster, and the client operation data according to a preset period; generating a control display image according to the enabled status and deployment area of ​​the routing rules, generating a disaster recovery production traffic access image according to the traffic call information of the production cluster and the disaster recovery cluster, and generating a client operation status image according to the client operation data.

[0009] In the above-mentioned traffic routing control method based on conditional routing, optionally, the method further includes: obtaining a traffic switching strategy provided by a user, generating routing rules according to the traffic switching strategy; and dynamically configuring the routing rules to the configuration center.

[0010] In the above-mentioned traffic routing control method based on conditional routing, optionally, sending the request traffic through routing addressing according to the target address subset includes: sending the request traffic through routing addressing through DynamicRuleRouter according to the target address subset.

[0011] The present application also provides a traffic routing management and control system based on conditional routing, the system comprising a deployment module and an access module; the deployment module is used to deploy an off-site OB data replica node of a registration center of a disaster recovery cluster in a production cluster based on Zookeeper's observer mechanism, and to deploy an off-site OB data replica node of a production cluster in the disaster recovery cluster; the access module is used to obtain service information of the production cluster and the disaster recovery cluster and routing rules provided by a configuration center through client subscription, filter a target address subset from the service information through the routing rules, and send request traffic through routing addressing according to the target address subset.

[0012] The present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.

[0013] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method.

[0014] The present application also provides a computer program product, comprising a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0015] The beneficial technical effect of the present application is that: based on the distributed service framework DSF, a pluggable lightweight traffic routing capability base is built, and the consumer client performs routing addressing based on routing rules to achieve cluster / campus / single-machine traffic control, and creates a unified routing rule operation and maintenance platform through the service management and control platform and the production platform, and builds lightweight, low-coupled traffic routing management and control capabilities in multiple environments. There is no need to start and stop applications to control traffic, which enhances the reliability and timeliness of drills and reduces business impact. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application, constitute a part of the present application, and do not constitute a limitation of the present application. In the drawings:

[0017] Figure 1 A flow chart of a traffic routing control method based on conditional routing provided in one embodiment of the present application;

[0018] Figure 2 A schematic diagram of a data synchronization process provided by an embodiment of the present application;

[0019] Figure 3 A schematic diagram of a monitoring image acquisition process provided in an embodiment of the present application;

[0020] Figure 4A schematic diagram of a target address subset obtaining process provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of the structure of a traffic routing control system based on conditional routing provided in one embodiment of the present application;

[0022] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will describe the implementation methods of the present application in detail in conjunction with the accompanying drawings and embodiments, so that the implementation process of how the present application applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly. It should be noted that as long as there is no conflict, the various embodiments in the present application and the various features in the embodiments can be combined with each other, and the technical solutions formed are all within the protection scope of the present application.

[0024] In addition, the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be performed in an order different from that shown here.

[0025] Please refer to Figure 1 As shown, the present application provides a traffic routing control method based on conditional routing, the method comprising:

[0026] S101 deploys an off-site OB data replica node of the registration center of the disaster recovery cluster in the production cluster based on the Zookeeper observer mechanism, and deploys an off-site OB data replica node of the production cluster in the disaster recovery cluster;

[0027] S102 The service consumer obtains the service information of the production cluster and the disaster recovery cluster and the routing rules provided by the configuration center through client subscription, filters the target address subset in the service information through the routing rules, and sends the request traffic through routing addressing according to the target address subset.

[0028] Specifically, in actual work, based on Zookeeper's observer mechanism, the platform deploys off-site OB replica nodes for production and disaster recovery clusters. Each environment server only registers and subscribes to the local registration center, making full use of the incremental synchronization mechanism within the registration center cluster to greatly reduce the bandwidth usage of off-site subscriptions. At the same time, a disaster recovery empty cluster mechanism is designed during the non-drill period to achieve the isolation effect of disaster recovery on production. Based on the idea of ​​configurable routing strategy, traffic rules are obtained from the configuration center through dynamic routing, and the DSF client routes service requests according to the rules, which can achieve controllable routing of non-stop server traffic and reduce the time required for cutting traffic to within 2 minutes, meeting the requirement of "cutting as soon as the order is given and using as soon as the order is given".

[0029] Please refer to Figure 2 As shown, in one embodiment of the present application, the method further comprises:

[0030] S201 registers and subscribes the environment servers of the production cluster and the disaster recovery cluster to a local registration center, and opens the transaction log of the environment server;

[0031] S202 completes data synchronization between the production cluster and the disaster recovery cluster by means of incremental differences according to the remote OB data replica node.

[0032] Specifically, in actual work, the deployment architecture of the DSF platform registration center can be adjusted, and the OB data replica node of the production cluster can be deployed in the disaster recovery environment. At the same time, the transaction log can be enabled to complete data synchronization in an incremental difference manner. Deploy the remote OB data replica node of the disaster recovery registration center in the production environment. The production (disaster recovery) server only needs to register and subscribe to the local proxy node. There is no need to subscribe to the remote server across thousands of kilometers, which completely solves the remote disaster recovery subscription production service, the risk of full north-south dedicated lines due to the large amount of data pushed, and simultaneously reduces the push delay. When the production remote OB joins the cluster for the first time, each unit needs to synchronize some data. They can be added one by one before the drill to control the overall bandwidth occupancy ratio.

[0033] Please refer to Figure 3 As shown, in one embodiment of the present application, the method further comprises:

[0034] S301 monitors the activation status and deployment area of ​​the routing rules, the traffic call information of the production cluster and the disaster recovery cluster, and the client operation data according to a preset period;

[0035] S302 generates a management and control display image according to the enabled state and deployment area of ​​the routing rule, generates a disaster recovery production traffic access image according to the traffic call information of the production cluster and the disaster recovery cluster, and generates a client operation status image according to the client operation data.

[0036] Specifically, it can collect and visualize key indicators of off-site takeover, such as traffic rules, effective status, and deployment areas, build holographic monitoring to support the display of disaster recovery production call traffic, form a monitoring view after dynamic routing flow switching, and timely discover abnormal takeover status for each participating application, thereby improving the visualization level of takeover drills. The platform DSF framework fully covers the monitoring of the delivery status and effective status of flow switching rules, and provides full-dimensional retrieval of global, application, template, container, etc. In combination with the drill stage, the application running status view, that is, the client running status view, is drawn to promptly reflect the acceptance and effectiveness information of disaster recovery instructions on each production node, and promptly locate the abnormal status server. Support real-time monitoring of special transaction traffic such as disaster recovery access to production, production access to disaster recovery, etc., and display it according to application and global dimensions. In combination with the drill stage, abnormal traffic can be discovered in a timely manner.

[0037] In an embodiment of the present application, the method further includes: obtaining a flow switching strategy provided by a user, generating a routing rule according to the flow switching strategy; and dynamically configuring the routing rule to the configuration center.

[0038] Specifically, in actual work, relevant rule management platforms can be used to improve the unified operation and maintenance capabilities of rules, improve rule management and operation management functions, and at the same time, can be connected to the production drama platform to enable one-click flow switching by operation and maintenance personnel to ensure safe production operation and maintenance. Through the service framework, the service information of production and disaster recovery is loaded at the same time, and the configuration center is linked to realize the global real-time distribution of routing rules. Based on the routing rules, the request traffic is scheduled, and the RPC request traffic routing production or disaster recovery environment is allocated without stopping. After the construction of the off-site disaster recovery system is completed, the number of clients to which the flow switching rules are issued is about 150,000, and all can be issued within 2 minutes. Technically, the dynamic routing mechanism is expanded on the distributed service framework. The DSF client subscribes to the configuration center. The service consumer dynamically selects the target provider of the RPC request according to the flow switching rules configured by the operation and maintenance personnel, so as to achieve the dynamic routing effect without stopping the provider.

[0039] In an embodiment of the present application, sending the request traffic through routing addressing according to the target address subset includes: sending the request traffic through routing addressing through DynamicRuleRouter according to the target address subset.

[0040] In actual work, dynamic traffic routing is based on the Dubbo SPI dynamic rule router, which parses the dynamic routing rule DynamicRule and dynamically filters the target provider set; it supports configuring traffic rules according to the application / cluster dimension, and the rule content defines the traffic routing to production / disaster recovery, or a designated park. The rule effective time configuration item is usually set to 2 minutes after the flow cutting rule is issued, and it is issued to the client synchronously with the flow cutting rule; after the client receives the rule, the flow control rule will not take effect before the effective time; it reduces the client reception delay when large-scale issuance occurs, resulting in a large number of unclosed-loop transactions.

[0041] Please refer to Figure 4 As shown, in one embodiment of the present application, the target address subset obtained by filtering the service information through the routing rule includes:

[0042] S401 obtains a flow control strategy by parsing the routing rules through yaml format rules and the executor;

[0043] S402: Filter and obtain a target address subset from a pre-stored address set according to the flow control strategy.

[0044] The routing rule includes a rule directory and a rule body, wherein the rule directory is used to record information of the rule body, and the rule body is used to identify the effective time, effective dimension and screening strategy of the service provider of the rule.

[0045] Specifically, based on the distributed service framework DSF, a pluggable lightweight traffic routing capability base is configured, and the consumer client performs routing addressing based on routing rules to achieve traffic control of clusters / campuses / stand-alone machines. Use the DubboSPI method to create a new DynamicRuleRouter to complete routing addressing. Specifically: match a unique DynamicRule object through the application name, and each service call involves only one pre-matched rule; DynamicRuleRouter routes the input DynamicRule and all providers, and addresses a subset of qualified providers based on rule matching. In this embodiment, the framework provides flexible yaml format rule parsing and executors. The parsing and execution of routing rules are on the consumer side. Before initiating each request call, the consumer selects a qualified address subset from the address set based on the routing rules to achieve a traffic control effect. Routing rules are divided into two parts: ID (rule directory) and Rule (rule body). ID is the rule directory of the configuration center monitored by the consumer, in the format of application name; example: F-DSF; Rule is the rule body, which supports the following keywords: enabled (whether the rule is effective), scope (rule effectiveness dimension: application is the application dimension), and conditions (provider screening rules, the core of the rule body).

[0046] Please refer to Figure 5 As shown, the present application also provides a traffic routing control system based on conditional routing, the system includes a deployment module and an access module; the deployment module is used to deploy the off-site OB data replica node of the registration center of the disaster recovery cluster in the production cluster based on the Zookeeper observer mechanism, and deploy the off-site OB data replica node of the production cluster in the disaster recovery cluster; the access module is used to obtain the service information of the production cluster and the disaster recovery cluster and the routing rules provided by the configuration center through client subscription, and filter the target address subset in the service information through the routing rules, and send the request traffic through routing addressing according to the target address subset. Specifically, when the non-stop traffic switching is realized by the rule-based dynamic routing method and system, the deployment environment identifier (env) can be applied to distinguish between the disaster recovery (zb) and production (sc) environments. The flow cutting rules (env=zb) configured by the production operation and maintenance are called by the configuration center interface by the drill tool during the drill to formally publish the rules. After receiving the flow cutting rules, each consumer of the application will filter out the production environment provider and route all to the disaster recovery environment. Since the principle of solving the problem by the device is similar to that of the traffic routing control method based on conditional routing, the implementation of the device can refer to the implementation of the traffic routing control method based on conditional routing, and the repeated parts will not be repeated.

[0047] Therefore, this application is based on the construction of a pluggable lightweight traffic routing capability base based on the distributed service framework DSF. The consumer client performs routing addressing based on routing rules to achieve traffic control of clusters / campuses / single machines, and creates a unified routing rule operation and maintenance platform through the service management and control platform and the production drma platform to build lightweight, low-coupled traffic routing management and control capabilities in multiple environments. There is no need to start and stop applications to control traffic, which enhances the reliability and timeliness of drills and reduces business impact.

[0048] The beneficial technical effect of the present application is that: based on the distributed service framework DSF, a pluggable lightweight traffic routing capability base is built, and the consumer client performs routing addressing based on routing rules to achieve cluster / campus / single-machine traffic control, and creates a unified routing rule operation and maintenance platform through the service management and control platform and the production drma platform, and builds lightweight, low-coupled traffic routing management and control capabilities in multiple environments. There is no need to start and stop applications to control traffic, which enhances the reliability and timeliness of drills and reduces business impact.

[0049] The present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.

[0050] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method.

[0051] The present application also provides a computer program product, comprising a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0052] like Figure 6 As shown, the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processor 130, a display 160, and a power supply 170. It is worth noting that the electronic device 600 does not necessarily have to include Figure 6 In addition, the electronic device 600 may also include Figure 6 For components not shown, reference may be made to the prior art.

[0053] like Figure 6 As shown, the central processor 100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor devices and / or logic devices. The central processor 100 receives inputs and controls the operations of various components of the electronic device 600.

[0054] The memory 140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 100 may execute the program stored in the memory 140 to implement information storage or processing.

[0055] The input unit 120 provides input to the CPU 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display display objects such as images and text. The display may be, for example, an LCD display, but is not limited thereto.

[0056] The memory 140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 140 may also be some other type of device. The memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application / function storage unit 142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 600 through the central processor 100.

[0057] The memory 140 may also include a data storage unit (data 143) for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit (driver 144) of the memory 140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0058] The communication module 110 is a transmitter / receiver 110 that transmits and receives signals via an antenna 111. The communication module (transmitter / receiver) 110 is coupled to the central processor 100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0059] Based on different communication technologies, multiple communication modules 110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module. The communication module (transmitter / receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide an audio output via the speaker 131 and receive an audio input from the microphone 132, thereby realizing a common telecommunication function. The audio processor 130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 130 is also coupled to the central processor 100, so that the sound can be recorded on the local machine through the microphone 132, and the sound stored on the local machine can be played through the speaker 131.

[0060] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0061] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0062] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0063] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0064] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A traffic routing control method based on conditional routing, characterized in that: The method comprises: Based on the Zookeeper observer mechanism, deploy the remote OB data replica node of the registration center of the disaster recovery cluster in the production cluster, and deploy the remote OB data replica node of the production cluster in the disaster recovery cluster; The service consumer obtains the service information of the production cluster and the disaster recovery cluster and the routing rules provided by the configuration center through client subscription, filters the service information through the routing rules to obtain a target address subset, and sends request traffic through routing addressing according to the target address subset.

2. The method for controlling traffic routing based on conditional routing according to claim 1, characterized in that: The method further comprises: Register and subscribe the environment servers of the production cluster and the disaster recovery cluster to the local registration center, and enable the transaction logs of the environment servers; The data synchronization between the production cluster and the disaster recovery cluster is completed by means of incremental differences according to the remote OB data replica node.

3. The method for controlling traffic routing based on conditional routing according to claim 1, characterized in that: The target address subset obtained by filtering the service information through the routing rule includes: Obtain the flow control strategy by parsing the routing rules through yaml format rules and executor parsing; A target address subset is obtained by screening the pre-stored address set according to the flow control strategy.

4. The method for controlling traffic routing based on conditional routing according to claim 1, characterized in that: The routing rule includes a rule directory and a rule body, wherein the rule directory is used to record information of the rule body, and the rule body is used to identify the effective time, effective dimension and screening strategy of the service provider of the rule.

5. The method for controlling traffic routing based on conditional routing according to claim 1, characterized in that: The method further comprises: Monitor the enabled status and deployment area of ​​routing rules, the traffic call information of the production cluster and the disaster recovery cluster, and the client operation data according to a preset period; A management and control display image is generated according to the enabled status and deployment area of ​​the routing rules, a disaster recovery production traffic access image is generated according to the traffic call information of the production cluster and the disaster recovery cluster, and a client operation status image is generated according to the client operation data.

6. The method for controlling traffic routing based on conditional routing according to claim 1, characterized in that: The method further comprises: Obtaining a traffic switching strategy provided by a user, and generating a routing rule according to the traffic switching strategy; The routing rules are dynamically configured to the configuration center.

7. The method for controlling traffic routing based on conditional routing according to claim 1, characterized in that: Sending the request traffic through routing addressing according to the target address subset includes: sending the request traffic through routing addressing through DynamicRuleRouter according to the target address subset.

8. A traffic routing control system based on conditional routing, characterized in that: The system comprises a deployment module and an access module; The deployment module is used to deploy the remote OB data replica node of the registration center of the disaster recovery cluster in the production cluster based on the Zookeeper observer mechanism, and deploy the remote OB data replica node of the production cluster in the disaster recovery cluster; The access module is used to obtain the service information of the production cluster and the disaster recovery cluster and the routing rules provided by the configuration center through client subscription, filter the target address subset in the service information through the routing rules, and send the request traffic through routing addressing according to the target address subset.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.