CN112463440A - Disaster recovery switching method, system, storage medium and computer equipment - Google Patents

Disaster recovery switching method, system, storage medium and computer equipment Download PDF

Info

Publication number
CN112463440A
CN112463440A CN202011268275.5A CN202011268275A CN112463440A CN 112463440 A CN112463440 A CN 112463440A CN 202011268275 A CN202011268275 A CN 202011268275A CN 112463440 A CN112463440 A CN 112463440A
Authority
CN
China
Prior art keywords
switching
resource
disaster recovery
application
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011268275.5A
Other languages
Chinese (zh)
Inventor
丁小进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011268275.5A priority Critical patent/CN112463440A/en
Publication of CN112463440A publication Critical patent/CN112463440A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1492Generic software techniques for error detection or fault masking by run-time replication performed by the application software
    • G06F11/1494N-modular type
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1489Generic software techniques for error detection or fault masking through recovery blocks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a disaster recovery switching method, a disaster recovery switching system, a storage medium and computer equipment, and relates to the field of disaster recovery switching. The method comprises the following steps: matching the disaster tolerance switching condition with the switching scene in the disaster tolerance switching scene library to obtain a target switching scene matched with the disaster tolerance switching condition; acquiring a target switching object corresponding to the target switching scene; and executing disaster tolerance switching according to the switching unit information and the switching template of the target switching object. The embodiment of the invention can automatically carry out disaster tolerance switching, improve the efficiency of the disaster tolerance switching, reduce the influence on the service and simultaneously facilitate the reuse.

Description

Disaster recovery switching method, system, storage medium and computer equipment
Technical Field
The present invention relates to a disaster recovery switching method, and in particular, to a disaster recovery switching method, a disaster recovery switching system, a storage medium, and a computer device.
Background
When the information system of the production environment breaks down, the service needs to be switched from the production environment to the disaster-tolerant environment, namely, disaster-tolerant switching is performed.
In the prior art, the financial industry generally performs disaster recovery switching by manually operating scripts and manually controlling switching. The whole switching operation process and the execution Time sequence seriously depend on manual work, the automation degree is low, the RTO (Recovery Time Object) Time of disaster Recovery switching is too long, and the normal operation of the service is influenced after the information system is in disaster, the service is stopped from the Time when the information system is down to the Time when the information system is recovered to the Time when the operation of each department can be supported to recover the operation. Moreover, the current switching scheme is usually specific to a certain scene, and when a scene is added or changed, the whole switching scheme needs to be customized again, so that the scene reusability is poor and the time consumption is long.
Disclosure of Invention
The embodiment of the invention provides a disaster recovery switching method, a disaster recovery switching system, a storage medium and computer equipment, which are used for solving the problems of low automation degree and poor reusability when disaster recovery switching is carried out in the prior art.
In one aspect, an embodiment of the present invention provides a disaster recovery switching method, where the method includes:
matching the disaster tolerance switching condition with the switching scene in the disaster tolerance switching scene library to obtain a target switching scene matched with the disaster tolerance switching condition;
acquiring a target switching object corresponding to the target switching scene;
and executing disaster tolerance switching according to the switching unit information and the switching template of the target switching object.
In an implementation manner of this embodiment, the method further includes:
checking whether the target switching object meets the triggering condition and the admission condition of the target switching scene;
and when the target switching object meets the triggering condition and the admission condition corresponding to the target switching scene, executing the processing of disaster recovery switching according to the switching unit information and the switching template of the target switching object.
In an implementation manner of this embodiment, the performing disaster recovery handover according to the handover unit information of the target handover object and the handover template includes:
acquiring the object type of the target switching object;
if the target switching object is an application object, executing the following processing:
s1: acquiring switching unit information of the application object, wherein the switching unit information of the application object comprises: basic information of the application object, application object characteristics of the application object and resource object information related to the application object;
s2: determining an application object switching template of the application object according to the application object characteristics of the application object;
s3: and executing disaster tolerance switching according to the switching unit information of the application object and the application object switching template.
In an implementation manner of this embodiment, the executing the disaster recovery handover according to the handover unit information of the target handover object and the handover template further includes:
if the target switching object is a resource object, acquiring the switching type of the resource object;
and if the switching type of the resource object is switching by application, acquiring an application object growing based on the resource object, and executing processing S1-S3.
In an implementation manner of this embodiment, the executing the disaster recovery handover according to the handover unit information of the target handover object and the handover template further includes:
if the switching type of the resource object is switching according to the resource, executing the following processing:
acquiring switching unit information of the resource object, wherein the switching unit information of the resource object comprises: basic information of the resource object, and resource object characteristics of the resource object;
determining a resource object switching template of the resource object according to the resource object characteristics of the resource object;
and executing disaster tolerance switching according to the switching unit information of the resource object and the resource object switching template.
In an implementation manner of this embodiment, the resource object information related to the application object includes: a type of the resource object;
the executing disaster recovery switching according to the switching unit information of the application object and the application object switching template comprises:
instantiating the application object switching template according to the switching unit information of the application object to generate a switching instruction stream;
converting the operation instruction in the switching instruction stream into an operation instruction adapted to the resource object according to the type of the resource object related to the application object;
and sending the adapted operation instruction to the corresponding resource object to execute disaster recovery switching.
In another aspect, an embodiment of the present invention provides a disaster recovery switching system, where the system includes:
the scene matching module is used for matching the disaster recovery switching conditions with the switching scenes in the disaster recovery switching scene library to obtain target switching scenes matched with the disaster recovery switching conditions;
a switching object determining module, configured to obtain a target switching object corresponding to the target switching scene;
and the switching module is used for executing disaster recovery switching according to the switching unit information and the switching template of the target switching object.
In an implementation manner of this embodiment, the system further includes:
the condition checking module is used for checking whether the target switching object meets the triggering condition and the admission condition of the target switching scene;
and the switching module is also used for executing disaster recovery switching according to the switching unit information and the switching template of the target switching object when the target switching object meets the triggering condition and the admission condition corresponding to the target switching scene.
In an implementation manner of this embodiment, the switching module includes:
an object type obtaining unit, configured to obtain an object type of the target handover object;
a first switching information obtaining unit, configured to obtain switching unit information of the application object when the target switching object is the application object, where the switching unit information of the application object includes: basic information of the application object, application object characteristics of the application object and resource object information related to the application object;
the first switching template acquisition unit is used for determining an application object switching template of the application object according to the application object characteristics of the application object;
and the first switching unit is used for executing disaster recovery switching according to the switching unit information of the application object and the application object switching template.
In an implementation manner of this embodiment, the switching module further includes:
a switching type determining unit, configured to obtain a switching type of the resource object when the target switching object is the resource object;
and the application object acquisition unit is used for acquiring the application object growing based on the resource object and triggering the processing of the first switching information acquisition unit when the switching type of the resource object is switching according to the application.
In an implementation manner of this embodiment, the switching module further includes:
a second switching information obtaining unit, configured to obtain switching unit information of the resource object when the switching type of the resource object is resource-based switching, where the switching unit information of the resource object includes: basic information of the resource object, and resource object characteristics of the resource object;
a second switching template obtaining unit, configured to determine a resource object switching template of the resource object according to the resource object feature of the resource object;
and the second switching unit is used for executing disaster recovery switching according to the switching unit information of the resource object and the resource object switching template.
In one implementation of the present embodiment,
the resource object information related to the application object comprises: a type of the resource object;
the first switching unit includes:
the instantiation subunit is used for instantiating the application object switching template according to the switching unit information of the application object to generate a switching instruction stream;
an external connection adapter subunit, configured to adapt an operation instruction in the switching instruction stream to an operation instruction suitable for the resource object according to the type of the resource object to which the application object relates;
and the execution subunit is used for issuing the adapted operation instruction to the corresponding resource object to execute disaster recovery switching.
In another aspect, an embodiment of the present invention provides a computer storage medium having computer instructions stored thereon, where the computer instructions are executable by a processor to implement the processing of the disaster recovery switching method according to the foregoing embodiment.
In another aspect, an embodiment of the present invention provides a computer device, including:
a memory having a computer program stored thereon;
a processor configured to execute the computer program to implement the processing of the disaster recovery switching method according to the above embodiment.
Compared with the prior art, the disaster recovery switching method, the disaster recovery switching system, the storage medium and the computer device provided by the embodiment of the invention have the following beneficial technical effects:
the embodiment provides a switching template for the switching object, and defines a corresponding relation between the switching scene and the switching object for the switching scene. When disaster recovery switching is performed, the target switching scene matched with the disaster recovery switching condition can be obtained by matching the disaster recovery switching scene library, and then the target switching object corresponding to the target switching scene can be obtained according to the corresponding relation between the switching scene and the switching object, so that disaster recovery switching is automatically performed according to the switching template of the target switching object and the information of the switching unit. By the method, the disaster recovery switching can be automatically carried out, the automation degree of the disaster recovery switching is improved, manual operation is reduced, the time from downtime to recovery of an information system is shortened, the influence on business is reduced, and template multiplexing is convenient to carry out.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only drawings of some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a disaster recovery switching method according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a method of disaster recovery handover according to embodiment 1 of the present invention;
fig. 3 is a schematic data processing flow diagram of a disaster recovery switching method according to embodiment 1 of the present invention;
fig. 4 is a flowchart of a method of disaster recovery handover according to embodiment 2 of the present invention;
fig. 5 is a schematic system structure diagram of a disaster recovery switching system according to embodiment 3 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings. It is to be understood that the following examples are illustrative only and are not intended to limit the scope of the present invention.
[ example 1 ]
The embodiment provides a disaster recovery switching method. Fig. 1 is a schematic view illustrating an application scenario of a disaster recovery switching method according to embodiment 1 of the present invention. Fig. 2 shows a flowchart of a method of disaster recovery handover according to embodiment 1 of the present invention. The disaster recovery switching method described in this embodiment may be applied to the disaster recovery switching system shown in fig. 1, and may include the following processing:
s101: matching the disaster tolerance switching condition with the scene characteristics of the switching scene in the disaster tolerance switching scene library to obtain a target switching scene matched with the disaster tolerance switching condition;
s102: acquiring a target switching object corresponding to the target switching scene;
s103: and executing disaster tolerance switching according to the switching unit information and the switching template of the target switching object.
In the related technology, the disaster recovery switching scene and flow are complex, the related applications, networks, databases, storages and machine devices are numerous, and the association relationship is complex. For applications alone, there are thousands of channel applications, extranet applications, bus applications, product service applications, etc. The deployment modes of the applications are different, and the applications are deployed in a multi-active mode, a main standby mode and a distributed mode. The resource types related to each application are different, and the number of station sets is large. In this embodiment, a switching template is defined for a switching object, a target switching object corresponding to a target switching scene is determined according to a corresponding relationship between the switching scene and the switching object, and then automatic disaster recovery switching is performed according to the switching template of the target switching object and switching unit information. By adjusting the corresponding relation between the switching scenes and the switching objects, various switching scenes can be combined, and the switching scenes can be overlapped and are easy to expand. For example, when the switching scene is changed or increased, the corresponding relationship between the switching scene and the switching object may be adjusted, the new switching scene may be associated with the existing switching object, and the disaster recovery switching scheme of the new switching scene may be quickly generated, so that the switching scheme may be prevented from being repeatedly compiled, and the maintenance cost of the switching scheme may be reduced.
Specifically, the disaster recovery switching scenario is a scenario in which a service is switched from a production environment to a disaster recovery environment when an information system fails. A handover scenario definition module may be provided to perform a structured definition of a disaster recovery handover scenario. For example, attributes of the switching scenario, such as a switching object, a trigger condition, an admission condition, and a scenario feature, corresponding to (or associated with) the switching scenario, are defined. The switching object corresponding to the switching scene may be an application object, such as a channel application, an external application, a bus application, a product service application, or a resource object, such as a database resource, a storage resource, a network resource, or the like. The scenario characteristic of the switching scenario may be a fault characteristic, such as a system fault or a database fault. The triggering condition may be a condition for entering a handover scenario, that is, under what condition, the disaster recovery handover scenario is adopted for disaster recovery handover. The admission condition is a condition for performing disaster recovery switching, that is, disaster recovery switching can be performed when the condition is satisfied. For example, the associated application object a and the application object B may be defined in the structural information of the switching scenario 1, the scenario characteristic may be an application or database failure of the application system, the trigger condition may be that a system failure occurs in the application system a or the application system B of the production center, and the admission condition may be that the states of the application system a and the application system B of the disaster recovery center are normal, the network of the disaster recovery center is available, and there is no time delay in data synchronization. After the definition, the defined structured switching scenario information may be stored to a switching scenario library.
Besides providing the switching scene definition module, the embodiment may also provide the switching object definition module to perform the structural definition on the switching unit information of the switching object. The switching unit information may include an object ID, a type, an object feature, other types of object information involved, a belonging center, etc. The object ID of the switch object may be a number uniquely identifying the switch object. The type of the switching object can be an application object or a resource object. When the switch object is an application object, the object characteristics of the switch object may include application object characteristics of the application object, such as a disaster recovery mode (e.g., a primary/standby mode, a multi-active mode, a distributed mode, etc.), a system to which the switch object belongs, and the like. Other types of object information to which the switch object relates may include information for objects such as database resources, storage resources, network resources, underlying application objects, dependent objects, etc. to which the application object relates or corresponds. When the switch object is a resource object, the object characteristics of the switch object may include an object type (e.g., database resource, storage resource, network resource, etc.) of the resource object. Other types of object information to which a resource object relates may include application object information that is dependent on the growth of the resource, e.g., for database 1, application objects that are dependent on the database may include application system A and application system B. After the switching object is structurally defined, the structural information of the defined switching object can be stored in the switching object library.
When disaster recovery switching is performed, a disaster recovery switching condition can be obtained, and the disaster recovery switching condition is matched with a trigger condition of a switching scene in a switching scene library, so that a target switching scene matched with the disaster recovery switching condition is matched. For example, if the application system a fails, the scenario 1 can be switched according to a target that is matched by a switching condition that the application system a fails. After the target switching scene is determined, the structural information of the target switching scene can be acquired from the switching scene library, the target switching object corresponding to the target switching scene is acquired from the structural information, and disaster recovery switching is performed according to the switching template and the switching unit information of the target switching object. For example, if the target switching objects corresponding to the switching scene 1 are the application object a and the application object B, the structured information of the application object a and the application object B may be obtained from the switching object library, the switching template corresponding to the application object a and the switching unit information of the application object a may be obtained according to the structured information of the application object a, the switching template corresponding to the application object B and the switching unit information of the application object B may be obtained according to the structured information of the application object B, and the disaster recovery switching may be performed according to the respective switching templates and switching unit information of the application object a and the application object B.
In an implementation manner of this embodiment, in order to ensure reliable switching, after a target switching object corresponding to a target switching scene is determined, a trigger condition and an admission condition of the target switching scene may be checked, and after the check is passed, disaster recovery switching is performed according to switching unit information and a switching template of the target switching object.
Specifically, the structured scene information of the target switching scene may be obtained from the switching scene library, and the triggering condition and the admission condition of the target switching scene and the target switching object corresponding to the target switching scene may be obtained from the structured scene information. And then checking whether the target switching object meets the triggering condition and the admission condition of the target switching scene, and if so, performing disaster recovery switching according to the switching unit information and the switching template of the target switching object. If not, a prompt can be given to remind the switching personnel to process. The switching template can define the flow, flow nodes and execution sequence of disaster recovery switching, and define the operation subject, method and disaster recovery switching operation of each flow node. The disaster recovery switching process may be a whole switching operation process from the production environment to the disaster recovery environment when the information system fails. The disaster recovery switching operation may be an operation instruction that needs to be executed on a target resource at each process node.
For example, if the target switching scenario is switching scenario 1, the corresponding switching object is application system a, the triggering condition is a system failure of application system a in the production center, the admission condition is that the state of application system a in the disaster recovery center is normal, and there is no time delay in data synchronization. At this time, whether the application system a of the production center has a system fault or not can be checked, whether the state of the application system a of the disaster recovery center is normal or not can be checked, and whether the data synchronization from the production center to the disaster recovery center has a time delay or not can be checked. If the verification is passed, namely the application system A of the production center is in system failure, the state of the application system A of the disaster recovery center is normal, and data synchronization from the production center to the disaster recovery center is not delayed, the switching unit information of the application system A and the switching template corresponding to the application system A can be acquired, and disaster recovery switching is performed according to the switching unit information and the switching template of the application system A.
In an implementation manner of this embodiment, a switching template corresponding to the switching object may be specified in the structured object information of the switching object. Therefore, after the switching object is determined, the switching template corresponding to the switching object can be directly determined according to the structured object information of the switching object. Fig. 3 is a schematic data processing flow diagram of a disaster recovery switching method according to embodiment 1 of the present invention. As shown in fig. 3, if the target switching scene is the switching scene 1, the switching scene corresponding to the switching scene 1 is the application object a and the application object B, the switching template of the application object a is the multi-active template, and the switching template of the application object B is the disaster backup template, the multi-active template and the disaster backup template can be obtained, the multi-active template is instantiated according to the switching unit information of the application object a, the disaster backup template is instantiated according to the switching unit information of the application object B, so that the switching scene is instantiated to generate an operation instruction stream, and the operation instruction stream is sent to the execution scheduling module, and the execution scheduling module sends the operation instruction stream to the external connection adaptation module, and the external connection adaptation module performs operation adaptation on the operation instruction and then sends the operation instruction to the corresponding resource object for execution.
The embodiment provides a switching template for the switching object, and defines a corresponding relation between the switching scene and the switching object for the switching scene. When disaster recovery switching is performed, the target switching scene matched with the disaster recovery switching condition can be obtained by matching the disaster recovery switching scene library, and then the target switching object corresponding to the target switching scene can be obtained according to the corresponding relation between the switching scene and the switching object, so that disaster recovery switching is automatically performed according to the switching template of the target switching object and the information of the switching unit. By the method, the disaster recovery switching can be automatically carried out, the automation degree of the disaster recovery switching is improved, manual operation is reduced, the time from downtime to recovery of the information system is shortened, and the influence on services is reduced.
[ example 2 ]
As described above, disaster recovery switching involves many switching targets, and the switching targets have different characteristics and are related to each other, and the switching scenarios vary widely. In the embodiment, the switching object and the resource information are integrated, and the switching method is defined in terms of multi-state, templating and structuring according to the switching scene, so that switching of complex scenes can be realized, and the switching method can be expanded to scenes switched according to resource objects. Fig. 4 is a flowchart of a method of disaster recovery handover according to embodiment 2 of the present invention. As shown in fig. 4, the disaster recovery switching method described in this embodiment may perform switching mainly by using an application, or may perform switching mainly by using a resource, and specifically may include the following processing:
s201: and matching the disaster tolerance switching condition with the scene characteristics of the switching scene in the disaster tolerance switching scene library to obtain a target switching scene matched with the disaster tolerance switching condition.
The disaster recovery switching scene library can store the structural scene information of each switching scene in advance. The trigger condition of the scene can be included in the structured scene information.
S202: and determining a target switching object corresponding to the target switching scene.
The target switching object corresponding to the target switching scene can be acquired from the structured scene information of the target switching scene.
S203: and checking whether the target switching object meets the triggering condition and the admission condition of the target switching scene, and if so, turning to S204.
The triggering condition and the admission condition of the target switching scene can be acquired from the structural scene information of the target switching scene.
S204: acquiring the object type of the target switching object, if the target switching object is an application object, proceeding to the processing S207a, and if the target switching object is a resource object, proceeding to the processing S205.
Wherein the type of the switching object comprises: the application object and the resource object can acquire the type of the target switching object from the structured object information of the target switching object. The structured object information of the switching object may be stored in advance in the switching object library.
S205: acquiring the switching type of the resource object, if the switching type of the resource object is switching according to application, processing S206 is performed, and if the switching type of the resource object is switching according to resource, processing S207b is performed.
S206: obtains the application object grown based on the resource object, and goes to the process S207a,
the switching type of the resource object may include switching by application and switching by resource, which may be configured in the structured object information of the resource object in advance. If the switching type of the resource object is switching according to the application, the application object growing based on the resource object can be acquired from the structural information of the resource object, so that the application needing to be switched is identified, and then disaster recovery switching is performed according to the switching unit information and the switching template of the application object. For example: if the disaster recovery switching condition is a storage resource fault, the target switching scene determined according to the disaster recovery switching condition is switching scene 2, and the switching object corresponding to the switching scene 2 is a storage resource object, the application system object on the storage resource object can be acquired, and the application system object on the storage resource is switched to the disaster recovery center from the production center.
S207 a: acquiring switching unit information of the application object, wherein the switching unit information of the application object comprises: the basic information of the application object, the application object characteristics of the application object and the resource object information related to the application object.
In addition to specifying the switching template in the structured object information of the switching object and performing disaster recovery switching according to the specified switching template, the switching template may also be determined according to the application object characteristics of the application object. The application object characteristics of the application object may include attributes of a system (such as an open system, a host system, and the like) to which the application object belongs, a disaster recovery mode (such as a master/standby mode, a multi-active mode, a distributed mode, and the like) of the application object, and the application object characteristics may be acquired from the switching unit information of the application object. The switching unit information of the application object may include basic information of the application object, related resource object information, and the like, in addition to the application object feature. Wherein, the basic information may include: the ID of the application object, the center of the application object, the server type of the application object (such as HP (hewlett packard) server, AIX (UNIX operating system of a kind developed by IBM), X86 server), etc., and the resource object information related to the application object may include information of objects such as database resource object, storage resource object, network resource object, etc. associated with the application object.
S208 a: and determining an application object switching template of the application object according to the application object characteristics of the application object.
The disaster recovery switching process may be different for different disaster recovery modes, systems, and server types. The switching template of the application object may be determined according to the application object characteristics of the application object. For example, if the application object belongs to an open system and its disaster recovery mode is a multi-active mode, a multi-active template of the open system may be selected.
S209 a: and executing disaster tolerance switching according to the switching unit information of the application object and the application object switching template.
The switching scene instantiation module may be provided to instantiate the application object switching template according to the switching unit information of the application object, and generate a switching instruction stream, where the switching instruction stream may include an operation instruction arranged according to the disaster recovery switching flow. After generation, the switching instruction stream may be sent to a workflow engine for execution. The workflow engine can automatically guide the switching process according to the switching process and the operation instruction defined in the switching instruction stream.
Since the operation instructions of different devices may be different, when the application object switching template is instantiated according to the switching unit information of the application object, a switching instruction stream corresponding to the server type may be generated according to the server type of the application object. For example, if the server type of the application object is an X86 server, the application object switching template may be instantiated as a disaster recovery switching instruction stream of an X86 server. The application switching instruction stream may include disaster recovery switching orchestration and operation instructions of the X86 server. The switching template and the application object are appropriately decoupled by the embodiment, so that the universality and the flexibility can be improved.
If the application object relates to the resource object, the workflow engine can issue the operation instruction in the switching instruction stream to the resource object related to the application object for execution. Because the operation instructions of different resources may be different, an external connection adaptation module may be provided to convert the operation instruction into an operation instruction adapted to the resource object according to the type of the resource object related to the application object before the workflow engine issues the operation instruction in the switching instruction stream to the corresponding resource object for execution, and after the conversion, the external connection adaptation module may issue the adapted operation instruction to the corresponding resource object for executing the disaster tolerance switching. For example, before issuing an application switching instruction of the X86 server to a database resource, the workflow engine may send the application switching instruction to the external adapter module, and the external adapter module converts the application switching instruction into a database switching instruction, and then issues the database switching instruction to the corresponding database resource for execution. The resource objects related to the application objects are of various types and have large differences, the switching template of the embodiment appropriately shields the resource objects, and when the resource objects are operated, the switching operation instructions are subjected to differential adaptation, so that the application flexibility can be improved. Moreover, the single application object of the present embodiment is coupled with the switching operation flow, and when the switching operation is multiplexed to a plurality of application objects or resource objects, proper decoupling is performed. The switching operation, the application object and the resource object are separated moderately, and the easy definition of the operation is increased.
S207 b: acquiring switching unit information of the resource object, wherein the switching unit information of the resource object comprises: basic information of the resource object, and resource object characteristics of the resource object.
Wherein, the switching unit information of the resource object can be stored in the structural information of the switching object in advance. The basic information of the resource object may include an ID of the resource object, a center to which the resource object belongs, and the like. The object characteristics of a resource object may include the type of the resource object, such as a database resource, a network resource, a storage resource, and so forth.
S208 b: and determining a resource object switching template of the resource object according to the resource object characteristics of the resource object.
The resource switching template of the resource object can be determined according to the type of the resource object. For example, if the resource object is a network resource object, a resource switch template of the network resource object may be obtained.
S209 b: and executing disaster tolerance switching according to the switching unit information of the resource object and the resource object switching template.
The switching scene instantiation module may be provided to instantiate the switching template of the resource object according to the switching unit information of the resource object, so as to generate a switching instruction stream, where the switching instruction stream may include operation instructions arranged according to a flow time sequence. After the switching instruction stream is generated, the switching instruction stream may be sent to a workflow engine, so that the workflow engine may issue an operation instruction in the switching instruction stream to a corresponding resource object for execution.
In this embodiment, disaster recovery switching is performed according to different object types and switching manners, which may be switched according to both application objects and resource objects, and a flexible switching scheme may be provided for disaster recovery switching, thereby implementing a complex switching scenario.
[ example 3 ]
The embodiment provides a disaster recovery switching system. Fig. 5 shows a block diagram of a disaster recovery switching system according to embodiment 3 of the present invention. As shown in fig. 5, the disaster recovery switching system 10 provided in this embodiment may include:
a scene matching module 11, configured to match the disaster recovery switching condition with a switching scene in a disaster recovery switching scene library, and obtain a target switching scene matched with the disaster recovery switching condition;
a switching object determining module 12, configured to obtain a target switching object corresponding to the target switching scene;
and a switching module 13, configured to execute disaster recovery switching according to the switching unit information of the target switching object and the switching template.
In an implementation manner of this embodiment, the system further includes:
the condition checking module is used for checking whether the target switching object meets the triggering condition and the admission condition of the target switching scene;
and the switching module is also used for executing disaster recovery switching according to the switching unit information and the switching template of the target switching object when the target switching object meets the triggering condition and the admission condition corresponding to the target switching scene.
In an implementation manner of this embodiment, the switching module includes:
an object type obtaining unit, configured to obtain an object type of the target handover object;
a first switching information obtaining unit, configured to obtain switching unit information of the application object when the target switching object is the application object, where the switching unit information of the application object includes: the application object characteristics of the application object, the basic information of the application object and the resource object information related to the application object;
the first switching template acquisition unit is used for determining an application object switching template of the application object according to the application object characteristics of the application object;
and the first switching unit is used for executing disaster recovery switching according to the switching unit information of the application object and the application object switching template.
In an implementation manner of this embodiment, the switching module further includes:
a switching type determining unit, configured to obtain a switching type of the resource object when the target switching object is the resource object;
and the application object acquisition unit is used for acquiring the application object growing based on the resource object and triggering the processing of the first switching information acquisition unit when the switching type of the resource object is switching according to the application.
In an implementation manner of this embodiment, the switching module further includes:
a second switching information obtaining unit, configured to obtain switching unit information of the resource object when the switching type of the resource object is resource-based switching, where the switching unit information of the resource object includes: resource object characteristics of the resource object, and basic information of the resource object;
a second switching template obtaining unit, configured to determine a resource object switching template of the resource object according to the resource object feature of the resource object;
and the second switching unit is used for executing disaster recovery switching according to the switching unit information of the resource object and the resource object switching template.
In an implementation manner of this embodiment, the resource object information related to the application object includes: a type of the resource object;
the first switching unit includes:
the instantiation subunit is used for instantiating the application object switching template according to the switching unit information of the application object to generate a switching instruction stream;
an external connection adapter subunit, configured to adapt an operation instruction in the switching instruction stream to an operation instruction suitable for the resource object according to the type of the resource object to which the application object relates;
and the execution subunit is used for issuing the adapted operation instruction to the corresponding resource object to execute disaster recovery switching.
The disaster recovery switching system provided in this embodiment can be used to execute the disaster recovery switching method provided in the above embodiment, and for the working process and the specific processing, reference is made to the corresponding process of the disaster recovery switching method, which is not described herein again.
[ example 4 ]
The present embodiment provides a computer-readable storage medium, such as a hard disk, an optical disk, a flash memory, a floppy disk, a magnetic tape, etc., on which computer-readable instructions are stored, which can be executed by a processor to implement the processes of the disaster recovery switching method described in the above embodiments.
[ example 5 ]
The present embodiment provides a computer device, including:
a memory having a computer program stored thereon,
a processor, which can execute the computer program to implement the processing of the disaster recovery switching method described in the above embodiments.
The terms and expressions used in the present specification are used as terms of illustration only and are not meant to be limiting. It will be appreciated by those skilled in the art that changes could be made to the details of the above-described embodiments without departing from the underlying principles thereof. The scope of the invention is, therefore, indicated by the appended claims, in which all terms are intended to be interpreted in their broadest reasonable sense unless otherwise indicated.

