A method and system for automatic disaster recovery switching based on dynamic calculation

Through automated calculation of disaster recovery switching sorting and synchronization status judgment, the disaster recovery switching sequence is dynamically determined, which solves the problem of low efficiency of disaster recovery switching in the existing technology, and realizes fast and accurate disaster recovery switching, improving the stability of the business system. .

CN114253768BActive Publication Date: 2024-12-13CHINA CITIC BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111483969.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-07
Publication Date
2024-12-13
Estimated Expiration
2041-12-07

AI Technical Summary

Technical Problem

The existing technology cannot respond in a timely manner after the system transaction link changes, and the issuer of the disaster recovery handover instruction requires a high level of system topology awareness, resulting in low efficiency in disaster recovery handover tasks and cannot meet the requirements of dynamic and fast at the same time.

Method used

Update the system transaction volume weight through a predefined indicator tree, automatically calculate the disaster recovery switching order, update the switching order regularly, and judge the synchronization status between the system and the backup center during the disaster recovery switching, dynamically determine the switching order and perform switching operations, and generate an alarm Information is to assist in manual processing.

Benefits of technology

It realizes fast and accurate disaster recovery switching sequence generation, improves operation and maintenance efficiency, reduces dependence on operation and maintenance personnel experience, and ensures the stable operation of the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114253768B_ABST
    Figure CN114253768B_ABST
Patent Text Reader

Abstract

The present invention provides an automated disaster recovery switching method and system based on dynamic calculation, including establishing a disaster recovery switching sequence from high to low according to the switching weight index, quickly generating an accurate disaster recovery switching sequence plan by automatically analyzing the generation tree, using the predefined index tree as a reference, and continuously using the system's transaction volume to update the weight index tree to decide on subsequent switching steps, thereby improving the disaster recovery switching time index and accuracy. The present invention solves the problem of low operation and maintenance troubleshooting efficiency due to a large number of alarms and over-reliance on the personal experience and skills of the operation and maintenance personnel, and helps to efficiently restore business and ensure the stable operation of the business system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information technology, and in particular relates to a disaster recovery switching method and system. Background Art

[0002] The existing technical inventions cannot meet the requirements of both dynamic and fast in determining the switching sequence. The current method for determining the generation scheme is mainly to determine the switching sequence according to the expert review held frequently at a certain time. This method cannot respond in time after the system transaction link changes; another method is to have the switching commander issue instructions to schedule the switching of related systems at the switching site. Whether this method can succeed requires the switch command issuer to have a very high understanding of the entire system topology. Neither method can initiate disaster recovery switching tasks efficiently, accurately, and quickly. Summary of the invention

[0003] The purpose of the present invention is to use the predefined indicator tree as a reference, and continuously use the system's transaction volume to update the weight indicator tree to decide on subsequent switching steps. This solves the problem of low efficiency of operation and maintenance troubleshooting due to a large number of alarms and over-reliance on the personal experience and technology of operation and maintenance personnel, helps to efficiently restore business and ensure the stable operation of the business system.

[0004] To achieve the above objectives, the technical solutions adopted by the present invention include:

[0005] An automatic disaster recovery switching method based on dynamic calculation, characterized by comprising:

[0006] S1. Obtain transaction volume data of each system;

[0007] S2. Use transaction volume data to set the switching weight index for each system; the specific calculation formula is as follows:

[0008]

[0009] Among them, R j Expressed as the transaction volume of system j, R n represents the trading volume of n system;

[0010] S3, establishing a disaster recovery switching ranking from high to low according to the switching weight index;

[0011] S4, when no disaster recovery switching occurs, regularly executing steps S1 to S3 according to a preset time point to update the disaster recovery switching sequence;

[0012] S5. When a disaster recovery switch occurs, obtain the amount of data lost between each system and the backup center, and determine whether the system meets the recovery point target requirements and whether the system has stopped synchronizing services with the backup center;

[0013] S6. When it is determined that the system meets the recovery point target requirements and / or the system has stopped synchronizing services with the backup center, the system is marked as a switchable state; when it is determined that the system does not meet the recovery point target requirements and the system has not stopped synchronizing services with the backup center, the system is marked as a non-switchable state;

[0014] S7, for all systems marked as switchable, determine the switching order of each system according to their position in the disaster recovery switching sequence, and perform the disaster recovery switching operation in sequence;

[0015] S8, marking the system that correctly executes the disaster recovery switching operation as a successful switch;

[0016] S9. Repeat steps S5 to S8 for systems other than those marked as switched successfully at a preset time interval until all systems are marked as switched successfully.

[0017] Furthermore, the step S8 further includes:

[0018] For systems that fail to correctly perform the disaster recovery switching operation or perform the disaster recovery switching operation for a duration exceeding the recovery time target, an alarm message is generated and sent to the operator, and the system is marked for manual processing.

[0019] Furthermore, the step S9 further includes:

[0020] According to a preset time interval, steps S5 to S8 are repeatedly performed for the systems other than those marked as successful switching and manually processed, until all systems are marked as successful switching or manually processed.

[0021] Furthermore, the preset time point is a designated time point every day.

[0022] Furthermore, the preset time interval is 20 seconds.

[0023] Furthermore, the step S7 further includes:

[0024] Obtain the disaster recovery switching plans corresponding to the systems marked as switchable, and perform disaster recovery switching operations in sequence according to the corresponding disaster recovery switching plans.

[0025] The present invention also relates to an automatic disaster recovery switching system based on dynamic calculation, characterized in that it comprises:

[0026] The weight index calculation module is used to obtain historical transaction volume and calculate the switching weight index of each system;

[0027] Weight index arrangement module, used to record the weight index of each system;

[0028] The switching execution module is used to execute the disaster recovery switching operation according to the weight index and the system status.

[0029] The present invention also relates to a computer-readable storage medium, characterized in that a computer program is stored on the storage medium, and the computer program implements the above method when executed by a processor.

[0030] The present invention also relates to an electronic device, characterized in that it comprises a processor and a memory;

[0031] The memory is used to store the switching weight index and system status of each system;

[0032] The processor is used to execute the above method by calling the switching weight index and system status of each system.

[0033] The beneficial effects of the present invention are:

[0034] By using the method and system for automatic disaster recovery switching based on dynamic calculation described in the present invention, an accurate disaster recovery switching sequence plan can be quickly generated by automatically analyzing the spanning tree, solving the problem of low efficiency of operation and maintenance troubleshooting due to a large number of alarms and over-reliance on the personal experience and skills of operation and maintenance personnel, which helps to efficiently restore business and ensure the stable operation of the business system. Compared with the case without the introduction of the present invention, the accuracy and switching speed are effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 The present invention is a flow chart of an automatic disaster recovery switching method based on dynamic calculation. DETAILED DESCRIPTION

[0036] In order to more clearly understand the content of the present invention, it will be described in detail with reference to the drawings and embodiments.

[0037] The first aspect of the present invention relates to an automatic disaster recovery switching method based on dynamic calculation, the process is as follows: Figure 1 As shown, including:

[0038] S1. Obtain transaction volume data of each system;

[0039] S2. Use transaction volume data to set the switching weight index for each system; the specific calculation formula is as follows:

[0040]

[0041] Among them, R j Expressed as the transaction volume of system j, R n represents the trading volume of n system;

[0042] In actual operation, all the trading volumes in the past three months are taken out for weighted average, and the trading data in the past three months is used to replace the weights, so as to avoid the drastic disturbance caused by the sudden drop or rise of trading volume in the actual application process;

[0043] For example, the transaction volume in March accounts for 50%, in February accounts for 33%, and in January accounts for 17%. Taking systems A and B as examples, the actual transaction volume data for three months is obtained. In March, the transaction volume of system A accounts for 0.9, and that of system B is 0.1. In February, the transaction volume of system A accounts for 0.8, and that of system B is 0.2. In January, the transaction volume of system A accounts for 0.1, and that of system B is 0.9.

