Self-referring disaster recovery management method and device

By creating disaster recovery applications and fault plans in the computing network management system, and managing data replication services and active and standby instances, self-referential disaster recovery management is realized and the problems of high complexity and operation and maintenance system dependence in the existing technology are solved. , improving management efficiency and disaster recovery capabilities.

CN118733331APending Publication Date: 2024-10-01HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310308560.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When existing computing network management systems manage edge devices, they need to use multiple protocols for network communication, resulting in high complexity. The disaster recovery management capabilities that the operation and maintenance system relies on are difficult to effectively reuse, resulting in low management efficiency.

Method used

By creating disaster recovery applications in the first disaster recovery control device, managing data replication services and active and standby instances, creating recovery plans and fault plans, realizing disaster recovery self-management, avoiding reliance on operation and maintenance systems, and providing a common framework and overall view , optimize management costs and efficiency.

Benefits of technology

It achieves self-directed disaster recovery management that does not rely on the operation and maintenance system, improves management efficiency and cost optimization, simplifies the application disaster recovery management process, and improves realizability and disaster recovery capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733331A_ABST
    Figure CN118733331A_ABST
Patent Text Reader

Abstract

The invention provides a self-referring disaster recovery management method and device, and relates to the field of cloud services. The method is used for realizing self-referred disaster recovery management without depending on an operation and maintenance system. The method comprises the steps that first disaster recovery control equipment creates a disaster recovery application through a first disaster recovery management service CSR instance; the first disaster recovery control equipment manages a data replication service (DRS) instance, a second CSR main instance and a second CSR standby instance through the first CSR instance, and the second disaster recovery control equipment comprises the second CSR main instance and the second CSR standby instance; the first disaster recovery control device creates a recovery plan through the first CSR instance, the recovery plan indicates protection instances and protection services related to the second CSR primary instance and the second CSR standby instance, and the recovery plan is associated with the disaster recovery application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of cloud services, and in particular to a self-directed disaster recovery management method and device. Background Art

[0002] Edge devices refer to business platform devices built on the edge of the network close to users, which can provide storage, computing, network and other resources. Some key business applications are moved to edge devices that access the network, which can reduce bandwidth loss and latency loss caused by network transmission and multi-level forwarding.

[0003] When the computing network management system of the data center manages multiple edge devices, since the edge devices are usually deployed at a location far away from the data center, it is difficult for them to be located in the same local area network as the computing network management system. Therefore, it is necessary to establish a long connection based on the webSocket protocol between the computing network management system and the edge devices through the operator's public network for communication.

[0004] In the existing computing network management system solution for managing edge devices, the computing network management system needs to communicate with the edge devices through the webSocket protocol, while the computing network management system uses the redfish protocol to manage multiple business servers. Two protocols need to be used for network communication, making the computing network management system more complex. Summary of the invention

[0005] The embodiment of the present application provides a self-directed disaster recovery management method and device, which relates to the field of cloud services and is used to implement self-directed disaster recovery management without relying on an operation and maintenance system.

[0006] In the first aspect, an embodiment of the present application provides a method for managing an edge device, the method comprising: a first disaster recovery control device creates a disaster recovery application through a first disaster recovery management service CSR instance; the first disaster recovery control device manages a data replication service DRS instance, a second CSR primary instance and a second CSR backup instance through the first CSR instance, and the second disaster recovery control device includes a second CSR primary instance and a second CSR backup instance; the first disaster recovery control device creates a recovery plan through the first CSR instance, the recovery plan indicates protection instances and protection services related to the second CSR primary instance and the second CSR backup instance, and the recovery plan is associated with the disaster recovery application.

[0007] In this possible implementation, the first disaster recovery control device can manage the second CSR primary instance and the second CSR backup instance of the second disaster recovery control device. It does not require the support of the operation and maintenance system, reuses the disaster recovery management function of the CSR, has a relatively high frequency of use, and has a short maturity period.

[0008] In a possible implementation, before the first disaster recovery control device creates a disaster recovery application through the first disaster recovery management service CSR instance, the method further includes: the first disaster recovery control device obtains a disaster recovery delegation, and the disaster recovery delegation instructs the second disaster recovery control device to authorize the first disaster recovery control device to operate the network resources of the second disaster recovery control device.

[0009] In another possible implementation, the method further includes: the first disaster recovery control device creates a disaster recovery drill plan and a disaster recovery fault plan through the first CSR instance, the disaster recovery fault plan including a fault switching plan, a re-protection plan and a switchback plan, the disaster recovery drill plan is used to drill the disaster recovery fault plan for the first CSR instance, the fault switching plan is used to indicate that after the second CSR main instance fails, the first CSR instance controls the second disaster recovery control device to switch to the second CSR backup instance; the re-protection plan is used to indicate that the first CSR instance processes the business data of the second CSR main instance through the DRS instance; the switchback plan is used to indicate that the first CSR instance controls the second disaster recovery control device to switch to the second CSR main instance.

[0010] In another possible implementation, the first disaster recovery control device has a disaster recovery management interface, the disaster recovery management interface matches the second disaster recovery control device, and the first disaster recovery control device operates the network resources of the second disaster recovery control device through the disaster recovery management interface.

[0011] In this possible implementation, the first disaster recovery control device provides a public framework capability and an overall view, avoiding users from building from scratch using atomic services, and significantly optimizing the cost and efficiency of application disaster recovery management.

[0012] In another possible implementation, the business cluster of the second CSR main instance includes a monitoring cluster, an application cluster and a plan cluster. When the second CSR main instance is online, the business cluster supports reading and writing. When the second CSR main instance is offline, the business cluster supports read-only status.

