CN117555688A - Data processing method, system, equipment and storage medium based on double active centers - Google Patents

Data processing method, system, equipment and storage medium based on double active centers Download PDF

Info

Publication number
CN117555688A
CN117555688A CN202311582512.9A CN202311582512A CN117555688A CN 117555688 A CN117555688 A CN 117555688A CN 202311582512 A CN202311582512 A CN 202311582512A CN 117555688 A CN117555688 A CN 117555688A
Authority
CN
China
Prior art keywords
data
data processing
center
processing center
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311582512.9A
Other languages
Chinese (zh)
Inventor
张树军
陈朝晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Huazhiyuan Information Engineering Co ltd
Guangzhou Huajia Software Co ltd
Guangzhou Jiadu Urban Rail Intelligent Operation And Maintenance Service Co ltd
PCI Technology and Service Co Ltd
Original Assignee
Guangdong Huazhiyuan Information Engineering Co ltd
Guangzhou Huajia Software Co ltd
Guangzhou Jiadu Urban Rail Intelligent Operation And Maintenance Service Co ltd
PCI Technology and Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Huazhiyuan Information Engineering Co ltd, Guangzhou Huajia Software Co ltd, Guangzhou Jiadu Urban Rail Intelligent Operation And Maintenance Service Co ltd, PCI Technology and Service Co Ltd filed Critical Guangdong Huazhiyuan Information Engineering Co ltd
Priority to CN202311582512.9A priority Critical patent/CN117555688A/en
Publication of CN117555688A publication Critical patent/CN117555688A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Hardware Redundancy (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a data processing method, a system, equipment and a storage medium based on a dual-activity center, wherein when service processing by a first data processing center is confirmed through a preset load balancing strategy, user data is used as first user data to be sent to the first data processing center; the first data processing center performs service processing according to the first user data and the stored service data to obtain first service data, and synchronizes the first service data to the second data processing center and the data backup center; when confirming that the service processing is performed by the second data processing center through a preset load balancing strategy, sending the user data to the second data processing center as second user data; the second data processing center performs service processing according to the second user data and the stored service data to obtain second service data, and synchronizes the second service data to the first data processing center and the data backup center; the problem of low resource utilization rate in data processing can be solved, and the overall resource utilization rate of data processing is improved.

Description

Data processing method, system, equipment and storage medium based on double active centers
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to a data processing method, system, equipment and storage medium based on a dual-activity center.
Background
With the rapid development of rail transit, the business of the traditional automatic ticket vending and checking system is developed into modern multi-payment internet ticket business, so that the data processing pressure cost of a clear data center of the automatic ticket vending and checking system is increased increasingly. In addition, as the quality requirement of users on service access is higher and higher, the continuous operation of the service in the whole time period is ensured, and the user experience is promoted to become the primary responsibility of the network operation center.
In the prior art, in order to ensure continuous operation of the service in the whole time period, ticket data is processed mainly through a data center in a main-standby mode. Typically, the primary data center provides services to the outside, and the standby data center is in an idle state. When a disaster is down, the service system can be migrated from the main data center to the standby data center, namely, the standby data center is used for data processing of corresponding service. However, the disaster downtime belongs to a small probability event, and the standby data center is in an idle state most of the time, so that the resource utilization rate is low, and the resource waste is caused to a certain extent.
Disclosure of Invention
The embodiment of the application provides a data processing method, a system, equipment and a storage medium based on dual active centers, which can solve the problem of low resource utilization rate during data processing and improve the utilization rate of a standby center so as to improve the overall resource utilization rate of data processing.
In a first aspect, an embodiment of the present application provides a data processing method based on dual active centers, including:
receiving user data through a network;
under the condition that the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is used as first user data to be sent to the first data processing center;
the first data processing center performs service processing according to the first user data and the stored service data to obtain first service data;
the first data processing center synchronizes the first service data to a second data processing center and a data backup center;
under the condition that the user data is confirmed to be processed by the second data processing center through a preset load balancing strategy, the user data is used as second user data to be sent to the second data processing center;
The second data processing center performs service processing according to the second user data and the stored service data to obtain second service data;
the second data processing center synchronizes the second service data to the first data processing center and the data backup center;
wherein the service data comprises one or more of first service data and second service data.
Further, after the second data processing center synchronizes the second service data to the first data processing center and the data backup center, the method includes:
when detecting that the first data processing center has system faults, confirming that the user data is processed by the second data processing center through a load balancing strategy, and sending the user data to the second data processing center as second user data.
Further, when detecting that the first data processing center fails, confirming that the user data is processed by a second data processing center through a load balancing policy, and after sending the user data as second user data to the second data processing center, the method includes:
When the fault elimination of the first data processing center is detected, a fault elimination notification is sent to the second data processing center or the data backup center through the first data processing 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 failure elimination notification.
Further, when detecting that the first data processing center fails, confirming that the user data is processed by a second data processing center through a load balancing policy, and after sending the user data as second user data to the second data processing center, the method includes:
when the fault elimination of the first data processing center is detected, determining that the user data is processed by the first data processing center or the second data processing center through a load balancing strategy;
under the condition that the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is used as first user data to be sent to the first data processing center;
and under the condition that the user data is confirmed to be processed by the second data processing center through a preset load balancing strategy, the user data is used as second user data to be sent to the second data processing center.
Further, the first data processing center comprises a first edge switch and a second edge switch, the second data processing center comprises a third edge switch and a fourth edge switch, and the data backup center comprises a fifth edge switch and a sixth edge switch; the first edge switch is in communication connection with the third edge switch and the fifth edge switch, and the second edge switch is in communication connection with the fourth edge switch and the sixth edge switch;
the first data processing center synchronizes the first service data to a second data center and a data backup center, and comprises the following steps:
the first data processing center sends the first service data to a third edge switch of the second data processing center and a fifth edge switch of the data backup center through the first edge switch so as to realize data synchronization;
or the first data processing center sends the first service data to a fourth edge switch of the second data processing center and a sixth edge switch of the data backup center through the second edge switch so as to realize data synchronization.
Further, the first data processing center synchronizes the first service data to the second data center and the data backup center, including:
when detecting that the communication link corresponding to the first edge switch has a fault, the first data processing center sends the first service data to a fourth edge switch of the second data processing center and a sixth edge switch of the data backup center through the second edge switch so as to realize service data synchronization;
or when detecting that the communication link corresponding to the second edge switch has a fault, the first data processing center sends the first service data to a third edge switch of the second data processing center and a fifth edge switch of the data backup center through the first edge switch so as to realize service data synchronization.
Further, the first data processing center further comprises a first core switch, a second core switch and at least one first service server;
the first data processing center performs service processing according to the first user data and the stored service data to obtain first service data, and the method comprises the following steps:
The first data processing center performs first service processing on the first user data and the stored service data through a corresponding first service server to obtain first sub-data;
the first server transmits the first sub-data to the first core switch or the second core switch;
under the condition that the first server transmits the first sub-data to the first core switch, performing first data exchange processing on the first sub-data through the first core switch to obtain first exchange data, and transmitting the first exchange data to the first edge switch;
performing second data exchange processing on the first exchange data through the first edge switch to obtain the first service data;
under the condition that the first server transmits the first sub-data to the second core switch, performing third data exchange processing on the first sub-data through the second core switch to obtain second exchange data, and transmitting the second exchange data to the second edge switch;
and performing fourth data exchange processing on the second exchange data through the second edge switch to obtain the first service data.
In a second aspect, an embodiment of the present application provides a dual active center-based data processing system, for performing the dual active center-based data processing method according to the first aspect, where the system includes a first data processing center, a second data processing center, a data backup center, and a network device, 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 network equipment is in communication connection with the first data processing center and the second data processing center, and is used for determining that user data is processed by the first data processing center or the second processing center through a preset load balancing strategy and sending 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 is communicatively connected to the third edge switch of the second data processing center and the fifth edge switch of the data backup center;
The second edge switch of the first data processing center is in communication connection with 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 for carrying out service processing on the received first user data to obtain first service data, and synchronizing the first service data to the second data processing center and the data backup center through a first edge switch or a second edge switch;
the second data processing center is used for carrying out service processing on the received second user data to obtain second service data, and the second service data is synchronized to the first data processing center and the data backup center through a third edge switch or a fourth edge switch.
In a third aspect, embodiments of the present application provide a dual activity center-based data processing apparatus, including:
a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the dual active center based data processing method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium storing computer executable instructions which, when executed by a computer processor, are for performing a dual activity center based data processing method as described in the first aspect.
According to the method and the device, user data are determined to be processed by the first data processing center or the second data processing center through a load balancing strategy, the user data are sent to the first data processing center as first user data under the condition that the user data are determined to be processed by the first data processing center, the first data processing center performs service processing according to the first user data and stored service data to obtain first service data, and the first service data are synchronized to the second data processing center and the data backup center; and under the condition that the second data processing center is used for processing, the user data is used as second user data to be sent to the second data processing center, the second data processing center carries out service processing according to the second user data and the stored service data to obtain second service data, and the second data processing center synchronizes the second service data to the first data processing center and the data backup center. By adopting the technical means, the user data can be determined to be processed by the first data processing center or the second data processing center through the load balancing strategy, so that the second data processing center serving as a standby can also participate in service processing under normal conditions, the problem of low resource utilization rate caused by the fact that the standby center does not participate in service processing under normal use conditions of the main center can be avoided, the utilization rate of the standby second data processing center is improved, and the overall resource utilization rate of data processing is improved. In addition, the first data center synchronizes the first service data to the second data processing center and the data backup center, and the second data center synchronizes the second service data to the first data processing center and the data backup center, so that the synchronous storage of the service data is realized, and when any one of the first data processing center or the second data processing center has a fault, the other data processing center can immediately take over the service processing based on the stored service data, thereby avoiding interruption of the service processing, and improving the reliability and safety of the data processing.
Drawings
FIG. 1 is a flow chart of a data processing method based on dual active centers according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a backbone all-line network provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a dual activity center based data processing system provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data processing device based on dual active centers according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. 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 a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
In the prior art, in order to ensure continuous operation of the service in the whole time period, ticket data is processed mainly through a data center in a main-standby mode. Typically, the primary data center provides services to the outside, and the standby data center is in an idle state. When the main data center is in disaster downtime, the service system can be migrated from the main data center to the standby data center, namely the standby data center is used for carrying out data processing of corresponding service. However, the disaster downtime belongs to a small probability event, and the standby data center is in an idle state most of the time, so that the resource utilization rate is low, and the resource waste is caused to a certain extent.
Based on the above, the data processing method based on the dual active center in the embodiment of the application determines that the user data is processed by the first data processing center or the second data processing center through the load balancing strategy, so that the second data processing center serving as a standby can also participate in service processing under normal conditions, the problem of low resource utilization rate caused by the fact that the standby center does not participate in service processing in the existing service data processing process is solved, the utilization rate of the standby second data processing center is improved, and therefore the overall resource utilization rate of data processing is improved. In addition, the first data center synchronizes the first service data to the second data processing center and the data backup center, and the second data center synchronizes the second service data to the first data processing center and the data backup center, so that the synchronous storage of the service data is realized, and when any one of the first data processing center or the second data processing center has a fault, the other data processing center can immediately take over the service processing based on the stored service data, thereby avoiding interruption of the service processing, and improving the reliability and safety of the data processing.
Fig. 1 is a flowchart of a dual activity center-based data processing method provided in an embodiment of the present application, where the dual activity center-based data processing method provided in the embodiment may be executed by a dual activity center-based data processing device, and the dual activity center-based data processing device may be implemented by software and/or hardware, and the dual activity center-based data processing device may be configured by two or more physical entities or may be configured by one physical entity. In general, the dual activity center based data processing device may be a terminal device, such as a computer device.
The following description will be made taking a computer device as an example of a main body for executing a data processing method based on a dual active center. Referring to fig. 1, the data processing method based on dual active centers specifically includes:
s101, receiving user data through a network.
The data processing method based on the double living centers can be used for ticket data processing of rail transit, and ticket data can be understood as tickets purchased when passengers take the rail transit. The user data may be understood as inbound data and outbound data of the passenger in the ticket data, and the corresponding fare of the passenger may be calculated by performing service processing based on the inbound data and the outbound data. The embodiment provides that the first data processing center, the second data processing center and the data backup center are arranged to process ticket data, so that the ticket data is processed continuously in the whole time period, and the operation business can be conveniently and smoothly carried out.
The first data processing center, the second data processing center and the data backup center are respectively arranged in three different machine rooms, wherein the first data processing center and the second data processing center are respectively arranged in different geographic positions, and the data backup center can be selected from the different machine rooms which are arranged in the same geographic position with the first data processing center or the second data processing center. It should be noted that the distance between the three machine rooms is below 50KM to maintain good network performance quality.
The first data processing center, the second data processing center and the data backup center are connected through an SDN (software defined network) networking structure, a network link among the first data processing center, the second data processing center and the data backup center can adopt a bare optical fiber or a backbone network, namely an optical transmission network, the network bandwidth is more than 10Gbps, and the delay time is less than 2 ms.
In one embodiment, the first data processing center, the second data processing center, and the data backup center may receive user data via an optical transport network when interconnected via a backbone network. Fig. 2 is a schematic diagram of a backbone all-line network provided in an embodiment of the present application, and referring to fig. 2, 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, is transmitted to the second layer switch 103 through the first optical transmission network 102 after being subjected to data exchange processing, and is subsequently transmitted through the second optical transmission network 104 after being subjected to data exchange processing through the second layer switch 103. Illustratively, the first tier switch 101 is an SC switch and the second tier switch 103 is an LC switch.
The above-mentioned, carry on the receiving of user data through the optical transmission network, realize the high-capacity and high-speed data transmission, have raised the overall working efficiency of the business data processing; and the optical transmission network can realize flexible network management and control, and provides network transmission guarantee for the dual-active center.
S102, under the condition that the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is used as the first user data to be sent to the first data processing center.
The first data processing center can be understood as a main data center, the second data processing center can be understood as a standby data center, and in order to improve the use rate of the second data processing center serving as a standby, the embodiment confirms that user data is processed by the first data processing center or processed by the second data processing center through a preset load balancing strategy, so that the first data processing center and the second data processing center serve as dual-active centers to participate in service processing, thereby avoiding resource waste caused by the fact that the existing standby data center does not participate in normal service processing.
In case that the user data is confirmed to be processed by the first data processing center through a preset load balancing policy, the user data is transmitted as the first user data to the first data processing center through a network (e.g., an optical transmission network). The first data processing center comprises at least one first server, and the user data is sent to the first server corresponding to the first data processing center as first user data through a network (such as an optical transmission network) under the condition that the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy. Fig. 3 is a schematic diagram of a dual activity center-based data processing system according to an embodiment of the present application, and referring to fig. 3, it is assumed that the first data processing center 11 includes three first servers, namely, a first server a, a first server B, and a first server C. In the case that it is confirmed that the user data is processed by the first data processing center 11 through a preset load balancing policy, the user data is transmitted as first user data to the first server a, the first server B, or the first server C corresponding to the first data processing center 11 through a network (e.g., an optical transmission network).
In an embodiment, referring to fig. 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 when any communication link fails, data can be transmitted through other communication links, and reliability of data transmission is improved.
In the above-mentioned case, when the user data is confirmed to be processed by the first data processing center through the preset load balancing policy, the user data is sent as the first user data to the first server corresponding to the first data processing center through the network (for example, an optical transmission network), so as to implement load balancing, reasonably arrange the corresponding load (the first server) to receive the user data, and improve the load balancing degree of the overall system, thereby improving the overall working efficiency of service processing.
S103, the first data processing center performs service processing according to the first user data and the stored service data to obtain first service data.
Based on the ticket data of the passenger, the user data may be either inbound data or outbound data. And under the condition that the first user data is inbound data, the first data processing center directly carries out service processing according to the first user data after receiving the first user data to obtain corresponding first service data. In the case that the first user data is outbound data, based on the data processing method based on the dual-activity center provided by the embodiment, the first data processing center stores corresponding inbound data based on synchronization of service data, so that after receiving the first user data, the first data processing center performs service processing according to the first user data and the stored service data to obtain corresponding first service data; the first service data obtained at this time should be corresponding ticket settlement data. After the first data processing center receives the first user data, the first data processing center performs service processing according to the first user data and the stored service data, so that the ticket service data are synchronized, and the continuity of the service processing of the ticket service data is improved.
In an embodiment, referring to fig. 3, the first data processing center 11 includes a first core switch 111, a second core switch 112, and at least one first server, and in the case that it is confirmed that user data is processed by the first data processing center 11 through a preset load balancing policy, the user data is sent as first user data to a first server corresponding to the first data processing center 11 through a network (e.g., an optical transport network), and first sub-data is obtained by performing first service processing according to the first user data and stored service data through the corresponding first server, and is transmitted to the first core switch 111 or the second core switch 112. It should be noted that the transmission may be performed to the first core switch 111 or the second core switch 112 according to the actual situation, for example, in a case where the first core switch 111 and the second core switch 112 are both normal, a transmission in turn may be used, for example, the transmission is performed to the first core switch 111 for the first time, the transmission is performed to the second core switch 112 for the second time, and so on. Alternatively, when one of the core switches fails, the first sub data is transferred to another core switch in a normal state, for example, when the first core switch 111 fails, and the first sub data is transferred to the second core switch 112.
For example, referring to fig. 3, in case that it is confirmed that user data is processed by the first data processing center 11 through a preset load balancing policy, the user data is transmitted as first user data to the first server a, the first server B, or the first server C corresponding to the first data processing center 11 through a network (e.g., an optical transmission network). For example, the user data is sent as first user data to a first server a corresponding to the first data processing center 11 through an optical transmission network, and then first service processing is performed by the first server a according to the first user data and the stored service data, so as to obtain first sub-data. The first server a transmits the first sub data to the first core switch 111 or the second core switch 112.
In the case where 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 exchange data, and transmits the first exchange data to the first edge switch 113. The first data exchange process is a process of exchanging core data. The first edge switch 113 performs a second data exchange process on the first exchange data to obtain first service data. The second data exchange process is a process of exchanging edge data.
In the case that the first server transmits the first sub data to the second core switch 112, the second core switch 112 performs a third data switching process on the first sub data to obtain second switching data, and transmits the second switching data to the second edge switch 114. The third data exchange process is a process of exchanging core data. The second edge switch 114 performs fourth data switching processing on the second switching data to obtain the first service data. The fourth data exchange process is a process of exchanging edge data.
In the first data processing center, the first core switch or the second core switch is used for exchanging core data, and the first edge switch and the second edge switch which are low in price relative to the core switch are used for exchanging edge data, so that the overall cost investment of the first data processing center is saved.
S104, the first data processing center synchronizes the first service data to the second data processing center and the data backup center.
After the first data processing center performs service processing according to the first user data and the stored service data to obtain the first service data, the first data processing center synchronizes the first service data to the second data processing center and the data backup center, so that when the second data processing center receives the second user data for processing, the second data processing center can perform service processing based on the second user data and the stored service data (such as the first service data), service interruption is avoided, the connectivity of the first data processing center and the second data processing center is improved, the first data processing center and the second data processing center can participate in service data processing, the utilization rate of the standby data center (such as the second data processing center) is improved, and the overall resource utilization rate in the service processing process is improved.
In an embodiment, the data backup center plays a role of data backup, when the first data processing center or the second data processing center fails, the corresponding service data can be synchronized to the corresponding first data processing center or the second data processing center through the data backup center after the failure is eliminated, so that the safety and the continuity of the service data are improved, the corresponding service processing can be continuously performed based on the synchronized service data after the failure is eliminated, and the overall working efficiency of the service processing can be improved.
In one embodiment, referring to fig. 3, the 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; wherein the first edge switch 113 is communicatively coupled to the third edge switch 123 and the fifth edge switch 133, and the second edge switch 114 is communicatively coupled to the fourth edge switch 124 and the sixth edge switch 134. The first data processing center 11 transmits 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 through the first edge switch 113 to achieve data synchronization. Alternatively, the first data processing center 11 transmits 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 through the second edge switch 114 to achieve data synchronization. When detecting that the communication link corresponding to the first edge switch 113 has a fault, 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 through the second edge switch 114, so as to achieve service data synchronization. Or, when detecting that the communication link corresponding to the second edge switch 114 has a failure, the first data processing center 11 transmits 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 through the first edge switch 113 to achieve service data synchronization. In the above, two edge switches are respectively disposed in the first data processing center 11, the second data processing center 12 and the data backup center 13, and service data are synchronized correspondingly through two communication links, and when any communication link fails, service data can be synchronized through another communication link, so that reliability and safety of data synchronization are improved, and orderly performance of overall service processing is ensured, and further reliability of service processing of the whole system is improved.
S105, when 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 second user data.
The first data processing center can be understood as a main data center, the second data processing center can be understood as a standby data center, and in order to improve the use rate of the second data processing center serving as a standby, the embodiment confirms that user data is processed by the first data processing center or processed by the second data processing center through a preset load balancing strategy, so that the first data processing center and the second data processing center serve as dual-active centers to participate in service processing, thereby avoiding resource waste caused by the fact that the existing standby data center does not participate in normal service processing.
In case it is confirmed that the user data is processed by the second data processing center through a preset load balancing policy, the user data is transmitted as second user data to the second data processing center through a network (e.g., an optical transmission network). The second data processing center comprises at least one second server, and the user data is sent to the second server corresponding to the second data processing center as second user data through a network (such as an optical transmission network) under the condition that the user data is confirmed to be processed by the second data processing center through a preset load balancing strategy. Referring to fig. 3, it is assumed that the second data processing center 12 includes three second servers, namely, a second server C, a second server D, and a second server E. In the case that the processing of the user data by the second data processing center 12 is confirmed by the preset load balancing policy, the user data is transmitted as the second user data to the second server C, the second server D, or the second server E corresponding to the second data processing center 12 through the optical transmission network.
In an embodiment, referring to fig. 3, the optical transport network sends the second user data to the second data processing center 12 through at least two communication links, so that when any communication link fails, data can be transmitted through other communication links, and reliability of data transmission is improved.
In the above, when the user data is confirmed to be processed by the second data processing center through the preset load balancing policy, the user data is sent as the second user data to the second server corresponding to the second data processing center through the network (for example, an optical transmission network), so as to realize load balancing, reasonably arrange the corresponding load (the second server) to receive the user data, and improve the load balancing degree of the whole system, thereby improving the whole working efficiency of service processing.
According to the method, the device and the system, the user data are determined to be processed by the first data processing center or the second data processing center through the load balancing strategy, so that the second data processing center serving as a standby can also participate in normal service processing, the problem of low resource utilization rate caused by the fact that the standby center does not participate in the service processing under the normal use condition of the main center can be avoided, the utilization rate of the standby second data processing center is improved, and therefore the overall resource utilization rate of data processing is improved.
S106, the second data processing center performs service processing according to the second user data and the stored service data to obtain second service data.
Based on the ticket data of the passenger, the user data may be either inbound data or outbound data. And under the condition that the second user data is inbound data, the second data processing center directly carries out service processing according to the second user data after receiving the second user data to obtain corresponding second service data. In the case that the second user data is outbound data, based on the data processing method based on the dual-activity center provided by the embodiment, the second data processing center stores corresponding inbound data based on synchronization of service data, so that after receiving the second user data, the second data processing center performs service processing according to the second user data and the stored service data to obtain corresponding second service data; the second service data obtained at this time should be corresponding ticket settlement data. After the second data processing center receives the second user data, the second data processing center performs service processing according to the second user data and the stored service data, so that the ticket service data are synchronized, and the continuity of the service processing of the ticket service data is improved.
In an embodiment, referring to fig. 3, the second data processing center 12 includes a third core switch 121, a fourth core switch 122 and at least one second server, and when it is confirmed that the user data is processed by the second data processing center through a preset load balancing policy, the user data is sent as second user data to a second server corresponding to the second data processing center 12 through a network (e.g., an optical transport network), and the first service processing is performed according to the second user data and the stored service data through the corresponding second server, so as to obtain second sub-data, and the second sub-data is transmitted to the third core switch 121 or the fourth core switch 122. It should be noted that, the transmission may be performed to the third core switch or the fourth core switch 122 according to the actual situation, for example, in the case where the third core switch 121 and the fourth core switch 122 are both normal, a transmission in turn may be used, for example, the transmission is performed to the third core switch 121 for the first time, the transmission is performed to the fourth core switch 122 for the second time, and so on. Alternatively, when one of the core switches fails, the second sub data is transferred to another core switch in a normal state, for example, the third core switch 121 fails, and the second sub data is transferred to the fourth core switch 122.
For example, referring to fig. 3, in case that it is confirmed that the user data is processed by the second data processing center through a preset load balancing policy, the user data is transmitted as second user data to the second server C, the second server D, or the second server E corresponding to the second data processing center 12 through a network (e.g., an optical transmission network). For example, the user data is sent as second user data to a second server C corresponding to the second data processing center 12 through the optical transport network, and then second service processing is performed by the second server C according to the second user data and the stored service data, so as to obtain second sub-data. The second server C transmits the second sub data to the third core switch 121 or the fourth core switch 122.
In the case where 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 third exchange data, and transmits the third exchange data to the third edge switch 123. The fifth data exchange process is a process of exchanging core data. The third edge switch 123 performs sixth data exchange processing on the fifth exchange data to obtain second service data. The sixth data exchange process is a process of exchanging edge data.
In the case where the second server transmits the second sub data to the fourth core switch 122, the seventh data exchange process is performed on the second sub data through the fourth core switch 122 to obtain fourth exchange data, and the fourth exchange data is transmitted to the fourth edge switch 124. The seventh data exchange process is a process of exchanging core data. The fourth edge switch 124 performs eighth data exchange processing on the fourth exchange data to obtain second service data. The eighth data exchange process is a process of exchanging edge data.
In the second data processing center, the core data is exchanged through the third core switch or the fourth core switch, and the edge data is exchanged through the third edge switch and the fourth edge switch which are low in price relative to the core switch, so that the overall cost investment of the second data processing center is saved.
And S107, the second data processing center synchronizes the second service data to the first data processing center and the data backup center.
The second data processing center performs service processing according to the second user data and the stored service data, and after the second service data is obtained, the second data processing center synchronizes the second service data to the first data processing center and the data backup center, so that when the first data processing center receives the first user data processing, the first data processing center can perform service processing based on the first user data and the stored service data (such as the second service data), service interruption is avoided, the linkage of the first data processing center and the second data processing center is improved, the first data processing center and the second data processing center can participate in service data processing, the utilization rate of a standby data center (such as the second data processing center) is improved, and the overall resource utilization rate in the service processing process is further improved.
It should be noted that, the service data stored in the first data processing center, the second data processing center, and the data backup center include one or more of the first service data and the second service data.
In an embodiment, the data backup center plays a role of data backup, when the first data processing center or the second data processing center fails, the corresponding service data can be synchronized to the corresponding first data processing center or the second data processing center through the data backup center after the failure is eliminated, so that the safety and the continuity of the service data are improved, the corresponding service processing can be continuously performed based on the synchronized service data after the failure is eliminated, and the overall working efficiency of the service processing can be improved.
In one embodiment, referring to fig. 3, the 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; wherein the first edge switch 113 is communicatively coupled to the third edge switch 123 and the fifth edge switch 133, and the second edge switch 114 is communicatively coupled to the fourth edge switch 124 and the sixth edge switch 134. The second data processing center 12 transmits 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 through the third edge switch 123 to achieve data synchronization. Alternatively, the second data processing center 12 transmits 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 through the fourth edge switch 124 to achieve data synchronization. When detecting that the communication link corresponding to the third edge switch 123 has a fault, 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 through the fourth edge switch 124, so as to achieve service data synchronization. Or, when detecting that the communication link corresponding to the fourth edge switch 124 has a failure, the second data processing center 12 transmits 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 through the third edge switch 123 to achieve service data synchronization. In the above, two edge switches are respectively disposed in the first data processing center 11, the second data processing center 12 and the data backup center 13, and service data are synchronized correspondingly through two communication links, and when any communication link fails, service data can be synchronized through another communication link, so that reliability and safety of data synchronization are improved, and orderly performance of overall service processing is ensured, and further reliability of service processing of the whole system is improved.
In an embodiment, when detecting that the first data processing center has a system failure, the load balancing policy confirms that the user data is processed by the second data processing center, and sends the user data as second user data to the second data processing center, and performs corresponding processing and data synchronization through the aforementioned S105-S107. When the system failure of the first data processing center does not affect the data synchronization, the second service data is synchronized to the first data processing center through the second data processing center through the aforementioned S107. When the system fault generated by the first data processing center cannot carry out data synchronization, after the fault of the first data processing center is eliminated, the second data processing center or the data backup center synchronizes the corresponding service data during the fault period to the first data processing center. When the first data processing center has the system fault, the user data is confirmed to be processed by the second data processing center through the load balancing strategy, the orderly processing of the service data processing is ensured, the reliability of the service data processing is improved, the ticket settlement of passengers is prevented from being influenced due to the interruption of the service processing, and therefore the use experience of the users is improved.
In an embodiment, when the failure elimination of the first data processing center is detected, a failure elimination notification is sent to the second data processing center or the data backup center through the first data processing center, so that the second data processing center and the data backup center know that the failure has been eliminated, and synchronization of service data which is not synchronized can be performed. The second data processing center or the data backup center synchronizes the stored service data to the first data processing center based on the fault elimination notification so as to realize the synchronization of the service data, so that the subsequent first data processing center can restore to perform service processing based on the service data stored synchronously, no perception is realized for a passenger side, the disaster recovery flexibility of the whole data processing system based on the dual-activity center is improved, no perception is realized for a user, and the use experience of the user is improved.
In an embodiment, when detecting that the second data processing center has a system failure, determining that the user data is processed by the first data processing center through a load balancing policy, sending the user data as the first user data to the first data processing center, and performing corresponding processing and data synchronization through the aforementioned S102-S104. It should be noted that, when the system failure occurred in the second data processing center does not affect the data synchronization, the first service data is synchronized to the second data processing center through the first data processing center through the foregoing S104. When the system fault of the second data processing center cannot perform data synchronization, after the fault of the second data processing center is eliminated, the first data processing center or the data backup center synchronizes the corresponding service data during the fault period to the second data processing center. When the second data processing center has the system fault, the user data is confirmed to be processed by the first data processing center through the load balancing strategy, the orderly processing of the service data processing is ensured, the reliability of the service data processing is improved, the ticket settlement of passengers is prevented from being influenced due to the interruption of the service processing, and therefore the use experience of the users is improved.
In an embodiment, when the fault elimination of the second data processing center is detected, a fault elimination notification is sent to the first data processing center or the data backup center through the second data processing center, so that the first data processing center and the data backup center know that the fault is eliminated, and synchronization of service data which is not synchronized can be performed. The first data processing center or the data backup center synchronizes the stored service data to the second data processing center based on the fault elimination notification so as to realize the synchronization of the service data, so that the subsequent second data processing center can restore to perform service processing based on the service data stored synchronously, no perception is realized for a passenger side, the disaster recovery flexibility of the whole data processing system based on the dual-activity center is improved, no perception is realized for a user, and the use experience of the user is improved.
According to the method, the first data processing center synchronizes the first service data to the second data processing center and the data backup center, and the second data processing center synchronizes the second service data to the first data processing center and the data backup center, so that when any one data processing center fails, the situation that the other data processing center switches to take over the service processing is avoided, and the reliability and the safety of the service data processing are improved.
According to the method, the scheduling of the user data among different data processing centers and the load sharing of the multiple servers in the single data processing center are realized through the preset load balancing strategy, the rationality of resource allocation among different data processing centers is improved, and the rationality of resource allocation among different servers in the same data processing center is improved, so that the rationality and the reliability of the resource allocation of the whole system are improved, and the working efficiency of the whole business processing can be improved. In addition, the automatic switching of service faults is realized through a preset load balancing strategy, and the disaster recovery flexibility is improved.
According to the embodiment, the user data can be flexibly and elastically scheduled to the first data processing center or the second data processing center, so that the pressures of the two data processing centers are relatively balanced, the user data is ensured to be transmitted to the data processing center which is the fastest recently to perform service processing, the working efficiency of the service processing is improved, and the use experience of a user is further improved.
According to the implementation mode, the implementation can be completed through the computer server without expensive centralized hardware storage equipment, and the deployment flexibility is high. The database does not need to adopt a sharing centralized storage mode, and any data processing center crashes to avoid the terminal of the service, thereby ensuring the orderly operation of the service processing. By the embodiment, the node can be expanded on line, the data processing centers are expanded to perform corresponding service processing through a preset load balancing strategy, and the flexibility of node expansion is improved.
The method comprises the steps that user data are determined to be processed by a first data processing center or a second data processing center through a load balancing strategy, the user data are sent to the first data processing center as first user data under the condition that the user data are determined to be processed by the first data processing center, the first data processing center performs service processing according to the first user data and stored service data to obtain first service data, and the first service data are synchronized to the second data processing center or a data backup center; and under the condition that the second data processing center is used for processing, the user data is used as second user data to be sent to the second data processing center, the second data processing center carries out service processing according to the second user data and the stored service data to obtain second service data, and the second data processing center synchronizes the second service data to the first data processing center and the data backup center. By adopting the technical means, the user data can be determined to be processed by the first data processing center or the second data processing center through the load balancing strategy, so that the second data processing center serving as a standby can also participate in service processing under normal conditions, the problem of low resource utilization rate caused by the fact that the standby center does not participate in service processing under normal use conditions of the main center can be avoided, the utilization rate of the standby second data processing center is improved, and the overall resource utilization rate of data processing is improved. In addition, the first data center synchronizes the first service data to the second data processing center and the data backup center, and the second data center synchronizes the second service data to the first data processing center and the data backup center, so that the synchronous storage of the service data is realized, and when any one of the first data processing center or the second data processing center has a fault, the other data processing center can immediately take over the service processing based on the stored service data, thereby avoiding interruption of the service processing, and improving the reliability and safety of the data processing.
Based on the above embodiments, fig. 3 is a schematic diagram of a data processing system based on dual active centers according to an embodiment of the present application. Referring to fig. 3, the dual activity center-based data processing system provided in this embodiment is configured to execute the dual activity center-based data processing method described above, where the system specifically includes: the first data processing center 11, the second data processing center 12, the data backup center 13 and the 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 configured to determine that the user data is processed by the first data processing center 11 or the second data processing center 12 through a preset load balancing policy, and send the received user data to 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 is communicatively coupled 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. The first edge switch 114 of the first data processing center 11 is communicatively coupled 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. The user data is received via the optical transport network (backbone network 10) and the network device 14 is arranged to confirm, via a preset load balancing policy, that the user data is processed by the first data processing centre 11 or by the second data processing centre 12. In the case that the user data is confirmed to be processed by the first data processing center 11 through the preset load balancing policy, the network device 14 sends the user data as first user data to the first data processing center 11, and the first data processing center 11 is configured to perform service processing on the received first user data to obtain first service data, and synchronize the first service data to the second data processing center 12 and the data backup center 13 through the first edge switch 113 machine or the first edge switch 114. In case that the user data is confirmed to be processed by the second data processing center 12 through the preset load balancing policy, the network device 14 sends the user data as second user data to the second data processing center 12, and the second data processing center 12 is configured to perform service processing on the received second user data to obtain second service data, and synchronize the second service 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.
The first data processing center 11 further includes a first core switch 111, a second core switch 112, and at least one first server, each of the first servers 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. Illustratively, referring to fig. 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, wherein the first server a, the first server B, and the first server C are all communicatively coupled to the first core switch 111 and the second core switch 112. When the first server a, the first server B, and the first server C receive the first user data, the first user data is sent to 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.
The second data processing center 12 includes a third core switch 121, a fourth core switch 122, and at least one second server, each of which is connected to 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. Illustratively, referring to fig. 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, wherein the second server C, the second server D, and the second server E are all communicatively coupled to the third core switch 121 and the fourth core switch 122. When the second server C, the second server D, and the second server E receive the second user data, the second user data is transmitted to 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.
The data backup center 13 further includes a fifth core switch 131, a sixth core switch 132, and at least one third server. Each third server is communicatively coupled to a fifth core switch 131 and a sixth core switch 132, the fifth core switch 131 is communicatively coupled to a fifth edge switch 133, and the sixth core switch 132 is communicatively coupled to a sixth edge switch 134. Illustratively, referring to fig. 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, where the third server F and the third server G are each communicatively connected to the fifth core switch 131 and the sixth core switch 132. The fifth core switch 131 is communicatively coupled to a fifth edge switch 133 and the sixth core switch 132 is communicatively coupled to a sixth edge switch 134.
Referring to fig. 3, the first data processing center 11, the second data processing center 12, and the data backup center 13 each include an access security device (access FW), a network security server (IPS), a network security device (FW), a load balancing device (LB), a network convergence device (SW), an out-of-band pipe core, and SDN control.
Referring to fig. 2, the dual active center based data processing system further includes a backbone network 10, wherein the 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, is transmitted to the second layer switch 103 through the first optical transmission network 102 after being subjected to data exchange processing, and is subsequently transmitted through the second optical transmission network 104 after being subjected to data exchange processing through the second layer switch 103. Illustratively, the first tier switch 101 is an SC switch and the second tier switch 103 is an LC switch.
In an embodiment, the first data processing center, the second data processing center and the data backup center are respectively disposed in three different machine rooms, wherein the first data processing center and the second data processing center are respectively disposed in different geographic positions, and the data backup center can be selectively disposed in different machine rooms in the same geographic position as the first data processing center or the second data processing center. It should be noted that the distance between the three machine rooms is below 50KM to maintain good network performance quality. Two distributed database servers and one database manager are respectively deployed in the three machine rooms, namely, the (2+1) + (2+1) + (2+1) database cluster deployment mode is realized. Hardware architectures such as peer-to-peer application servers and network devices are deployed in the first data processing center and the second data processing center. The data backup center may not deploy an application server and only use the backup of the business data. The application servers (namely the first server and the second server) of the first data processing center and the second data processing center are randomly connected with the database servers of the three machine rooms through a preset load balancing strategy, so that multiple activities of the application servers and the database servers are realized.
In an embodiment, in order to implement the disaster recovery function, at least three high-availability disaster recovery ZONEs (copies) are built in the native, and the three ZONEs are deployed in three corresponding machine rooms. To ensure that RPO (data recovery point objective) is 0, it is recommended that each zon be deployed on different levels of the same building when each zon is in a different machine room in a different place and does not have a condition of two places and three centers, and because the network performance of the different machine rooms may be weaker than that of the two ZONEs of the same building, the disaster recovery machine room (such as the second data processing center) is usually used as a third zon, and node synchronization of a database server of the third zon may be delayed, so that different levels of the same building need to ensure power supply and high availability of the network. The network between ZONEs suggests 10Gbs or more with a time delay of <2ms to ensure normal communication between any two rooms.
According to the method, the device and the system, the user data are determined to be processed by the first data processing center or the second data processing center through the load balancing strategy, so that the second data processing center serving as a standby can also participate in normal service processing, the problem of low resource utilization rate caused by the fact that the standby center does not participate in the service processing under the normal use condition of the main center can be avoided, the utilization rate of the standby second data processing center is improved, and therefore the overall resource utilization rate of data processing is improved. In addition, the first data center synchronizes the first service data to the second data processing center and the data backup center, and the second data center synchronizes the second service data to the first data processing center and the data backup center, so that the synchronous storage of the service data is realized, and when any one of the first data processing center or the second data processing center has a fault, the other data processing center can immediately take over the service processing based on the stored service data, thereby avoiding interruption of the service processing, and improving the reliability and safety of the data processing.
The data processing system based on the dual-activity center provided by the embodiment of the application can be used for executing the data processing method based on the dual-activity center provided by the embodiment, and has corresponding functions and beneficial effects.
An embodiment of the present application provides a dual activity center-based data processing apparatus, referring to fig. 4, including: processor 31, memory 32, communication module 33, input device 34 and output device 35. The number of processors in the dual activity center based data processing device may be one or more and the number of memories in the dual activity center based data processing device may be one or more. The processors, memory, communication modules, input devices, and output devices of the dual activity center based data processing apparatus may be connected by a bus or other means.
The memory 32 is a computer readable storage medium that may be used to store software programs, computer executable programs, and modules corresponding to the dual active center based data processing method described in any of the embodiments herein (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 mainly include a memory program area and a memory data area, wherein the memory program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, the memory may further include memory remotely located with respect to the processor, the remote memory being connectable to the device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication module 33 is used for data transmission.
The processor 31 executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory, i.e., implements the dual active center-based data processing method described above.
The input means 34 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the device. The output means 35 may comprise a display device such as a display screen.
The data processing device based on the dual activity center provided by the embodiment can be used for executing the data processing method based on the dual activity center provided by the embodiment, and has corresponding functions and beneficial effects.
The present embodiments also provide a storage medium storing computer-executable instructions that when executed by a computer processor are configured to perform a dual activity center-based data processing method comprising: receiving user data through an optical transport network; under the condition that the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is used as first user data to be sent to the first data processing center; the first data processing center performs service processing according to the first user data and the stored service data to obtain first service data; the first data processing center synchronizes the first service data to the second data processing center and the data backup center; under the condition that 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 second user data; the second data processing center performs service processing according to the second user data and the stored service data to obtain second service data; the second data processing center synchronizes the second service data to the first data processing center and the data backup center.
Storage media-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, lanbas (Rambus) RAM, etc.; nonvolatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a second, different computer system connected to the first computer system through a network such as the internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (e.g., in different computer systems connected by a network). The storage medium may store program instructions (e.g., embodied as a computer program) executable by one or more processors.
Of course, the storage medium storing the computer executable instructions provided in the embodiments of the present application is not limited to the dual active center-based data processing method described above, and may also perform the related operations in the dual active center-based data processing method provided in any embodiment of the present application.
The dual active center-based data processing device, the storage medium and the dual active center-based data processing apparatus provided in the above embodiments may perform the dual active center-based data processing method provided in any embodiment of the present application, and technical details not described in detail in the above embodiments may be referred to the dual active center-based data processing method provided in any embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. A dual activity center-based data processing method, comprising:
receiving user data through a network;
under the condition that the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is used as first user data to be sent to the first data processing center;
the first data processing center performs service processing according to the first user data and the stored service data to obtain first service data;
the first data processing center synchronizes the first service data to a second data processing center and a data backup center;
under the condition that the user data is confirmed to be processed by the second data processing center through a preset load balancing strategy, the user data is used as second user data to be sent to the second data processing center;
the second data processing center performs service processing according to the second user data and the stored service data to obtain second service data;
the second data processing center synchronizes the second service data to the first data processing center and the data backup center;
wherein the service data comprises one or more of first service data and second service data.
2. The method of claim 1, wherein after the second data processing center synchronizes the second business data to the first data processing center and the data backup center, comprising:
when detecting that the first data processing center has system faults, confirming that the user data is processed by the second data processing center through a load balancing strategy, and sending the user data to the second data processing center as second user data.
3. The method according to claim 2, wherein when detecting that the first data processing center has failed in system, confirming that the user data is processed by a second data processing center through a load balancing policy, and after transmitting the user data as second user data to the second data processing center, comprising:
when the fault elimination of the first data processing center is detected, a fault elimination notification is sent to the second data processing center or the data backup center through the first data processing 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 failure elimination notification.
4. A method according to claim 3, wherein said confirming that said user data is processed by a second data processing center by a load balancing policy when a system failure of said first data processing center is detected, and after transmitting said user data as second user data to said second data processing center, comprises:
when the fault elimination of the first data processing center is detected, determining that the user data is processed by the first data processing center or the second data processing center through a load balancing strategy;
under the condition that the user data is confirmed to be processed by the first data processing center through a preset load balancing strategy, the user data is used as first user data to be sent to the first data processing center;
and under the condition that the user data is confirmed to be processed by the second data processing center through a preset load balancing strategy, the user data is used as second user data to be sent to the second data processing center.
5. The method of claim 1, wherein the first data processing center comprises a first edge switch and a second edge switch, the second data processing center comprises a third edge switch and a fourth edge switch, and the data backup center comprises a fifth edge switch and a sixth edge switch; the first edge switch is in communication connection with the third edge switch and the fifth edge switch, and the second edge switch is in communication connection with the fourth edge switch and the sixth edge switch;
The first data processing center synchronizes the first service data to a second data center and a data backup center, and comprises the following steps:
the first data processing center sends the first service data to a third edge switch of the second data processing center and a fifth edge switch of the data backup center through the first edge switch so as to realize data synchronization;
or the first data processing center sends the first service data to a fourth edge switch of the second data processing center and a sixth edge switch of the data backup center through the second edge switch so as to realize data synchronization.
6. The method of claim 5, wherein the first data processing center synchronizing the first business data to the second data center and the data backup center, comprises:
when detecting that the communication link corresponding to the first edge switch has a fault, the first data processing center sends the first service data to a fourth edge switch of the second data processing center and a sixth edge switch of the data backup center through the second edge switch so as to realize service data synchronization;
Or when detecting that the communication link corresponding to the second edge switch has a fault, the first data processing center sends the first service data to a third edge switch of the second data processing center and a fifth edge switch of the data backup center through the first edge switch so as to realize service data synchronization.
7. The method of claim 5, wherein the first data processing center further comprises a first core switch, a second core switch, and at least one first traffic server;
the first data processing center performs service processing according to the first user data and the stored service data to obtain first service data, and the method comprises the following steps:
the first data processing center performs first service processing on the first user data and the stored service data through a corresponding first service server to obtain first sub-data;
the first server transmits the first sub-data to the first core switch or the second core switch;
under the condition that the first server transmits the first sub-data to the first core switch, performing first data exchange processing on the first sub-data through the first core switch to obtain first exchange data, and transmitting the first exchange data to the first edge switch;
Performing second data exchange processing on the first exchange data through the first edge switch to obtain the first service data;
under the condition that the first server transmits the first sub-data to the second core switch, performing third data exchange processing on the first sub-data through the second core switch to obtain second exchange data, and transmitting the second exchange data to the second edge switch;
and performing fourth data exchange processing on the second exchange data through the second edge switch to obtain the first service data.
8. A dual active center based data processing system for performing the method of any of claims 1-7, the system comprising a first data processing center, a second data processing center, a data backup center, and network equipment, the first data processing center comprising a first edge switch and a second edge switch, the second data processing center comprising a third edge switch and a fourth edge switch, the data backup center comprising a fifth edge switch and a sixth edge switch;
the network equipment is in communication connection with the first data processing center and the second data processing center, and is used for determining that user data is processed by the first data processing center or the second processing center through a preset load balancing strategy and sending 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 is communicatively connected to the third edge switch of the second data processing center and the fifth edge switch of the data backup center;
the second edge switch of the first data processing center is in communication connection with 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 for carrying out service processing on the received first user data to obtain first service data, and synchronizing the first service data to the second data processing center and the data backup center through a first edge switch or a second edge switch;
the second data processing center is used for carrying out service processing on the received second user data to obtain second service data, and the second service data is synchronized to the first data processing center and the data backup center through a third edge switch or a fourth edge switch.
9. A dual activity center-based data processing apparatus, comprising:
a memory and one or more processors;
The memory is used for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
10. A storage medium storing computer executable instructions which, when executed by a processor, are adapted to carry out the method of any one of claims 1 to 7.
CN202311582512.9A 2023-11-23 2023-11-23 Data processing method, system, equipment and storage medium based on double active centers Pending CN117555688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311582512.9A CN117555688A (en) 2023-11-23 2023-11-23 Data processing method, system, equipment and storage medium based on double active centers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311582512.9A CN117555688A (en) 2023-11-23 2023-11-23 Data processing method, system, equipment and storage medium based on double active centers

Publications (1)

Publication Number Publication Date
CN117555688A true CN117555688A (en) 2024-02-13

Family

ID=89821547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311582512.9A Pending CN117555688A (en) 2023-11-23 2023-11-23 Data processing method, system, equipment and storage medium based on double active centers

Country Status (1)

Country Link
CN (1) CN117555688A (en)

Similar Documents

Publication Publication Date Title
US9916113B2 (en) System and method for mirroring data
EP2281240B1 (en) Maintaining data integrity in data servers across data centers
KR100575497B1 (en) Fault tolerant computer system
CN103199972B (en) The two-node cluster hot backup changing method realized based on SOA, RS485 bus and hot backup system
US7437598B2 (en) System, method and circuit for mirroring data
CN102801543B (en) A kind of method of dynamic data synchronization between dual-active system
CN102890716B (en) The data back up method of distributed file system and distributed file system
CN112003716A (en) Data center dual-activity implementation method
US7797571B2 (en) System, method and circuit for mirroring data
JP2004062535A (en) Method of dealing with failure for multiprocessor system, multiprocessor system and node
EP2224341B1 (en) Node system, server switching method, server device, and data transfer method
CN100438362C (en) A method for implementing software hot-backup of main and reserve machines
WO2021115043A1 (en) Distributed database system and data disaster backup drilling method
CN110348826A (en) Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living
CN109165122B (en) Method for improving disaster recovery capability of application system same city multi-park deployment realized based on block chain technology
JP3407016B2 (en) Network management system
CN110351122B (en) Disaster recovery method, device, system and electronic equipment
CN117555688A (en) Data processing method, system, equipment and storage medium based on double active centers
CN113890817A (en) Communication optimization method and device
CN103716186A (en) Artificial telephone traffic system with network fault tolerance capability and method thereof
CN115952237B (en) Multi-terminal data fusion system
CN115037674B (en) Single-machine and multi-equipment redundancy backup method for central control system
CN109039750B (en) Method for improving multi-city multi-park deployment disaster recovery capability of block chain application system
KR102099827B1 (en) Regional redundancy call processing system and method
CN115250245A (en) Method and device for prepositioning and applying multiple activities of multi-computer-room payment system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination