Quick service back-switching method and device, equipment and storage medium

By synchronizing the differential data between the virtual machine and the business host when the business host is restored to normal, and migrating the service to be retouched to the virtual machine, the problem of long data synchronization time during business retouched is solved, and rapid service retouched is achieved, reducing interrupt time and improving user experience.

CN119645573APending Publication Date: 2025-03-18柏域信息科技(上海)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411811960.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The prior art requires a lot of time to synchronize data when the service is switched back from the cloud to the service host, which causes the service to be unable to execute for a long time, causing inconvenience to users.

Method used

By monitoring the host status of the service host, when the host status returns to normal, the differential data between the virtual machine and the service host is synchronized, and the service is migrated to the virtual machine until the differential data is synchronized, and the service is back to the service host.

Benefits of technology

It reduces the interrupt time during business reversal, improves the availability of services, and brings convenience to users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645573A_ABST
    Figure CN119645573A_ABST
Patent Text Reader

Abstract

The invention discloses a quick business back-switching method and device, equipment and a storage medium. The method comprises the following steps: monitoring a host state of a business host corresponding to a to-be-back-switched business; when the host state is a normal state, difference data between a virtual machine and the service host is synchronized, and the virtual machine is constructed based on backup data of the service host and used for executing the service to be switched back when the host state is a fault state; and after the difference data is synchronized, immediately switching back the service to be switched back to the service host. When it is monitored that the service host returns to normal, the virtual machine continues to execute the to-be-switched-back service, and the difference data on the virtual machine and the service host are synchronized to the service host, so that when the to-be-switched-back service is switched back to the service host, only the to-be-switched-back service needs to be restarted, the service interruption time is shortened, and the service switching efficiency is improved. And convenience is brought to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for rapid service switching back. Background Art

[0002] With the development of network communication technology, the business data on the business host will be protected in the cloud. In the event of a failure of the business host, the cloud will take over the business executed by the business host to ensure the normal operation of the business, and when the failure of the business host is restored, the business will be switched back to the business host. However, when the business is switched back from the cloud to the business host, it takes a lot of time to synchronize the data, which will cause the business to be unable to be executed for a long time, which will bring inconvenience to users.

[0003] Therefore the prior art still needs to be improved and enhanced. Summary of the invention

[0004] The technical problem to be solved by the present application is to provide a method, device, equipment and storage medium for rapid service switching back in view of the deficiencies in the prior art.

[0005] In order to solve the above technical problems, the first aspect of the present application provides a method for rapid service switching back, wherein the method for rapid service switching back specifically includes:

[0006] Monitor the host status of the service host corresponding to the service to be switched back;

[0007] When the host state is normal, synchronizing the difference data between the virtual machine and the service host, wherein the virtual machine is constructed based on the backup data of the service host and is used to execute the service to be switched back when the host state is faulty;

[0008] When the synchronization of the difference data is completed, the service to be switched back is immediately switched back to the service host.

[0009] The method for rapid service switching back, wherein, before monitoring the host status of the service host corresponding to the service to be switched back, the method further comprises:

[0010] When a service host fails, a monitoring operation is started to monitor the host status of the service host corresponding to the service to be switched back, and a virtual machine is synchronously constructed in the cloud based on the backup data corresponding to the service host, wherein the backup data is stored in the cloud;

[0011] The service to be switched back is migrated to the virtual machine, and the service to be switched back is executed through the virtual machine.

[0012] The method for rapid service switching back, wherein, after migrating the service to be switched back to the virtual machine and executing the service to be switched back by the virtual machine, the method further comprises:

[0013] The host state of the service host corresponding to the service to be switched back is marked as a fault state.

[0014] The method for rapid service switching back, wherein when the host state is normal, synchronizing the difference data between the virtual machine and the service host specifically includes:

[0015] When the host state is normal, synchronizing the difference data between the virtual machine and the service host;

[0016] During the differential data synchronization process, the service to be switched back is executed by the virtual machine, and the service data obtained by the execution is synchronously written to the disk of the virtual machine and the service host.

[0017] The method for rapid service switching back, wherein when the host state is normal, synchronizing the difference data between the virtual machine and the service host specifically includes:

[0018] When the host state is normal, synchronizing the difference data between the virtual machine and the service host;

[0019] During the differential data synchronization process, the service to be switched back is executed through the virtual machine, and the service data obtained by the execution is written to the virtual machine, and the service data is synchronized to the service host through the virtual machine.

[0020] The method for rapid service switching back, wherein, before synchronizing the difference data between the virtual machine and the service host, the method further comprises:

[0021] Guide the business host to start up through the startup service preset in the cloud;

[0022] A host IP address configured by the service host based on the startup service is received, and the difference data is synchronized to the service host based on the host IP address.

[0023] The method for rapid service switching back, wherein synchronizing the difference data to the service host based on the host IP address specifically includes:

[0024] Determine the service host based on the host IP address;

[0025] The synchronization service in the startup service communicates with the synchronization service in the virtual machine, and synchronizes the difference data to the service host through the communication.

[0026] A second aspect of the present application provides a service fast switching device, wherein the service fast switching device specifically includes:

[0027] A monitoring module, used to monitor the host status of the service host corresponding to the service to be switched back;

[0028] A synchronization module, used for synchronizing the difference data between the virtual machine and the service host when the host state is normal, wherein the virtual machine is constructed based on the backup data of the service host and is used for executing the service to be switched back when the host state is a fault state;

[0029] The switchback module is used to immediately switch the service to be switched back to the service host after the synchronization of the difference data is completed.

[0030] A third aspect of the present application provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in any of the above-mentioned methods for rapid service switching back.

[0031] A fourth aspect of the present application provides a terminal device, comprising: a processor and a memory;

[0032] The memory stores a computer-readable program executable by the processor;

[0033] When the processor executes the computer-readable program, the processor implements the steps in any of the above-mentioned methods for rapid service switching back.

[0034] Beneficial effects: Compared with the prior art, the present application provides a method, device, equipment and storage medium for rapid service switching back, the method comprising monitoring the host status of the service host corresponding to the service to be switched back; when the host status is normal, synchronizing the difference data between the virtual machine and the service host, wherein the virtual machine is constructed based on the backup data of the service host, and is used to execute the service to be switched back when the host status is a faulty state; when the synchronization of the difference data is completed, the service to be switched back is immediately switched back to the service host. When the present application monitors that the service host has returned to normal, the virtual machine will continue to execute the service to be switched back, and the difference data between the virtual machine and the service host will be synchronized to the service host, so that when the service to be switched back is switched back to the service host, only the service to be switched back needs to be restarted, which reduces the service interruption time and brings convenience to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 A flowchart of a method for rapid service switching back provided in an embodiment of the present application.

[0037] Figure 2 The figure is a flowchart of an implementation method of the differential data synchronization process.

[0038] Figure 3 The flowchart is another implementation method of the differential data synchronization process.

[0039] Figure 4 This is a functional block diagram of the device for rapid service reversal provided in an embodiment of the present application.

[0040] Figure 5 A functional block diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The embodiments of the present application provide a method, device, equipment and storage medium for rapid service switching. To make the purpose, technical solution and effect of the present application clearer and more specific, the present application is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.

[0042] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0043] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0044] It should be understood that the sequence numbers and sizes of the steps in this embodiment do not mean the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0045] The application content is further explained below through the description of embodiments in conjunction with the accompanying drawings.

[0046] This embodiment provides a method for fast service switching back. Figure 1 As shown, the method includes:

[0047] S10: Monitor the host status of the service host corresponding to the service to be switched back.

[0048] Specifically, the service to be switched back is a service executed by a service host, wherein the service host may execute one service or multiple services. That is, the service to be switched back may be one or multiple services. Here, the subsequent description is made by taking one service to be switched back as an example.

[0049] The host status includes a fault state and a normal state. The fault state indicates that the business host cannot execute the business to be switched back, and the normal state indicates that the business host can execute the business to be switched back. It should be noted that in the embodiment of the present application, when the host status of the business host is turned on, the business host is in a fault state. In other words, monitoring the host status of the business host corresponding to the business to be switched back in the embodiment of the present application refers to monitoring whether the business host corresponding to the business to be switched back is converted from a fault state to a normal state, and when it is monitored that the host status of the business host is a fault state, the host status of the business host corresponding to the business to be switched back will continue to be monitored, and when it is monitored that the host status of the business host is a fault state, the difference data between the virtual machine and the business host will be synchronized.

[0050] In addition, before monitoring the host status of the service host corresponding to the service to be switched back, the trigger condition of the monitoring operation is obtained, and the monitoring operation is started only when the trigger condition is obtained to monitor the host status of the service host corresponding to the service to be switched back, wherein the trigger condition of the monitoring operation is that the service host fails. Based on this, before monitoring the host status of the service host corresponding to the service to be switched back, the method also includes:

[0051] When a service host fails, a monitoring operation is started to monitor the host status of the service host corresponding to the service to be switched back, and a virtual machine is synchronously built in the cloud based on the backup data corresponding to the service host;

[0052] The service to be switched back is migrated to the virtual machine, and the service to be switched back is executed through the virtual machine.

[0053] Specifically, the failure of the service host can be determined by the service status of the service to be switched back. For example, when the service status is in a down state, it is determined that the service host has failed. When the service host fails, it means that the service host cannot execute the service to be switched back. At this time, a monitoring operation will be started to monitor the host status of the service host corresponding to the service to be switched back, and a virtual machine for executing the service to be switched back will be built in the cloud to avoid the problem that the service to be switched back cannot be executed due to the failure of the service host.

[0054] Furthermore, the cloud backs up all the business data generated by the business host running the business to be switched back, which is recorded here as backup data. When the business host fails, the cloud can build a virtual machine based on the backup data, and the virtual machine is used as the backup business host of the business host, and the virtual machine is used to take over the business host to execute the business to be switched back. In other words, the cloud will protect the business host, and then when the business host fails, it will build a backup business host for the business host by protecting the backed up backup data, and then migrate the business to be switched back to the backup business host (i.e., virtual device), realizing the active-standby switching of the business to be switched back between the host device and the backup business host.

[0055] In the embodiment of the present application, after a service host fails, the cloud will monitor the service status of the service host and build a virtual machine for the service host to serve as a backup service host, and then take over the service to be switched back through the virtual machine to ensure the normal operation of the service to be switched back. In this way, without adding additional hardware resources, the master-slave function between the service host and the backup service host is realized, and the function of automatically switching to the backup service host in the event of a service host failure is realized. Not only does it realize the migration of the service to be switched back without the user noticing, and does not require the normal use of the service to be switched back, which brings convenience to the user, but it also does not require the expenditure of additional hardware resources, reducing the implementation cost of the master-slave service host.

[0056] In addition, when the cloud monitors the host status of the service host, it can monitor by receiving the host status notification sent by the service host, or by monitoring the connection status between the service host and the cloud, etc. There is no specific restriction here, as long as the method of monitoring the service status of the service host can be implemented. At the same time, in order to facilitate monitoring the host status from the fault state to the normal state, after migrating the service to be switched back to the virtual machine and executing the service to be switched back through the virtual machine, the host status of the service host corresponding to the service to be switched back will also be marked as a fault state.

[0057] S20: When the host state is normal, synchronize the difference data between the virtual machine and the service host.

[0058] Specifically, the host status is normal, which means that the host status is converted from a faulty state to a normal state, indicating that the fault of the service host has been eliminated, and the service to be switched back can be executed, and the service to be switched back needs to be switched back to the service host. In this case, the prior art will directly switch the service to be switched back to the service host, which will result in a long switching time, and then cause the service to be switched back to be unavailable for a long time, causing inconvenience to users.

[0059] To this end, in an embodiment of the present application, when it is necessary to switch the service to be switched back to the service host, the service to be switched back will not be stopped immediately to perform the service switching back. Instead, the service data generated by the virtual machine executing the service to be switched back during the time period when the service host fails will be synchronized to the service host first. That is, the difference data between the virtual machine and the service host (that is, the business data generated by the virtual machine executing the service to be switched back during the time period when the service host fails) will be synchronized. In this way, there is no need to synchronize the difference data when the service to be switched back is switched back, thereby shortening the switching back time.

[0060] Furthermore, in the process of synchronizing the difference data between the virtual machine and the business host, the virtual machine will continue to execute the business to be switched back, and the business data generated by the business to be switched back will be synchronously stored on the virtual machine and the business host. The synchronous storage method can be that the business data is directly synchronized to the virtual machine and the business host, or the business data can be first written to the virtual machine and then synchronized to the business host by the virtual machine.

[0061] Based on this, in one implementation, Figure 2 As shown, when the host state is normal, the difference data between the synchronized virtual machine and the service host specifically includes:

[0062] S210, when the host state is normal, synchronizing difference data between the virtual machine and the service host;

[0063] S211. During the differential data synchronization process, the service to be switched back is executed by the virtual machine, and the service data obtained by the execution is synchronously written to the disk of the virtual machine and the service host.

[0064] In another implementation, Figure 3 As shown, when the host state is normal, the difference data between the synchronized virtual machine and the service host specifically includes:

[0065] S220, when the host state is normal, synchronizing the difference data between the virtual machine and the service host;

[0066] S221. During the differential data synchronization process, the service to be switched back is executed through the virtual machine, and the service data obtained by the execution is written to the virtual machine, and the service data is synchronized to the service host through the virtual machine.