[0013] In another possible implementation, the second CSR main instance includes a distributed cache service DCS instance and a relational database service RDS instance, and the above method also includes: in the event of a failure of the second CSR main instance, the first disaster recovery control device copies the business data of the DCS instance and the RDS instance to the second CSR backup instance through the DRS instance; the first disaster recovery control device controls the second disaster recovery control device to switch to the second CSR backup instance through the first CSR instance.

[0014] In another possible implementation, the second CSR active instance and the second CSR standby instance are located in different availability zones, or the second CSR active instance and the second CSR standby instance are located in the same availability zone.

[0015] In another possible implementation manner, the second CSR master instance manages the first CSR instance.

[0016] In this possible implementation, the first disaster recovery control device and the second disaster recovery control device perform disaster recovery management on each other, which improves the feasibility of the present invention. At the same time, in this distributed multi-active deployment, different independent disaster recovery management system instances perform disaster recovery management on each other or recursively.

[0017] In a second aspect, an embodiment of the present application provides a first disaster recovery control device, comprising: a processor and a memory. The processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor to enable the first disaster recovery control device to implement any one of the methods provided in the first aspect.

[0018] In a third aspect, an embodiment of the present application provides a chip, comprising: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute any one of the methods provided in the first aspect.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which at least one computer program instruction is stored. The computer program instruction is loaded and executed by a processor to implement any one of the methods provided in the first aspect above.

[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, including computer execution instructions, which, when executed on a computer, enable the computer to execute any one of the methods provided in the first aspect.

[0021] The technical effects brought about by any implementation method in the second to fifth aspects can refer to the technical effects brought about by the corresponding implementation methods in the first and second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 The following is a schematic diagram of a disaster recovery management solution.

[0023] Figure 2 A schematic diagram of a disaster recovery self-management scenario of a self-referencing disaster recovery management method provided in an embodiment of the present application. ;

[0024] Figure 3 A schematic diagram of a disaster recovery management scenario for cross-regional disaster recovery deployment provided in an embodiment of the present application;

[0025] Figure 4 A schematic diagram of a disaster recovery management scenario of a CSR self-cross-region disaster recovery deployment provided in an embodiment of the present application;

[0026] Figure 5 A flowchart of a self-directed disaster recovery management method provided in an embodiment of the present application;

[0027] Figure 6 A schematic diagram of a scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0028] Figure 7 A schematic diagram of another scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0029] Figure 8 A schematic diagram of another scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0030] Fig. 9 A schematic diagram of another scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0031] Fig.10 A network topology diagram of a disaster recovery application provided in an embodiment of the present application;

[0032] Fig.11 A schematic diagram of another scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0033] Fig.12 A schematic diagram of another scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0034] Fig.13 A schematic diagram of another scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0035] Fig.14 A schematic diagram of another scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0036] Fig.15 A schematic diagram of another scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0037] Fig.16 A schematic diagram of a scenario of a cascade mutual management mode provided in an embodiment of the present application;

[0038] Fig.17 A schematic diagram of a one-to-many mutual management mode scenario provided in an embodiment of the present application;

[0039] Fig.18 A schematic diagram of another scenario of a self-referential disaster recovery management method provided in an embodiment of the present application;

[0040] Fig.19 A flowchart of a method for managing disaster recovery applications provided in an embodiment of the present application;

[0041] Fig. 20 A schematic diagram of the structure of a first disaster recovery control device provided in an embodiment of the present application;

[0042] Fig.21 A schematic diagram of the structure of another first disaster recovery control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In the description of this application, unless otherwise specified, " / " indicates that the objects associated with each other are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship between associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0044] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0045] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0046] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0047] It is understood that the "embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments in the entire specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It is understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0048] It can be understood that some optional features in the embodiments of the present application may be implemented independently in certain scenarios without relying on other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects, or may be combined with other features according to needs in certain scenarios. Accordingly, the devices provided in the embodiments of the present application may also realize these features or functions accordingly, which will not be elaborated here.

[0049] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In this application, if there is no special description or logical conflict between the various embodiments, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and different embodiments can be combined to form new embodiments according to their inherent logical relationships. The following implementation methods of this application do not constitute a limitation on the scope of protection of this application.

[0050] In order to facilitate understanding of the technical solutions of the embodiments of the present application, a brief introduction to the relevant technologies of the embodiments of the present application is given below:

[0051] First: disaster recovery technology.

[0052] Disaster recovery system refers to the establishment of two or more sets of Internet technology (IT) systems with the same functions in remote locations, which can monitor the health status and switch functions between each other. When a system stops working due to an accident (such as fire, earthquake, etc.), the entire application system at the affected location can be switched to another system so that the system functions can continue to work normally. Disaster recovery technology is a component of high availability technology of IT systems. It emphasizes the impact of external environment on the system, especially the impact of catastrophic events on the entire IT node, and provides node-level system recovery functions.

[0053] Disaster recovery (DR) application (APP): A tenant application with disaster recovery capabilities across availability zones (AZ), regions, and / or clouds. After a local site fails, the business of the disaster recovery application can be taken over by other sites, thereby achieving high availability (HA) of the application. Tenant applications built on the cloud usually rely on cloud services at different levels, such as computing, storage, network, and database. The disaster recovery capabilities of disaster recovery applications can be built by relying on the disaster recovery capabilities of the cloud services themselves, such as the virtual machines and storage that the application relies on supporting cross-AZ disaster recovery, or they can be built at the application level, such as the application uses storage deployed in two different AZs, and dual writing is performed at the application level to achieve data disaster recovery, or a combination of the above two.

