Disclosure of Invention
Therefore, it is necessary to provide an application system disaster recovery and backup switching method, an application system disaster recovery and backup switching device, a computer device, and a storage medium for solving the technical problem in the prior art that the main/backup switching efficiency of an application system is low.
A disaster recovery switching method for an application system comprises the following steps:
responding to a trigger instruction for a target disaster recovery switching task of an application system, accessing a corresponding configuration information database, and acquiring disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the configuration information database; the configuration information database is used for storing disaster recovery switching configuration information corresponding to each of a plurality of disaster recovery switching tasks of the application system;
determining a current main instance and a target standby instance of an application database corresponding to the target disaster recovery switching task and an operation module corresponding to the target disaster recovery switching task according to the disaster recovery switching configuration information;
calling the operation module to realize disaster recovery switching between the current main instance and the target standby instance;
the operation module at least comprises a first action module used for checking the consistency of the instance position points corresponding to the current main instance and the target standby instance and/or used for establishing the reverse data synchronization between the current main instance and the target standby instance.
In one embodiment, the accessing the corresponding configuration information database and acquiring the disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the configuration information database includes:
calling a RESTful interface of the pre-configured configuration information database according to a disaster recovery switching operation module, and acquiring disaster recovery switching configuration information from the configuration information database; and the disaster recovery switching operation module is used for automatically initiating a disaster recovery switching process of the application system according to the trigger instruction.
In one embodiment, the operation module further comprises a second action module and/or a third action module;
the second action module is used for stopping the application service of the current main instance area;
the third application module is configured to start an application service in the target standby instance area after the disaster recovery switching between the current main instance and the target standby instance is completed.
In one embodiment, the determining, according to the disaster recovery switching configuration information, a current main instance and a target standby instance corresponding to the target disaster recovery switching task, and an operation module corresponding to the target disaster recovery switching task includes:
determining target disaster backup switching configuration information corresponding to the target disaster backup switching task from the disaster backup switching configuration information; the target disaster backup switching configuration information comprises current main instance information and target backup instance information;
determining the first action module corresponding to the target disaster backup switching task according to the current main instance information and the target backup instance information;
determining the second action module corresponding to the target disaster recovery switching task according to the current main instance information;
and determining the third action module corresponding to the target disaster recovery backup switching task according to the target backup instance information.
In one embodiment, the invoking the job module to implement disaster recovery switching between the current primary instance and the target standby instance includes:
and sequentially executing the second action module, the first action module and the third action module to realize disaster recovery switching between the current main instance and the target standby instance.
In one embodiment, after the invoking the job module to implement the disaster-tolerant backup switching between the current primary instance and the target backup instance, the method further includes:
taking the target standby instance as a new main instance of the application system;
and after reversely synchronizing the current main instance, taking the current main instance as a new standby instance of the application system.
In one embodiment, data of the current primary instance and the target standby instance of the application system are synchronized.
An application system disaster recovery switching device, the device comprising:
the configuration information acquisition module is used for responding to a trigger instruction of a target disaster recovery switching task of the application system, accessing a corresponding configuration information database, and acquiring disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the configuration information database; the configuration information database is used for storing disaster recovery switching configuration information corresponding to each of a plurality of disaster recovery switching tasks of the application system;
the disaster recovery operation confirmation module is used for determining the current main instance and the target backup instance of the application database corresponding to the target disaster recovery switching task and the operation module corresponding to the target disaster recovery switching task according to the disaster recovery switching configuration information;
the disaster backup switching module is used for calling the operation module to realize disaster backup switching between the current main example and the target backup example; the operation module at least comprises a first action module used for checking the consistency of the instance position points corresponding to the current main instance and the target standby instance and/or used for establishing the reverse data synchronization between the current main instance and the target standby instance.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
responding to a trigger instruction for a target disaster recovery switching task of an application system, accessing a corresponding configuration information database, and acquiring disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the configuration information database; the configuration information database is used for storing disaster recovery switching configuration information corresponding to each of a plurality of disaster recovery switching tasks of the application system; determining a current main instance and a target standby instance of an application database corresponding to the target disaster recovery switching task and an operation module corresponding to the target disaster recovery switching task according to the disaster recovery switching configuration information; calling the operation module to realize disaster recovery switching between the current main instance and the target standby instance; the operation module at least comprises a first action module used for checking the consistency of the instance position points corresponding to the current main instance and the target standby instance and/or used for establishing the reverse data synchronization between the current main instance and the target standby instance.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
responding to a trigger instruction for a target disaster recovery switching task of an application system, accessing a corresponding configuration information database, and acquiring disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the configuration information database; the configuration information database is used for storing disaster recovery switching configuration information corresponding to each of a plurality of disaster recovery switching tasks of the application system; determining a current main instance and a target standby instance of an application database corresponding to the target disaster recovery switching task and an operation module corresponding to the target disaster recovery switching task according to the disaster recovery switching configuration information; calling the operation module to realize disaster recovery switching between the current main instance and the target standby instance; the operation module at least comprises a first action module used for checking the consistency of the instance position points corresponding to the current main instance and the target standby instance and/or used for establishing the reverse data synchronization between the current main instance and the target standby instance.
The application system disaster recovery switching method, the application system disaster recovery switching device, the computer equipment and the storage medium respond to a trigger instruction for a target disaster recovery switching task of the application system, access the corresponding configuration information database to obtain disaster recovery switching configuration information corresponding to the target disaster recovery switching task, determine a current main instance and a target backup instance of the application database corresponding to the target disaster recovery switching task according to the disaster recovery switching configuration information, determine a corresponding operation module, and call the operation module to realize disaster recovery switching between the current main instance and the target backup instance. By triggering the instruction, disaster recovery switching configuration information corresponding to the target disaster recovery switching task is automatically acquired, and the related operation module is called to automatically complete disaster recovery switching, so that automation of application system disaster recovery switching is realized, and efficiency of application system disaster recovery switching is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that the terms "first \ second \ third" related to the embodiments of the present invention are merely used for distinguishing similar objects, and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may exchange a specific order or sequence order if allowed. It should be understood that the terms first, second, and third, as used herein, are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or otherwise described herein.
The application system disaster recovery switching method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 sends a trigger instruction of disaster recovery switching to the server 104 according to the disaster recovery switching requirement, the server 104 responds to the trigger instruction, acquires disaster recovery switching configuration information from the corresponding configuration information database, determines an operation module corresponding to a disaster recovery switching task according to the disaster recovery switching configuration information, and calls the operation module to complete the disaster recovery switching task. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, an application system disaster recovery switching method is provided, which is described by taking the application of the method to the server 104 in fig. 1 as an example, and includes the following steps:
step S201, in response to a trigger instruction for a target disaster recovery switching task of an application system, accessing a corresponding configuration information database, and obtaining disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the configuration information database.
The configuration information database is used for storing disaster recovery switching configuration information corresponding to each of a plurality of disaster recovery switching tasks of the application system. And according to the difference of the disaster backup switching tasks, the corresponding disaster backup switching configuration information is different. The target disaster recovery switching task is a disaster recovery switching task corresponding to the disaster recovery switching requirement of the current terminal 102.
In a specific implementation, the server 104 may start a disaster recovery switching process of the application system according to a trigger instruction of the target disaster recovery switching task sent by the terminal 102. The server 104 may access a configuration information database storing the disaster-backup switching configuration information, and obtain the disaster-backup switching configuration information corresponding to the target disaster-backup switching task from the configuration information database.
Step S202, according to the disaster-backup switching configuration information, determining a current main instance and a target backup instance of the application database corresponding to the target disaster-backup switching task, and an operation module corresponding to the target disaster-backup switching task.
The disaster recovery switching configuration information may include task target information corresponding to the disaster recovery switching task and a specific task type corresponding to the disaster recovery switching task. The server 104 may determine specific task target information and task type of the disaster recovery switching according to the disaster recovery switching configuration information. According to the task target information, the current main instance and the target standby instance of the corresponding application database, that is, the main body of the application system needing disaster recovery switching, can be determined. The task type may include a task corresponding to disaster-backup switching that needs to be performed, and the disaster-backup switching task may correspond to one or more job modules. The job module may be called by server 104 to perform the disaster recovery switching task.
In a specific implementation, the server 104 may determine, according to the disaster recovery switching configuration information, a current main instance and a target backup instance corresponding to the target disaster recovery switching task, and determine an operation module required by the disaster recovery switching.
Step S203, call the job module to implement disaster recovery switching between the current main instance and the target standby instance.
The operation module at least comprises a first action module used for checking the consistency of the instance position points corresponding to the current main instance and the target standby instance, and can also be used for establishing the reverse data synchronization between the current main instance and the target standby instance simultaneously or independently. For example, the first action module may be an instance switching operation, and by checking instance location points corresponding to the current main instance and the target standby instance, reverse data synchronization between the current main instance and the target standby instance may also be established to ensure data consistency, thereby ensuring that data is not lost during the disaster recovery switching process.
In a specific implementation, the server 104 may call one or more job modules determined according to the disaster backup switching configuration information, and automatically execute the corresponding job modules, so as to implement part or all of tasks in the disaster backup switching between the current main instance and the target backup instance. For example, server 104 may invoke an instance switch job to verify the instance location points of the current primary instance and the target standby instance, and to implement reverse data synchronization of the current primary instance and the target standby instance.
In the application system disaster recovery switching method, in response to a trigger instruction for a target disaster recovery switching task of an application system, a corresponding configuration information database is accessed to obtain disaster recovery switching configuration information corresponding to the target disaster recovery switching task, a current main instance and a target backup instance of the application database corresponding to the target disaster recovery switching task are determined according to the disaster recovery switching configuration information, a corresponding operation module is determined, and the operation module is called to realize disaster recovery switching between the current main instance and the target backup instance. By triggering the instruction, disaster recovery switching configuration information corresponding to the target disaster recovery switching task is automatically acquired, and the related operation module is called to automatically complete disaster recovery switching, so that automation of application system disaster recovery switching is realized, and efficiency of application system disaster recovery switching is improved.
In one embodiment, determining the configuration information database corresponding to the access in step S201, and acquiring the disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the configuration information database includes:
and calling a RESTful interface of a pre-configured configuration information database according to the disaster recovery switching operation module, and acquiring disaster recovery switching configuration information from the configuration information database.
In this embodiment, the disaster recovery switching operation module is configured to automatically initiate a disaster recovery switching process of the application system according to the trigger instruction, and the disaster recovery switching operation module may utilize an anchor, a Salstack, and other operation execution tools to execute the disaster recovery switching operation. RESTful (representational State transfer) is a design style and development mode of a network application program, and is based on a hypertext transfer protocol (HTTP), can use extensible markup language (XML) format definition or JS object notation (JSON) format definition, is suitable for a scene that a mobile internet manufacturer serves as a service interaction interface, and can be configured to a database in advance to serve as an interface to realize access to the content of the database. After responding to the trigger instruction of the application system target disaster recovery switching task of the terminal 102, the server 104 calls the set disaster recovery switching operation module and automatically initiates a disaster recovery switching process. The server 104 calls a RESTful interface of a pre-configured configuration information database according to the disaster recovery switching operation module, and acquires disaster recovery switching configuration information corresponding to the disaster recovery switching task from the configuration information database. For example, the server 104 may invoke a set anchor job to initiate a disaster recovery switching process, and acquire disaster recovery switching configuration information corresponding to the disaster recovery switching task from a RESTful interface of a preconfigured configuration information database.
In the solution of the above embodiment, the server 104 automatically initiates the disaster recovery switching process through the disaster recovery switching operation module, accesses the RESTful interface of the pre-configured configuration information database, and acquires the disaster recovery switching configuration information, thereby implementing automation of the disaster recovery switching initiation process and improving the efficiency of disaster recovery switching of the application system.
In one embodiment, the corresponding configuration information database determined by the server 104 may be a logical database for storing and managing various configuration information of devices in the IT architecture, and is closely connected with all service support and service delivery processes, and supports the operation of the processes and plays a role of the configuration information.
In one embodiment, the method further comprises:
the operation module further comprises a second action module and/or a third action module; the second action module is used for stopping the application service of the current main instance area; and the third action module is used for starting the application service of the target standby instance area after the disaster recovery switching between the current main instance and the target standby instance is completed.
In this embodiment, the server 104 may also invoke the second role module to automatically stop the application service of the current main instance area. The server 104 may also call a third action module, and when the disaster backup switching between the current primary instance and the target backup instance is completed, automatically start the application service in the target backup instance area, so as to implement the primary-backup switching of the application database, and enable the target backup instance to be used. Wherein the second action module may be an application service stop job and the third action module may be an application service start job.
In the solution of the foregoing embodiment, the server 104 may further call the second action module and the third action module to automatically stop the application service of the current main instance area and automatically start the application service of the target standby instance area, so as to implement automatic active-standby switching, and improve the efficiency of disaster-backup switching of the application system.
In one embodiment, in step S202, according to the disaster recovery switching configuration information, determining a current main instance and a target standby instance corresponding to the target disaster recovery switching task, and an operation module corresponding to the target disaster recovery switching task, further include:
determining target disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the disaster recovery switching configuration information; the target disaster backup switching configuration information comprises current main instance information and target backup instance information; determining a first action module corresponding to the target disaster recovery backup switching task according to the current main instance information and the target backup instance information; determining a second action module corresponding to the target disaster recovery switching task according to the current main instance information; and determining a third action module corresponding to the target disaster recovery backup switching task according to the target backup instance information.
In this embodiment, the server 104 may obtain, according to the target disaster recovery switching task, the corresponding target disaster recovery switching configuration information from the configured disaster recovery switching configuration information in the configuration information database. The target disaster recovery switching information may include current main instance information and target backup instance information. The current main instance information may be an application service name and a host IP address that need to stop the current main instance, and the target standby instance information may be an ID of a target standby instance that needs to execute the switching job. The disaster recovery switching operation module of the server 104 may determine a corresponding first action module according to the current main instance information and the target backup instance information, call the first action module to complete verification of the instance location points of the current main instance information and the target backup instance information of the application system, and establish reverse data synchronization. The disaster recovery switching operation module of the server 104 may also determine a second action module corresponding to the target disaster recovery switching task according to the current main instance information, and call the second action module to stop the application service of the current main instance area. The disaster backup switching operation module of the server 104 may also determine a third function module corresponding to the target disaster backup switching task according to the target backup instance information, and call the third function module to start the application service of the target backup instance area after the disaster backup switching is completed.
In some embodiments, the server 104 may call the corresponding operation module according to the target disaster backup switching configuration information obtained from the configuration information database, access the interfaces on the cloud and under the cloud, and automatically complete the disaster backup switching process of the application system on the cloud, thereby avoiding human misoperation and greatly improving the switching efficiency and accuracy. The interfaces on and under the cloud may be API (Application Programming Interface) or RESTful interfaces.
According to the scheme of the embodiment, the operation module corresponding to the target disaster recovery backup switching task is determined and called through the current main instance information and the target backup instance information in the disaster recovery backup configuration information, the disaster recovery backup switching process of the application system is automatically completed, and the disaster recovery backup switching efficiency of the application system is improved.
In an embodiment, the invoking the job module in step S203 to implement disaster recovery switching between the current main instance and the target standby instance includes:
and sequentially executing the second action module, the first action module and the third action module to realize disaster recovery switching between the current main instance and the target backup instance.
In this embodiment, when the server calls and executes the job module, the server may sequentially execute the second action module, the first action module, and the third action module, that is, first call the second action module to stop the application service in the current main instance area, then call the first action module to perform the location point consistency check of the current main instance and the target standby instance, establish data reverse synchronization, perform data instance switching, ensure the consistency and accuracy of the data of the current main instance and the target standby instance, and then call the third action module to start the application service in the target standby instance area. The server 104 automatically calls and executes the action modules according to the disaster recovery switching operation module to complete the arrangement and automatic execution of the switching process of the application system.
According to the scheme of the embodiment, the automation of the disaster recovery and backup switching process is realized by stopping the application service of the current main instance area and executing the application database instance switching and then starting the application service process of the standard backup instance area, the consistency and the accuracy of the current main instance and the target backup instance data are ensured, and the disaster recovery and backup switching efficiency and the accuracy of the application system are improved.
In an embodiment, after the step S203 calls the job module to implement the disaster recovery switching between the current main instance and the target standby instance, the method further includes:
taking the target standby example as a new main example of the application system; and after the current main instance is reversely synchronized, the current main instance is used as a new standby instance of the application system.
In this embodiment, after the server 104 implements disaster backup switching between the current main instance and the target backup instance, the target backup instance can be automatically used as a new main instance of the application system, and automatically and reversely synchronize the current main instance to the new backup instance of the application system, so that reverse construction of the main-backup relationship is rapidly completed, and consistency and accuracy of data are ensured. The data of the new main instance and the new standby instance can be synchronously updated in real time. When the application system meets the condition of switching back to the original current main instance, the switching and the rollback between the two database instances can be realized by any one of the disaster recovery switching methods of the application system.
According to the scheme of the embodiment, after disaster backup switching is realized, the roles of the main instance and the backup instance of the application database are exchanged, switching and rollback can be realized, the consistency and the accuracy of data are ensured, and the disaster backup switching efficiency of an application system is improved.
In one embodiment, the method further comprises:
and data synchronization of the current main instance and the target standby instance of the application system.
In this implementation, the data synchronization between the current main instance and the target backup instance can ensure the consistency and accuracy of the data, and is also beneficial to the reverse data synchronization between the main instance and the target backup instance, so as to ensure that the fast rollback of the data instance can be realized, avoid the data loss or failure in the disaster backup switching process, and improve the success rate of the disaster backup switching of the application system. And after the disaster recovery switching is finished, the data synchronization is established between the formed new main instance and the data of the new backup instance.
In an embodiment, as shown in fig. 3, a method for application system disaster recovery handover is provided, where the method includes:
step S301, in response to a trigger instruction for the target disaster recovery and backup switching task of the application system, according to the disaster recovery and backup switching operation module, invoking a RESTful interface of a preconfigured configuration information database, and obtaining disaster recovery and backup switching configuration information from the configuration information database.
The configuration information database is used for storing disaster recovery switching configuration information corresponding to each of a plurality of disaster recovery switching tasks of the application system. The operation module at least comprises a first action module used for checking the consistency of the example position points corresponding to the current main example and the target standby example and/or used for establishing the reverse data synchronization between the current main example and the target standby example. The operation module further comprises a second action module and/or a third action module. The second action module is used for stopping the application service of the current main instance area; and the third action module is used for starting the application service of the target standby instance area after the disaster recovery switching between the current main instance and the target standby instance is completed.
Step S302, determining target disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the disaster recovery switching configuration information; determining a current main instance and a target standby instance of an application database corresponding to a target disaster recovery switching task and an operation module corresponding to the target disaster recovery switching task according to the disaster recovery switching configuration information; the target disaster backup switching configuration information comprises current main instance information and target backup instance information; determining a first action module corresponding to the target disaster recovery backup switching task according to the current main instance information and the target backup instance information; determining a second action module corresponding to the target disaster recovery switching task according to the current main instance information; and determining a third action module corresponding to the target disaster recovery backup switching task according to the target backup instance information.
Step S303, sequentially executing the second action module, the first action module, and the third action module to implement the disaster recovery switching between the current main instance and the target backup instance.
Step S304, taking the target standby example as a new main example of the application system; and after the current main instance is reversely synchronized, the current main instance is used as a new standby instance of the application system.
In the solution of the above embodiment, in response to a trigger instruction for a target disaster recovery and backup switching task of an application system, according to a disaster recovery and backup switching operation module, a RESTful interface of a pre-configured configuration information database is called, disaster recovery and backup switching configuration information is acquired from the configuration information database, and a corresponding second action module, a corresponding first action module, and a corresponding third action module are sequentially called to implement disaster recovery and backup switching between a current main instance and a target backup instance, where the target backup instance is used as a new main instance, and the current main instance is used as a new backup instance after being reversely synchronized. The disaster recovery switching configuration information corresponding to the target disaster recovery switching task is obtained by responding to the triggering instruction of the terminal, and the related operation module is called to complete disaster recovery switching, so that the automation of the disaster recovery switching of the application system is realized, and the efficiency of the disaster recovery switching of the application system is improved.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 4, there is provided an application system disaster recovery switching apparatus, where the apparatus 400 includes:
a configuration information obtaining module 401, configured to, in response to a trigger instruction for a target disaster recovery switching task of an application system, access a corresponding configuration information database, and obtain disaster recovery switching configuration information corresponding to the target disaster recovery switching task from the configuration information database; the configuration information database is used for storing disaster recovery switching configuration information corresponding to each of a plurality of disaster recovery switching tasks of the application system;
a disaster recovery operation confirmation module 402, configured to determine, according to the disaster recovery switching configuration information, a current main instance and a target backup instance of the application database corresponding to the target disaster recovery switching task, and an operation module corresponding to the target disaster recovery switching task;
a disaster recovery switching module 403, configured to invoke the operation module to implement disaster recovery switching between the current main instance and the target backup instance; the operation module at least comprises a first action module used for checking the consistency of the example position points corresponding to the current main example and the target standby example and/or used for establishing the reverse data synchronization between the current main example and the target standby example.
In an embodiment, the configuration information obtaining module 401 is further configured to invoke a RESTful interface of a pre-configured configuration information database according to the disaster recovery switching operation module, and obtain the disaster recovery switching configuration information from the configuration information database; the disaster recovery switching operation module is used for automatically initiating a disaster recovery switching process of the application system according to the triggering instruction.
In one embodiment, the job module further includes a second action module and/or a third action module, and the disaster recovery job confirmation module 402 further includes: the second action module is used for stopping the application service of the current main instance area; and the third action module is used for starting the application service of the target standby instance area after the disaster recovery switching between the current main instance and the target standby instance is completed.
In an embodiment, the disaster recovery operation confirmation module 402 is further configured to determine, from the disaster recovery switching configuration information, target disaster recovery switching configuration information corresponding to the target disaster recovery switching task; the target disaster backup switching configuration information comprises current main instance information and target backup instance information; determining a first action module corresponding to the target disaster recovery backup switching task according to the current main instance information and the target backup instance information; determining a second action module corresponding to the target disaster recovery switching task according to the current main instance information; and determining a third action module corresponding to the target disaster recovery backup switching task according to the target backup instance information.
In an embodiment, the disaster backup switching module 403 is further configured to execute the second acting module, the first acting module, and the third acting module in sequence, so as to implement disaster backup switching between the current main instance and the target backup instance.
In one embodiment, the apparatus 400 further comprises: the reverse synchronization unit is used for taking the target standby instance as a new main instance of the application system; and after the current main instance is reversely synchronized, the current main instance is used as a new standby instance of the application system.
In one embodiment, the apparatus 400 further includes: and data synchronization of the current main instance and the target standby instance of the application system.
For specific limitations of the application system disaster recovery switching device, reference may be made to the above limitations of the application system disaster recovery switching method, which is not described herein again. All or part of each module in the disaster recovery switching device of the application system can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The application system disaster recovery switching analysis method provided by the application system can be applied to computer equipment, the computer equipment can be a server, and the internal structure diagram can be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the acquired application system configuration data and the operation module. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize an application system disaster recovery switching method.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, an application system disaster recovery switching method is provided, and is applied to a terminal 102, and the terminal 102 may send a disaster recovery switching trigger instruction for an application system target switching task to a server 104, where the trigger instruction may include a disaster recovery switching plan corresponding to the system target switching task. The terminal 104 may respond to the trigger instruction to automatically complete the disaster recovery switching process of the application system.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the above method embodiments when the processor executes the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.