Disaster recovery switching method, device, computer equipment and storage medium
By performing public platform status detection and step sequence generation during disaster recovery switching, the accuracy and automation of disaster recovery switching are achieved, solving the problems of complex operations and insufficient automation in the existing technology, and improving disaster response efficiency.
Patent Information
- Application Number
- CN202011516760.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-21
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-12-21
AI Technical Summary
When a production system disaster occurs, the existing disaster recovery switching technology has many operating steps and complex judgment conditions, which easily leads to errors, prolongs the activation time of the disaster recovery system, and lacks automation, affecting accuracy and efficiency.
By obtaining the disaster recovery switching instructions sent by the user terminal, the public platform status is detected and the disaster recovery switching step sequence is generated, ensuring that the disaster recovery switching is executed according to the preset arrangement sequence, providing monitoring and progress information feedback, and improving the degree of automation.
It improves the accuracy and automation of disaster recovery switching, reduces human errors, shortens the activation time of the disaster recovery system, and enhances disaster response capabilities.
Smart Images

Figure CN114650214B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of disaster recovery, and in particular to a disaster recovery switching method, device, computer equipment and storage medium. Background Art
[0002] In the information age, computer information systems are becoming more and more important to human life, and important information systems are centrally deployed in data centers. After years of continuous operation, information systems have accumulated a large amount of valuable data. Disasters caused by natural disasters and human errors may cause information systems to be paralyzed and cause huge losses. Since system disasters cannot be completely avoided, actively building disaster recovery systems has become an inevitable choice for important information systems.
[0003] When a disaster occurs in a production system, it is important that the disaster recovery system accurately and quickly completes the switch, replaces the original production system, continues to provide services to the outside world, and reduces the impact and losses caused by the disaster. In order to cope with the damage to information systems caused by disasters, people have built disaster recovery systems for some key business systems. When a disaster occurs and the production system is unavailable, the disaster recovery system replaces the production system to provide information services to the outside world.
[0004] Switching from a production system to a disaster recovery system involves many technical issues such as network address switching and data consistency. There are many operation steps, complex judgment conditions, and many professional operation commands. Engineers are prone to errors when entering switching commands one by one, and it takes a lot of time, which prolongs the activation time of the disaster recovery system.
[0005] Therefore, how to improve the accuracy, effectiveness and automation of disaster recovery switching is an urgent problem to be solved in the current field of disaster recovery technology. Summary of the invention
[0006] The present application provides a disaster recovery switching method, apparatus, computer equipment and storage medium, aiming to solve the problem of how to improve the accuracy, effectiveness and automation of disaster recovery switching.
[0007] On the one hand, the present application provides a disaster recovery switching method, the method comprising:
[0008] Obtaining a disaster recovery switching instruction for a preset service system sent by a user terminal, wherein the disaster recovery switching instruction includes a check instruction before the disaster recovery switching;
[0009] According to the disaster recovery switching instruction, a disaster recovery switching check is performed on the public platform corresponding to the preset business system to obtain the operation status detection information of the public platform;
[0010] Based on the running status detection information, determining whether the running status of the public platform is abnormal;
[0011] If the operation state of the public platform is normal, obtaining a disaster recovery switching sequence corresponding to the preset business system, wherein the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to a preset arrangement sequence;
[0012] Based on the disaster recovery switching sequence, disaster recovery switching is performed on the preset business system.
[0013] In a possible implementation of the present application, the disaster recovery switching check is performed on the public platform corresponding to the preset business system according to the disaster recovery switching instruction to obtain the operation status detection information of the public platform, including:
[0014] Based on the check instruction, calling a pre-acquired program interface check table corresponding to the public platform, wherein the program interface check table includes status information of the program interface corresponding to the public platform;
[0015] The program interface checklist is checked to obtain the operation status detection information of the public platform.
[0016] In a possible implementation of the present application, before calling the pre-acquired program interface check table corresponding to the public platform based on the check instruction, the method further includes:
[0017] Calling a program interface corresponding to the public platform within a preset interval to obtain status information of the program interface;
[0018] The state information is converted into a program interface check list corresponding to the public platform.
[0019] In a possible implementation of the present application, before obtaining the disaster recovery switching sequence corresponding to the preset business system, the method further includes:
[0020] Acquire component information in the preset business system, the component information including a component identifier corresponding to the component;
[0021] Matching the component identification with a preset operation sequence to obtain a template sequence;
[0022] The template steps are arranged according to a preset execution order to generate a disaster recovery switching step sequence.
[0023] In a possible implementation of the present application, performing disaster recovery switching on the preset service system based on the disaster recovery switching sequence includes:
[0024] Identify the step type corresponding to the disaster recovery switching step to obtain a target disaster recovery switching step;
[0025] Read the target disaster recovery switching sequence to obtain execution operation information corresponding to the target disaster recovery switching sequence;
[0026] According to the execution operation information, disaster recovery switching is performed on the preset business system.
[0027] In a possible implementation of the present application, the method further includes:
[0028] Monitoring the disaster recovery switching process corresponding to the preset business system to obtain monitoring information;
[0029] The monitoring information is parsed to obtain the state information and switching progress information of the disaster recovery switching corresponding to the current preset business system, and the switching progress information is sent to the user terminal.
[0030] In a possible implementation of the present application, the method further includes:
[0031] If the operation state of the preset business system is an abnormal state, based on the inspection feedback information, determining the inspection abnormality information corresponding to the preset business system, and generating forced skip request information;
[0032] The check exception information and the forced skip request information are sent to the user terminal.
[0033] In a possible implementation of the present application, after performing a disaster recovery switching check on the public platform corresponding to the preset business system, the method further includes:
[0034] According to the disaster recovery switching instruction, a step-by-step check is performed on the components corresponding to the preset business system.
[0035] On the other hand, the present application provides a disaster recovery switching device, the device comprising:
[0036] A first acquisition unit, configured to acquire a disaster recovery switching instruction for a preset service system sent by a user terminal;
[0037] A first inspection unit is used to perform a disaster recovery switching inspection on the public platform corresponding to the preset business system according to the disaster recovery switching instruction, and obtain the operation status detection information of the public platform;
[0038] A first judgment unit, configured to judge whether the operation state of the public platform is abnormal based on the operation state detection information;
[0039] A second acquisition unit is used to acquire a disaster recovery switching sequence corresponding to the preset service system if no, the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset service system according to a preset arrangement sequence;
[0040] The first switching unit is used to perform disaster recovery switching on the preset business system based on the disaster recovery switching sequence.
[0041] In a possible implementation of the present application, the first inspection unit specifically includes:
[0042] A first calling unit, configured to call a pre-acquired program interface check table corresponding to the public platform based on the check instruction, wherein the program interface check table includes status information of the program interface corresponding to the public platform;
[0043] The second checking unit is used to check the program interface checklist to obtain the running status detection information of the public platform.
[0044] In a possible implementation of the present application, before calling the pre-acquired program interface check table corresponding to the public platform based on the check instruction, the device further includes:
[0045] A third acquisition unit is used to call the program interface corresponding to the public platform within a preset interval time to obtain the status information of the program interface;
[0046] The first conversion unit is used to convert the state information into a program interface check list corresponding to the public platform.
[0047] In a possible implementation of the present application, before obtaining the disaster recovery switching sequence corresponding to the preset business system, the device further includes:
[0048] A fourth acquisition unit, configured to acquire component information in the preset business system, wherein the component information includes a component identifier corresponding to the component;
[0049] A first matching unit, used for matching the component identification with a preset operation sequence to obtain a template sequence;
[0050] The first arrangement unit is used to arrange the template steps according to a preset execution order to generate a disaster recovery switching step sequence.
[0051] In a possible implementation of the present application, the first switching unit is specifically configured to:
[0052] Identify the step type corresponding to the disaster recovery switching step to obtain a target disaster recovery switching step;
[0053] Read the target disaster recovery switching sequence to obtain execution operation information corresponding to the target disaster recovery switching sequence;
[0054] According to the execution operation information, disaster recovery switching is performed on the preset business system.
[0055] In a possible implementation of the present application, the device further includes:
[0056] A first monitoring unit is used to monitor the disaster recovery switching process corresponding to the preset business system to obtain monitoring information;
[0057] The first parsing unit and the first sending unit are used to parse the monitoring information, obtain the state information and switching progress information of the disaster recovery switching corresponding to the current preset business system, and send the switching progress information to the user terminal.
[0058] In a possible implementation of the present application, the device further includes:
[0059] A first determining unit and a first generating unit, configured to determine, based on the inspection feedback information, inspection abnormality information corresponding to the preset business system and generate forced skip request information if the operation state of the preset business system is an abnormal state;
[0060] The second sending unit is used to send the inspection exception information and the forced skip request information to the user terminal.
[0061] In a possible implementation of the present application, the device further includes:
[0062] A step checking unit is used to perform a step checking on the components corresponding to the preset business system according to the disaster recovery switching instruction.
[0063] On the other hand, the present application also provides a computer device, the computer device comprising:
[0064] one or more processors;
[0065] Memory; and
[0066] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the disaster recovery switching method.
[0067] On the other hand, the present application also provides a computer-readable storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the disaster recovery switching method.
[0068] The present application provides a disaster recovery switching method, the method comprising: obtaining a disaster recovery switching instruction for a preset business system sent by a user terminal; performing a disaster recovery switching check on a public platform corresponding to the preset business system according to the disaster recovery switching instruction, and obtaining operation status detection information of the public platform; judging whether the operation status of the public platform is abnormal based on the operation status detection information; if the operation status of the public platform is normal, obtaining a disaster recovery switching sequence corresponding to the preset business system, the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to a preset arrangement sequence; based on the disaster recovery switching sequence, performing disaster recovery switching on the preset business system. The present application ensures the accuracy and effectiveness of the disaster recovery switching process by first performing a disaster recovery switching check when performing disaster recovery switching on the preset business system. On the other hand, by adopting a disaster recovery switching sequence to perform disaster recovery switching on the preset business system, manual input is replaced, thereby improving the switching automation of the disaster recovery system. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0070] Figure 1 is a schematic diagram of a disaster recovery switching system provided in an embodiment of the present application;
[0071] Figure 2 It is a schematic diagram of an embodiment of the disaster recovery switching method provided in the embodiments of the present application;
[0072] Figure 3 is a schematic diagram of another embodiment of the flow chart of the disaster recovery switching method provided in the embodiments of the present application;
[0073] Figure 4 is a schematic diagram of another embodiment of the flow chart of the disaster recovery switching method provided in the embodiments of the present application;
[0074] Figure 5 This is another example flow chart of the disaster recovery switching method provided in the embodiment of the present application.
[0075] Figure 6 It is a schematic diagram of the structure of an embodiment of a disaster recovery switching device provided in an embodiment of the present application;
[0076] Figure 7 It is a schematic diagram of the structure of an embodiment of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0077] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0078] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0079] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0080] The embodiments of the present application provide a disaster recovery switching method, device, and storage medium, which are described in detail below.
[0081] like Figure 1 As shown, Figure 1 1 is a schematic diagram of a disaster recovery switching system provided in an embodiment of the present application. The disaster recovery switching system may include multiple terminals 100 and servers 200. The terminals 100 and the servers 200 are connected via a network. A disaster recovery switching device is integrated in the server 200. Figure 1The terminal 100 can access the server 200.
[0082] In the embodiment of the present application, the server 200 is mainly used to obtain a disaster recovery switching instruction for a preset business system sent by a user terminal, wherein the disaster recovery switching instruction includes an inspection instruction before disaster recovery switching; according to the disaster recovery switching instruction, a disaster recovery switching inspection is performed on the public platform corresponding to the preset business system to obtain operation status detection information of the public platform; based on the operation status detection information, it is determined whether the operation status of the public platform is abnormal; if the operation status of the public platform is normal, a disaster recovery switching sequence corresponding to the preset business system is obtained, and the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to a preset scheduling order; based on the disaster recovery switching sequence, the preset business system is disaster recovered.
[0083] In the embodiment of the present application, the server 200 can be an independent server, or a server network or server cluster composed of servers, such as the server 200 described in the embodiment of the present application, which includes but is not limited to a computer, a network terminal, a single network server, a plurality of network server sets or a cloud server composed of a plurality of servers. Wherein, the cloud server is composed of a large number of computers or network servers based on cloud computing (Cloud Computing). In the embodiment of the present application, communication between the server and the terminal can be achieved by any communication method, including but not limited to, mobile communication based on the third generation partnership project (3rd Generation Partnership Project, 3GPP), long term evolution (Long Term Evolution, LTE), Worldwide Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, WiMAX), or computer network communication based on TCP / IP protocol suite (TCP / IP Protocol Suite, TCP / IP), user datagram protocol (User Datagram Protocol, UDP), etc.
[0084] It is to be understood that the terminal 100 used in the embodiments of the present application may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such a terminal may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific terminal 100 may be a desktop terminal or a mobile terminal, and the terminal 100 may also be one of a mobile phone, a tablet computer, a laptop computer, etc.
[0085] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer terminals, or server network connection relationships shown in, for example Figure 1 Only one server and two terminals are shown in FIG. It is understandable that the disaster recovery switching system may also include one or more other servers, or / and one or more terminals connected to the server network, which is not specifically limited here.
[0086] In addition, if Figure 1 As shown, the disaster recovery switching system may further include a memory 300 for storing data, such as storing user disaster recovery data and disaster recovery switching data, such as disaster recovery switching data when the disaster recovery switching system is running.
[0087] It should be noted that Figure 1 The scenario diagram of the disaster recovery switching system shown is only an example. The disaster recovery switching system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided by the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the disaster recovery switching system and the emergence of new business scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
[0088] Next, the disaster recovery switching method provided by the embodiment of the present application is introduced.
[0089] In the embodiment of the disaster recovery switching method of the present embodiment, a disaster recovery switching device is used as an execution subject. For the sake of simplicity and ease of description, the execution subject will be omitted in the subsequent method embodiments. The disaster recovery switching device is applied to computer equipment. The method includes: obtaining a disaster recovery switching instruction for a preset business system sent by a user terminal, the disaster recovery switching instruction including a check instruction before disaster recovery switching; according to the disaster recovery switching instruction, performing a disaster recovery switching check on a public platform corresponding to the preset business system to obtain operation status detection information of the public platform; based on the operation status detection information, determining whether the operation status of the public platform is abnormal; if the operation status of the public platform is normal, obtaining a disaster recovery switching sequence corresponding to the preset business system, the disaster recovery switching sequence being used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to a preset scheduling order; based on the disaster recovery switching sequence, performing disaster recovery switching on the preset business system.
[0090] See also Figures 2 to 7 , Figure 2It is a flowchart of an embodiment of the disaster recovery switching method provided in the embodiment of the present application. The disaster recovery switching method specifically includes steps 201 to 205.
[0091] 201. Obtain a disaster recovery switching instruction for a preset business system sent by a user terminal, where the disaster recovery switching instruction includes a check instruction before the disaster recovery switching.
[0092] During the disaster recovery switching process, the current business system and the backup business system will be involved. Disaster recovery switching is to switch the current business system to the backup business system. The preset business system can be the current business system. Specifically, the preset business system includes a public platform corresponding to the preset business system, wherein the public platform may include an operating platform, a cloud platform and a DNS service corresponding to the actual business.
[0093] It should be noted that disaster recovery basic data will be involved in the disaster recovery switching process, and the sources of disaster recovery basic data mainly include the responsibility matrix and architecture center, architecture center and cloud data set. Among them, the architecture center is used for service deployment units and resource information. Specifically, the responsibility matrix is a matrix relationship that connects the system, users, roles, and permissions around the system code, with the R&D center to which the science and technology system code belongs as the tenant. Its architecture can be registered in the cloud platform springcloud system in the form of microservices, and provide data and services to the cloud platform and other systems through the product launch process. The main functions of the responsibility matrix include at least (i) system code application and management; (ii) system user, role, and permission initialization; and (iii) system information query management.
[0094] Specifically, the system list information corresponding to the responsibility matrix can be synchronized at preset intervals, for example, the system list information corresponding to the responsibility matrix can be synchronized every five minutes. Similarly, the deployment unit and resource information of the architecture center service can be synchronized at preset intervals, for example, the deployment unit and resource information of the architecture center service can be synchronized every ten minutes.
[0095] When a disaster occurs in the office space corresponding to the preset business system or a disaster recovery drill is required, the authorized user terminal can send a disaster recovery switching instruction to the disaster recovery switching system. When the disaster recovery switching system receives the disaster recovery switching instruction, it will perform the corresponding disaster recovery switching operation.
[0096] 202. According to the disaster recovery switching instruction, a disaster recovery switching check is performed on the public platform corresponding to the preset business system to obtain operation status detection information of the public platform.
[0097] Specifically, according to the disaster recovery switching instruction, a disaster recovery switching check is performed on the public platform corresponding to the preset business system to obtain the operation status detection information of the public platform, which may specifically include:
[0098] (i) Based on the check instruction, calling a pre-acquired program interface check table corresponding to the public platform, wherein the program interface check table includes status information of the program interface corresponding to the public platform.
[0099] (ii) Checking the program interface checklist to obtain the operation status detection information of the public platform.
[0100] It should be noted that after the disaster recovery switching check is performed on the public platform corresponding to the preset business system, the components corresponding to the preset business system can also be checked in sequence according to the disaster recovery switching instruction. Specifically, when the components corresponding to the preset business system are checked in sequence, the sequence check interface is first performed. If it is a system group, the sequence check is performed on each system concurrently, and then the sequence information is obtained through the system coding. Further, the inspection parameters are assembled through the sequence information and the deployment unit information, and the product set abbreviation and inspection parameters contained in the deployment unit are passed to the product service to obtain and call the inspection interface. Among them, multiple deployment units under the system concurrently call the product service for inspection, the deployment unit involves multiple products, and the product service is concurrently called according to the product dimension. The product service will block and wait for all products to return the inspection results, and then summarize them to the pre-switching inspection module. Among them, the inspection return content can include inspection details, inspection time and inspection results, among which the inspection details can specifically include inspection items, inspection values, severity (general / serious), and the inspection results can specifically include operable and inoperable.
[0101] 203. Based on the operation status detection information, determine whether the operation status of the public platform is abnormal.
[0102] The operation status detection information includes the detection information corresponding to the above-mentioned program check table, wherein the program interface table may include the public service name, platform name, interface address, interface input parameter, check time, check result, and description content of abnormality. Specifically, the check result may include pass, fail, and abnormality. That is, it is possible to judge whether the operation status of the preset business system is abnormal based on its check result.
[0103] 204. If the operation status of the public platform is normal, obtain the disaster recovery switching sequence corresponding to the preset business system.
[0104] Among them, when the result of the operation status check of the preset business system is normal, that is, it is in normal state, then the subsequent disaster recovery switching steps can be carried out normally. First, it is necessary to obtain the disaster recovery switching sequence corresponding to the preset business system, and the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to the preset arrangement order. Among them, the disaster recovery switching sequence is composed of template generation plus custom sequence plus application verification sequence. The template sequence is generated by matching the module information of the cloud platform architecture diagram through timed synchronization according to the rules. If the pre-switching check passes, the subsequent process can be carried out; if the check fails, the product operation and maintenance must handle the failed problems before switching the current problem system.
[0105] In some embodiments of the present application, due to the huge amount of data involved in the business system and the complexity of its structure, in some actual disaster recovery switching processes, the entire disaster recovery switching process may be interrupted before it is completed due to abnormal system operation status. Therefore, in order to ensure the integrity and effectiveness of the disaster recovery switching process, the method may further include the following two steps:
[0106] (i) If the running state of the preset business system is an abnormal state, based on the inspection feedback information, the inspection abnormality information corresponding to the preset business system is determined, and forced skip request information is generated.
[0107] The preset business system includes multiple parallel sub-business systems and related components. When the operating status of the preset business system is found to be abnormal before disaster recovery switching, the inspection feedback information can be read to determine the inspection exception information corresponding to the preset business system, wherein the inspection exception information may include representation information of the sub-business system or related components with abnormal operating status in the preset business system. Furthermore, the inspection exception information may also include details of the operating status exception corresponding to the preset business system.
[0108] (ii) sending the inspection exception information and the forced skip request information to the user terminal.
[0109] When the user terminal receives the inspection exception information and the forced skip request information, according to actual needs, based on the forced skip request information, the user terminal can send a forced skip permission instruction to the disaster recovery switching system. After receiving the forced skip permission instruction, the disaster recovery switching system can continue to execute the next disaster recovery switching process according to the forced skip permission instruction, so as to avoid the entire drill or disaster switching being unable to execute due to individual interface problems of the related product line.
[0110] 205. Based on the disaster recovery switching sequence, disaster recovery switching is performed on the preset business system.
[0111] During the disaster recovery switching process, the switching process can be a sequence maintained through daily sequence management, matching the switching interface information configured in the product service, and scheduling product switching orchestration through the production service in parallel with the same sequence and serially with different sequences. The custom sequence uses a synchronous orchestration interaction method, which will block and wait for the execution result; while the standard sequence uses an asynchronous orchestration interaction method.
[0112] Batch systems are switched independently and in parallel. If all steps of all selected systems are executed successfully, the one-click automatic switching task is completed; if some steps fail, manual intervention is required and you can choose to skip or ignore the current step and continue to complete the subsequent switching tasks. Based on the different concurrent execution capabilities of product lines, the platform can configure batch system grouping to execute switching.
[0113] The present application provides a disaster recovery switching method, the method comprising: obtaining a disaster recovery switching instruction for a preset business system sent by a user terminal; performing a disaster recovery switching check on a public platform corresponding to the preset business system according to the disaster recovery switching instruction, and obtaining operation status detection information of the public platform; judging whether the operation status of the public platform is abnormal based on the operation status detection information; if the operation status of the public platform is normal, obtaining a disaster recovery switching sequence corresponding to the preset business system, the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to a preset arrangement sequence; based on the disaster recovery switching sequence, performing disaster recovery switching on the preset business system. The present application ensures the accuracy and effectiveness of the disaster recovery switching process by first performing a disaster recovery switching check when performing disaster recovery switching on the preset business system. On the other hand, by adopting a disaster recovery switching sequence to perform disaster recovery switching on the preset business system, manual input is replaced, thereby improving the switching automation of the disaster recovery system.
[0114] In some embodiments of the present application, Figure 3 As shown, Figure 3 : is another embodiment flow chart of the disaster recovery switching method provided in the embodiment of the present application. Before calling the pre-acquired program interface check table corresponding to the public platform based on the check instruction, the method further includes:
[0115] 301. Call a program interface corresponding to the public platform within a preset interval to obtain status information of the program interface.
[0116] The public platform may include multiple operating platforms, cloud platforms, DNS, etc. In order to ensure that the operating status information of each component within the public platform is normal, the program interface corresponding to the public platform may be called within a preset interval to obtain the status information of the program interface to determine the operating status of the public platform.
[0117] Specifically, in order to ensure the accuracy and effectiveness of the status information of the program interface, the present embodiment may increase the maintenance frequency thereof, that is, shorten the preset interval time as much as possible, for example, the time interval may be set to 30 minutes or shorter.
[0118] 302. Convert the status information into a program interface checklist corresponding to the public platform.
[0119] The program interface table may include the public service name, platform name, interface address, interface input parameters, inspection time, inspection results, and description of exceptions. Specifically, the inspection results may include pass, fail, and exception. Among them, fail is returned by the public platform, and the exception may be that the request has not reached the interface, there is a gateway in the middle, or it is caused by a network problem, etc. The interface input parameters include the parameters required to call the public platform interface.
[0120] In the actual operation process, in order to avoid data interference between multiple operation platforms, the corresponding status information can be input into a preset table to obtain a program interface check list corresponding to the business system.
[0121] In some embodiments of the present application, Figure 4 As shown, Figure 4 is a flow chart of another embodiment of the disaster recovery switching method provided in the embodiment of the present application. Before obtaining the disaster recovery switching sequence corresponding to the preset business system, the method specifically further includes:
[0122] 401. Obtain component information in a preset business system, where the component information includes a component identifier corresponding to the component.
[0123] The component information includes a component identifier corresponding to the component. A specific component may be a product of resources under a system deployment unit, and its component identifier may be a product abbreviation corresponding to the resource product under the system deployment unit.
[0124] The above component information can be obtained by calling from the architecture center.
[0125] 402. Match the component identifier with the preset operation sequence to obtain the template sequence.
[0126] The preset operation sequence may include a start operation sequence, a stop operation sequence and a switch operation sequence. The specific preset operation sequence may correspond to the abbreviation of the product name in the product service table.
[0127] Specifically, the component identifier can be matched with a preset operation sequence to obtain a template sequence. For example, the product abbreviation of the resources under the system deployment unit is matched with the product abbreviation of the product service table to match the corresponding service name (start, stop, cut). Each time a service name is matched, a corresponding step is generated.
[0128] It should be noted that standard components can directly generate module sequences, such as data layer components: database, Redis, kafka, NAS (Network Attached Storage), OSS (Operation support system), etc., application layer components: Jetty, Nginx, microservices, etc.
[0129] 403. Arrange the template steps according to a preset execution order to generate a disaster recovery switching step sequence.
[0130] It should be noted that the template sequence can be a packaged arrangement of each product. This process does not require any manual operation by the user, and the template sequence can be adjusted and deleted.
[0131] In some embodiments of the present application, Figure 5 As shown, Figure 5 1 is a flow chart of another embodiment of the disaster recovery switching method provided in an embodiment of the present application, wherein the disaster recovery switching of the preset service system is performed based on the disaster recovery switching sequence, including:
[0132] 501. Identify a step type corresponding to a disaster recovery switching sequence, and obtain a target disaster recovery switching sequence.
[0133] By traversing the system step list, executing according to the step number, executing the same batch number concurrently, and then executing the next batch number step after completion, execute each step and first identify the step type.
[0134] It should be noted that, in addition to the template sequence, the disaster recovery switching sequence in the embodiment of the present application also includes a custom sequence and an application verification sequence, wherein a custom sequence is generated, and a custom sequence can be added through the page, which is divided into a host operation class, an interface call class sequence, and a stop sequence. The host operation class refers to operations that are not within the scope of standard components and require special logins to certain machines to execute specified scripts; the interface call class refers to calling a third-party system interface to perform operations, such as switching traffic to a certain system; the stop sequence can support two modes: manual start and automatic postponement of start at a specific time, for example, after the data layer is switched, it can wait for DNS (Domain Name System) resolution to take effect. The application verification sequence is generated and automatically added to the last step in the sequence list. The template sequence and the custom sequence can adjust the sequence number and delete them, but the application verification cannot be deleted.
[0135] After identifying the sequence type, the target disaster recovery switching sequence can be determined.
[0136] 502. Read the target disaster recovery switching sequence to obtain execution operation information corresponding to the target disaster recovery switching sequence.
[0137] After determining the target disaster recovery switching sequence, it is further necessary to read the execution operation information corresponding to the target disaster recovery switching sequence. The execution operation information includes a sequence code and a specific operable code corresponding to the execution operation information.
[0138] 503. Perform disaster recovery switching on the preset business system according to the execution operation information.
[0139] Template step execution, obtain the specific execution arrangement from the product service table through the step table product service table ID. The template steps are all packaged arrangements for each product. This process does not require any manual operation by the user. Among them, custom step execution, through the custom step table ID of the step table to obtain the relevant interface or parameters for scheduling. Application verification step execution, application verification is executed through the gateway, and the verification failure retry function is supported. If the result returned by calling the application verification interface is a verification failure, it will be retried every 5 minutes by default, and retried 3 times in a row. If it still fails, it will not be retried.
[0140] It should be noted that the sequence supports skip, abort, continue, and stop functions: when a switching failure occurs, the sequence execution is immediately interrupted and can be quickly processed manually offline. After successful processing, you can click Skip on the disaster recovery platform to continue executing subsequent steps. When special abnormal situations occur, you can use the forced abort and continue functions to manually intervene in the sequence execution. After configuring the stop sequence, the sequence execution can be paused during execution. After the pause, you can manually or automatically delay the execution of subsequent steps for a specific time.
[0141] In some embodiments of the present application, the method further includes: first monitoring the disaster recovery switching process corresponding to the preset business system to obtain monitoring information, then parsing the monitoring information to obtain the state information and switching progress information of the disaster recovery switching corresponding to the current preset business system, and sending the switching progress information to the user terminal.
[0142] In some embodiments of the present application, the present application can also realize visual monitoring of the entire disaster recovery switching process by converting the switching progress information accordingly and displaying it on a large screen.
[0143] In order to better implement the disaster recovery switching method in the embodiment of the present application, based on the disaster recovery switching method, the embodiment of the present application also provides a disaster recovery switching device, such as Figure 6 As shown, Figure 6 600 is a schematic diagram of the structure of an embodiment of a disaster recovery switching device provided in an embodiment of the present application. The disaster recovery switching device 600 includes a first acquisition unit 601, a first inspection unit 602, a first judgment unit 603, a second acquisition unit 604 and a first switching unit 605:
[0144] The first acquisition unit 601 is used to acquire a disaster recovery switching instruction for a preset service system sent by a user terminal;
[0145] A first checking unit 602 is used to perform a disaster recovery switching check on the public platform corresponding to the preset business system according to the disaster recovery switching instruction, and obtain the operation status detection information of the public platform;
[0146] A first judgment unit 603 is used to judge whether the operation state of the public platform is abnormal based on the operation state detection information;
[0147] The second acquisition unit 604 is used to acquire a disaster recovery switching sequence corresponding to the preset service system if no, wherein the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset service system according to a preset arrangement sequence;
[0148] The first switching unit 605 is configured to perform disaster recovery switching on the preset service system based on the disaster recovery switching sequence.
[0149] In some embodiments of the present application, the first inspection unit 602 specifically includes:
[0150] A first calling unit, configured to call a pre-acquired program interface check table corresponding to the public platform based on the check instruction, wherein the program interface check table includes status information of the program interface corresponding to the public platform;
[0151] The second checking unit is used to check the program interface checklist to obtain the running status detection information of the public platform.
[0152] In some embodiments of the present application, before calling the pre-acquired program interface check table corresponding to the public platform based on the check instruction, the device further includes:
[0153] A third acquisition unit is used to call the program interface corresponding to the public platform within a preset interval time to obtain the status information of the program interface;
[0154] The first conversion unit is used to convert the state information into a program interface check list corresponding to the public platform.
[0155] In some embodiments of the present application, before obtaining the disaster recovery switching sequence corresponding to the preset business system, the device further includes:
[0156] A fourth acquisition unit, configured to acquire component information in the preset business system, wherein the component information includes a component identifier corresponding to the component;
[0157] A first matching unit, used for matching the component identification with a preset operation sequence to obtain a template sequence;
[0158] The first arrangement unit is used to arrange the template steps according to a preset execution order to generate a disaster recovery switching step sequence.
[0159] In some embodiments of the present application, the first switching unit 605 is specifically configured to:
[0160] Identify the step type corresponding to the disaster recovery switching step to obtain a target disaster recovery switching step;
[0161] Read the target disaster recovery switching sequence to obtain execution operation information corresponding to the target disaster recovery switching sequence;
[0162] According to the execution operation information, disaster recovery switching is performed on the preset business system.
[0163] In some embodiments of the present application, the device further comprises:
[0164] A first monitoring unit is used to monitor the disaster recovery switching process corresponding to the preset business system to obtain monitoring information;
[0165] The first parsing unit and the first sending unit are used to parse the monitoring information, obtain the state information and switching progress information of the disaster recovery switching corresponding to the current preset business system, and send the switching progress information to the user terminal.
[0166] In some embodiments of the present application, the device further comprises:
[0167] A first determining unit and a first generating unit, configured to determine, based on the inspection feedback information, inspection abnormality information corresponding to the preset business system and generate forced skip request information if the operation state of the preset business system is an abnormal state;
[0168] The second sending unit is used to send the inspection exception information and the forced skip request information to the user terminal.
[0169] In some embodiments of the present application, the device further comprises:
[0170] A step checking unit is used to perform a step checking on the components corresponding to the preset business system according to the disaster recovery switching instruction.
[0171] In addition to the above-mentioned disaster recovery switching method and device, the embodiment of the present application further provides a computer device, which integrates any disaster recovery switching device provided in the embodiment of the present application, and the computer device includes:
[0172] one or more processors;
[0173] Memory; and
[0174] One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to perform the operations of any method described in any of the above-mentioned disaster recovery switching method embodiments.
[0175] The present application also provides a computer device that integrates any disaster recovery switching device provided in the present application. Figure 7 , Figure 7 It is a schematic diagram of the structure of an embodiment of a computer device provided in an embodiment of the present application.
[0176] like Figure 7 As shown, it shows a schematic diagram of the structure of the disaster recovery switching device designed in the embodiment of the present application, specifically:
[0177] The disaster recovery switching device may include one or more processing core processors 701, one or more computer-readable storage media memories 702, a power supply 703, an output unit 704 and other components. Those skilled in the art will appreciate that Figure 7 The structure of the disaster recovery switching device shown in the figure does not constitute a limitation on the disaster recovery switching device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0178] The processor 701 is the control center of the disaster recovery switching device. It uses various interfaces and lines to connect various parts of the entire disaster recovery switching device. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it executes various functions of the disaster recovery switching device and processes data, thereby monitoring the disaster recovery switching device as a whole. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.
[0179] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the disaster recovery switching device, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0180] The disaster recovery switching device also includes a power supply 703 for supplying power to each component. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 703 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0181] The disaster recovery switching device may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0182] Although not shown, the disaster recovery switching device may also include a display unit, etc., which will not be described in detail here. Specifically, in the embodiment of the present application, the processor 701 in the disaster recovery switching device will load the executable file corresponding to the process of one or more application programs into the memory 702 according to the following instructions, and the processor 702 will run the application program stored in the memory 702, thereby realizing various functions, as follows:
[0183] Obtain a disaster recovery switching instruction for a preset business system sent by a user terminal, the disaster recovery switching instruction including a check instruction before disaster recovery switching; according to the disaster recovery switching instruction, perform a disaster recovery switching check on a public platform corresponding to the preset business system to obtain operation status detection information of the public platform; based on the operation status detection information, determine whether the operation status of the public platform is abnormal; if the operation status of the public platform is normal, obtain a disaster recovery switching sequence corresponding to the preset business system, the disaster recovery switching sequence being used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to a preset scheduling order; based on the disaster recovery switching sequence, perform disaster recovery switching on the preset business system.
[0184] The present application provides a disaster recovery switching method, the method comprising: obtaining a disaster recovery switching instruction for a preset business system sent by a user terminal; performing a disaster recovery switching check on a public platform corresponding to the preset business system according to the disaster recovery switching instruction, and obtaining operation status detection information of the public platform; judging whether the operation status of the public platform is abnormal based on the operation status detection information; if the operation status of the public platform is normal, obtaining a disaster recovery switching sequence corresponding to the preset business system, the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to a preset arrangement sequence; based on the disaster recovery switching sequence, performing disaster recovery switching on the preset business system. The present application ensures the accuracy and effectiveness of the disaster recovery switching process by first performing a disaster recovery switching check when performing disaster recovery switching on the preset business system. On the other hand, by adopting a disaster recovery switching sequence to perform disaster recovery switching on the preset business system, manual input is replaced, thereby improving the switching automation of the disaster recovery system.
[0185] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. The computer-readable storage medium stores multiple instructions, which can be loaded by a processor to execute the steps in any disaster recovery switching method provided in the embodiment of the present application. For example, the instruction can execute the following steps:
[0186] Obtain a disaster recovery switching instruction for a preset business system sent by a user terminal, the disaster recovery switching instruction including a check instruction before disaster recovery switching; according to the disaster recovery switching instruction, perform a disaster recovery switching check on a public platform corresponding to the preset business system to obtain operation status detection information of the public platform; based on the operation status detection information, determine whether the operation status of the public platform is abnormal; if the operation status of the public platform is normal, obtain a disaster recovery switching sequence corresponding to the preset business system, the disaster recovery switching sequence being used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to a preset scheduling order; based on the disaster recovery switching sequence, perform disaster recovery switching on the preset business system.
[0187] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0188] The above is a detailed introduction to a disaster recovery switching method, device and storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A disaster recovery switching method, characterized in that: The method comprises: Obtaining a disaster recovery switching instruction for a preset service system sent by a user terminal, wherein the disaster recovery switching instruction includes a check instruction before the disaster recovery switching; According to the disaster recovery switching instruction, a disaster recovery switching check is performed on the public platform corresponding to the preset business system to obtain operation status detection information of the public platform; Based on the operation status detection information, determining whether the operation status of the public platform is abnormal; If the operation state of the public platform is normal, obtaining a disaster recovery switching sequence corresponding to the preset business system, wherein the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset business system according to a preset arrangement sequence; Based on the disaster recovery switching sequence, performing disaster recovery switching on the preset business system, wherein the disaster recovery switching sequence includes a template sequence, a custom sequence, and an application verification sequence, and the custom sequence is a custom sequence that can be added through a page; The performing disaster recovery switching on the preset business system based on the disaster recovery switching sequence includes: Identify the step type corresponding to the disaster recovery switching step to obtain a target disaster recovery switching step; Read the target disaster recovery switching sequence to obtain execution operation information corresponding to the target disaster recovery switching sequence; Perform disaster recovery switching on the preset business system according to the execution operation information.
2. The disaster recovery switching method according to claim 1, wherein: The step of performing a disaster recovery switching check on the public platform corresponding to the preset business system according to the disaster recovery switching instruction to obtain operation status detection information of the public platform includes: Based on the check instruction, calling a pre-acquired program interface check table corresponding to the public platform, wherein the program interface check table includes status information of the program interface corresponding to the public platform; The program interface checklist is checked to obtain the operation status detection information of the public platform.
3. The disaster recovery switching method according to claim 2, wherein: Before calling a pre-acquired program interface check table corresponding to the public platform based on the check instruction, the method further includes: calling a program interface corresponding to the public platform within a preset interval to obtain status information of the program interface; The state information is converted into a program interface checklist corresponding to the public platform.
4. The disaster recovery switching method according to claim 1, wherein: Before obtaining the disaster recovery switching sequence corresponding to the preset business system, the method further includes: Acquire component information in the preset business system, the component information including a component identifier corresponding to the component; Matching the component identifier with a preset operation sequence to obtain a template step sequence; Arrange the template steps according to a preset execution order to generate a disaster recovery switching step sequence.
5. The disaster recovery switching method according to claim 1, wherein: The method further comprises: Monitor the disaster recovery switching process corresponding to the preset business system to obtain monitoring information; The monitoring information is parsed to obtain the state information and switching progress information of the disaster recovery switching corresponding to the current preset business system, and the switching progress information is sent to the user terminal.
6. The disaster recovery switching method according to claim 1, wherein: The method further comprises: If the operation state of the preset business system is an abnormal state, determining the inspection abnormality information corresponding to the preset business system based on the inspection feedback information, and generating forced skip request information; The check exception information and the forced skip request information are sent to the user terminal.
7. The disaster recovery switching method according to claim 1, wherein: After performing a disaster recovery switch check on the public platform corresponding to the preset business system, the method further includes: According to the disaster recovery switching instruction, a step-by-step check is performed on the components corresponding to the preset business system.
8. A disaster recovery switching device, characterized in that: The device comprises: A first acquiring unit is configured to acquire a disaster recovery switching instruction for a preset service system sent by a user terminal; A first checking unit is configured to perform a disaster recovery switching check on the public platform corresponding to the preset business system according to the disaster recovery switching instruction, and obtain operation status detection information of the public platform; a first judging unit, configured to judge whether the operating state of the public platform is abnormal based on the operating state detection information; A second acquiring unit is configured to, if not, acquire a disaster recovery switching sequence corresponding to the preset service system, wherein the disaster recovery switching sequence is used to instruct the disaster recovery switching system to perform disaster recovery switching on the preset service system according to a preset arrangement sequence; A first switching unit is configured to perform disaster recovery switching on the preset business system based on the disaster recovery switching sequence, wherein the disaster recovery switching sequence includes a template sequence, a custom sequence, and an application verification sequence, and the custom sequence is a custom sequence that can be added through a page; The performing disaster recovery switching on the preset business system based on the disaster recovery switching sequence includes: Identify the step type corresponding to the disaster recovery switching step to obtain a target disaster recovery switching step; Read the target disaster recovery switching sequence to obtain execution operation information corresponding to the target disaster recovery switching sequence; Perform disaster recovery switching on the preset business system according to the execution operation information.
9. A computer device, characterized in that: The computer device comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the disaster recovery switching method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the disaster recovery switching method according to any one of claims 1 to 7.