[0054] Protected service (PS): A cloud service that disaster recovery applications directly rely on. This cloud service can be directly managed by tenants (purchased, deleted, etc.). Depending on the disaster recovery type of the tenant application, the protected service can be a disaster recovery deployment distributed in multiple AZs or regions, or a non-disaster recovery deployment distributed in a single AZ or region.

[0055] Protected instance (PI): A set of nodes with disaster recovery protection relationships under a protection service. The number of protected instances under a protection service is related to the type and scale of the protection service. Large-scale distributed cloud services usually have multiple protected instances.

[0056] Protected object (PO): A single node under a protection instance. Protected objects in the same protection instance have the ability to protect each other. When a protected object fails or exits, its running business can be taken over by other protected objects under the protection instance. By deploying the protection nodes under the protection instance at different sites, the protection service has the disaster recovery protection capability of site failures.

[0057] Tenant applications running on public clouds are usually built on computing, storage, network and other basic services, such as elastic compute service (ECS), cloud container engine (CCE) and other computing basic services, elastic volume service (EVS), object storage service (OBS) and other storage basic services, virtual private cloud (VPC), elastic load balance (ELB) and other network basic services. Cloud native applications also use database, message queue, cache and other services. For example, relational database service (RDS), data distribution service (DDS) and other database services, distributed message service

[0058] (distributed message service, DMS), KAFKA and other message queue services, distributed cache service (distributed cache service, DCS) and other cache services. To achieve application resilience and high availability, the service instances that tenant applications rely on must be cross-AZ or region disaster recovery deployments, or have the ability to implement disaster recovery replication and takeover at the application level.

[0059] The disaster recovery management system manages the disaster recovery capabilities of tenant applications and the service instances they depend on, including status monitoring, disaster recovery drills, disaster recovery switching, and cutback, etc. At the same time, the disaster recovery management system itself also runs on the public cloud infrastructure. To ensure availability in disaster scenarios, it also needs to have cross-AZ and cross-region disaster recovery capabilities. Its own disaster recovery capabilities also need to be managed, including operating status monitoring, disaster recovery drills, disaster recovery switching, etc., to ensure that the disaster recovery management system can operate normally in disaster scenarios and manage the affected applications or services.

[0060] like Figure 1 As shown in the figure, the current disaster recovery management solution of the disaster recovery management system is managed in the operation and maintenance subsystem of the disaster recovery management system through the method of operation and maintenance engineering guarantee. Specifically, the disaster recovery management system opens interfaces to access external management systems; introduces disaster recovery management features in the operation and maintenance subsystem, thereby realizing the disaster recovery operation monitoring, disaster recovery drills, disaster recovery switching and other capabilities of the disaster recovery management system.

[0061] In the current disaster recovery management system disaster recovery solution, on the one hand, the disaster recovery management capability needs to be repeatedly developed, the code is redundant, the customization is strong, the development cost is high, the disaster recovery management features are not unified and difficult to reuse. In addition, the mature and reliable disaster recovery management capabilities of the disaster recovery management system cannot be effectively used to manage itself. On the other hand, the disaster recovery management features in the operation and maintenance subsystem are in a standby state for a long time, the operation probability is low, and the problems are difficult to fully expose. As a result, when a disaster occurs, the operation and maintenance management capabilities are inefficient, the operation is cumbersome, and it is difficult to ensure reliability during real disaster recovery switching.

[0062] Based on this, an embodiment of the present application provides a disaster recovery management method, which includes: a first disaster recovery control device creates a disaster recovery application through a first disaster recovery management service CSR instance, the first disaster recovery control device manages a data replication service DRS instance, a second CSR primary instance and a second CSR backup instance through the first CSR instance, and the second disaster recovery control device includes a second CSR primary instance and a second CSR backup instance; the first disaster recovery control device creates a recovery plan through the first CSR instance, the recovery plan indicates protection instances and protection services related to the second CSR primary instance and the second CSR backup instance, and the recovery plan is associated with the disaster recovery application.

[0063] like Figure 2 As shown, Figure 2 A schematic diagram of a disaster recovery self-management scenario for a self-referencing disaster recovery management method provided for an embodiment of the present application. The disaster recovery management service (cloud site recovery, CSR) can not only manage tenant disaster recovery instances through the disaster recovery management interface, but also provide a complete and independent disaster recovery management interface. In addition, the disaster recovery management service is deployed in a distributed multi-active form to manage different tenant disaster recovery instances respectively. A disaster recovery management system instance with disaster recovery capabilities can be managed as an independent disaster recovery application by another set of homogeneous disaster recovery management systems, thereby forming disaster recovery self-management.

[0064] Specific as Figure 2 As shown, disaster recovery management system 1 can manage tenant disaster recovery instance 1, tenant disaster recovery instance 2 and tenant disaster recovery instance 3, and disaster recovery management system 2 can manage tenant disaster recovery instance 4, tenant disaster recovery instance 5 and tenant disaster recovery instance 6; disaster recovery management system 1 also manages disaster recovery management system 2 as an independent disaster recovery application, and at the same time, disaster recovery management system 2 also manages disaster recovery management system 1 as an independent disaster recovery application. Disaster recovery management system 1 and disaster recovery management system 2 perform disaster recovery management on each other, thereby realizing disaster recovery self-management.

[0065] The layered PS-PI-PO model abstracts and unifies the underlying cloud services with significant differences, facilitating the management of heterogeneous cloud services during the operation of the CSR system and providing a unified view for the tenant management interface.

[0066] Table 1 is an example of model mapping relationships for some cloud services.

[0067] Table 1

[0068]