Claims (14)

1. A disaster recovery switching method, comprising:
matching the disaster tolerance switching condition with the switching scene in the disaster tolerance switching scene library to obtain a target switching scene matched with the disaster tolerance switching condition;
acquiring a target switching object corresponding to the target switching scene;
and executing disaster tolerance switching according to the switching unit information and the switching template of the target switching object.
2. The disaster recovery switching method according to claim 1, wherein said method further comprises:
checking whether the target switching object meets the triggering condition and the admission condition of the target switching scene;
and when the target switching object meets the triggering condition and the admission condition corresponding to the target switching scene, executing the processing of disaster recovery switching according to the switching unit information and the switching template of the target switching object.
3. The disaster recovery switching method according to claim 1, wherein the performing disaster recovery switching according to the switching unit information and the switching template of the target switching object comprises:
acquiring the object type of the target switching object;
if the target switching object is an application object, executing the following processing:
s1: acquiring switching unit information of the application object, wherein the switching unit information of the application object comprises: basic information of the application object, application object characteristics of the application object and resource object information related to the application object;
s2: determining an application object switching template of the application object according to the application object characteristics of the application object;
s3: and executing disaster tolerance switching according to the switching unit information of the application object and the application object switching template.
4. The disaster recovery switching method according to claim 3, wherein the performing disaster recovery switching according to the switching unit information and the switching template of the target switching object further comprises:
if the target switching object is a resource object, acquiring the switching type of the resource object;
and if the switching type of the resource object is switching by application, acquiring an application object growing based on the resource object, and executing processing S1-S3.
5. The disaster recovery switching method according to claim 4, wherein the performing disaster recovery switching according to the switching unit information and the switching template of the target switching object further comprises:
if the switching type of the resource object is switching according to the resource, executing the following processing:
acquiring switching unit information of the resource object, wherein the switching unit information of the resource object comprises: basic information of the resource object, and resource object characteristics of the resource object;
determining a resource object switching template of the resource object according to the resource object characteristics of the resource object;
and executing disaster tolerance switching according to the switching unit information of the resource object and the resource object switching template.
6. The disaster recovery switching method according to claim 3,
the resource object information related to the application object comprises: a type of the resource object;
the executing disaster recovery switching according to the switching unit information of the application object and the application object switching template comprises:
instantiating the application object switching template according to the switching unit information of the application object to generate a switching instruction stream;
converting the operation instruction in the switching instruction stream into an operation instruction adapted to the resource object according to the type of the resource object related to the application object;
and sending the adapted operation instruction to the corresponding resource object to execute disaster recovery switching.
7. A disaster recovery switching system, said system comprising:
the scene matching module is used for matching the disaster recovery switching conditions with the switching scenes in the disaster recovery switching scene library to obtain target switching scenes matched with the disaster recovery switching conditions;
a switching object determining module, configured to obtain a target switching object corresponding to the target switching scene;
and the switching module is used for executing disaster recovery switching according to the switching unit information and the switching template of the target switching object.
8. The disaster recovery switching system as claimed in claim 7, wherein said system further comprises:
the condition checking module is used for checking whether the target switching object meets the triggering condition and the admission condition of the target switching scene;
and the switching module is also used for executing disaster recovery switching according to the switching unit information and the switching template of the target switching object when the target switching object meets the triggering condition and the admission condition corresponding to the target switching scene.
9. The disaster recovery switching system as claimed in claim 7, wherein said switching module comprises:
an object type obtaining unit, configured to obtain an object type of the target handover object;
a first switching information obtaining unit, configured to obtain switching unit information of the application object when the target switching object is the application object, where the switching unit information of the application object includes: basic information of the application object, application object characteristics of the application object and resource object information related to the application object;
the first switching template acquisition unit is used for determining an application object switching template of the application object according to the application object characteristics of the application object;
and the first switching unit is used for executing disaster recovery switching according to the switching unit information of the application object and the application object switching template.
10. The disaster recovery switching system of claim 9, wherein said switching module further comprises:
a switching type determining unit, configured to obtain a switching type of the resource object when the target switching object is the resource object;
and the application object acquisition unit is used for acquiring the application object growing based on the resource object and triggering the processing of the first switching information acquisition unit when the switching type of the resource object is switching according to the application.
11. The disaster recovery switching system of claim 10, wherein said switching module further comprises:
a second switching information obtaining unit, configured to obtain switching unit information of the resource object when the switching type of the resource object is resource-based switching, where the switching unit information of the resource object includes: basic information of the resource object, and resource object characteristics of the resource object;
a second switching template obtaining unit, configured to determine a resource object switching template of the resource object according to the resource object feature of the resource object;
and the second switching unit is used for executing disaster recovery switching according to the switching unit information of the resource object and the resource object switching template.
12. The disaster recovery switching system according to claim 9,
the resource object information related to the application object comprises: a type of the resource object;
the first switching unit includes:
the instantiation subunit is used for instantiating the application object switching template according to the switching unit information of the application object to generate a switching instruction stream;
an external connection adapter subunit, configured to adapt an operation instruction in the switching instruction stream to an operation instruction suitable for the resource object according to the type of the resource object to which the application object relates;
and the execution subunit is used for issuing the adapted operation instruction to the corresponding resource object to execute disaster recovery switching.
13. A computer storage medium having computer instructions stored thereon, the computer instructions being executable by a processor to implement the disaster recovery switching method of any one of claims 1 to 6.
14. A computer device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program to implement the disaster recovery switching method according to any one of claims 1 to 6.
CN202011268275.5A 2020-11-13 2020-11-13 Disaster recovery switching method, system, storage medium and computer equipment Pending CN112463440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011268275.5A CN112463440A (en) 2020-11-13 2020-11-13 Disaster recovery switching method, system, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011268275.5A CN112463440A (en) 2020-11-13 2020-11-13 Disaster recovery switching method, system, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN112463440A true CN112463440A (en) 2021-03-09