[0067] In the above two implementations, the virtual machine will perform two tasks at the same time, one is to execute the service to be switched back, and the other is to synchronize the difference data to the service host. The difference is that in one implementation, during the difference data synchronization process, the service data obtained by the virtual machine when executing the service to be switched back will be synchronized to the virtual machine and the service host, without the need to synchronize from the virtual machine to the service machine, while in the other implementation, during the difference data synchronization process, the virtual machine only needs to synchronize the service data formed in the difference data synchronization process to the service host. For this reason, in this implementation, two data synchronization processes will be carried out in parallel, one data synchronization process is used to synchronize the difference data, and the other data synchronization process is used to synchronize the difference data formed in the difference data synchronization process.

[0068] Furthermore, before synchronizing the difference data between the virtual machine and the service host, it is necessary to establish a synchronization thread between the virtual machine and the service host to synchronize the difference data through the synchronization thread. To this end, before synchronizing the difference data between the virtual machine and the service host, the method further includes:

[0069] Guide the business host to start up through the startup service preset in the cloud;

[0070] A host IP address configured by the service host based on the startup service is received, and the difference data is synchronized to the service host based on the host IP address.

[0071] Specifically, the preset startup service is pre-set and used to guide the host system startup of the business host (especially when there is no operating system in the business host). That is to say, the cloud will provide a startup service to the business host, so that the business host can start the system based on the guidance of the startup service, so as to synchronize data with the virtual machine. In addition, in actual applications, multiple virtual machines can be run on the cloud, and each of the multiple virtual machines corresponds to a different business host. Then, in order to obtain the virtual machine that needs to synchronize the difference time, after the business host is booted and started by the startup service, it will configure the host IP address in the synchronization service in the startup service, and then communicate with the synchronization service in the virtual machine through the synchronization service in the startup service, so that the cloud can know the host IP address of the business host that needs to synchronize the difference data, and then determine the virtual machine corresponding to the business host based on the host IP address, and synchronize the difference data on the virtual machine to the business host. It can be seen that each virtual machine is configured with the host IP address of its corresponding business host, and the host IP address is used as the host identifier of the business host.

[0072] In addition, the communication between the synchronization service in the startup service and the synchronization service in the virtual machine is used to transmit the difference data in addition to the host IP address. To this end, the synchronization of the difference data to the business host based on the host IP address specifically includes: determining the business host based on the host IP address; communicating with the synchronization service in the virtual machine through the synchronization service in the startup service, and synchronizing the difference data to the business host through the communication.

[0073] It should be noted that in actual applications, other information can also be used as the host identification (for example, the physical address of the business host, etc.). At the same time, the synchronization of differential data between the virtual machine and the business host can also be achieved in other ways, for example, directly establishing a connection channel between the business host and the virtual machine, and then synchronizing the differential data through the connection channel.

[0074] The embodiment of the present application pre-sets a startup service and then realizes communication between the business host and the virtual machine through the synchronization service in the startup service. In this way, even if the operating system in the business host is damaged or the operating system is not installed in the business host, differential data synchronization between the virtual machine and the business host can be achieved, thereby realizing business switching back without an operating system, and improving the applicable scenarios of the business rapid switching back method provided in the embodiment of the present application.

[0075] S30: When synchronization of the difference data is completed, immediately switch the service to be switched back to the service host.

[0076] Specifically, the completion of differential data synchronization means that the business data in the virtual machine and the business host are the same, and at this time, when the business to be switched back to the business host, only the business to be switched back needs to be restarted. To this end, the business to be switched back can be immediately switched back to the business host, that is, the business to be switched back can be immediately restarted, and when the business to be switched back is restarted, the business host executes the business to be switched back, and the virtual machine stops executing the business to be switched back.

[0077] In summary, this embodiment provides a method for rapid service switching back, the method comprising monitoring the host status of the service host corresponding to the service to be switched back; when the host status is normal, synchronizing the difference data between the virtual machine and the service host, wherein the virtual machine is constructed based on the backup data of the service host, and is used to execute the service to be switched back when the host status is a faulty state; when the synchronization of the difference data is completed, the service to be switched back is immediately switched back to the service host. When the present application monitors that the service host has returned to normal, the virtual machine will continue to execute the service to be switched back, and the difference data between the virtual machine and the service host will be synchronized to the service host, so that when the service to be switched back is switched back to the service host, only the service to be switched back needs to be restarted, which reduces the service interruption time and brings convenience to the user.