[0069] Relying on the APP-PS-PI-PO application disaster recovery architecture model, the corresponding disaster recovery monitoring and disaster recovery switching models are constructed. The cloud service opens the disaster recovery management capability through the application programming interface (API), connects with the CSR and adapts to the PS-PI-PO model. The CSR itself also provides a disaster recovery management API to achieve self-directed disaster recovery management. SDRS in the table is storage disaster recovery service (SDRS).

[0070] Table 2 is an example of the disaster recovery management API of some cloud services.

[0071] Table 2

[0072]

[0073]

[0074] like Figure 3 As shown, Figure 3 A schematic diagram of a disaster recovery management scenario for cross-regional disaster recovery deployment provided by an embodiment of the present application. The disaster recovery management service CSR includes multiple modules such as disaster recovery application management, status monitoring, disaster recovery plan management and web interface, which can interact and be open to the outside world through restful API.

[0075] like Figure 3As shown, CSR saves all data that needs to be replicated across regions to the relational database service RDS, and implements data replication through the data replication service (DRS). Distributed cache service DCS is used to cache data and does not require cross-region replication. The CSR business cluster monitoring monitor cluster, app cluster, and plan cluster are stateless clusters and do not require cross-region replication. The RDS of the backup region is read-only, so the business cluster supports two states: read-write state and read-only state. Elastic load balancing ELB and API gateway (gateway, GW) are routing nodes for traffic and do not involve cross-region data replication. The CSR console (Console-CSR) is a static interface and does not involve region data replication. The browser decides which Console-CSR to access based on the domain name system (domain name system, DNS) domain name resolution result.

[0076] Specifically, when performing disaster recovery switching, DRS will perform active-standby switching. Change the standby region business cluster to read-write status. Change the domain name through DNS to point to the standby Console-CSR.

[0077] Table 3 is an example of the model mapping relationship between CSR regions.

[0078] Table 3

[0079]

[0080] like Figure 4 As shown, Figure 4 A schematic diagram of a disaster recovery management scenario for a cross-region disaster recovery deployment of CSR itself provided in an embodiment of the present application. Among them, the relational database service RDS and the distributed cache service DCS support cross-AZ data replication, and the primary and standby provide services to the outside world through virtual IPs. CSR's business cluster monitor cluster, app cluster, and plan cluster are stateless clusters and do not require cross-AZ replication. RDS and DCS can be connected through virtual IPs. ELB and API gateway are traffic routing nodes, which themselves support cross-AZ deployment and cross-AZ distribution of business requests to CSR business clusters, support business node health checks, and automatically isolate faulty business nodes. Console-CSR is a static interface that does not involve AZ data replication. It supports cross-AZ deployment and cross-AZ distribution of business requests.

[0081] Specifically, when performing disaster recovery switching, RDS and DCS can perform active-standby switching, and ELB, API Gateway, and Console-CSR can automatically isolate the nodes of the primary AZ (i.e., the failed AZ).

[0082] Table 4 is an example of the model mapping relationship between CSR regions.

[0083] Table 4

[0084]

[0085] The cloud services (DRS, RDS, ELB, DCS) involved in the CSR cross-region and cross-AZ disaster recovery model have been included in CSR for disaster recovery management. In order to implement CSR self-directed disaster recovery management, the CSR application needs to provide the disaster recovery management interface in Table 5:

[0086] Table 5 is an example of a disaster recovery management interface for a CSR application.

[0087] Table 5

[0088]

[0089] The detailed definition of the interface in Table 5 is shown in Table 6.

[0090] Table 6 is a detailed definition of the disaster recovery management interface of the CSR application.

[0091] Table 6

[0092]

[0093]

[0094] In the embodiment of the present application, by providing the above-mentioned various interfaces, the disaster recovery management system itself provides the same disaster recovery management interface as the managed disaster recovery service, and connects to the unified disaster recovery management model, thereby realizing disaster recovery management without relying on operation and maintenance services, and significantly optimizing the cost and efficiency of application disaster recovery management.

[0095] It is understandable that in the embodiments of the present application, the execution subject may execute some or all of the steps in the embodiments of the present application, and these steps or operations are only examples. The embodiments of the present application may also execute other operations or variations of various operations. In addition, the various steps may be executed in different orders presented in the embodiments of the present application, and it is possible that not all operations in the embodiments of the present application need to be executed.

[0096] It should be noted that the message names between the devices or the names of the parameters in the messages in the following embodiments of the present application are only examples, and other names may be used in the specific implementation, and the embodiments of the present application do not specifically limit this.

[0097] like Figure 5 As shown, a self-directed disaster recovery management method provided by an embodiment of the present application includes the following steps:

[0098] 501. The first disaster recovery control device obtains a disaster recovery commission.

[0099] The first disaster recovery control device obtains a disaster recovery entrustment, and the disaster recovery entrustment instructs the second disaster recovery control device to authorize the first disaster recovery control device to operate the network resources of the second disaster recovery control device.

[0100] In one possible implementation, the service resources of the first disaster recovery control device and the second disaster recovery control device can both belong to the same identity and access management (IAM) control system for management. The administrator tenant2 of the second CSR service of the second disaster recovery control device can log in to the IAM console, and then authorize the first CSR service administrator tenant1 of the first disaster recovery control device and create a disaster recovery delegation, so that when the second CSR main instance of the second disaster recovery control device fails, the first CSR service administrator tenant1 of the first disaster recovery control device can operate the network resources belonging to the second disaster recovery control device.

