Data processing methods, systems, equipment, and storage media based on active-active data centers
By employing a load balancing strategy and data synchronization mechanism in a dual-active data center, the problem of low resource utilization in the backup data center was solved, enabling efficient, reliable, and continuous business processing of data, thereby improving resource utilization and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-23
- Publication Date
- 2026-04-03
AI Technical Summary
In existing technologies, backup data center resources have low utilization rates, leading to resource waste, and there is a high risk of business processing interruption during disaster downtime.
A load balancing strategy based on dual active-active data centers is adopted to ensure that user data is dynamically distributed between the primary and backup data processing centers, enabling synchronized data storage and processing, and ensuring that the backup center can immediately take over business processing in the event of a failure of the primary center.
This improved the utilization rate of the backup data center, enhanced overall resource utilization, ensured the continuity and reliability of business processing, and avoided resource waste and business interruption caused by the idleness of the backup data center.
Smart Images

Figure CN117555688B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a data processing method, system, device and storage medium based on a dual-active data center. Background Technology
[0002] With the rapid development of rail transit, the traditional automatic fare collection system has evolved into a modern, diversified payment system for internet ticketing, leading to increasing data processing pressure and costs for the automatic fare collection data center. Furthermore, as users demand higher quality service access, ensuring continuous operation and improving user experience have become the primary responsibilities of the rail network operations center.
[0003] In existing technologies, to ensure continuous operation of services throughout the day, ticketing data processing is primarily handled through a primary / backup data center model. Typically, the primary data center provides services while the backup data center remains idle. Only in the event of a disaster and system outage will the business system migrate from the primary data center to the backup data center, where it will then process the corresponding business data. However, disasters and system outages are low-probability events, and the backup data center remains idle most of the time, resulting in low resource utilization and a degree of resource waste. Summary of the Invention
[0004] This application provides a data processing method, system, device, and storage medium based on a dual-active data center, which can solve the problem of low resource utilization during data processing, improve the utilization rate of the backup center, and thus improve the overall resource utilization rate of data processing.
[0005] In a first aspect, embodiments of this application provide a data processing method based on a dual-active data center, comprising:
[0006] Receive user data over the network;
[0007] If the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is sent to the first data processing center as the first user data.
[0008] The first data processing center performs business processing based on the first user data and the stored business data to obtain the first business data;
[0009] The first data processing center synchronizes the first business data to the second data processing center and the data backup center;
[0010] If the user data is confirmed to be processed by the second data processing center through a preset load balancing strategy, the user data is sent to the second data processing center as the second user data.
[0011] The second data processing center performs business processing based on the second user data and the stored business data to obtain the second business data;
[0012] The second data processing center synchronizes the second business data to the first data processing center and the data backup center;
[0013] The business data includes one or more of the first business data and the second business data.
[0014] Furthermore, after the second data processing center synchronizes the second business data to the first data processing center and the data backup center, it includes:
[0015] When a system failure is detected in the first data processing center, the user data is confirmed to be processed by the second data processing center through a load balancing strategy, and the user data is sent to the second data processing center as the second user data.
[0016] Furthermore, when a system failure is detected in the first data processing center, after confirming through a load balancing strategy that the user data will be processed by the second data processing center and sending the user data as the second user data to the second data processing center, the process includes:
[0017] When the fault in the first data processing center is detected to be cleared, a fault clearance notification is sent from the first data processing center to the second data processing center or the data backup center.
[0018] The second data processing center or the data backup center synchronizes the stored business data to the first data processing center based on the fault elimination notification.
[0019] Furthermore, when a system failure is detected in the first data processing center, after confirming through a load balancing strategy that the user data will be processed by the second data processing center and sending the user data as the second user data to the second data processing center, the process includes:
[0020] When the fault of the first data processing center is detected to be eliminated, the user data is determined to be processed by the first data processing center or the second data processing center through a load balancing strategy.
[0021] If the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is sent to the first data processing center as the first user data.
[0022] If the user data is confirmed to be processed by the second data processing center through a preset load balancing strategy, the user data is sent to the second data processing center as the second user data.
[0023] Furthermore, the first data processing center includes a first edge switch and a second edge switch, the second data processing center includes a third edge switch and a fourth edge switch, and the data backup center includes a fifth edge switch and a sixth edge switch; wherein the first edge switch is communicatively connected to the third edge switch and the fifth edge switch, and the second edge switch is communicatively connected to the fourth edge switch and the sixth edge switch;
[0024] The first data processing center synchronizes the first business data to the second data center and the data backup center, including:
[0025] The first data processing center sends the first service data to the third edge switch of the second data processing center and the fifth edge switch of the data backup center through the first edge switch to achieve data synchronization;
[0026] Alternatively, the first data processing center may send the first service data to the fourth edge switch of the second data processing center and the sixth edge switch of the data backup center through the second edge switch to achieve data synchronization.
[0027] Furthermore, the first data processing center synchronizes the first business data to the second data center and the data backup center, including:
[0028] When a fault is detected in the communication link corresponding to the first edge switch, the first data processing center sends the first service data to the fourth edge switch of the second data processing center and the sixth edge switch of the data backup center through the second edge switch to achieve service data synchronization.
[0029] Alternatively, when a fault is detected in the communication link corresponding to the second edge switch, the first data processing center sends the first service data to the third edge switch of the second data processing center and the fifth edge switch of the data backup center through the first edge switch to achieve service data synchronization.
[0030] Furthermore, the first data processing center also includes a first core switch, a second core switch, and at least one first service server;
[0031] The first data processing center performs business processing based on the first user data and stored business data to obtain the first business data, including:
[0032] The first data processing center performs first business processing on the first user data and the stored business data through the corresponding first business server to obtain the first sub-data;
[0033] The first server transmits the first sub-data to the first core switch or the second core switch;
[0034] When the first server transmits the first sub-data to the first core switch, the first core switch performs a first data exchange process on the first sub-data to obtain first exchange data, and then transmits the first exchange data to the first edge switch.
[0035] The first service data is obtained by performing a second data exchange process on the first exchange data through the first edge switch.
[0036] When the first server transmits the first sub-data to the second core switch, the second core switch performs a third data exchange process on the first sub-data to obtain the second exchange data, and then transmits the second exchange data to the second edge switch.
[0037] The second edge switch performs a fourth data exchange process on the second exchange data to obtain the first service data.
[0038] In a second aspect, embodiments of this application provide a data processing system based on a dual-active data center for executing the data processing method based on a dual-active data center described in the first aspect. The system includes a first data processing center, a second data processing center, a data backup center, and network devices. The first data processing center includes a first edge switch and a second edge switch. The second data processing center includes a third edge switch and a fourth edge switch. The data backup center includes a fifth edge switch and a sixth edge switch.
[0039] The network device is communicatively connected to the first data processing center and the second data processing center, and is used to determine whether user data is processed by the first data processing center or the second data processing center through a preset load balancing strategy, and to send the received user data to the first data processing center or the second data processing center.
[0040] The first edge switch of the first data processing center, the third edge switch of the second data processing center, and the fifth edge switch of the data backup center are communicatively connected;
[0041] The second edge switch of the first data processing center is communicatively connected to the fourth edge switch of the second data processing center and the sixth edge switch of the data backup center;
[0042] The first data processing center is used to process the received first user data to obtain first business data, and to synchronize the first business data to the second data processing center and the data backup center through the first edge switch or the second edge switch.
[0043] The second data processing center is used to process the received second user data to obtain second business data, and to synchronize the second business data to the first data processing center and the data backup center through the third edge switch or the fourth edge switch.
[0044] In a third aspect, embodiments of this application provide a data processing device based on a dual-active data center, comprising:
[0045] Memory and one or more processors;
[0046] The memory is used to store one or more programs;
[0047] When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method based on a dual-active center as described in the first aspect.
[0048] In a fourth aspect, embodiments of this application provide a storage medium for storing computer-executable instructions, which, when executed by a computer processor, are used to perform the data processing method based on a dual-active-center as described in the first aspect.
[0049] This application embodiment uses a load balancing strategy to determine whether user data is processed by a first data processing center or a second data processing center. If the first data processing center is selected, the user data is sent to it as first user data. The first data processing center performs business processing based on the first user data and stored business data to obtain first business data, and then synchronizes the first business data to the second data processing center and the data backup center. If the second data processing center is selected, the user data is sent to it as second user data. The second data processing center performs business processing based on the second user data and stored business data to obtain second business data, and then synchronizes the second business data to the first data processing center and the data backup center. By employing this technical means, a load balancing strategy can determine whether user data is processed by the first or second data processing center, allowing the backup second data processing center to participate in business processing under normal circumstances. This avoids the problem of low resource utilization caused by the backup center not participating in business processing during normal use of the main center, improving the utilization rate of the backup second data processing center and thus enhancing the overall resource utilization rate of data processing. Furthermore, by synchronizing the first business data to the second data processing center and the data backup center through the first data center, and synchronizing the second business data to the first data processing center and the data backup center through the second data center, synchronous storage of business data is achieved. This allows the other data processing center to immediately take over business processing based on the stored business data in the event of a failure in either the first or second data processing center, thus avoiding business processing interruption and improving the reliability and security of data processing. Attached Figure Description
[0050] Figure 1 This is a flowchart of a data processing method based on a dual-active data center provided in an embodiment of this application;
[0051] Figure 2 This is a schematic diagram of a backbone network provided in an embodiment of this application;
[0052] Figure 3 This is a schematic diagram of a data processing system based on a dual-active data center provided in an embodiment of this application;
[0053] Figure 4 This is a schematic diagram of the structure of a data processing device based on a dual-active data center, as provided in an embodiment of this application. Detailed Implementation
[0054] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0055] In existing technologies, to ensure continuous operation of business throughout the day, ticketing data processing is primarily handled through a primary / backup data center model. Typically, the primary data center provides services while the backup data center remains idle. Only in the event of a disaster and downtime in the primary data center will the business system migrate to the backup data center for data processing. However, disasters and downtime are low-probability events, and the backup data center is mostly idle, resulting in low resource utilization and a degree of resource waste.
[0056] Based on this, the present application provides a data processing method based on a dual-active data center. This method uses a load balancing strategy to determine whether user data is processed by a first or second data processing center, allowing the second data processing center, which serves as a backup, to also participate in business processing under normal circumstances. This addresses the problem of low resource utilization caused by the backup center's non-participation in existing business data processing, improving the utilization rate of the backup second data processing center and thus enhancing the overall resource utilization of data processing. Furthermore, by synchronizing first business data to the second data processing center and data backup center through the first data center, and synchronizing second business data to the first data processing center and data backup center through the second data center, synchronous storage of business data is achieved. This ensures that if either the first or second data processing center fails, the other data processing center can immediately take over business processing based on the stored business data, avoiding business interruption and improving data processing reliability and security.
[0057] Figure 1A flowchart of a data processing method based on a dual-active-center architecture, as provided in this application embodiment, is given. This method can be executed by a dual-active-center data processing device, which can be implemented through software and / or hardware. The device can consist of two or more physical entities, or it can consist of a single physical entity. Generally, this dual-active-center data processing device can be a terminal device, such as a computer.
[0058] The following description uses a computer device as the main entity executing a data processing method based on a dual-active data center as an example. (Refer to...) Figure 1 The data processing method based on dual-active data centers specifically includes:
[0059] S101, Receive user data via network.
[0060] This data processing method based on a dual-active data center can be used for ticketing data processing in rail transit. Ticketing data can be understood as the tickets purchased by passengers when using rail transit. User data in ticketing data can be understood as passenger entry and exit data. Business processing based on entry and exit data is necessary to calculate the corresponding fare for each passenger. This embodiment provides a method for processing ticketing data by setting up a first data processing center, a second data processing center, and a data backup center, enabling uninterrupted business processing of ticketing data at all times, facilitating the smooth operation of business operations.
[0061] The primary data processing center, the secondary data processing center, and the data backup center are located in three separate data centers. The primary and secondary data processing centers are situated in different geographical locations, while the data backup center can be located in a different data center within the same geographical location as either the primary or secondary data processing center. It should be noted that the distance between the three data centers is less than 50 km to maintain good network performance.
[0062] The first data processing center, the second data processing center, and the data backup center are connected through an SDN (Software-Defined Networking) architecture. The network links between the three can use bare fiber or a backbone network, i.e., an optical transmission network, with a network bandwidth of over 10Gbps and a latency of less than 2ms.
[0063] In one embodiment, when the first data processing center, the second data processing center, and the data backup center are interconnected via a backbone network, they can receive user data via an optical transmission network. Figure 2 This is a schematic diagram of a backbone network provided in an embodiment of this application, with reference to... Figure 2The backbone network 10 includes a first-layer switch 101, a first optical transport network 102, a second-layer switch 103, and a second optical transport network 104. User data is received through the first-layer switch 101, processed through data exchange, and then transmitted through the first optical transport network 102 to the second-layer switch 103. After further processing through the second-layer switch 103, the data is then sent through the second optical transport network 104. For example, the first-layer switch 101 is an SC switch, and the second-layer switch 103 is an LC switch.
[0064] As described above, receiving user data through an optical transport network enables high-capacity and high-speed data transmission, improving the overall efficiency of business data processing. Furthermore, the optical transport network allows for flexible network management and control, providing network transmission assurance for dual-active data centers.
[0065] S102. If it is confirmed through a preset load balancing strategy that the user data is processed by the first data processing center, the user data is sent to the first data processing center as the first user data.
[0066] The first data processing center can be understood as the primary data center, and the second data processing center can be understood as the backup data center. In this embodiment, in order to improve the utilization rate of the backup second data processing center, a preset load balancing strategy is used to determine whether user data is processed by the first data processing center or the second data processing center. This allows both the first and second data processing centers to participate in business processing as dual-active centers, thereby avoiding resource waste caused by the existing backup data center not participating in business processing under normal circumstances. This embodiment improves the utilization rate of the backup second data processing center, thereby improving the overall resource utilization rate of data processing.
[0067] If a preset load balancing strategy confirms that user data is to be processed by the first data processing center, the user data is sent as first user data to the first data processing center via a network (e.g., an optical transmission network). The first data processing center includes at least one first server. If a preset load balancing strategy confirms that user data is to be processed by the first data processing center, the user data is sent as first user data to the corresponding first server via a network (e.g., an optical transmission network). Figure 3 This is a schematic diagram of a data processing system based on a dual-active data center, provided in an embodiment of this application. (Refer to...) Figure 3Assume that the first data processing center 11 includes three first servers, namely first server A, first server B, and first server C. If a preset load balancing strategy confirms that user data is processed by the first data processing center 11, the user data is sent as first user data to the corresponding first server A, first server B, or first server C of the first data processing center 11 via a network (e.g., an optical transport network).
[0068] In one embodiment, reference is made to Figure 3 The optical transmission network sends the first user data to the first data processing center 11 through at least two communication links, so that if any communication link fails, the data can be transmitted by other communication links, thereby improving the reliability of data transmission.
[0069] As described above, when it is confirmed through a preset load balancing strategy that the user data is processed by the first data processing center, the user data is sent as the first user data to the first server corresponding to the first data processing center through a network (e.g., an optical transmission network) to achieve load balancing, reasonably arrange the corresponding load (the first server) to receive the user data, improve the overall load balancing of the system, and thus improve the overall work efficiency of business processing.
[0070] S103. The first data processing center performs business processing based on the first user data and the stored business data to obtain the first business data.
[0071] The user data represents passenger ticketing data, which could be either entry or exit data. If the first user data is entry data, the first data processing center receives it and directly processes it to obtain the corresponding first business data. If the first user data is exit data, based on the dual-active data processing method provided in this embodiment, the first data processing center synchronously stores the corresponding entry data based on the business data. Therefore, after receiving the first user data, the first data processing center processes it based on the first user data and the stored business data to obtain the corresponding first business data; the obtained first business data should be the corresponding ticket settlement data. In this way, the first data processing center processes the first user data and the stored business data to achieve ticketing data synchronization and improve the continuity of ticketing data processing.
[0072] In one embodiment, reference is made to Figure 3The first data processing center 11 includes a first core switch 111, a second core switch 112, and at least one first server. When a preset load balancing strategy confirms that user data will be processed by the first data processing center 11, the user data is sent as first user data to the corresponding first server via a network (e.g., an optical transport network). The corresponding first server performs first service processing based on the first user data and stored service data to obtain first sub-data, which is then transmitted to either the first core switch 111 or the second core switch 112. It should be noted that transmission can be made to either the first core switch 111 or the second core switch 112 depending on the actual situation. For example, if both the first core switch 111 and the second core switch 112 are functioning normally, a round-robin transmission method can be used. For instance, the first transmission is made to the first core switch 111, the second to the second core switch 112, and so on. Alternatively, if one core switch malfunctions, the data is transmitted to the other core switch that is functioning normally. For example, if the first core switch 111 malfunctions, the first sub-data is transmitted to the second core switch 112.
[0073] For example, refer to Figure 3 If a preset load balancing strategy confirms that user data will be processed by the first data processing center 11, the user data is sent as first user data to the first server A, first server B, or first server C corresponding to the first data processing center 11 via a network (e.g., an optical transport network). For example, if the user data is sent as first user data to the first server A corresponding to the first data processing center 11 via an optical transport network, then the first server A performs first service processing based on the first user data and stored service data to obtain first sub-data. The first server A then transmits the first sub-data to the first core switch 111 or the second core switch 112.
[0074] When the first server transmits the first sub-data to the first core switch 111, the first core switch 111 performs a first data exchange process on the first sub-data to obtain first exchanged data, and then transmits the first exchanged data to the first edge switch 113. It should be noted that the first data exchange process is a core data exchange process. The first edge switch 113 performs a second data exchange process on the first exchanged data to obtain first service data. It should be noted that the second data exchange process is an edge data exchange process.
[0075] When the first server transmits the first sub-data to the second core switch 112, the second core switch 112 performs a third data exchange process on the first sub-data to obtain second exchange data, which is then transmitted to the second edge switch 114. It should be noted that the third data exchange process involves core data exchange. The second edge switch 114 then performs a fourth data exchange process on the second exchange data to obtain the first service data. It should be noted that the fourth data exchange process involves edge data exchange.
[0076] As described above, in the first data processing center, core data is exchanged and processed through a first core switch or a second core switch, and edge data is exchanged and processed through a first edge switch and a second edge switch, which are cheaper than core switches, thereby saving the overall cost of the first data processing center.
[0077] S104. The first data processing center synchronizes the first business data to the second data processing center and the data backup center.
[0078] The first data processing center performs business processing based on the first user data and stored business data. After obtaining the first business data, the first data processing center synchronizes the first business data to the second data processing center and the data backup center. This allows the second data processing center to perform business processing based on the second user data and stored business data (such as the first business data) when it receives the second user data, thus avoiding business interruption and improving the linkage between the first and second data processing centers. This enables both the first and second data processing centers to participate in the processing of business data, improves the utilization rate of the backup data center (such as the second data processing center), and ultimately enhances the overall resource utilization rate during the business processing process.
[0079] In one embodiment, the data backup center serves as a data backup mechanism. When a failure occurs in the first data processing center or the second data processing center, the corresponding business data can be synchronized to the corresponding first data processing center or second data processing center after the failure is resolved. This improves the security and continuity of business data. After the failure is resolved, the corresponding business processing can continue based on the synchronized business data, thereby improving the overall efficiency of business processing.
[0080] In one embodiment, reference is made to Figure 3The first data processing center 11 includes a first edge switch 113 and a second edge switch 114; the second data processing center 12 includes a third edge switch 123 and a fourth edge switch 124; and the data backup center 13 includes a fifth edge switch 133 and a sixth edge switch 134. The first edge switch 113 is communicatively connected to the third edge switch 123 and the fifth edge switch 133, and the second edge switch 114 is communicatively connected to the fourth edge switch 124 and the sixth edge switch 134. The first data processing center 11 sends first service data to the third edge switch 123 of the second data processing center 12 and the fifth edge switch 133 of the data backup center 13 via the first edge switch 113 to achieve data synchronization. Alternatively, the first data processing center 11 sends the first service data to the fourth edge switch 124 of the second data processing center 12 and the sixth edge switch 134 of the data backup center 13 via the second edge switch 114 to achieve data synchronization. As described above, when a fault is detected in the communication link corresponding to the first edge switch 113, the first data processing center 11 sends the first service data to the fourth edge switch 124 of the second data processing center 12 and the sixth edge switch 134 of the data backup center 13 via the second edge switch 114 to achieve service data synchronization. Alternatively, when a fault is detected in the communication link corresponding to the second edge switch 114, the first data processing center 11 sends the first service data to the third edge switch 123 of the second data processing center 12 and the fifth edge switch 133 of the data backup center 13 via the first edge switch 113 to achieve service data synchronization. By setting two edge switches in each of the first data processing center 11, the second data processing center 12, and the data backup center 13, and synchronizing service data through two corresponding communication links, the reliability and security of data synchronization are improved when any one communication link fails, thus ensuring the orderly progress of overall service processing and enhancing the reliability of the entire system's service processing.
[0081] S105. If it is confirmed through a preset load balancing strategy that the user data is processed by the second data processing center, the user data is sent to the second data processing center as the second user data.
[0082] The first data processing center can be understood as the primary data center, and the second data processing center can be understood as the backup data center. In this embodiment, in order to improve the utilization rate of the backup second data processing center, a preset load balancing strategy is used to determine whether user data is processed by the first data processing center or the second data processing center. This allows both the first and second data processing centers to participate in business processing as dual-active centers, thereby avoiding resource waste caused by the existing backup data center not participating in business processing under normal circumstances. This embodiment improves the utilization rate of the backup second data processing center, thereby improving the overall resource utilization rate of data processing.
[0083] If a preset load balancing strategy confirms that user data is to be processed by a second data processing center, the user data is sent as second user data to the second data processing center via a network (e.g., an optical transport network). The second data processing center includes at least one second server. If a preset load balancing strategy confirms that user data is to be processed by the second data processing center, the user data is sent as second user data to the corresponding second server of the second data processing center via a network (e.g., an optical transport network). (Refer to...) Figure 3 Assume that the second data processing center 12 includes three second servers, namely second server C, second server D, and second server E. If a preset load balancing strategy confirms that user data is processed by the second data processing center 12, the user data is sent as second user data to the corresponding second server C, second server D, or second server E of the second data processing center 12 via an optical transmission network.
[0084] In one embodiment, reference is made to Figure 3 The optical transmission network sends the second user data to the second data processing center 12 through at least two communication links, so that if any communication link fails, the data can be transmitted by other communication links, thereby improving the reliability of data transmission.
[0085] As described above, when it is confirmed through a preset load balancing strategy that the user data is processed by the second data processing center, the user data is sent as the second user data to the second server corresponding to the second data processing center through a network (e.g., an optical transmission network) to achieve load balancing, reasonably arrange the corresponding load (second server) to receive the user data, improve the overall load balancing of the system, and thus improve the overall work efficiency of business processing.
[0086] As described above, by using a load balancing strategy to determine whether user data is processed by the first data processing center or the second data processing center, the second data processing center, which serves as a backup, can also participate in business processing under normal circumstances. This avoids the problem of low resource utilization caused by the backup center not participating in business processing when the main center is in normal use, thereby improving the utilization rate of the backup second data processing center and thus improving the overall resource utilization rate of data processing.
[0087] S106. The second data processing center performs business processing based on the second user data and the stored business data to obtain the second business data.
[0088] The user data represents passenger ticketing data, which could be either entry or exit data. If the second user data is entry data, the second data processing center receives it and directly processes it to obtain the corresponding second business data. If the second user data is exit data, based on the dual-active data processing method provided in this embodiment, the second data processing center synchronously stores the corresponding entry data. Therefore, upon receiving the second user data, the second data processing center processes it based on both the second user data and the stored business data to obtain the corresponding second business data; this second business data should be the corresponding ticket settlement data. In this way, the second data processing center processes the second user data and the stored business data to achieve ticketing data synchronization and improve the continuity of ticketing data processing.
[0089] In one embodiment, reference is made to Figure 3The second data processing center 12 includes a third core switch 121, a fourth core switch 122, and at least one second server. When a preset load balancing strategy confirms that user data will be processed by the second data processing center, the user data is sent as second user data to the corresponding second server via a network (e.g., an optical transport network). The corresponding second server performs first service processing based on the second user data and stored service data to obtain second sub-data, which is then transmitted to either the third core switch 121 or the fourth core switch 122. It should be noted that the transmission can be made to either the third or fourth core switch 122 depending on the actual situation. For example, if both the third and fourth core switches 121 and 122 are functioning normally, a round-robin transmission method can be used; for instance, the first transmission is to the third core switch 121, the second to the fourth core switch 122, and so on. Alternatively, if one core switch 121 fails, the data is transmitted to the other core switch that is functioning normally. For example, if the third core switch 121 fails, the second sub-data is transmitted to the fourth core switch 122.
[0090] For example, refer to Figure 3 If a preset load balancing strategy confirms that user data will be processed by the second data processing center, the user data is sent as second user data to the second server C, second server D, or second server E corresponding to the second data processing center 12 via a network (e.g., an optical transport network). For example, if the user data is sent as second user data to the second server C corresponding to the second data processing center 12 via an optical transport network, then the second server C performs second service processing based on the second user data and stored service data to obtain second sub-data. The second server C then transmits the second sub-data to the third core switch 121 or the fourth core switch 122.
[0091] When the second server transmits the second sub-data to the third core switch 121, the third core switch 121 performs a fifth data exchange process on the second sub-data to obtain the third exchange data, and then transmits the third exchange data to the third edge switch 123. It should be noted that the fifth data exchange process is a core data exchange process. The third edge switch 123 performs a sixth data exchange process on the fifth exchange data to obtain the second service data. It should be noted that the sixth data exchange process is an edge data exchange process.
[0092] When the second server transmits the second sub-data to the fourth core switch 122, the fourth core switch 122 performs a seventh data exchange process on the second sub-data to obtain the fourth exchange data, which is then transmitted to the fourth edge switch 124. It should be noted that the seventh data exchange process is a core data exchange process. The fourth edge switch 124 performs an eighth data exchange process on the fourth exchange data to obtain the second service data. It should be noted that the eighth data exchange process is an edge data exchange process.
[0093] As described above, in the second data processing center, core data is exchanged and processed through a third or fourth core switch, and edge data is exchanged and processed through a third and fourth edge switch, which are cheaper than core switches, thereby saving the overall cost of the second data processing center.
[0094] S107. The second data processing center synchronizes the second business data to the first data processing center and the data backup center.
[0095] The second data processing center performs business processing based on the second user data and stored business data. After obtaining the second business data, the second data processing center synchronizes the second business data to the first data processing center and the data backup center. This allows the first data processing center to perform business processing based on the first user data and stored business data (such as the second business data) when it receives the first user data for processing, avoiding business interruption and improving the linkage between the first and second data processing centers. As a result, both the first and second data processing centers can participate in the processing of business data, improving the utilization rate of the backup data center (such as the second data processing center) and thus enhancing the overall resource utilization rate during the business processing process.
[0096] It should be noted that the business data stored in the first data processing center, the second data processing center, and the data backup center includes one or more of the first business data and the second business data.
[0097] In one embodiment, the data backup center serves as a data backup mechanism. When a failure occurs in the first data processing center or the second data processing center, the corresponding business data can be synchronized to the corresponding first data processing center or second data processing center after the failure is resolved. This improves the security and continuity of business data. After the failure is resolved, the corresponding business processing can continue based on the synchronized business data, thereby improving the overall efficiency of business processing.
[0098] In one embodiment, reference is made to Figure 3The first data processing center 11 includes a first edge switch 113 and a second edge switch 114; the second data processing center 12 includes a third edge switch 123 and a fourth edge switch 124; and the data backup center 13 includes a fifth edge switch 133 and a sixth edge switch 134. The first edge switch 113 is communicatively connected to the third edge switch 123 and the fifth edge switch 133, and the second edge switch 114 is communicatively connected to the fourth edge switch 124 and the sixth edge switch 134. The second data processing center 12 sends second service data to the first edge switch 113 of the first data processing center 11 and the fifth edge switch 133 of the data backup center 13 via the third edge switch 123 to achieve data synchronization. Alternatively, the second data processing center 12 sends second service data to the second edge switch 114 of the first data processing center 11 and the sixth edge switch 134 of the data backup center 13 via the fourth edge switch 124 to achieve data synchronization. As described above, when a fault is detected in the communication link corresponding to the third edge switch 123, the second data processing center 12 sends the second service data to the second edge switch 114 of the first data processing center 11 and the sixth edge switch 134 of the data backup center 13 via the fourth edge switch 124 to achieve service data synchronization. Alternatively, when a fault is detected in the communication link corresponding to the fourth edge switch 124, the second data processing center 12 sends the second service data to the first edge switch 113 of the first data processing center 11 and the fifth edge switch 133 of the data backup center 13 via the third edge switch 123 to achieve service data synchronization. By setting two edge switches in each of the first data processing center 11, the second data processing center 12, and the data backup center 13, and synchronizing service data through two corresponding communication links, the reliability and security of data synchronization are improved when any one communication link fails, thus ensuring the orderly progress of overall service processing and enhancing the reliability of the entire system's service processing.
[0099] In one embodiment, when a system failure is detected in the first data processing center, a load balancing strategy is used to confirm that user data will be processed by the second data processing center. The user data is then sent to the second data processing center as second user data, and corresponding processing and data synchronization are performed through the aforementioned steps S105-S107. It should be noted that when a system failure in the first data processing center does not affect data synchronization, the second data processing center synchronizes the second business data to the first data processing center through the aforementioned step S107. When a system failure in the first data processing center prevents data synchronization, the second data processing center or data backup center synchronizes the corresponding business data during the failure period to the first data processing center only after the failure in the first data processing center is resolved. As described above, when a system failure occurs in the first data processing center, a load balancing strategy is used to confirm that user data will be processed by the second data processing center, ensuring the orderly progress of business data processing, improving the reliability of business data processing, avoiding business processing interruptions that could affect passenger ticket settlement, and thus improving the user experience.
[0100] In one embodiment, when the fault in the first data processing center is detected to have been cleared, the first data processing center sends a fault clearance notification to the second data processing center or the data backup center. This informs the second data processing center and the data backup center that the fault has been cleared, allowing them to synchronize any previously unsynchronized business data. Based on the fault clearance notification, the second data processing center or the data backup center synchronizes the stored business data to the first data processing center, achieving business data synchronization. This enables the first data processing center to subsequently resume business processing based on the synchronized stored business data, achieving seamless operation for passengers and improving the disaster recovery flexibility of the entire dual-active data processing system. Simultaneously, it ensures a seamless user experience.
[0101] In one embodiment, when a system failure is detected in the second data processing center, a load balancing strategy is used to confirm that user data will be processed by the first data processing center. The user data is then sent to the first data processing center as the first user data, and corresponding processing and data synchronization are performed through the aforementioned S102-S104 steps. It should be noted that when the system failure in the second data processing center does not affect data synchronization, the first data processing center synchronizes the first business data to the second data processing center through the aforementioned S104 step. When a system failure in the second data processing center prevents data synchronization, the first data processing center or data backup center synchronizes the corresponding business data during the failure period to the second data processing center only after the failure in the second data processing center is resolved. As described above, when a system failure occurs in the second data processing center, a load balancing strategy is used to confirm that user data will be processed by the first data processing center, ensuring the orderly progress of business data processing, improving the reliability of business data processing, avoiding business processing interruptions that could affect passenger ticket settlement, and thus improving the user experience.
[0102] In one embodiment, when the fault in the second data processing center is detected to have been cleared, a fault clearance notification is sent from the second data processing center to the first data processing center or the data backup center. This informs the first and data backup centers that the fault has been cleared, allowing them to synchronize any previously unsynchronized business data. Based on the fault clearance notification, the first or data backup center synchronizes its stored business data to the second data processing center, enabling the second data processing center to resume business processing based on the synchronized data. This process is seamless for passengers, improving the disaster recovery flexibility of the entire dual-active data processing system and enhancing the user experience.
[0103] The above-mentioned method of synchronizing the first business data to the second data processing center and the data backup center through the first data processing center, and synchronizing the second business data to the first data processing center and the data backup center through the second data processing center, can ensure that no packet loss occurs when switching to another data processing center to take over business processing in the event of a failure in any data processing center, thereby improving the reliability and security of business data processing.
[0104] As described above, by implementing a preset load balancing strategy, user data is scheduled between different data processing centers and the load is distributed among multiple servers within a single data processing center. This improves the rationality of resource allocation between different data processing centers, as well as among different servers within the same data processing center. This enhances the overall system's resource allocation efficiency and reliability, thereby improving overall business processing efficiency. Furthermore, the preset load balancing strategy enables automatic failover in case of business failures, improving disaster recovery flexibility.
[0105] In the above implementation method, user data can be flexibly and elastically scheduled to the first data processing center or the second data processing center, so that the pressure on the two data processing centers is relatively balanced, ensuring that user data is transmitted to the nearest and fastest data processing center for business processing, thereby improving the efficiency of business processing and thus improving the user experience.
[0106] The above implementation method eliminates the need for expensive centralized hardware storage devices, allowing deployment flexibility through computer servers. The database does not require shared centralized storage, ensuring uninterrupted business operations even if any data processing center fails. Furthermore, this implementation method enables online expansion of nodes, creating multiple data processing centers that perform corresponding business processing through pre-defined load balancing strategies, thus improving the flexibility of node expansion.
[0107] As described above, a load balancing strategy determines whether user data will be processed by the first or second data processing center. If the first data processing center is selected, the user data is sent there as the first user data. The first data processing center then processes the first user data and stored business data to obtain the first business data, which is then synchronized to the second data processing center or a data backup center. If the second data processing center is selected, the user data is sent there as the second user data. The second data processing center processes the second user data and stored business data to obtain the second business data, which is then synchronized to both the first and second data processing centers. By employing this technique, a load balancing strategy can determine whether user data will be processed by the first or second data processing center. This ensures that the backup second data processing center can also participate in business processing under normal circumstances. This avoids the problem of low resource utilization caused by the backup center not participating in business processing during normal operation of the primary center, thus improving the utilization rate of the backup second data processing center and ultimately enhancing the overall resource utilization of data processing. Furthermore, by synchronizing the first business data to the second data processing center and the data backup center through the first data center, and synchronizing the second business data to the first data processing center and the data backup center through the second data center, synchronous storage of business data is achieved. This allows the other data processing center to immediately take over business processing based on the stored business data in the event of a failure in either the first or second data processing center, thus avoiding business processing interruption and improving the reliability and security of data processing.
[0108] Based on the above embodiments, Figure 3 This is a schematic diagram of a data processing system based on a dual-active data center, as provided in an embodiment of this application. (Reference) Figure 3The data processing system based on a dual-active data center provided in this embodiment is used to execute the aforementioned data processing method based on a dual-active data center. The system specifically includes: a first data processing center 11, a second data processing center 12, a data backup center 13, and a network device 14. The first data processing center 11 includes a first edge switch 113 and a first edge switch 114; the second data processing center 12 includes a third edge switch 123 and a fourth edge switch 124; and the data backup center 13 includes a fifth edge switch 133 and a sixth edge switch 134. The network device 14 is communicatively connected to the first data processing center 11 and the second data processing center 12, and is used to determine whether user data will be processed by the first data processing center 11 or the second data processing center 12 through a preset load balancing strategy, and to send the received user data to either the first data processing center 11 or the second data processing center 12. The first edge switch 113 of the first data processing center 11, the third edge switch 123 of the second data processing center 12, and the fifth edge switch 133 of the data backup center 13 are communicatively connected. The first edge switch 114 of the first data processing center 11 is communicatively connected to the fourth edge switch 124 of the second data processing center 12 and the sixth edge switch 134 of the data backup center 13. User data is received via an optical transport network (backbone network 10). Network device 14 is used to determine whether the user data is processed by the first data processing center 11 or the second data processing center 12, based on a preset load balancing strategy. If the user data is determined to be processed by the first data processing center 11 through the preset load balancing strategy, network device 14 sends the user data as first user data to the first data processing center 11. The first data processing center 11 performs service processing on the received first user data to obtain first service data, and synchronizes the first service data to the second data processing center 12 and the data backup center 13 via the first edge switch 113 or the first edge switch 114. If the user data is confirmed to be processed by the second data processing center 12 through the preset load balancing strategy, the network device 14 sends the user data as the second user data to the second data processing center 12. The second data processing center 12 performs business processing on the received second user data to obtain the second business data, and synchronizes the second business data to the first data processing center 11 and the data backup center 13 through the third edge switch 123 or the fourth edge switch 124.
[0109] The first data processing center 11 also includes a first core switch 111, a second core switch 112, and at least one first server. Each first server is connected to the first core switch 111 and the second core switch 112. The first core switch 111 is connected to a first edge switch 113, and the second core switch 112 is connected to a second edge switch 114. For example, refer to... Figure 3 The first data processing center 11 includes a first core switch 111, a second core switch 112, a first server A, a first server B, and a first server C. The first servers A, B, and C are all communicatively connected to the first core switch 111 and the second core switch 112. When the first servers A, B, and C receive first user data, they send the data to either the first core switch 111 or the second core switch 112. The first core switch 111 is communicatively connected to the first edge switch 113, and the second core switch 112 is connected to the second edge switch 114.
[0110] The second data processing center 12 includes a third core switch 121, a fourth core switch 122, and at least one second server. Each second server is connected to both the third core switch 121 and the fourth core switch 122. The third core switch 121 is connected to a third edge switch 123, and the fourth core switch 122 is connected to a fourth edge switch 124. For example, see... Figure 3 The second data processing center 12 includes a third core switch 121, a fourth core switch 122, a second server C, a second server D, and a second server E. The second servers C, D, and E are all communicatively connected to the third core switch 121 and the fourth core switch 122. When the second servers C, D, and E receive second user data, they send the data to either the third core switch 121 or the fourth core switch 122. The third core switch 121 is communicatively connected to the third edge switch 123, and the fourth core switch 122 is connected to the fourth edge switch 124.
[0111] The data backup center 13 also includes a fifth core switch 131, a sixth core switch 132, and at least one third server. Each third server is communicatively connected to the fifth core switch 131 and the sixth core switch 132. The fifth core switch 131 is communicatively connected to the fifth edge switch 133, and the sixth core switch 132 is communicatively connected to the sixth edge switch 134. For example, see... Figure 3 The data backup center 13 includes a fifth core switch 131, a sixth core switch 132, a third server F, and a third server G. Both third servers F and G are communicatively connected to the fifth core switch 131 and the sixth core switch 132. The fifth core switch 131 is communicatively connected to the fifth edge switch 133, and the sixth core switch 132 is communicatively connected to the sixth edge switch 134.
[0112] Reference Figure 3The first data processing center 11, the second data processing center 12, and the data backup center 13 all include access security equipment (access FW), network security server (IPS), network security equipment (FW), load balancing equipment (LB), wired network aggregation equipment (SW), out-of-band management core, and SDN control, etc.
[0113] Reference Figure 2 The data processing system based on a dual-active data center also includes a backbone network 10, which comprises a first-layer switch 101, a first optical transport network 102, a second-layer switch 103, and a second optical transport network 104. User data is received through the first-layer switch 101, processed through data exchange, and then transmitted to the second-layer switch 103 via the first optical transport network 102. After further processing through the second-layer switch 103, the data is then sent via the second optical transport network 104. For example, the first-layer switch 101 is an SC switch, and the second-layer switch 103 is an LC switch.
[0114] In one embodiment, the first data processing center, the second data processing center, and the data backup center are located in three different data centers. The first and second data processing centers are located in different geographical locations, and the backup data center can be located in a different data center in the same geographical location as either the first or second data processing center. It should be noted that the distance between the three data centers is less than 50 km to maintain good network performance. Each of the three data centers deploys two distributed database servers and one database manager, thus implementing a (2+1)+(2+1)+(2+1) database cluster deployment mode. The first and second data processing centers are equipped with peer-to-peer application servers and network devices. The data backup center may not deploy application servers and is only used for backup of business data. The application servers of the first and second data processing centers (i.e., the aforementioned first and second servers) randomly connect to the database servers in the three data centers through a preset load balancing strategy, thereby achieving multi-active operation of the application servers and database servers.
[0115] In one embodiment, to achieve disaster recovery functionality, at least three high-availability disaster recovery zones (replicas) are natively built-in, and these three zones are deployed in three corresponding data centers. To ensure an RPO (Recovery Point Objective) of 0, it is recommended that each zone be located in a different data center in a different location. If a two-site, three-center configuration is not feasible, two zones can be deployed on different floors of the same building. Since the network performance of a remote data center may be weaker than that of two zones in the same building, the disaster recovery data center (e.g., a second data processing center) is usually used as the third zone. The synchronization of the database server nodes in the third zone may be delayed. High power supply and network availability must be guaranteed for zones on different floors of the same building. Network speeds between zones should be 10Gbps or higher, with latency <2ms, to ensure normal communication between any two data centers.
[0116] As described above, a load balancing strategy determines whether user data is processed by the first or second data processing center. This ensures that the backup second data processing center can also participate in business processing under normal circumstances. This avoids the problem of low resource utilization caused by the backup center not participating in business processing when the primary center is in normal use, thus improving the utilization rate of the backup second data processing center and consequently enhancing the overall resource utilization of data processing. Furthermore, by synchronizing the first business data to the second and backup data centers through the first data center, and vice versa, synchronous storage of business data is achieved. This allows the other data processing center to immediately take over business processing based on the stored business data should either the first or second data processing center fail, preventing business interruption and improving data processing reliability and security.
[0117] The data processing system based on a dual-active-center provided in this application can be used to execute the data processing method based on a dual-active-center provided in the above embodiments, and has corresponding functions and beneficial effects.
[0118] This application provides a data processing device based on a dual-active data center, referring to... Figure 4 The data processing device based on a dual-active-center architecture includes a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The number of processors and the number of memories in this dual-active-center architecture data processing device can be one or more. The processor, memory, communication module, input device, and output device of this dual-active-center architecture data processing device can be connected via a bus or other means.
[0119] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the dual-active-center-based data processing method described in any embodiment of this application (e.g., a first data processing center, a second data processing center, a data backup center, and a network device in a dual-active-center-based data processing system). The memory may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device, etc. Furthermore, the memory may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0120] The communication module 33 is used for data transmission.
[0121] The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, thereby realizing the above-mentioned data processing method based on dual active centers.
[0122] Input device 34 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the device. Output device 35 may include display devices such as a display screen.
[0123] The data processing device based on dual active-active centers provided above can be used to execute the data processing method based on dual active-active centers provided in the above embodiments, and has corresponding functions and beneficial effects.
[0124] This application embodiment also provides a storage medium for storing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform a data processing method based on a dual-active data center. This dual-active data processing method includes: receiving user data via an optical transport network; if a preset load balancing strategy confirms that the user data is to be processed by a first data processing center, sending the user data as first user data to the first data processing center; the first data processing center performing business processing based on the first user data and stored business data to obtain first business data; the first data processing center synchronizing the first business data to a second data processing center and a data backup center; if a preset load balancing strategy confirms that the user data is to be processed by the second data processing center, sending the user data as second user data to the second data processing center; the second data processing center performing business processing based on the second user data and stored business data to obtain second business data; and the second data processing center synchronizing the second business data to the first data processing center and the data backup center.
[0125] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROM, floppy disk, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. Storage medium may also include other types of memory or combinations thereof. Furthermore, storage medium may reside in a first computer system in which the program is executed, or it may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media residing in different locations (e.g., in different computer systems connected via a network). Storage medium may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.
[0126] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the data processing method based on dual active-active centers as described above, but can also perform related operations in the data processing method based on dual active-active centers provided in any embodiment of this application.
[0127] The data processing apparatus, storage medium, and data processing device based on dual active-active centers provided in the above embodiments can execute the data processing method based on dual active-active centers provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the data processing method based on dual active-active centers provided in any embodiment of this application.
[0128] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.
Claims
1. A data processing method based on a dual-active data center, characterized in that, include: Receive user data over the network; If the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is sent to the first data processing center as the first user data. The first data processing center performs business processing based on the first user data and the stored business data to obtain the first business data; The first data processing center synchronizes the first business data to the second data processing center and the data backup center. The first data processing center includes a first edge switch and a second edge switch, the second data processing center includes a third edge switch and a fourth edge switch, and the data backup center includes a fifth edge switch and a sixth edge switch. The first edge switch is communicatively connected to the third and fifth edge switches, and the second edge switch is communicatively connected to the fourth and sixth edge switches. The synchronization of the first business data by the first data processing center to the second data processing center and the data backup center includes: the first data processing center sending the first business data to the third edge switch of the second data processing center and the fifth edge switch of the data backup center via the first edge switch to achieve data synchronization; and the first data processing center sending the first business data to the fourth edge switch of the second data processing center and the sixth edge switch of the data backup center via the second edge switch to achieve data synchronization. If the user data is confirmed to be processed by the second data processing center through a preset load balancing strategy, the user data is sent to the second data processing center as the second user data. The second data processing center performs business processing based on the second user data and the stored business data to obtain the second business data; The second data processing center synchronizes the second business data to the first data processing center and the data backup center; The business data includes one or more of the first business data and the second business data.
2. The method according to claim 1, characterized in that, After the second data processing center synchronizes the second business data to the first data processing center and the data backup center, it includes: When a system failure is detected in the first data processing center, the user data is confirmed to be processed by the second data processing center through a load balancing strategy, and the user data is sent to the second data processing center as the second user data.
3. The method according to claim 2, characterized in that, When a system failure is detected at the first data processing center, the process involves confirming that the user data will be processed by the second data processing center through a load balancing strategy, and then sending the user data as the second user data to the second data processing center. When the fault in the first data processing center is detected to be cleared, a fault clearance notification is sent from the first data processing center to the second data processing center or the data backup center. The second data processing center or the data backup center synchronizes the stored business data to the first data processing center based on the fault elimination notification.
4. The method according to claim 3, characterized in that, When a system failure is detected at the first data processing center, the process involves confirming that the user data will be processed by the second data processing center through a load balancing strategy, and then sending the user data as the second user data to the second data processing center. When the fault of the first data processing center is detected to be eliminated, the user data is determined to be processed by the first data processing center or the second data processing center through a load balancing strategy. If the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is sent to the first data processing center as the first user data. If the user data is confirmed to be processed by the second data processing center through a preset load balancing strategy, the user data is sent to the second data processing center as the second user data.
5. The method according to claim 1, characterized in that, The first data processing center synchronizes the first business data to the second data processing center and the data backup center, including: When a fault is detected in the communication link corresponding to the first edge switch, the first data processing center sends the first service data to the fourth edge switch of the second data processing center and the sixth edge switch of the data backup center through the second edge switch to achieve service data synchronization. Alternatively, when a fault is detected in the communication link corresponding to the second edge switch, the first data processing center sends the first service data to the third edge switch of the second data processing center and the fifth edge switch of the data backup center through the first edge switch to achieve service data synchronization.
6. The method according to claim 1, characterized in that, The first data processing center also includes a first core switch, a second core switch, and at least one first service server; The first data processing center performs business processing based on the first user data and stored business data to obtain the first business data, including: The first data processing center performs first business processing on the first user data and the stored business data through the corresponding first business server to obtain the first sub-data; The first service server transmits the first sub-data to the first core switch or the second core switch; When the first service server transmits the first sub-data to the first core switch, the first core switch performs a first data exchange process on the first sub-data to obtain first exchange data, and then transmits the first exchange data to the first edge switch. The first service data is obtained by performing a second data exchange process on the first exchange data through the first edge switch. When the first service server transmits the first sub-data to the second core switch, the second core switch performs a third data exchange process on the first sub-data to obtain the second exchange data, and then transmits the second exchange data to the second edge switch. The second edge switch performs a fourth data exchange process on the second exchange data to obtain the first service data.
7. A data processing system based on a dual-active data center, characterized in that, The system for performing the method of any one of claims 1-6 includes a first data processing center, a second data processing center, a data backup center, and network equipment. The first data processing center includes a first edge switch and a second edge switch. The second data processing center includes a third edge switch and a fourth edge switch. The data backup center includes a fifth edge switch and a sixth edge switch. The network device is communicatively connected to the first data processing center and the second data processing center, and is used to determine whether user data is processed by the first data processing center or the second data processing center through a preset load balancing strategy, and to send the received user data to the first data processing center or the second data processing center. The first edge switch of the first data processing center, the third edge switch of the second data processing center, and the fifth edge switch of the data backup center are communicatively connected; The second edge switch of the first data processing center is communicatively connected to the fourth edge switch of the second data processing center and the sixth edge switch of the data backup center; The first data processing center is used to process the received first user data to obtain first business data, and to synchronize the first business data to the second data processing center and the data backup center through the first edge switch or the second edge switch. The second data processing center is used to process the received second user data to obtain second business data, and to synchronize the second business data to the first data processing center and the data backup center through the third edge switch or the fourth edge switch.
8. A data processing device based on a dual-active data center, characterized in that, include: Memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.
9. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a processor, are used to perform the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Financial service application active-active control method, device and system and medium
CN117014447A