Family

ID=74825743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011268275.5A Pending CN112463440A (en) 2020-11-13 2020-11-13 Disaster recovery switching method, system, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN112463440A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090333A (en) * 2021-10-20 2022-02-25 中核核电运行管理有限公司 Disaster tolerance switching management system and method for production management platform
CN114095343A (en) * 2021-11-18 2022-02-25 深圳壹账通智能科技有限公司 Disaster recovery method, device, equipment and storage medium based on double-active system
CN116450417A (en) * 2023-06-05 2023-07-18 梅州客商银行股份有限公司 Bank payment system disaster backup switching platform and method based on DevOps

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426306A (en) * 2008-10-24 2009-05-06 中国移动通信集团山东有限公司 A disaster tolerance switching method, system and apparatus
US20120174112A1 (en) * 2010-12-29 2012-07-05 Symantec Corporation Application resource switchover systems and methods
CN103188098A (en) * 2011-12-30 2013-07-03 中国移动通信集团河南有限公司 Method, system and device for disaster recovery switching
CN110569149A (en) * 2019-09-16 2019-12-13 上海新炬网络技术有限公司 method for triggering automatic emergency switching of Oracle disaster tolerance based on fault detection
CN110633174A (en) * 2018-06-22 2019-12-31 中兴通讯股份有限公司 Disaster recovery switching method, device and computer readable storage medium
CN111813605A (en) * 2020-07-20 2020-10-23 北京百度网讯科技有限公司 Disaster recovery method, platform, electronic device, and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426306A (en) * 2008-10-24 2009-05-06 中国移动通信集团山东有限公司 A disaster tolerance switching method, system and apparatus
US20120174112A1 (en) * 2010-12-29 2012-07-05 Symantec Corporation Application resource switchover systems and methods
CN103188098A (en) * 2011-12-30 2013-07-03 中国移动通信集团河南有限公司 Method, system and device for disaster recovery switching
CN110633174A (en) * 2018-06-22 2019-12-31 中兴通讯股份有限公司 Disaster recovery switching method, device and computer readable storage medium
CN110569149A (en) * 2019-09-16 2019-12-13 上海新炬网络技术有限公司 method for triggering automatic emergency switching of Oracle disaster tolerance based on fault detection
CN111813605A (en) * 2020-07-20 2020-10-23 北京百度网讯科技有限公司 Disaster recovery method, platform, electronic device, and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090333A (en) * 2021-10-20 2022-02-25 中核核电运行管理有限公司 Disaster tolerance switching management system and method for production management platform
CN114095343A (en) * 2021-11-18 2022-02-25 深圳壹账通智能科技有限公司 Disaster recovery method, device, equipment and storage medium based on double-active system
CN116450417A (en) * 2023-06-05 2023-07-18 梅州客商银行股份有限公司 Bank payment system disaster backup switching platform and method based on DevOps
CN116450417B (en) * 2023-06-05 2023-08-25 梅州客商银行股份有限公司 Bank payment system disaster backup switching platform and method based on DevOps