[0101] Specifically, Figure 6 As shown in the figure, two sets of CSR instances are deployed on the public cloud. The CSR instance in South China is used to manage the disaster recovery applications of tenants in South China, and its administrator is north-admin; the CSR instance in North China is used to manage the disaster recovery applications of tenants in North China, and its administrator is south-admin. The CSR instances in South China and North China manage each other's disaster recovery, and both CSR instances in South China and North China are deployed across regions. The active CSR instance in South China is deployed in region1, the standby CSR instance in South China is deployed in region2, the active CSR instance in North China is deployed in region3, and the standby CSR instance in North China is deployed in region4.

[0102] Specifically, Figure 7 As shown in the figure, the administrator north-admin in the North China region logs in to the IAM console, creates a disaster recovery delegation north-to-south, delegates the resource operation permissions in the account of the administrator north-admin in the North China region to the administrator south-admin in the South China region, and authorizes the South China region console to access all permissions of the data replication service DRS, all permissions of the relational database service RDS, all permissions of the distributed cache service DCS, and all permissions of the disaster recovery management CSR service.

[0103] 502. The first disaster recovery control device creates a disaster recovery application.

[0104] The first disaster recovery control device creates a disaster recovery application through the first disaster recovery management service CSR instance.

[0105] In one possible implementation, for example Figure 8 As shown in the figure, use the north-admin account of the North China region administrator to log in to the South China CSR console, and then create a cross-region application app-csr-cross-region-001.

[0106] 503. The first disaster recovery control device manages the DRS instance, the second CSR active instance, and the second CSR standby instance.

[0107] The first disaster recovery control device manages the DRS instance, the second CSR main instance and the second CSR standby instance through the first disaster recovery management service CSR instance. The second CSR main instance and the second CSR standby instance are the CSR instances corresponding to the second disaster recovery control device.

[0108] In one possible implementation, for example Figure 8 As shown in the figure, use the north-admin account of the administrator of the North China region to log in to the South China CSR console, create the disaster recovery application app-csr-cross-region-001, and then manage the DRS instance, the second CSR master instance, and the second CSR standby instance. The second CSR master instance and the second CSR standby instance are stateless clusters, so cross-region data replication is not required.

[0109] In one possible implementation, Fig. 9 As shown, the first disaster recovery control device will also be configured with monitoring alarm rules, which are used to determine that the first disaster recovery control device will issue an alarm under target conditions when managing the DRS instance and the second CSR main instance. For example, an alarm will be issued when the data point recovery objective (recovery point objective, RPO) of the DRS service is greater than 10000 milliseconds. The RPO indicates the amount of data loss that the business system can tolerate.

[0110] In one possible implementation, Fig.10 As shown, Fig.10 This is the network topology diagram of the disaster recovery application. After managing the DRS instance, the second CSR primary instance, and the second CSR backup instance, the network topology diagram of the disaster recovery application is as follows: Fig. 9 shown.

[0111] 504. The first disaster recovery control device creates a recovery plan.

[0112] The first disaster recovery control device creates a recovery plan through the first CSR instance. The recovery plan indicates the protection instances and protection services related to the second CSR active instance and the second CSR standby instance. The recovery plan is associated with the disaster recovery application.

[0113] In one possible implementation, Fig.11 As shown, the administrator can use the north-admin account of the administrator of the north China region to log in to the south China CSR console, create a recovery plan plan-csr-cross-region-001, and add the disaster recovery application app-csr-cross-region-001 created in step 502 to the recovery plan.

[0114] 505. The first disaster recovery control device creates a disaster recovery drill plan and a disaster recovery fault plan.

[0115] The first disaster recovery control device creates a disaster recovery drill plan and a disaster recovery fault plan, which includes a fault switching plan, a re-protection plan and a switchback plan. Among them, the disaster recovery drill plan is used to rehearse the disaster recovery fault plan for the first CSR instance, the fault switching plan is used to indicate that after the second CSR main instance fails, the first CSR instance controls the second disaster recovery control device to switch to the second CSR backup instance; the re-protection plan is used to indicate the first CSR instance to process the business data of the second CSR main instance through the DRS instance; the switchback plan is used to indicate the first CSR instance to control the second disaster recovery control device to switch to the second CSR main instance.

[0116] In one possible implementation, Fig.12 As shown, the first disaster recovery control device can create a disaster recovery drill plan, the name of which is drill-csr-cross-region-001, and the disaster recovery drill plan can be applied to the switch between sites North China 202 and North China 201.

[0117] 506. The first disaster recovery control device executes the disaster recovery drill plan.

[0118] After the disaster recovery drill plan is arranged, the first disaster recovery control device can execute the disaster recovery drill plan

[0119] In one possible implementation, Fig.13 and Fig.14 As shown, the first disaster recovery control device can execute a disaster recovery drill plan, the name of which is drill-csr-cross-region-001, and the disaster recovery drill plan can be applied to the switch between sites North China 202 and North China 201.

[0120] Specifically, the execution process of the disaster recovery drill plan includes three stages: storage master-slave switching stage, disaster recovery application status setting stage, and traffic switching stage. Among them, the storage master-slave switching stage mainly performs the master-slave switching of the DRS real-time disaster recovery data replication task. There will be a manual confirmation point after the storage master-slave switching stage, and the disaster recovery application status setting stage will be entered after the tenant confirms. The disaster recovery application status setting stage mainly modifies the original active cluster to a read-only state and the original standby cluster to a read-write state. In the traffic switching stage, the DNS domain name configuration is modified to point to the IP of the standby cluster, thereby achieving traffic switching.

[0121] 507. The second disaster recovery control device switches to the second CSR standby instance.

[0122] Under the control of the first CSR instance of the first disaster recovery control device, the second disaster recovery control device switches from the second CSR active instance to the second CSR standby instance. The specific switching method is similar to the method practiced in step 506 and will not be repeated here.