[0044] The switching weight of system A is [0.9 (system A's trading volume share in March) * 50% (weighted average weight in March) + 0.8 (system A's trading volume share in February) * 33% (weighted average weight in February) + 0.1 (system A's trading volume share in January) * 17% (weighted average weight in January)] / [0.9 (system A's trading volume share in March) * 50% (weighted average weight in March) + 0.1 (system B's trading volume share in March) *50% (weighted average weight in March) + 0.8 (the trading volume share of system A in February) * 33% (the weighted average weight in February) + 0.2 (the trading volume share of system B in February) * 33% (the weighted average weight in February) + 0.1 (the given value of the empirical trading volume of system A in January) * 17% (the weighted average weight in January) + 0.9 (the given value of the empirical trading volume of system B in January) * 17% (the weighted average weight in January)] = 73.1%;

[0045] The switching weight of system B is [0.1 (the trading volume share of system B in March) * 50% (the weighted average weight of March) + 0.2 (the trading volume share of system B in February) * 33% (the weighted average weight of February) + 0.9 (the empirical trading volume given value of system B in January) * 17% (the weighted average weight of January)] / [0.9 (the trading volume share of system A in March) * 50% (the weighted average weight of March) + 0.1 (the trading volume share of system B in March) )*50%(weighted average weight in March)+0.8(trading volume proportion of system A in February)*33%(weighted average weight in February)+0.2(trading volume proportion of system B in February)*33%(weighted average weight in February)+0.1(given value of experience trading volume of system A in January)*17%(weighted average weight in January)+0.9(given value of experience trading volume of system B in January)*17%(weighted average weight in January)]=26.9%;

[0046] S3. Establish a disaster recovery switching sequence from high to low according to the switching weight index. For example, in the above example, the weight of system A is greater than that of system B, and the switching sequence of system A is first;

[0047] S4, when no disaster recovery switching occurs, repeat steps S1 to S3 to update the disaster recovery switching sequence according to a specified time point every day, such as early morning every day;

[0048] S5. When a disaster recovery switch occurs, obtain the amount of data lost between each system and the backup center, and determine whether the system meets the recovery point target requirements and whether the system has stopped synchronizing services with the backup center;

[0049] S6. When it is determined that the system meets the recovery point target requirements and / or the system has stopped synchronizing services with the backup center, the system is marked as a switchable state; when it is determined that the system does not meet the recovery point target requirements and the system has not stopped synchronizing services with the backup center, the system is marked as a non-switchable state;

[0050] S7. For all systems marked as switchable, determine the switching order of each system according to their positions in the disaster recovery switching sequence, and perform the disaster recovery switching operation in sequence; obtain the disaster recovery switching plan corresponding to each system marked as switchable, and perform the disaster recovery switching operation in sequence according to the corresponding disaster recovery switching plan. Assuming that systems A and B are both in the switchable state and C is in the non-switchable state, according to their disaster recovery switching sequence, the disaster recovery switching is performed on system A first;

[0051] S8. Mark the system that correctly executes the disaster recovery switching operation as successfully switched; for the system that does not correctly execute the disaster recovery switching operation or the duration of the disaster recovery switching operation exceeds the recovery time target, generate an alarm message and send it to the operator, and mark the system as manually processed.

[0052] S9. Repeat steps S5 to S8 for systems other than those marked as successful switching and manually processed at a preset time interval, such as 20 seconds, until all systems are marked as successful switching or manually processed; repeat steps S5 to S8 for systems other than those marked as successful switching, until all systems are marked as successful switching.

[0053] A second aspect of the present invention relates to an automatic disaster recovery switching system based on dynamic calculation, comprising:

[0054] The weight index calculation module is used to obtain historical transaction volume and calculate the switching weight index of each system;

[0055] Weight index arrangement module, used to record the weight index of each system;

[0056] The switching execution module is used to execute the disaster recovery switching operation according to the weight index and the system status.

[0057] The system can be used to implement the above method and dynamically perform disaster recovery switching operations.

[0058] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. An automatic disaster recovery switching method based on dynamic calculation, characterized in that: include: S1. Obtain transaction volume data of each system; S2. Use transaction volume data to set the switching weight indicators corresponding to each system; S3, establishing a disaster recovery switching ranking from high to low according to the switching weight index; S4, when no disaster recovery switching occurs, regularly executing steps S1 to S3 according to a preset time point to update the disaster recovery switching sequence; S5. When a disaster recovery switch occurs, obtain the amount of data lost between each system and the backup center, and determine whether the system meets the recovery point target requirements and whether the system has stopped synchronizing services with the backup center. S6. When it is determined that the system meets the recovery point target requirements and / or the system has stopped synchronizing services with the backup center, the system is marked as a switchable state; when it is determined that the system does not meet the recovery point target requirements and the system has not stopped synchronizing services with the backup center, the system is marked as a non-switchable state; S7, for all systems marked as switchable, determine the switching order of each system according to their position in the disaster recovery switching sequence, and perform the disaster recovery switching operation in sequence; S8, marking the system that correctly executes the disaster recovery switching operation as a successful switch; S9. Repeat steps S5 to S8 for systems other than those marked as switched successfully at a preset time interval until all systems are marked as switched successfully.

2. The method according to claim 1, characterized in that The step S8 further comprises: For systems that fail to correctly perform the disaster recovery switching operation or perform the disaster recovery switching operation for a duration exceeding the recovery time target, an alarm message is generated and sent to the operator, and the system is marked for manual processing.

3. The method according to claim 2, characterized in that The step S9 further comprises: According to a preset time interval, steps S5 to S8 are repeatedly performed for the systems other than those marked as successful switching and manually processed, until all systems are marked as successful switching or manually processed.

4. The method according to claim 3, characterized in that The preset time point is a designated time point every day.

5. The method according to claim 4, characterized in that The preset time interval is 20 seconds.

6. The method according to claim 5, characterized in that The step S7 further comprises: Obtain the disaster recovery switching plans corresponding to the systems marked as switchable, and perform disaster recovery switching operations in sequence according to the corresponding disaster recovery switching plans.

7. An automatic disaster recovery switching system based on dynamic calculation, characterized in that: The system is used to perform any of the methods of claims 1-6, comprising: The weight index calculation module is used to obtain historical transaction volume and calculate the switching weight index of each system; Weight index arrangement module, used to record the weight index of each system; The switching execution module is used to execute the disaster recovery switching operation according to the weight index and the system status.

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

9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store the switching weight index and system status of each system; The processor is used to execute the method according to any one of claims 1 to 6 by calling the switching weight index and system status of each system.