Disaster recovery switching processing method and device based on big data dual-active and computer device
By acquiring and switching the data processing service status and operating mode of the primary and backup data centers, the system achieves second-level switching between the primary and backup data centers, solving the problem of business system inconsistency caused by data differences in traditional technologies, and improving the data continuity and stability of the business system.
Patent Information
- Application Number
- CN202210008457.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-05
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-01-05
AI Technical Summary
Traditional low-level replication technology based on off-site storage devices cannot directly and continuously use business data due to data differences during primary and backup center switching, which affects the data continuity and fault recovery efficiency of business systems.
By obtaining the data processing service status of the primary and backup data centers of the business system, the current operating mode is determined, and in disaster recovery mode, the primary data center is shut down and the business access interface is switched to the backup data center simultaneously to ensure data consistency and achieve second-level switching between the primary and backup data centers.
Effectively prevent the risk of data loss, maximize the business continuity and stability of business systems, reduce downtime, and ensure the safe operation of business systems in the event of data failure.
Smart Images

Figure CN114328032B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a disaster recovery switching method, apparatus and computer equipment based on big data dual-active. Background Technology
[0002] With the development of computer technology and the widespread application of big data analysis and artificial intelligence in different fields or business systems, big data has become the data core of various business systems, undertaking the foundational function of each business system. Therefore, the requirements for business continuity and business data security performance of various business systems are increasing day by day.
[0003] Traditionally, when a business system's data center experiences a failure or is damaged, it is necessary to promptly save or restore business data to ensure business continuity. This typically involves using underlying replication technology based on off-site storage devices. Storage vendors provide dedicated underlying technology and software to mirror data between the primary central storage device and the off-site backup storage device, replicating data synchronously or asynchronously to the remote location for data preservation and subsequent recovery.
[0004] However, traditional underlying replication technologies based on off-site storage devices only have simple data replication capabilities. When a primary and backup center switch is required, the data differences between the two centers prevent business data from being directly interconnected. In other words, business data cannot be directly used between the primary and backup centers, and further data loss issues must be addressed before the system can be put back into operation. Therefore, traditional data disaster recovery switchover methods still suffer from the problem of data inconsistency preventing direct use of business data, and the business continuity of current business systems under data failures still needs improvement. Summary of the Invention
[0005] Therefore, it is necessary to provide a disaster recovery switching method, device, and computer equipment based on big data active-active architecture that can improve the business continuity of business systems under data failures, addressing the aforementioned technical problems.
[0006] Firstly, this application provides a disaster recovery switching method based on big data active-active architecture. The method includes:
[0007] Obtain the data processing service status of the primary and backup data centers of the business system;
[0008] When the data processing service status is determined to be normal, the current operating mode of the business system is obtained;
[0009] When it is determined that the current operation mode is the disaster backup mode, the main data center is controlled to be closed, the business access interface is switched to the backup data center according to domain name data, and the backup data center is controlled to be started.
[0010] In one of the embodiments, the current operation mode further includes a normal mode; and the method further includes:
[0011] When it is determined that the current operation mode is the normal mode, the backup data center is controlled to be closed, and the business access interface is connected to the main data center according to the domain name data; the business access interface is used to provide a read-write channel for an application system to access business data of the business system.
[0012] In one of the embodiments, the method of obtaining the data processing service state of the main data center and the backup data center of the business system includes:
[0013] The current operation state data and application configuration data of the main data center and the backup data center of the business system are obtained;
[0014] The data processing service state of the main data center and the backup data center of the business system is determined according to the current operation state data and the application configuration data; wherein the data processing service state is used to determine whether the business system is currently in a main-backup dual-active state.
[0015] In one of the embodiments, when it is determined that the current operation mode is the disaster backup mode, the main data center is controlled to be closed, the business access is switched to the backup data center according to domain name data, and the backup data center is controlled to be started, including:
[0016] When it is determined that the current operation mode is the disaster backup mode, the main data center is controlled to be closed, and the business access data is configured according to domain name data;
[0017] According to the business access data, the business connection between the main data center and the application system is cut off, the business access interface is switched to the backup data center, and the backup data center is controlled to be started.
[0018] In one of the embodiments, the method further includes:
[0019] When it is determined that the data processing service state is an abnormal state, an abnormality repair instruction is triggered;
[0020] In response to the abnormality repair instruction, an abnormal data position corresponding to the abnormal state is determined;
[0021] Based on the abnormal data position, abnormality repair is performed until the data processing service state is a normal state.
[0022] In one embodiment, the current running state data includes component state data, upstream and downstream dependency state data, and component difference data of the primary data center and the backup data center; and the application configuration data includes user permission configuration data and business system application configuration data of the primary data center and the backup data center.
[0023] In a second aspect, the application further provides a disaster recovery switching processing device based on big data dual-active. The device comprises:
[0024] a data processing service state acquisition module configured to acquire data processing service states of a primary data center and a backup data center of a business system;
[0025] a current running mode acquisition module configured to acquire a current running mode of the business system when the data processing service states are determined to be normal states;
[0026] a switching module configured to control the primary data center to be closed, switch a business access interface to the backup data center according to domain name data, and control the backup data center to be started when the current running mode is determined to be a backup mode.
[0027] In one embodiment, the disaster recovery switching processing device based on big data dual-active further comprises a connection control module configured to:
[0028] control the backup data center to be closed and control the business access interface to be connected to the primary data center according to the domain name data when the current running mode is determined to be a normal mode; the business access interface is configured to provide a read-write channel for a business data of the business system for an application system.
[0029] In one embodiment, the data processing service state acquisition module is further configured to:
[0030] acquire current running state data and application configuration data of the primary data center and the backup data center of the business system; and determine data processing service states of the primary data center and the backup data center of the business system according to the current running state data and the application configuration data; the data processing service states are configured to determine whether the business system is currently in a primary-backup dual-active state.
[0031] In one embodiment, the switching module is further configured to:
[0032] When it is determined that the current operation mode is the disaster backup mode, the main data center is controlled to be closed, and service access data is configured according to domain name data; according to the service access data, the service connection between the main data center and the application system is cut off, and the service access interface is switched to the backup data center, and the backup data center is controlled to be started.
[0033] In one of the embodiments, the big data-based dual-active disaster recovery switching processing apparatus further comprises:
[0034] An exception repair instruction triggering module is configured to trigger an exception repair instruction when it is determined that the data processing service state is an exception state.
[0035] An exception data position determining module is configured to determine an exception data position corresponding to the exception state in response to the exception repair instruction.
[0036] An exception repair module is configured to perform exception repair based on the exception data position until the data processing service state is a normal state.
[0037] In a third aspect, the present application further provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0038] Obtaining data processing service states of a main data center and a backup data center of a business system;
[0039] When it is determined that the data processing service state is a normal state, obtaining a current operation mode of the business system;
[0040] When it is determined that the current operation mode is the disaster backup mode, the main data center is controlled to be closed, and the service access interface is switched to the backup data center according to domain name data, and the backup data center is controlled to be started.
[0041] In a fourth aspect, the present application further provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:
[0042] Obtaining data processing service states of a main data center and a backup data center of a business system;
[0043] When it is determined that the data processing service state is a normal state, obtaining a current operation mode of the business system;
[0044] When it is determined that the current operation mode is the disaster backup mode, the main data center is controlled to be closed, and the service access interface is switched to the backup data center according to domain name data, and the backup data center is controlled to be started.
[0045] In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the following steps:
[0046] obtaining a data processing service state of a primary data center and a backup data center of a business system;
[0047] when it is determined that the data processing service state is a normal state, obtaining a current running mode of the business system;
[0048] when it is determined that the current running mode is a disaster backup mode, controlling the primary data center to be closed, synchronously switching a business access interface to the backup data center according to domain name data, and controlling the backup data center to be started.
[0049] In the above-mentioned disaster recovery switching processing method, device and computer equipment based on big data dual-active, by obtaining a data processing service state of a primary data center and a backup data center of a business system, and when it is determined that the data processing service state is a normal state, obtaining a current running mode of the business system. Then, when it is determined that the current running mode is a disaster backup mode, controlling the primary data center to be closed, synchronously switching a business access interface to the backup data center according to domain name data, and controlling the backup data center to be started. The data processing service state of the primary data center and the backup data center of the business system is normal as the basis for starting the disaster backup mode, that is, the dual-active of the primary data center and the backup data center of the business system is achieved. Since there is no difference between the data of the primary data center and the backup data center, the business system switching can be used, which can effectively prevent the risk of data loss, minimize the risk of business system downtime, and ensure the stable and safe operation of the business system to improve the business continuity of the business system under data failure. BRIEF DESCRIPTION OF DRAWINGS
[0050] Figure 1 It is an application environment diagram of the disaster recovery switching processing method based on big data dual-active in one embodiment;
[0051] Figure 2 It is a flowchart of the disaster recovery switching processing method based on big data dual-active in one embodiment;
[0052] Figure 3 It is a flowchart of the disaster recovery switching processing method based on big data dual-active in another embodiment;
[0053] Figure 4 It is a flowchart of the disaster recovery switching processing method based on big data dual-active in another embodiment;
[0054] Figure 5 It is a flowchart of the disaster recovery switching processing method based on big data dual-active in another embodiment;
[0055] Figure 6 a structure block diagram of a disaster recovery switching processing device based on big data dual-active in one embodiment;
[0056] Figure 7 a structure block diagram of a disaster recovery switching processing device based on big data dual-active in another embodiment;
[0057] Figure 8 an architecture diagram of a disaster recovery switching processing system based on big data dual-active in one embodiment;
[0058] Figure 9 an internal structure diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0059] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0060] The disaster recovery switching processing method based on big data dual-active provided by the embodiments of the present application can be applied in an application environment as shown in Figure 1 . Wherein, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data required by the server 104 to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers. The server 104 obtains the data processing service state of the master data center and the backup data center of the business system, and judges whether the data processing server state is normal. Wherein, the business system can be installed on the terminal 102, or integrated in the server 104 itself, the business system can store the business data to the master data center and the backup data center respectively, and the application system can also realize reading and writing business data to the master data center or the backup data center through the business access interface. When it is determined that the data processing service state is normal, the current running mode of the business system is obtained, and it is further judged whether the current running mode is the backup mode. When it is determined that the current running mode is the backup mode, the master data center is controlled to be closed, the business access interface is switched to the backup data center according to the domain name data, and the backup data center is controlled to be started. Wherein, the terminal 102 can be but not limited to various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices, the Internet of Things devices can be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 can be realized by an independent server or a server cluster composed of multiple servers.
[0061] In one embodiment, as shown in Figure 2As shown, a big data-based dual-active disaster recovery switching processing method is provided, which is applied to Figure 1 a server in , including the following steps:
[0062] In step S202, the data processing service state of the master data center and the backup data center of the business system is obtained.
[0063] Specifically, the current running state data and application configuration data of the master data center and the backup data center of the business system are obtained, and the data processing service state of the master data center and the backup data center of the business system is determined according to the current running state data and the application configuration data.
[0064] Further, the current running state data includes component state data, upstream and downstream dependency state data, and component difference data of the master data center and the backup data center, and the application configuration data includes user permission configuration data and business system application configuration data of the master data center and the backup data center. Specifically, the data processing service state of the master data center and the backup data center of the business system is determined according to the component state data, the upstream and downstream dependency state data, the component difference data, the user permission configuration data, and the business system application configuration data of the master data center and the backup data center.
[0065] Among them, the data processing service state is used to determine whether the business system is currently in a master-backup dual-active state. Specifically, when the data processing service state is normal, it can be determined that the business system is in a master-backup dual-active state, and based on the master-backup dual-center disaster recovery deployment method, the master data center and the backup data center simultaneously perform data incremental storage, the storage data volume of the master data center and the backup data center is basically consistent, and the state belongs to master-backup dual-active.
[0066] Similarly, when the data processing service state is abnormal, the master data center and the backup data center of the business system do not currently meet the master-backup dual-active state, and after further repair processing of the abnormal data, the data processing service state of the master data center and the backup data center of the business system is reacquired, and it is rejudged whether the data processing service state is normal.
[0067] In step S204, when it is determined that the data processing service state is normal, the current running mode of the business system is obtained.
[0068] Specifically, when it is determined that the data processing service state is normal, the master data center and the backup data center of the business system are in a master-backup dual-active state, and on the basis of meeting the master-backup dual-active state, the current running mode of the business system is further obtained.
[0069] The current operation mode of the business system includes a normal mode and a disaster recovery mode. In the normal mode, the business system performs data incremental storage to the primary data center and the backup data center simultaneously, but when the domain name data of the domain name system is configured, the business access interface needs to be connected with the primary data center to realize the business data read-write processing between the application system and the primary data center.
[0070] Similarly, in the disaster recovery mode, the business system performs data incremental storage to the primary data center and the backup data center simultaneously, but when the domain name data of the domain name system is configured, the business access interface needs to be connected with the backup data center to realize the business data read-write processing between the application system and the backup data center.
[0071] Step S206, when it is determined that the current operation mode is the disaster recovery mode, the primary data center is controlled to be closed, the business access interface is switched to the backup data center according to the domain name data, and the backup data center is controlled to be started.
[0072] Specifically, when it is determined that the current operation mode is the disaster recovery mode, the primary data center is controlled to be closed, the business access data is configured according to the domain name data, then the business connection between the primary data center and the application system is cut off according to the business access data, the business access interface is switched to the backup data center, and the backup data center is controlled to be started.
[0073] Further, when it is determined that the current operation mode is the disaster recovery mode, it indicates that the current primary data center has a failure or needs to be maintained, and the business connection between the primary data center and the application system needs to be cut off, so that the business data read-write processing between the application system and the primary data center cannot be performed. The business access interface is switched to the backup data center by the business access data configured by the domain name data, and the backup data center is controlled to be started, so as to realize the second-level switching between the primary data center and the backup data center, effectively prevent the data loss risk, minimize the business system downtime risk, and ensure the stable and safe operation of the business.
[0074] In the disaster recovery switching processing method based on big data dual-active, the data processing service states of the master data center and the backup data center of the business system are acquired, and the current running mode of the business system is acquired when it is determined that the data processing service states are normal. Then, the master data center is controlled to be closed, the business access interface is switched to the backup data center according to the domain name data, and the backup data center is controlled to be started when it is determined that the current running mode is the backup mode. The data processing service states of the master data center and the backup data center of the business system are normal as the basis for starting the backup mode, that is, the dual-active of the master data center and the backup data center of the business system is achieved. Since there is no difference between the data of the master data center and the backup data center, the business system can be switched for use, the risk of data loss can be effectively prevented, the risk of business system downtime can be minimized, the stable and safe operation of the business system can be ensured, and the business continuity of the business system under data failure can be improved.
[0075] In one embodiment, as shown in Figure 3 a disaster recovery switching processing method based on big data dual-active is provided, which comprises the following steps:
[0076] In step S302, the data processing service states of the master data center and the backup data center of the business system are acquired.
[0077] Specifically, the current running state data and application configuration data of the master data center and the backup data center of the business system are acquired, and the data processing service states of the master data center and the backup data center of the business system are determined according to the current running state data and the application configuration data.
[0078] The data processing service state is used to determine whether the business system is currently in a master-backup dual-active state. Specifically, when the data processing service state is normal, it can be determined that the business system is in a master-backup dual-active state. Based on the master-backup dual-center disaster recovery deployment mode, the master data center and the backup data center simultaneously perform data incremental storage, the storage data volume of the master data center and the backup data center is basically consistent, and the state belongs to the master-backup dual-active state.
[0079] Similarly, when the data processing service state is abnormal, the master data center and the backup data center of the business system do not currently meet the master-backup dual-active state, and the abnormal data needs to be further repaired. Then, the data processing service states of the master data center and the backup data center of the business system are re-acquired, and it is re-determined whether the data processing service state is normal.
[0080] In step S304, the current running mode of the business system is acquired when it is determined that the data processing service state is normal.
[0081] Specifically, when determining that the data processing service state is a normal state, the master data center and the standby data center of the business system are in a master-standby dual-active state, and on the basis of meeting the master-standby dual-active state, the current running mode of the business system is further acquired.
[0082] Step S306, when determining that the current running mode is a normal mode, the standby data center is controlled to be closed, and the business access interface is connected with the master data center according to the domain name data, the business access interface is used to provide a read-write channel for the application system to read and write the business data of the business system.
[0083] The current running mode of the business system includes a normal mode and a disaster recovery mode, in the normal mode, the business system performs data incremental warehousing to the master data center and the standby data center at the same time, but when the domain name data of the domain name system is configured, the business access interface needs to be connected with the master data center to realize the read-write processing of the business data between the application system and the master data center.
[0084] Similarly, in the disaster recovery mode, the business system performs data incremental warehousing to the master data center and the standby data center at the same time, but when the domain name data of the domain name system is configured, the business access interface needs to be connected with the standby data center to realize the read-write processing of the business data between the application system and the standby data center.
[0085] Specifically, when determining that the current running mode is a normal mode, the standby data center is controlled to be closed, the business access data is configured according to the domain name data, and then the business access interface is connected with the master data center according to the business access data. The business access interface is used to provide a read-write channel for the application system to read and write the business data of the business system, when the business access interface is connected with the master data center, the application system reads and writes the business data in the master data center through the business access interface, and conversely, when the business access interface is connected with the standby data center, the application system reads and writes the business data in the standby data center through the business access interface.
[0086] Step S308, when determining that the current running mode is a disaster recovery mode, the master data center is controlled to be closed, the business access interface is switched to the standby data center according to the domain name data, and the standby data center is controlled to be started.
[0087] Specifically, when determining that the current running mode is a disaster recovery mode, the master data center is controlled to be closed, the business access data is configured according to the domain name data, then the business connection between the master data center and the application system is cut off according to the business access data, the business access interface is switched to the standby data center, and the standby data center is controlled to be started.
[0088] Further, when it is determined that the current running mode is the disaster backup mode, it indicates that the current main data center has a failure or needs maintenance processing, and the business connection between the main data center and the application system cannot be executed to perform the business data read-write processing between the application system and the main data center. The business access interface is switched to the backup data center according to the domain name data, and the backup data center is controlled to start.
[0089] In the above-mentioned disaster recovery switching processing method based on big data dual-active, the data processing service state of the main data center and the backup data center of the business system is obtained, and when it is determined that the data processing service state is the normal state, the current running mode of the business system is obtained. When it is determined that the current running mode is the normal mode, the backup data center is controlled to be closed, and the business access interface is connected to the main data center according to the domain name data. When it is determined that the current running mode is the disaster backup mode, the main data center is controlled to be closed, and the business access interface is switched to the backup data center according to the domain name data, and the backup data center is controlled to start. The second-level switching between the main data center and the backup data center is realized, the risk of data loss is effectively prevented, the risk of business system downtime is minimized, and the stable and safe operation of the business is ensured.
[0090] In one embodiment, as shown in Figure 4 a disaster recovery switching processing method based on big data dual-active is provided, which specifically includes:
[0091] In step S402, the data processing service state of the main data center and the backup data center of the business system is obtained.
[0092] Specifically, the current running state data and the application configuration data of the main data center and the backup data center of the business system are obtained, and the data processing service state of the main data center and the backup data center of the business system is determined according to the current running state data and the application configuration data.
[0093] In step S404, when it is determined that the data processing service state is the abnormal state, an abnormality repair instruction is triggered.
[0094] Specifically, the data processing service state includes a normal state and an abnormal state, wherein when the data processing service state is the abnormal state, the main data center and the backup data center of the business system do not currently satisfy the dual-active state, and further repair processing of the abnormal data is needed, and then the data processing service state of the main data center and the backup data center of the business system is obtained again, and it is determined whether the data processing service state is the normal state.
[0095] Further, when it is determined that the data processing service state is the abnormal state, an abnormality repair instruction is triggered, which is used to realize further repair processing of the abnormal data until the data processing service state obtained after the repair is the normal state.
[0096] Step S406, in response to the exception repair instruction, determine the exception data position corresponding to the exception state.
[0097] Specifically, by responding to the triggered exception repair instruction, and obtaining the specific position of the exception data corresponding to the exception state. Wherein, the exception data type of the exception state can include component state exception data, upstream and downstream dependency state exception data and component difference exception data of the master data center and the backup data center, and can also include user permission configuration exception data and business system application configuration exception data of the master data center and the backup data center.
[0098] Further, after determining the exception data type of the exception state, the specific position of the exception data of different exception data types can be further determined.
[0099] Step S408, based on the exception data position, perform exception repair until the data processing service state is normal.
[0100] Specifically, based on the exception data position, perform exception repair, such as component state exception data, upstream and downstream dependency state exception data, component difference exception data, user permission configuration exception data and business system application configuration exception data of the master data center and the backup data center, etc., to achieve the effect of normal data processing service state.
[0101] Further, first, it can be determined whether the master data center or the backup data center has exception data, after determining the data center where the exception data appears, the exception data type is further determined. For example, when it is determined that the master data center has exception data, and the exception data type is determined to be component state exception data, the state of different components of the master data center needs to be further analyzed to determine the specific component that appears fault, and the fault handling scheme corresponding to the fault component is matched out to execute the corresponding fault handling scheme to complete the exception repair.
[0102] Wherein, for other exception data types of the master data center, it is also necessary to determine the specific fault position, further match the fault handling scheme, until the repair is completed. Similarly, for each exception data type of the backup data center, a similar exception repair processing flow can also be used until the repair is completed.
[0103] Step S410, when it is determined that the data processing service state is normal, obtain the current running mode of the business system.
[0104] Specifically, when it is determined that the data processing service state is normal, the master data center and the backup data center of the business system are in the master-backup dual-active state, and on the basis of meeting the master-backup dual-active state, the current running mode of the business system is further obtained.
[0105] Step S412, when determining that the current running mode is the normal mode, controlling the standby data center to be closed, and connecting the service access interface with the main data center according to the domain name data; the service access interface is used to provide a read-write channel for the application system to read and write the service data of the service system.
[0106] The current running mode of the service system includes a normal mode and a standby mode, in the normal mode, the service system performs data incremental storage to the main data center and the standby data center simultaneously, but when the domain name data of the domain name system is configured, the service access interface needs to be connected with the main data center to realize the read-write processing of the service data between the application system and the main data center.
[0107] Specifically, when determining that the current running mode is the normal mode, the standby data center is controlled to be closed, the service access data is configured according to the domain name data, and then the service access interface is connected with the main data center according to the service access data. The service access interface is used to provide a read-write channel for the application system to read and write the service data of the service system, when the service access interface is connected with the main data center, the application system reads and writes the service data in the main data center through the service access interface, on the contrary, when the service access interface is connected with the standby data center, the application system reads and writes the service data in the standby data center through the service access interface.
[0108] Step S414, when determining that the current running mode is the standby mode, controlling the main data center to be closed, and switching the service access interface to the standby data center according to the domain name data, and controlling the standby data center to be started.
[0109] The current running mode of the service system includes a normal mode and a standby mode, in the normal mode, the service system performs data incremental storage to the main data center and the standby data center simultaneously, but when the domain name data of the domain name system is configured, the service access interface needs to be connected with the main data center to realize the read-write processing of the service data between the application system and the main data center.
[0110] When determining that the current running mode is the standby mode, the main data center is controlled to be closed, the service access data is configured according to the domain name data, then the service connection between the main data center and the application system is cut off, the service access interface is switched to the standby data center, and the standby data center is controlled to be started.
[0111] Further, when it is determined that the current running mode is the disaster backup mode, it indicates that the current main data center has a failure or needs maintenance processing, and the business connection between the main data center and the application system cannot be executed to perform the business data read-write processing between the application system and the main data center. The business access interface is switched to the backup data center through the domain name data configuration, and the backup data center is started to realize the second-level switching between the main data center and the backup data center, effectively prevent the data loss risk, minimize the business system downtime risk, and ensure the stable and safe operation of the business.
[0112] In the above-mentioned disaster recovery switching processing method based on big data dual-active, the data processing service state of the main data center and the backup data center of the business system is obtained, when it is determined that the data processing service state is an abnormal state, an abnormal repair instruction is triggered, and the abnormal repair instruction is responded to determine the abnormal data position corresponding to the abnormal state. Further, the abnormal data position is repaired until the data processing service state is normal, and when it is determined that the data processing service state is normal, the current running mode of the business system is obtained. When it is determined that the current running mode is the normal mode, the backup data center is controlled to be closed, and the business access interface is connected with the main data center according to the domain name data. When it is determined that the current running mode is the disaster backup mode, the main data center is controlled to be closed, and the business access interface is switched to the backup data center according to the domain name data, and the backup data center is started. The data processing service state of the main data center and the backup data center of the business system is normal as the basis for starting the disaster backup mode, that is, the dual-active of the main data center and the backup data center of the business system is achieved. Since there is no difference between the data of the main data center and the backup data center, the business system switching can be used, which can effectively prevent the data loss risk, minimize the business system downtime risk, and ensure the stable and safe operation of the business system to improve the business continuity of the business system under data failure.
[0113] In one embodiment, as shown in Figure 5 a disaster recovery switching processing method based on big data dual-active is provided, which specifically includes:
[0114] Step S501, obtaining the current running state data and application configuration data of the main data center and the backup data center of the business system.
[0115] Step S502, determining the data processing service state of the main data center and the backup data center of the business system according to the current running state data and the application configuration data, and the data processing service state is used to determine whether the business system is currently in the dual-active state.
[0116] Step S503, determining whether the data processing service state is normal.
[0117] Step S504, when determining that the data processing service state is an abnormal state, triggering an abnormal repair instruction.
[0118] Step S505, in response to the abnormal repair instruction, determining the abnormal data position corresponding to the abnormal state.
[0119] Step S506, based on the abnormal data position, performing abnormal repair until the data processing service state is a normal state.
[0120] Step S507, when determining that the data processing service state is a normal state, obtaining the current running mode of the business system.
[0121] Step S508, determining whether the current running mode is a normal mode.
[0122] Step S509, when determining that the current running mode is a normal mode, controlling the standby data center to be closed, and controlling the business access interface to be connected to the main data center according to the domain name data.
[0123] Step S510, when determining that the current running mode is a disaster recovery mode, controlling the main data center to be closed, and configuring the business access data according to the domain name data.
[0124] Step S511, according to the business access data, cutting off the business connection between the main data center and the application system, switching the business access interface to the standby data center, and controlling the standby data center to be started.
[0125] In the above-mentioned disaster recovery switching processing method based on big data dual-active, the data processing service states of the main data center and the standby data center of the business system are obtained, and when it is determined that the data processing service state is a normal state, the current running mode of the business system is obtained. Further, when it is determined that the current running mode is a disaster recovery mode, the main data center is controlled to be closed, and the business access interface is switched to the standby data center according to the domain name data, and the standby data center is controlled to be started. The data processing service states of the main data center and the standby data center of the business system are used as the basis for starting the disaster recovery mode, that is, the dual-active of the main data center and the standby data center of the business system is achieved. Since there is no difference between the data of the main data center and the standby data center, the business system can be switched for use, which can effectively prevent data loss risk, minimize business system downtime risk, and ensure stable and safe operation of the business system, thereby improving business continuity of the business system under data failure.
[0126] It should be understood that although each step in the flowchart involved in each of the above embodiments is shown in sequence according to the direction of the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, there is no strict order limitation for the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowchart involved in each of the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately or alternately executed with at least part of other steps or steps or stages in other steps.
[0127] Based on the same inventive concept, the embodiments of the present application also provide a big data dual-active based disaster recovery switching processing device for implementing the above-mentioned big data dual-active based disaster recovery switching processing method. The problem-solving implementation scheme provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more big data dual-active based disaster recovery switching processing device embodiments provided below can refer to the limitations of the big data dual-active based disaster recovery switching processing method described above, and will not be repeated here.
[0128] In one embodiment, as shown in Figure 6 a big data dual-active based disaster recovery switching processing device is provided, comprising: a data processing service state acquisition module 602, a current running mode acquisition module 604 and a switching module 606, wherein:
[0129] The data processing service state acquisition module 602 is configured to acquire the data processing service state of the primary data center and the backup data center of the business system.
[0130] The current running mode acquisition module 604 is configured to acquire the current running mode of the business system when it is determined that the data processing service state is a normal state.
[0131] The switching module 606 is configured to control the primary data center to be closed, switch the business access interface to the backup data center according to the domain name data, and control the backup data center to be started when it is determined that the current running mode is a disaster recovery mode.
[0132] In the disaster recovery switching processing device based on big data dual-active, the data processing service state of the main data center and the backup data center of the business system is acquired, and the current running mode of the business system is acquired when it is determined that the data processing service state is normal. Then, the main data center is controlled to be closed, the business access interface is switched to the backup data center according to the domain name data, and the backup data center is controlled to be started when it is determined that the current running mode is the disaster recovery mode. The data processing service state of the main data center and the backup data center of the business system is normal as the basis for starting the disaster recovery mode, that is, the dual-active of the main data center and the backup data center of the business system is achieved. Since there is no difference between the data of the main data center and the backup data center, the business system can be switched for use, the risk of data loss can be effectively prevented, the risk of business system downtime can be minimized, the stable and safe operation of the business system can be ensured, and the business continuity of the business system under data failure can be improved.
[0133] In one embodiment, as shown in FIG. 7, a disaster recovery switching processing device based on big data dual-active is provided, which specifically includes a data processing service state acquisition module 702, an abnormality repair instruction triggering module 704, an abnormal data position determination module 706, an abnormality repair module 708, a current running mode acquisition module 710, a connection control module 712, and a switching module 714, wherein: Figure 7 The data processing service state acquisition module 702 is configured to acquire the data processing service state of the main data center and the backup data center of the business system.
[0134] The abnormality repair instruction triggering module 704 is configured to trigger an abnormality repair instruction when it is determined that the data processing service state is abnormal.
[0135] The abnormal data position determination module 706 is configured to determine the abnormal data position corresponding to the abnormal state in response to the abnormality repair instruction.
[0136] The abnormality repair module 708 is configured to perform abnormality repair based on the abnormal data position until the data processing service state is normal.
[0137] The current running mode acquisition module 710 is configured to acquire the current running mode of the business system when it is determined that the data processing service state is normal.
[0138] The connection control module 712 is configured to control the backup data center to be closed and control the business access interface to be connected with the main data center according to the domain name data when it is determined that the current running mode is normal, and the business access interface is configured to provide a read-write channel for the application system to access the business data of the business system.
[0139]
[0140] The switching module 714 is configured to control the main data center to shut down, switch the business access interface to the backup data center according to the domain name data, and control the backup data center to start when it is determined that the current running mode is the disaster backup mode.
[0141] The disaster recovery switching processing device based on the big data dual-active mode has the advantages that the data processing service state of the main data center and the backup data center of the business system is used as the basis for starting the disaster backup mode, that is, the dual-active mode of the main data center and the backup data center of the business system is achieved, and that the data of the main data center and the backup data center is the same, so that the business system switching can be used, the risk of data loss can be effectively prevented, the risk of business system downtime can be minimized, and the stable and safe operation of the business system can be ensured, so that the business continuity of the business system under data failure is improved.
[0142] In one embodiment, the data processing service state acquisition module is further configured to:
[0143] acquire the current running state data and the application configuration data of the main data center and the backup data center of the business system, determine the data processing service state of the main data center and the backup data center of the business system according to the current running state data and the application configuration data, and use the data processing service state to determine whether the business system is currently in the dual-active mode.
[0144] In one embodiment, the switching module is further configured to:
[0145] When it is determined that the current running mode is the disaster backup mode, the main data center is controlled to shut down, the business access data is configured according to the domain name data, the business connection between the main data center and the application system is cut off according to the business access data, the business access interface is switched to the backup data center, and the backup data center is controlled to start.
[0146] The modules in the disaster recovery switching processing device based on the big data dual-active mode can be all or part of software, hardware, and combinations thereof. The modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so as to be called and executed by the processor to perform the operations corresponding to the modules.
[0147] In one embodiment, as shown in Figure 8 , a disaster recovery switching processing system based on big data dual-active mode is provided, and as shown in Figure 8 , the disaster recovery switching processing system based on big data dual-active mode belongs to the dual-active architecture, and specifically includes a business system 802, a main data center 804, a backup data center 806, a DNS (domain name system) 808, and an application system 810.
[0148] The business system 802 simultaneously performs data incremental warehousing on the master data center 804 and the backup data center 806, that is, synchronously writes the business data into the master data center 804 and the backup data center 806, and the warehousing data amount of the master data center 804 and the backup data center 806 is basically consistent, and the state belongs to master-backup dual-live.
[0149] The application system 810 performs routing configuration through the DNS (Domain Name System) 808, obtains business access data through the configuration, and determines the accessible data center according to the business access data.
[0150] The current running mode of the business system includes a normal mode and a disaster recovery mode. In the normal mode, after the application system 810 performs routing configuration through the DNS (Domain Name System) 808, it is determined that only the master data center 804 can be accessed, and at this time, the backup data center 806 does not perform business data read-write for the application system 810, and only after disaster recovery switching, the backup data center 806 is allowed to be accessed by the application system 810 for business data read-write.
[0151] Similarly, in the disaster recovery mode, after the application system 810 performs routing configuration through the DNS (Domain Name System) 808, it is determined that only the backup data center 806 can be accessed, and at this time, the master data center 804 does not perform business data read-write for the application system 810.
[0152] Further, as shown in FIG. (a) of Figure 8 , before disaster recovery switching, that is, when the current business system 802 is in the normal mode, the business system 802 simultaneously performs data incremental warehousing on the master data center 804 and the backup data center 806, and the warehousing data amount of the master data center 804 and the backup data center 806 is basically consistent, and the state belongs to master-backup dual-live. After the application system 810 performs routing configuration through the DNS (Domain Name System) 808, it is determined that only the master data center 804 can be accessed, and at this time, the backup data center 806 does not perform business data read-write for the application system 810, and only after disaster recovery switching, the backup data center 806 is allowed to be accessed by the application system 810 for business data read-write.
[0153] Similarly, as shown in FIG. (b) of Figure 8 , after disaster recovery switching, that is, when the current business system 802 is in the disaster recovery mode, the business system 802 still simultaneously performs data incremental warehousing on the master data center 804 and the backup data center 806, and the warehousing data amount of the master data center 804 and the backup data center 806 is basically consistent, and the state belongs to master-backup dual-live. After the application system 810 performs routing configuration through the DNS (Domain Name System) 808, it is determined that only the backup data center 806 can be accessed, and at this time, the master data center 804 does not perform business data read-write for the application system 810.
[0154] The disaster recovery switching processing system based on big data double-live realizes that the data processing service state of the main data center and the backup data center of the business system is normal as the basis for starting the backup mode, that is, the double-live of the main data center and the backup data center of the business system is achieved. Since there is no difference between the data of the main data center and the backup data center, the business system switching can be used, the risk of data loss can be effectively prevented, the risk of business system downtime is minimized, the stable and safe operation of the business system is ensured, and the business continuity of the business system under data failure is improved.
[0155] In one embodiment, a computer device, which can be a server, is provided, and an internal structure diagram of the computer device can be as shown in Figure 9 The computer device includes a processor, a memory, and a network interface connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store the data processing service state of the main data center and the backup data center of the business system, the current running mode of the business system, and domain name data. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a disaster recovery switching processing method based on big data double-live.
[0156] Those skilled in the art can understand that Figure 9 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. Specifically, the computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0157] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the following steps:
[0158] Obtaining the data processing service state of the main data center and the backup data center of the business system;
[0159] When it is determined that the data processing service state is normal, obtaining the current running mode of the business system;
[0160] When it is determined that the current running mode is the backup mode, controlling the main data center to be closed, synchronously switching the business access interface to the backup data center according to the domain name data, and controlling the backup data center to be started.
[0161] In one embodiment, the processor executing the computer program further implements the following steps:
[0162] When it is determined that the current running mode is the normal mode, the backup data center is closed, and the service access interface is connected with the main data center according to the domain name data; the service access interface is used to provide a read-write channel for the application system to access the service data of the service system.
[0163] In one embodiment, the processor, when executing the computer program, further implements the following steps:
[0164] obtaining current running state data and application configuration data of the main data center and the backup data center of the service system; determining a data processing service state of the main data center and the backup data center of the service system according to the current running state data and the application configuration data; wherein the data processing service state is used to determine whether the service system is currently in a primary-backup dual-active state.
[0165] In one embodiment, the processor, when executing the computer program, further implements the following steps:
[0166] When it is determined that the current running mode is the disaster backup mode, the main data center is closed, the service access data is configured according to the domain name data; the service connection between the main data center and the application system is cut off according to the service access data, the service access interface is switched to the backup data center, and the backup data center is started.
[0167] In one embodiment, the processor, when executing the computer program, further implements the following steps:
[0168] When it is determined that the data processing service state is the abnormal state, an abnormality repair instruction is triggered; in response to the abnormality repair instruction, an abnormal data position corresponding to the abnormal state is determined; and the abnormality repair is performed based on the abnormal data position until the data processing service state is the normal state.
[0169] In one embodiment, the processor, when executing the computer program, further implements the following steps:
[0170] The current running state data includes component state data, upstream and downstream dependency state data, and component difference data of the main data center and the backup data center; and the application configuration data includes user permission configuration data and service system application configuration data of the main data center and the backup data center.
[0171] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the following steps:
[0172] obtaining a data processing service state of a main data center and a backup data center of a service system;
[0173] When it is determined that the data processing service state is the normal state, a current running mode of the service system is obtained.
[0174] When it is determined that the current running mode is the disaster recovery mode, the master data center is controlled to be closed, the business access interface is switched to the backup data center according to the domain name data, and the backup data center is controlled to be started.
[0175] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0176] When it is determined that the current running mode is the normal mode, the backup data center is controlled to be closed, and the business access interface is connected to the master data center according to the domain name data; the business access interface is used to provide a read-write channel for the application system to access the business data of the business system.
[0177] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0178] The current running state data and the application configuration data of the master data center and the backup data center of the business system are obtained; the data processing service state of the master data center and the backup data center of the business system is determined according to the current running state data and the application configuration data; wherein the data processing service state is used to determine whether the business system is currently in a master-slave dual-active state.
[0179] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0180] When it is determined that the current running mode is the disaster recovery mode, the master data center is controlled to be closed, the business access data is configured according to the domain name data; the business connection between the master data center and the application system is cut off, the business access interface is switched to the backup data center, and the backup data center is controlled to be started according to the business access data.
[0181] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0182] When it is determined that the data processing service state is an abnormal state, an abnormal repair instruction is triggered; in response to the abnormal repair instruction, an abnormal data position corresponding to the abnormal state is determined; abnormal repair is performed based on the abnormal data position until the data processing service state is a normal state.
[0183] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0184] The current running state data includes component state data, upstream and downstream dependency state data, and component difference data of the master data center and the backup data center; the application configuration data includes user permission configuration data and business system application configuration data of the master data center and the backup data center.
[0185] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps:
[0186] Obtaining the data processing service state of the primary data center and the backup data center of the business system;
[0187] When it is determined that the data processing service state is a normal state, obtaining the current running mode of the business system;
[0188] When it is determined that the current running mode is a disaster recovery mode, controlling the primary data center to shut down, synchronously switching the business access interface to the backup data center according to domain name data, and controlling the backup data center to start.
[0189] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0190] When it is determined that the current running mode is a normal mode, controlling the backup data center to shut down, and controlling the business access interface to connect with the primary data center according to the domain name data; the business access interface is used to provide a read-write channel for the application system to access the business data of the business system.
[0191] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0192] Obtaining the current running state data and application configuration data of the primary data center and the backup data center of the business system; determining the data processing service state of the primary data center and the backup data center of the business system according to the current running state data and the application configuration data; wherein the data processing service state is used to determine whether the business system is currently in a primary-backup dual-active state.
[0193] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0194] When it is determined that the current running mode is a disaster recovery mode, controlling the primary data center to shut down, configuring the business access data according to the domain name data; according to the business access data, cutting off the business connection between the primary data center and the application system, switching the business access interface to the backup data center, and controlling the backup data center to start.
[0195] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0196] When it is determined that the data processing service state is an abnormal state, triggering an exception repair instruction; in response to the exception repair instruction, determining an exception data position corresponding to the abnormal state; performing exception repair based on the exception data position until the data processing service state is a normal state.
[0197] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0198] The current running state data includes component state data, upstream and downstream dependency state data, and component difference data of the primary data center and the backup data center; and the application configuration data includes user permission configuration data and business system application configuration data of the primary data center and the backup data center.
[0199] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties.
[0200] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In the embodiments provided by the present application, any reference to a memory, a database or other medium can include at least one of a non-volatile and a volatile memory. The non-volatile memory can include a read-only memory (Read-Only Memory, ROM), a magnetic tape, a floppy disk, a flash memory, an optical storage, a high-density embedded non-volatile memory, a resistive memory (ReRAM), a magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), a ferroelectric memory (Ferroelectric Random Access Memory, FRAM), a phase change memory (Phase Change Memory, PCM), a graphene memory, etc. The volatile memory can include a random access memory (Random Access Memory, RAM) or an external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided by the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a blockchain, etc., but is not limited thereto. The processor involved in the embodiments provided by the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0201] Any technical features in the above embodiments can be combined, and for the sake of brevity, not all possible combinations are described above, however, as long as the combinations of technical features do not have contradictions, they shall be considered within the scope of the present disclosure.
[0202] The above embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it shall not be understood as a limitation on the patent scope of the present application. It shall be pointed out that, for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, and these shall be within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A method for disaster recovery switchover processing based on big data dual-active, characterized in that, The method comprises: obtaining current running state data and application configuration data of a master data center and a backup data center of a business system; the current running state data comprises component state data, upstream and downstream dependency state data and component difference data of the master data center and the backup data center; the application configuration data comprises user permission configuration data and business system application configuration data of the master data center and the backup data center; determining data processing service states of the master data center and the backup data center of the business system according to the current running state data and the application configuration data, comprising: obtaining running states of hardware devices and software services of each data center according to the component state data; obtaining dependency relationships of each data center with other systems according to the upstream and downstream dependency state data; obtaining configuration differences between the master data center and the backup data center according to the component difference data; obtaining consistency of data access permissions according to the user permission configuration data; and obtaining consistency of business logic according to the business system application configuration data; when it is determined that the data processing service state is a normal state, determining that the business system is currently in a master-backup dual-active state, and obtaining a current running mode of the business system; when it is determined that the current running mode is a backup mode, controlling the master data center to be closed, synchronously switching a business access interface to the backup data center according to domain name data, and controlling the backup data center to be started; wherein, in the backup mode, based on a master-backup dual-center disaster recovery deployment mode, the business system simultaneously performs data incremental warehousing to the master data center and the backup data center, the master data center and the backup data center have consistent warehousing data volumes, and when the domain name data of the domain name system is configured, the business access interface is connected with the backup data center, the business access interface is used to provide a read-write channel for an application system to read and write business data of the business system, so as to realize business data read-write processing between the application system and the backup data center; when it is determined that the data processing service state is an abnormal state, the master data center and the backup data center of the business system do not currently satisfy the master-backup dual-active state, an exception repair instruction is triggered, and an exception state corresponding to an exception data position is determined in response to the exception repair instruction, so as to perform exception repair based on the exception data position until the data processing service state is a normal state; wherein, when it is determined that the master data center has exception data and it is judged that the exception data type is component state exception data, states of different components of the master data center are analyzed, a fault component is determined, a fault processing scheme corresponding to the fault component is matched, the fault processing scheme is executed, and exception repair is completed.
2. The method of claim 1, wherein, The current running mode further comprises a normal mode; the method further comprises: when it is determined that the current running mode is a normal mode, controlling the backup data center to be closed, and controlling the business access interface to be connected with the master data center according to the domain name data; the business access interface is used to provide a read-write channel for an application system to read and write business data of the business system.
3. The method according to any one of claims 1 or 2, characterized in that, The method comprises the following steps: When it is determined that the current operation mode is a disaster recovery mode, the main data center is controlled to be closed, the business access is switched to the backup data center according to domain name data, and the backup data center is controlled to be started. When it is determined that the current operation mode is a disaster recovery mode, the main data center is controlled to be closed, and the business access data is configured according to domain name data.
4. The method according to any one of claims 1 or 2, characterized in that, According to the business access data, the business connection between the main data center and the application system is cut off, the business access interface is switched to the backup data center, and the backup data center is controlled to be started.
5. A disaster recovery switching processing device based on big data dual-active, characterized in that, The abnormal data types of the abnormal state include component state abnormal data, upstream and downstream dependence state abnormal data, component difference abnormal data, user permission configuration abnormal data, and business system application configuration abnormal data of the main data center and the backup data center. The device comprises: A data processing service state acquisition module is configured to acquire current operation state data and application configuration data of a main data center and a backup data center of a business system; the current operation state data includes component state data, upstream and downstream dependence state data, and component difference data of the main data center and the backup data center; the application configuration data includes user permission configuration data and business system application configuration data of the main data center and the backup data center; according to the current operation state data and the application configuration data, the data processing service state of the main data center and the backup data center of the business system is determined, including: according to the component state data, the running state of hardware devices and software services of each data center is obtained; according to the upstream and downstream dependence state data, the dependence relationship between each data center and other systems is obtained; according to the component difference data, the configuration difference between the main data center and the backup data center is obtained; according to the user permission configuration data, the consistency of data access permission is obtained; and according to the business system application configuration data, the consistency of business logic is obtained. A current operation mode acquisition module is configured to determine that the business system is currently in a main-backup dual-active state when it is determined that the data processing service state is a normal state, and to acquire the current operation mode of the business system. A switching module is configured to control the main data center to be closed when it is determined that the current operation mode is a disaster recovery mode, to switch the business access interface to the backup data center according to domain name data, and to control the backup data center to be started; in the disaster recovery mode, based on the main-backup dual-center disaster recovery deployment mode, the business system simultaneously performs data incremental storage to the main data center and the backup data center, the storage data volume of the main data center and the backup data center is consistent, and when the domain name data of the domain name system is configured, the business access interface and the backup data center are connected, the business access interface is configured to provide a read-write channel for the application system to read and write business data of the business system, so as to realize business data read-write processing between the application system and the backup data center. An abnormality repair instruction triggering module is configured to trigger an abnormality repair instruction when it is determined that the data processing service state is an abnormal state and the main data center and the backup data center of the business system do not currently satisfy the primary-backup dual-active state; An abnormal data position determining module is configured to determine an abnormal data position corresponding to the abnormal state in response to the abnormality repair instruction; An abnormality repair module is configured to perform abnormality repair based on the abnormal data position until the data processing service state is a normal state; when it is determined that the main data center has abnormal data and it is judged that the abnormal data type is component state abnormal data, the states of different components of the main data center are analyzed to determine a faulty component, a fault handling scheme corresponding to the faulty component is matched, the fault handling scheme is executed, and abnormality repair is completed.
6. The apparatus of claim 5, wherein, The current running mode further includes a normal mode; and the switching module is further configured to: When it is determined that the current running mode is the normal mode, control the backup data center to be closed, and control the business access interface to be connected with the main data center according to the domain name data; the business access interface is configured to provide a read-write channel for the application system to access the business data of the business system.
7. The apparatus of any one of claims 5 or 6, wherein, The switching module is further configured to: When it is determined that the current running mode is the backup disaster mode, control the main data center to be closed, configure business access data according to the domain name data; According to the business access data, cut off the business connection between the main data center and the application system, switch the business access interface to the backup data center, and control the backup data center to be started.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the steps of the method in any one of claims 1 to 4.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 4.
10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 4.
Citation Information
Patent Citations
Data center active-active system, switching method and device, equipment and medium
CN111130835A