[0123] In the embodiment of the present application, the second CSR primary instance and the second CSR backup instance are located in different regions, and the above method is a cross-region disaster recovery application management method. It can be understood that if Fig.15 As shown, for the cross-AZ scenario, the above disaster recovery method is still applicable, but the protection service is changed to elastic load balancing ELB, cloud database RDS and distributed cache service DCS. The specific steps are similar to the above steps 501-507 and will not be repeated here.

[0124] In the embodiment of the present application, the first disaster recovery control device can manage the second CSR main instance and the second CSR backup instance of the second disaster recovery control device, without the support of the operation and maintenance system, and reuse the disaster recovery management function of CSR, with a relatively high frequency of use and a short maturity period. On the other hand, the first disaster recovery control device provides a public framework capability and an overall view, avoiding users from using atomic services to build from scratch, significantly optimizing the cost and efficiency of application disaster recovery management

[0125] It can be understood that the above method is a disaster recovery application management method in which the first disaster recovery control device manages the second disaster recovery control device. The disaster recovery application management method in which the second disaster recovery control device manages the first disaster recovery control device is similar to the above steps 501-507, except that the execution entities are interchanged, which will not be repeated here.

[0126] In the embodiment of the present application, the disaster recovery control device supports self-directed disaster recovery management. It can be understood that the disaster recovery control devices can manage each other's CSR services. There are multiple management modes between disaster recovery management devices, such as cascade mutual management mode, two-to-two mutual management mode, and one-to-many mutual management mode.

[0127] Cascade mutual management mode: In the cascade mutual management mode, each disaster recovery control device is managed step by step to form a closed-loop disaster recovery management. Fig.16 As shown, the CSR in South China manages the CSR in East China, the CSR in East China manages the CSR in North China, and the CSR in North China manages the CSR in South China, thus forming a closed-loop disaster recovery management.

[0128] Two-to-two mutual management mode: Two-to-two mutual management mode is as follows Figure 5 The mutual management mode between the first disaster recovery control device and the second disaster recovery control device shown requires that the total number of disaster recovery management devices is an even number.

[0129] One-to-many mutual management mode: multiple disaster recovery control devices are divided into multiple regions, each region has a set of master CSRs, that is, a master disaster recovery control device manages multiple sets of slave CSRs in a region, and the master CSRs of each region can adopt a cascade mutual management mode or a two-to-two mutual management mode. Fig.17 As shown, both the first area and the second area include multiple CSRs. The first master CSR in the first area manages multiple first slave CSRs, and the second master CSR in the second area manages multiple second slave CSRs. The first master CSR and the second master CSR adopt a two-to-two mutual management mode.

[0130] In the embodiment of the present application, the disaster recovery control devices can manage each other, and the disaster recovery control device can also manage the disaster recovery application and the CSR service of the disaster recovery control device at the same time, that is, the CSR service of the disaster recovery control device is also regarded as a disaster recovery application. Fig.18 As shown, the first CSR disaster recovery management service is the management object, and the second CSR disaster recovery management service and the tenant application are the managed objects.

[0131] like Fig.19 As shown, the disaster recovery control device can also manage the disaster recovery application and the CSR service of the disaster recovery control device at the same time, which may specifically include the following steps:

[0132] Create a delegation and authorize it: The tenant first creates a delegation for the CSR and authorizes the CSR to access and control the cloud service resources that the tenant application depends on.

[0133] Activate CSR service: After the tenant creates a delegation, log in to the CSR console and select the created delegation to confirm the activation of the CSR service.

[0134] Create / manage disaster recovery applications: There are two ways for tenants to host disaster recovery applications to CSR: create and manage. In the creation mode, the tenant application or service instance is located in a single AZ / region. After the user selects the non-disaster recovery resources scanned by CSR and configures the necessary parameters, CSR uses delegation authorization to help the user create a disaster recovery instance and build a corresponding disaster recovery application model in the system.

[0135] In the managed mode, the tenant application already has cross-AZ / Region disaster recovery capabilities, which are configured by the tenant. The CSR will scan the corresponding service instance. After the tenant selects and confirms, the CSR uses the delegated authorization to obtain detailed information about the service instance and builds a corresponding disaster recovery application model in the system.

[0136] Managed protection service: In the managed mode, the service instance already has cross-AZ / Region disaster recovery capabilities and is configured by the tenant. The CSR will scan the corresponding service instance. After the tenant selects and confirms, the CSR uses the delegated authorization to obtain detailed information about the service instance and builds a corresponding disaster recovery application model in the system.

[0137] Create a recovery plan: You can create a recovery plan and add the disaster recovery application to the recovery plan.

[0138] Arrange disaster recovery plans: Arrange disaster recovery drill plans and disaster recovery fault plans. The disaster recovery fault plan includes fault switching plans, re-protection plans, and switchback plans.

[0139] Execute the disaster recovery plan: After the arrangement is completed, the disaster recovery plan can be executed

[0140] The embodiment of the present application provides a first disaster recovery control device 2000. In the embodiment of the present application, the first disaster recovery control device 2000 can be divided into functional modules according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0141] In the case of dividing each functional module into corresponding functional modules, Fig. 20 FIG. 2 is a schematic diagram showing a possible structure of the first disaster recovery control device 2000 involved in the above embodiment. Fig. 20 As shown, the first disaster recovery control device 2000 includes:

[0142] The acquisition module 2001 is used to acquire a disaster recovery entrustment, which indicates that the second disaster recovery control device authorizes the first disaster recovery control device to operate the network resources of the second disaster recovery control device. For example, step 501 in the above method embodiment is performed: the first disaster recovery control device acquires the disaster recovery entrustment.