[0078] Based on the service fast switching method, this embodiment provides a service fast switching device, such as Figure 4 As shown, the service fast switching device specifically includes:

[0079] A monitoring module 100 is used to monitor the host status of the service host corresponding to the service to be switched back;

[0080] A synchronization module 200, used for synchronizing the difference data between the virtual machine and the service host when the host state is normal, wherein the virtual machine is constructed based on the backup data of the service host and is used for executing the to-be-switched-back service when the host state is a fault state;

[0081] The switchback module 300 is used to switch the to-be-switched-back service back to the service host immediately after the synchronization of the difference data is completed.

[0082] Based on the above-mentioned service rapid switching back method, this embodiment provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the service rapid switching back method as described in the above-mentioned embodiment.

[0083] Based on the above service fast switching method, the present application also provides a terminal device, such as Figure 5As shown, it includes at least one processor 20, a display screen 21, and a memory 22, and may also include a communication interface 23 and a bus 24. The processor 20, the display screen 21, the memory 22, and the communication interface 23 may communicate with each other through the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call the logic instructions in the memory 22 to execute the method in the above embodiment.

[0084] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0085] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.

[0086] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.

[0087] In addition, the specific process of loading and executing the multiple instruction processors in the above-mentioned storage medium and the terminal device has been described in detail in the above-mentioned method, and will not be described one by one here.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for rapid service switching back, characterized in that: The service fast switching back method specifically includes: Monitor the host status of the service host corresponding to the service to be switched back; When the host state is normal, synchronizing the difference data between the virtual machine and the service host, wherein the virtual machine is constructed based on the backup data of the service host and is used to execute the service to be switched back when the host state is faulty; When the synchronization of the difference data is completed, the service to be switched back is immediately switched back to the service host.

2. The method for rapid service switching back according to claim 1, characterized in that: Before monitoring the host status of the service host corresponding to the service to be switched back, the method further includes: When a service host fails, a monitoring operation is started to monitor the host status of the service host corresponding to the service to be switched back, and a virtual machine is synchronously constructed in the cloud based on the backup data corresponding to the service host, wherein the backup data is stored in the cloud; The service to be switched back is migrated to the virtual machine, and the service to be switched back is executed through the virtual machine.

3. The method for rapid service switching back according to claim 2, characterized in that: After migrating the service to be switched back to the virtual machine and executing the service to be switched back by the virtual machine, the method further includes: The host state of the service host corresponding to the service to be switched back is marked as a fault state.

4. The method for rapid service switching back according to claim 1, characterized in that: When the host state is normal, synchronizing the difference data between the virtual machine and the service host specifically includes: When the host state is normal, synchronizing the difference data between the virtual machine and the service host; During the differential data synchronization process, the service to be switched back is executed by the virtual machine, and the service data obtained by the execution is synchronously written to the disk of the virtual machine and the service host.

5. The method for rapid service switching back according to claim 1, characterized in that: When the host state is normal, synchronizing the difference data between the virtual machine and the service host specifically includes: When the host state is normal, synchronizing the difference data between the virtual machine and the service host; During the differential data synchronization process, the service to be switched back is executed through the virtual machine, and the service data obtained by the execution is written to the virtual machine, and the service data is synchronized to the service host through the virtual machine.

6. The method for rapid service switching back according to claim 1, 4 or 5, characterized in that: Before synchronizing the difference data between the virtual machine and the service host, the method further includes: Guide the business host to start up through the startup service preset in the cloud; A host IP address configured by the service host based on the startup service is received, and the difference data is synchronized to the service host based on the host IP address.

7. The method for rapid service switching back according to claim 6, characterized in that: The step of synchronizing the difference data to the service host based on the host IP address specifically includes: Determine the service host based on the host IP address; The synchronization service in the startup service communicates with the synchronization service in the virtual machine, and synchronizes the difference data to the service host through the communication.

8. A service fast switching device, characterized in that: The service fast switching back device specifically includes: A monitoring module, used to monitor the host status of the service host corresponding to the service to be switched back; A synchronization module, used for synchronizing the difference data between the virtual machine and the service host when the host state is normal, wherein the virtual machine is constructed based on the backup data of the service host and is used for executing the service to be switched back when the host state is a fault state; The switchback module is used to immediately switch the service to be switched back to the service host after the synchronization of the difference data is completed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the service fast switching back method according to any one of claims 1 to 7.

10. A terminal device, characterized in that: include: Processor and memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the processor implements the steps in the service rapid switching back method according to any one of claims 1 to 7.