Similar Documents

Publication Publication Date Title
CN112463440A (en) Disaster recovery switching method, system, storage medium and computer equipment
CN109298868B (en) Intelligent dynamic deployment and uninstallation method for mapping image data processing software
CN110825511A (en) Operation flow scheduling method based on modeling platform model
CN113569987A (en) Model training method and device
CN109032567B (en) Service development and operation method and system in micro-service environment
CN111813503A (en) Micro-service application open system based on container cloud
CN116701043A (en) Heterogeneous computing system-oriented fault node switching method, device and equipment
CN113489149B (en) Power grid monitoring system service master node selection method based on real-time state sensing
CN103178974A (en) Fault processing system and method
CN113849361A (en) Method, device, equipment and storage medium for testing service node
CN103259639B (en) A kind of clock synchronizing method of stack equipment and equipment
KR102246079B1 (en) SYSTEM OF SENSORY DATA ACQUISITION AND SYNCHRONIZATION FOR CLOUD CENTRIC IoT AND METHOD PERFORMING THEREOF
CN105577310A (en) Synchronization method for task partitioning and communication scheduling in time trigger network
CN115150263A (en) Service cluster deployment method
CN109144486A (en) A kind of workflow implementation method statelessly changed
CN109634749B (en) Distributed unified scheduling method and device
CN114546926A (en) Core cluster synchronization, control method, data processing method, core, device, and medium
CN117591132B (en) Service release method and release system
CN110943858B (en) Fault positioning method and device
CN111767043B (en) Cross-system service scheduling method and system based on service scheduling engine
CN111343260B (en) Stream processing system fault tolerance method for multi-cloud deployment
CN112199288A (en) Distributed test environment deployment method and system
CN117193966A (en) Distributed asset task scheduling method
CN114860688A (en) Big data-based data call link restoration analysis system
CN114610534A (en) Database deployment method, electronic device and computer-readable storage medium

Legal Events

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