[0143] The first creation module 2002 is used to create a disaster recovery application through a first disaster recovery management service CSR instance; for example, executing step 502 in the above method embodiment: the first disaster recovery control device creates a disaster recovery application.

[0144] The management module 2003 is used to manage the data replication service DRS instance, the second CSR main instance and the second CSR backup instance through the first CSR instance, and the second disaster recovery control device includes the second CSR main instance and the second CSR backup instance; for example, execute step 503 in the above method embodiment: the first disaster recovery control device manages the DRS instance, the second CSR main instance and the second CSR backup instance.

[0145] The second creation module 2004 is used to create a recovery plan through the first CSR instance, the recovery plan indicates the protection instance and protection service related to the second CSR active instance and the second CSR standby instance, and the recovery plan is associated with the disaster recovery application. For example, step 504 in the above method embodiment is performed: the first disaster recovery control device creates a recovery plan.

[0146] The third creation module 2005 is used to create a disaster recovery drill plan and a disaster recovery fault plan through the first CSR instance. The disaster recovery fault plan includes a fault switching plan, a re-protection plan, and a switchback plan. The disaster recovery drill plan is used to drill the disaster recovery fault plan for the first CSR instance. The fault switching plan is used to indicate that after the second CSR main instance fails, the first CSR instance controls the second disaster recovery control device to switch to the second CSR standby instance; the re-protection plan is used to indicate that the first CSR instance processes the business data of the second CSR main instance through the DRS instance; and the switchback plan is used to indicate that the first CSR instance controls the second disaster recovery control device to switch to the second CSR main instance. For example, step 505 in the above method embodiment is executed: the first disaster recovery control device creates a disaster recovery drill plan and a disaster recovery fault plan.

[0147] In a possible implementation, the first disaster recovery control device has a disaster recovery management interface, the disaster recovery management interface matches the second disaster recovery control device, and the first disaster recovery control device operates the network resources of the second disaster recovery control device through the disaster recovery management interface.

[0148] In one possible implementation, the business cluster of the second CSR main instance includes a monitoring cluster, an application cluster and a plan cluster. When the second CSR main instance is online, the business cluster supports reading and writing. When the second CSR main instance is offline, the business cluster supports read-only status.

[0149] In a possible implementation, the second CSR master instance includes a distributed cache service DCS instance and a relational database service RDS instance, and the first disaster recovery control device further includes:

[0150] The replication module 2006 is used to replicate the business data of the DCS instance and the RDS instance to the second CSR backup instance through the DRS instance when the second CSR primary instance fails; for example, execute step 506 in the above method embodiment: the second disaster recovery control device switches to the second CSR backup instance.

[0151] The switching module 2007 is used to control the second disaster recovery control device to switch to the second CSR standby instance through the first CSR instance. For example, step 506 in the above method embodiment is performed: the second disaster recovery control device switches to the second CSR standby instance.

[0152] The modules of the first disaster recovery control device may also be used to execute other actions in the method embodiment. All relevant contents of the steps involved in the method embodiment may be referred to the functional description of the corresponding functional modules and will not be repeated here.

[0153] Fig.21 It is a schematic diagram of the structure of a first disaster recovery control device provided in an embodiment of the present application. The first disaster recovery control device 2100 may include one or more central processing units (CPU) 2101 and a memory 2105. The memory 2105 stores one or more application programs or data.

[0154] The memory 2105 may be a volatile storage or a persistent storage. The program stored in the memory 2105 may include one or more modules, each of which may include a series of instruction operations in the first disaster recovery control device. Furthermore, the central processor 2101 may be configured to communicate with the memory 2105 and execute a series of instruction operations in the memory 2105 on the first disaster recovery control device 2100.

[0155] The central processor 2101 is used to execute the computer program in the memory 2105, so that the first disaster recovery control device 2100 is used to execute: the first disaster recovery control device creates a disaster recovery application through the first disaster recovery management service CSR instance; the first disaster recovery control device manages the data replication service DRS instance, the second CSR main instance and the second CSR backup instance through the first CSR instance, and the second disaster recovery control device includes the second CSR main instance and the second CSR backup instance; the first disaster recovery control device creates a recovery plan through the first CSR instance, and the recovery plan indicates the protection instances and protection services related to the second CSR main instance and the second CSR backup instance, and the recovery plan is associated with the disaster recovery application. For specific implementation methods, please refer to Figure 5 Steps 501-507 in the illustrated embodiment are not described in detail here.

[0156] The first disaster recovery control device 2100 may also include one or more power supplies 2102, one or more wired or wireless network interfaces 2103, one or more input and output interfaces 2104, and / or one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0157] The first disaster recovery control device 2100 can execute the aforementioned Figure 5 The operations performed by the first disaster recovery control device in the illustrated embodiment will not be described in detail here.

[0158] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, all or part of the processes (or functions) of the embodiments of the present application are implemented. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with a medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)), etc. In the embodiment of the present application, the computer may include the aforementioned device.

[0159] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in a claim. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

Claims

1. A disaster recovery management method, It is characterized in that The method comprises: The first disaster recovery control device creates a disaster recovery application through the first disaster recovery management service CSR instance; The first disaster recovery control device manages the data replication service DRS instance, the second CSR master instance and the second CSR standby instance through the first CSR instance, and the second disaster recovery control device includes the second CSR master instance and the second CSR standby instance; The first disaster recovery control device creates a recovery plan through the first CSR instance, the recovery plan indicates the protection instances and protection services related to the second CSR active instance and the second CSR standby instance, and the recovery plan is associated with the disaster recovery application.

2. The method according to claim 1, It is characterized in that Before the first disaster recovery control device creates a disaster recovery application through the first disaster recovery management service CSR instance, the method further includes: The first disaster recovery control device obtains a disaster recovery entrustment, and the disaster recovery entrustment instructs the second disaster recovery control device to authorize the first disaster recovery control device to operate network resources of the second disaster recovery control device.

3. The method according to claim 2, It is characterized in that The method further comprises: The first disaster recovery control device creates a disaster recovery drill plan and a disaster recovery fault plan through the first CSR instance. The disaster recovery fault plan includes a fault switching plan, a re-protection plan and a switchback plan. The disaster recovery drill plan is used for the first CSR instance to drill the disaster recovery fault plan. The fault switching plan is used to indicate that after the second CSR main instance fails, the first CSR instance controls the second disaster recovery control device to switch to the second CSR standby instance; the re-protection plan is used to indicate the first CSR instance to process the business data of the second CSR main instance through the DRS instance; the switchback plan is used to indicate the first CSR instance to control the second disaster recovery control device to switch to the second CSR main instance.

4. The method according to any one of claims 1 to 3, It is characterized in that The first disaster recovery control device has a disaster recovery management interface, the disaster recovery management interface matches the second disaster recovery control device, and the first disaster recovery control device operates the network resources of the second disaster recovery control device through the disaster recovery management interface.

5. The method according to claim 4, It is characterized in that The business cluster of the second CSR main instance includes a monitoring cluster, an application cluster and a plan cluster. When the second CSR main instance is online, the business cluster supports reading and writing. When the second CSR main instance is offline, the business cluster supports read-only status.

6. The method according to claim 5, It is characterized in that The second CSR main instance includes a distributed cache service DCS instance and a relational database service RDS instance, and the method further includes: In the event of a failure of the second CSR primary instance, the first disaster recovery control device replicates the service data of the DCS instance and the RDS instance to the second CSR standby instance through the DRS instance; The first disaster recovery control device controls the second disaster recovery control device to switch to the second CSR standby instance through the first CSR instance.

7. The method according to claim 6, It is characterized in that The second CSR active instance and the second CSR standby instance are located in different availability zones, or the second CSR active instance and the second CSR standby instance are located in the same availability zone.

8. The method according to claim 7, It is characterized in that The second CSR master instance manages the first CSR instance.

9. A first disaster recovery control device, It is characterized in that The first disaster recovery control device includes: A first creation module, used to create a disaster recovery application through a first disaster recovery management service CSR instance; A management module, used for managing a data replication service DRS instance, a second CSR master instance, and a second CSR standby instance through a first CSR instance, wherein the second disaster recovery control device includes the second CSR master instance and the second CSR standby instance; The second creation module is used to create a recovery plan through the first CSR instance, wherein the recovery plan indicates the protection instances and protection services related to the second CSR active instance and the second CSR standby instance, and the recovery plan is associated with the disaster recovery application.

10. The first disaster recovery control device according to claim 9, It is characterized in that The first disaster recovery control device also includes: The acquisition module is used to acquire a disaster recovery entrustment, where the disaster recovery entrustment indicates that the second disaster recovery control device authorizes the first disaster recovery control device to operate the network resources of the second disaster recovery control device.

11. The first disaster recovery control device according to claim 10, It is characterized in that The first disaster recovery control device also includes: The third creation module is used to create a disaster recovery drill plan and a disaster recovery fault plan through the first CSR instance. The disaster recovery fault plan includes a fault switching plan, a re-protection plan and a switchback plan. The disaster recovery drill plan is used for the first CSR instance to drill the disaster recovery fault plan. The fault switching plan is used to indicate that after the second CSR main instance fails, the first CSR instance controls the second disaster recovery control device to switch to the second CSR standby instance; the re-protection plan is used to indicate the first CSR instance to process the business data of the second CSR main instance through the DRS instance; the switchback plan is used to indicate the first CSR instance to control the second disaster recovery control device to switch to the second CSR main instance.

12. The first disaster recovery control device according to any one of claims 9 to 11, It is characterized in that The first disaster recovery control device has a disaster recovery management interface, the disaster recovery management interface matches the second disaster recovery control device, and the first disaster recovery control device operates the network resources of the second disaster recovery control device through the disaster recovery management interface.

13. The first disaster recovery control device according to claim 12, It is characterized in that The business cluster of the second CSR main instance includes a monitoring cluster, an application cluster and a plan cluster. When the second CSR main instance is online, the business cluster supports reading and writing. When the second CSR main instance is offline, the business cluster supports read-only status.

14. The first disaster recovery control device according to claim 13, It is characterized in that The second CSR main instance includes a distributed cache service DCS instance and a relational database service RDS instance, and the first disaster recovery control device also includes: A replication module, configured to replicate the service data of the DCS instance and the RDS instance to the second CSR standby instance through the DRS instance in case of a failure of the second CSR primary instance; The switching module is used to control the second disaster recovery control device to switch to the second CSR standby instance through the first CSR instance.

15. The first disaster recovery control device according to claim 14, It is characterized in that The second CSR active instance and the second CSR standby instance are located in different availability zones, or the second CSR active instance and the second CSR standby instance are located in the same availability zone.

16. The first disaster recovery control device according to claim 15, It is characterized in that The second CSR master instance manages the first CSR instance.

17. A first disaster recovery control device, It is characterized in that The first disaster recovery control device includes a processor and a memory; the processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor to enable the first disaster recovery control device to implement the method described in any one of claims 1-8.

18. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one computer program instruction, and the computer program instruction is loaded and executed by a processor to implement the method according to any one of claims 1 to 8.