CN113064699B - Method, device and equipment for migrating heterogeneous cloud non-stop service and storage medium - Google Patents

Method, device and equipment for migrating heterogeneous cloud non-stop service and storage medium Download PDF

Info

Publication number
CN113064699B
CN113064699B CN202110383068.2A CN202110383068A CN113064699B CN 113064699 B CN113064699 B CN 113064699B CN 202110383068 A CN202110383068 A CN 202110383068A CN 113064699 B CN113064699 B CN 113064699B
Authority
CN
China
Prior art keywords
server
target server
target
buffer
cluster
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110383068.2A
Other languages
Chinese (zh)
Other versions
CN113064699A (en
Inventor
张延彪
张玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Anchnet Network Technology Co ltd
Original Assignee
Shanghai Anchnet Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Anchnet Network Technology Co ltd filed Critical Shanghai Anchnet Network Technology Co ltd
Priority to CN202110383068.2A priority Critical patent/CN113064699B/en
Publication of CN113064699A publication Critical patent/CN113064699A/en
Application granted granted Critical
Publication of CN113064699B publication Critical patent/CN113064699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Hardware Redundancy (AREA)

Abstract

The embodiment of the application relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for migrating a non-stop service of heterogeneous clouds, and aims to realize cross-cluster migration of servers of the non-stop service between the heterogeneous clouds. The method comprises the following steps: responding to a migration instruction aiming at a target server, and newly adding a buffer server in an original server cluster; replacing a target server with a buffer server to provide service, and removing the target server from the server cluster; backing up a virtual machine in a target server to a storage resource pool; adding a target server into the new server cluster, and loading the virtual machine in the storage resource pool into the target server; and using the target server to replace the buffer server to provide the service, and stopping the service provided on the buffer server.

Description

Method, device and equipment for migrating heterogeneous cloud non-stop service and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for migrating a heterogeneous cloud non-stop service.
Background
Cloud computing refers to decomposing a huge data computing processing program into countless small programs through a network cloud, and then processing and analyzing the small programs through a system consisting of a plurality of servers to obtain results and returning the results to a user. The cluster formed by the multiple servers is a cloud cluster, the cloud cluster comprises the whole server cluster, and the servers in one cloud cluster can be migrated to another cloud cluster according to the service requirement. The existing method for migrating the server is to backup the original server, remove the server from the original cluster, and add the removed server into the new cluster.
The prior art has the problems that when the server migration is carried out between heterogeneous clouds, the service provided on the migrated server is stopped, and when problems are encountered in the migration process, the steps executed when the migration is to be abandoned and the original server is recovered are very complicated.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for migrating a non-stop service of heterogeneous clouds, and aims to realize cross-cluster migration of the non-stop service servers among the heterogeneous clouds.
A first aspect of an embodiment of the present application provides a method for migrating a heterogeneous cloud non-stop service, where the method includes:
responding to a migration instruction aiming at a target server, and newly adding a buffer server in an original server cluster, wherein the original server cluster is a server cluster where the target server is located currently;
replacing the target server with the buffer server to provide service, and removing the target server from the original server cluster;
backing up the virtual machine in the target server to a storage resource pool;
adding the target server into a new server cluster, and loading the virtual machine in the storage resource pool into the target server;
and using the target server to replace the buffer server to provide the service, and stopping the service provided on the buffer server.
Optionally, the step of removing the target server from the original server cluster by using the cache server to provide a service instead of the target server includes:
setting the buffer server as a standby server of the target server;
synchronizing data on the target server to the caching server;
switching the buffer server to a main server, and simultaneously switching the target server to a standby server;
stopping the service provided by the target server, and removing the target server from the original server cluster.
Optionally, backing up the virtual machine in the target server to a storage includes:
converting the format of the virtual machine stored in the target server into a format supported by the new server cluster to obtain a format-converted virtual machine;
and backing up the virtual machine after format conversion to a storage resource pool.
Optionally, initializing the target server as a new node in a new server cluster, and loading the virtual machine in the storage resource pool into the target server, including:
initializing the target server as a new node in the new server cluster;
connecting the new server cluster to the storage resource pool;
and loading the virtual machine in the storage resource pool to the target server.
Optionally, the step of stopping the service provided by the buffering server by using the target server to provide the service instead of the buffering server comprises:
synchronizing data on the caching server to the target server;
and switching the target server to a main server, and simultaneously switching the buffer server to a standby server.
Optionally, the method further comprises:
detecting the target server, and when detecting that the target service normally provides service, removing the main-standby relationship between the target server and the buffer server;
and taking the buffer server as a standby server of another server to be migrated in the original server cluster to finish the migration of the server to be migrated.
Optionally, the method further comprises:
detecting the target server, and switching the buffer server to a main server and switching the target server to a standby server when detecting that the target server cannot normally provide services;
and repairing the target server, switching the target server to a main server after the completion of repair is confirmed, and simultaneously switching the buffer server to a standby server.
A second aspect of the present embodiment provides a device for migrating a heterogeneous cloud non-stop service, where the device includes:
the buffer server adding module is used for responding to a migration instruction aiming at a target server and newly adding a buffer server in an original server cluster, wherein the original server cluster is a server cluster where the target server is located currently;
the first server switching module is used for replacing the target server with the buffer server to provide service and removing the target server from the original server cluster;
the virtual machine backup module is used for backing up the virtual machine in the target server to a storage resource pool;
the capacity expansion module is used for initializing the target server as a new node in a new server cluster and loading the virtual machine in the storage resource pool into the target server;
and the second server switching module is used for replacing the buffer server with the target server to provide the service and stopping the service provided on the buffer server.
Optionally, the first server switching module includes:
the main and standby setting submodule is used for setting the buffer server as a standby server of the target server;
the first data synchronization sub-module is used for synchronizing the data on the target server to the buffer server;
the first server switching submodule is used for switching the buffer server into a main server and switching the target server into a standby server;
and the server removing submodule is used for stopping the service provided by the target server and removing the target server from the original server cluster.
Optionally, the virtual machine backup module includes:
the format conversion submodule is used for converting the format of the virtual machine stored in the target server into a format supported by the new server cluster to obtain a virtual machine after the format is converted;
and the virtual machine backup submodule is used for backing up the virtual machine after the format conversion to a storage resource pool.
Optionally, the capacity expansion module includes:
a server initialization submodule, configured to initialize the target server as a computing node in the new server cluster;
the connection submodule is used for connecting the new server cluster to the storage resource pool;
and the virtual machine loading submodule is used for loading the virtual machine in the storage resource pool into the computing node corresponding to the target server.
Optionally, the second server switching module includes:
the data synchronization sub-module is used for synchronizing the data on the buffer server to the target server;
and the second server switching submodule is used for switching the target server to the main server and switching the buffer server to the standby server at the same time.
Optionally, the second server switching module further includes:
the relation removing submodule is used for detecting the target server and removing the main-standby relation between the target server and the buffer server when detecting that the target server normally provides services;
and the server migration submodule is used for taking the buffer server as a standby server of another server to be migrated in the original server cluster to finish the migration of the server to be migrated.
Optionally, the second server switching module further includes:
the server recovery submodule is used for detecting the target server, switching the buffer server to a main server and switching the target server to a standby server when detecting that the target server cannot normally provide services;
and the server repair submodule is used for repairing the target server, switching the target server to a main server after the repair is confirmed, and simultaneously switching the buffer server to a standby server.
A third aspect of embodiments of the present application provides a readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the method according to the first aspect of the present application.
A fourth aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method according to the first aspect of the present application.
By adopting the heterogeneous cloud non-stop service migration method provided by the application, when a migration instruction for a target server is received, a buffer server is newly added in an original server cluster, the buffer server is used for replacing the target server to provide service, and the target server is removed from the original server cluster; backing up a virtual machine in a target server to a storage; adding a target server into the new server cluster, and loading the virtual machine in storage into the target server; and using the target server to provide the service instead of the buffer server, and stopping the service provided on the buffer server. By adopting the method provided by the application, the buffer server is used for replacing the target server to provide the service when the target server is migrated, the service is ensured to be continuous, the service is not required to be stopped when the server encounters a problem in the migration process, the target server can be directly added into the original server cluster if the migration is abandoned, and the method is simple and convenient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a migration method of a heterogeneous cloud non-stop service according to an embodiment of the present application;
fig. 2 is a schematic diagram of a migration apparatus for a heterogeneous cloud non-stop service according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a migration method for a non-stop service of a heterogeneous cloud according to an embodiment of the present disclosure. As shown in fig. 1, the method comprises the steps of:
s11: responding to a migration instruction aiming at a target server, and newly adding a buffer server in an original server cluster, wherein the original server cluster is a server cluster where the target server is located currently.
In this embodiment, a server cluster is a cluster formed by multiple servers in a cloud environment, a target server is a server that needs to be migrated, an original server cluster is a server cluster where the target server is located, and a buffer server is a server that is newly added to the original server cluster for migration of the target server, and has the same function as a common server.
When a server needing to be migrated in an original server cluster is determined, a system sends out a migration instruction aiming at the target server, and after the system sends out the migration instruction, a buffer server is newly added in the original server cluster.
Illustratively, the cloud platform may be an ari cloud, an Tencent cloud, or the like, and the architectures of the cloud platforms are different, i.e., the two platforms are heterogeneous cloud platforms.
S12: and replacing the target server with the buffer server to provide service, and removing the target server from the original server cluster.
In this embodiment, in many cases, the service provided by the server or the service executed by the server may not be interrupted, for example, a real-time monitoring task on a certain item of data, a certain important query service, and the like, but the migration server needs to remove the server from the original server cluster first, which inevitably causes the interruption of the service provided by the migrated server or the service executed by the migrated server, and thus may cause a serious loss to the company or the group. In order to avoid interrupting the service provided by the server or the service executed on the server in the server migration process, the method uses the buffer server to replace the target server, the buffer server can replace the target server to provide the service to the outside during the migration of the target server, and the target server can be removed from the original server cluster at the moment, and the method specifically comprises the following steps:
s12-1: and setting the buffer server as a standby server of the target server.
In this embodiment, the buffer server is set as a standby server of the target server, that is, a primary-standby relationship between the target server and the buffer server is established, where the target server is a main server, the buffer server is a standby server, and data on the standby server is consistent with data on the main server, so that a service provided by the main server can be provided, and a service executed on the main server is executed.
In this embodiment, synchronization software may be installed in the target server and the buffer server at the same time, and the target server is set as the main server and the buffer server is set as the standby server in the software.
Illustratively, the synchronization software may be a data synchronization tool such as "RSYNC", "sureHA", or the like. And are not intended to be limiting herein.
S12-2: and synchronizing the data on the target server to the buffer server.
In this embodiment, after the synchronization software is installed in the target server and the buffer server, the data on the target server may be synchronized to the buffer server through the synchronization software, including the virtual machine stored in the target server, the application in the target server, and other data.
After the data on the target server is synchronized to the buffer server, the target server and the buffer server realize the master-standby synchronization, and the buffer server has the capability of replacing the target server to provide service and execute service.
S12-3: and switching the buffer server to a main server, and simultaneously switching the target server to a standby server.
In this embodiment, after the primary and secondary synchronization is completed, primary and secondary switching may be performed, where the primary and secondary switching is performed by switching the primary server and the secondary server, and after the primary and secondary switching is successful, the original secondary server may provide a service instead of the primary server, and the original primary server becomes the secondary server. The main-standby switching can be realized by switching the nodes accessed by the outside.
For example, the target server corresponds to a node a, and the buffer server corresponds to a node B, and the node accessed from the outside is switched from the node a to the node B, that is, the active-standby switching between the target server and the buffer server is completed.
S12-4: and stopping the service provided by the target server, and removing the target server from the original server cluster.
In this embodiment, after the active-standby switching is completed, the buffer server has completed replacing the target server, the buffer server provides the service originally provided by the target server in the original server cluster, at this time, the node of the target server is closed, and the target server is removed from the original server cluster.
Illustratively, the node a corresponding to the target server is closed, the target server is disconnected from the original server cluster, and the target server is taken out of the original server cluster.
S13: and backing up the virtual machine in the target server to a storage resource pool.
In this embodiment, the virtual machine refers to a complete computer system that is simulated by software and has a complete hardware function.
After the target server is removed from the original server cluster, the virtual machine in the target server needs to be backed up to a storage resource pool, because the migrated target server is initialized, the virtual machine needs to be reloaded to the target server after initialization, and the step of backing up the virtual machine in the target server to the storage is as follows:
s13-1: and converting the format of the virtual machine stored in the target server into a format supported by the new server cluster to obtain the virtual machine with the converted format.
In this embodiment, the new server cluster is a server cluster to which the target server is to be migrated, the virtual machine format supported by the new server cluster is different from the virtual machine format supported by the original server cluster, and the virtual machine format in the target server needs to be converted into the virtual machine format supported by the new server cluster so that the new server cluster can normally operate, and the format of the virtual machine can be converted by using format conversion software.
For example, the format of the virtual machine supported by the original server cluster is raw, and the format of the virtual machine supported by the new server cluster is vdi, and then the format of the virtual machine is converted from raw to vdi by the format conversion software installed in the target server.
S13-2: and backing up the virtual machine after the format conversion to a storage resource pool.
In this embodiment, the storage resource pool is an independent storage space, and may be connected to any server cluster, and the server cluster does not belong to the same space.
After the format conversion of the virtual machine in the target server is completed, the target server is connected to the storage resource pool, the virtual machine after the format conversion is completed is copied and stored in the storage resource, and the virtual machine can be called at any time.
S14: initializing the target server as a new node in a new server cluster, and loading the virtual machine in the storage resource pool into the target server.
In this embodiment, the target server is initialized as a new node in a new server cluster, and the virtual machine in the storage resource pool is loaded into the target server:
s14-1: initializing the target server as a new node in the new server cluster.
In this embodiment, the initialization of the server is the configuration of the initial server, the new node is a computing node in the cloud computing platform, and one computing node has a server with computing capability.
After the configuration of the target server is initialized, the target server becomes a new node in the server cluster.
Illustratively, there are 8 servers in the original server cluster, i.e. 8 computing nodes, and after adding the target server, a new computing node is added, and the capacity expansion is performed for 9 computing nodes.
S14-2: connecting the new server cluster to the storage resource pool.
In this embodiment, the initialized data stored in the server is cleared, and at this time, the virtual machine stored in the storage resource pool needs to be reloaded into the target server.
S14-3: and loading the virtual machine in the storage resource pool to the target server.
In this embodiment, the format of the virtual machine in the storage resource pool is a format supported by the new server cluster, and after the new server cluster is connected to the storage resource pool, the virtual machine in the storage resource pool is directly loaded into the target server, that is, the computing node corresponding to the target server.
After the virtual machine is loaded to the target server, the target server has the function of providing the original service.
S15: and using the target server to replace the buffer server to provide the service, and stopping the service provided on the buffer server.
In this embodiment, after the target server accesses the new server cluster, the target server is used to replace the cache server to provide the service, and then the migration of the target server is completed.
The method comprises the following specific steps of providing service by using a target server to replace a buffer server, and stopping the service provided by the buffer server:
s15-1: synchronizing data on the caching server to the target server.
In this embodiment, in the migration process, the cache server in the original server cluster provides services all the time, and a lot of new data may be generated, and at this time, data on the cache server needs to be synchronized to the target server by using data synchronization software. At the moment, the target server is located in the new server cluster, the buffer server is located in the original server cluster, and cross-cluster data synchronization is achieved through data synchronization software. Meanwhile, whether the data file in the target server is complete or not can be detected through the data synchronization software, and the integrity of the data file in the target server can be detected by comparing the data in the buffer server with the data in the target server. If the data in the target server is detected to be incomplete, the data synchronization work can be repeated again.
The target server after completing the data synchronization has the function of providing service to the outside world instead of the buffer server at any time.
S15-2: and switching the target server to a main server, and simultaneously switching the buffer server to a standby server.
In this embodiment, the master-slave switching between the target server and the buffer server can be realized by switching the externally accessed node from the node corresponding to the buffer server to the node corresponding to the target server.
In another embodiment of the present application, the method further comprises the steps of:
in this embodiment, after the active-standby switching between the target server in the new server cluster and the buffer server in the original cluster is completed, the target server will start to provide service to the outside, and at this time, the target server needs to be verified to verify whether the target server will normally provide service to the outside or not, and whether the original service will be normally executed or not.
By accessing each application in the target server, when determining that each application in the target server can be normally accessed, determining that the target server can normally provide service for the outside and normally execute the original service.
S21: and detecting the target server, and when detecting that the target server normally provides the service, removing the main-standby relation between the target server and the buffer server.
In this embodiment, after the active-standby switching between the target server in the new server cluster and the buffer server in the original cluster is completed, the target server will start to provide services to the outside, and at this time, the target server needs to be verified to verify whether the target server will normally provide services to the outside or not, and whether the original service will be normally executed or not.
By accessing each application in the target server, when determining that each application in the target server can be normally accessed, determining that the target server can normally provide service for the outside and normally execute the original service.
In this embodiment, it is found through detection that the normal provision of the service by the target server is to detect that the data file on the target server is completely damaged, and at the same time, the applications on the target server can normally run and access. At this time, it is determined that the target server can normally provide the service, the primary-standby relation between the target server and the buffer server is released in the data synchronization software, the service provided on the target server is unchanged, and the service is successfully migrated to the new server cluster.
S22: and taking the buffer server as a standby server of another server to be migrated in the original server cluster to finish the migration of the server to be migrated.
In this embodiment, after the migration of the target server is completed, the buffer server still remains in the original cluster, and after the server is initialized, the server is used as a standby machine of another server in the original cluster of servers that needs to be migrated, so as to complete the migration of the server. Through the buffer server, all the servers in the meta-server cluster can be migrated to a new server cluster one by one, and only the operation of migrating the servers needs to be circulated until the migration of the whole server cluster is completed.
In another embodiment of the present application, when it is detected that the target server cannot normally provide the service, the method further includes the following steps:
s31: and detecting the target server, and switching the buffer server to a main server and switching the target server to a standby server when detecting that the target server cannot normally provide services.
In this embodiment, the target server cannot provide a service normally, that is, a data file on the target server is incomplete, or an application on the target server cannot be normally applied and accessed. When the target server is detected to be incapable of providing the service normally, the external access node is switched from the node corresponding to the target server to the node corresponding to the buffer server, the buffer server becomes a main server, the target server becomes a standby server, and the buffer server continues to provide the service to the outside.
Illustratively, the target server is migrated from an original server cluster in one cloud environment to a new server cluster in another cloud environment with a different structure, and after the migration step is completed, the data integrity of the target server is verified, whether the application on the target server can normally run and access is detected, and when it is detected that an application on the target server cannot be opened, an externally accessed node is switched from a node a corresponding to the target server to a node B corresponding to the cache server.
S32: and repairing the target server, switching the target server to a main server and switching the buffer server to a standby server after the completion of repair is confirmed.
In this embodiment, after the target server is switched to the backup server, the target server is repaired, and after the completion of the repair is confirmed, the target server is switched to the main server and the buffer server is switched to the backup server. And after the switching is finished, detecting whether the target server provides the service normally again.
For example, after the switching is completed, the application with the fault on the target server is repaired, and after the application on the target server can be normally opened and operated, the external access node is switched from the grounded node B corresponding to the buffer server to the node a corresponding to the target server.
Based on the same inventive concept, an embodiment of the present application provides a heterogeneous cloud non-stop service migration apparatus. Referring to fig. 2, fig. 2 is a schematic diagram of a migration apparatus for a heterogeneous cloud non-stop service according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
the buffer server adding module is used for responding to a migration instruction aiming at a target server and newly adding a buffer server in an original server cluster, wherein the original server cluster is a server cluster where the target server is located currently;
the first server switching module is used for replacing the target server with the buffer server to provide service and removing the target server from the original server cluster;
the virtual machine backup module is used for backing up the virtual machine in the target server to a storage resource pool;
the capacity expansion module is used for initializing the target server as a new node in a new server cluster and loading the virtual machine in the storage resource pool into the target server;
and the second server switching module is used for replacing the buffer server with the target server to provide the service and stopping the service provided on the buffer server.
Optionally, the first server switching module includes:
the main and standby setting submodule is used for setting the buffer server as a standby server of the target server;
a first data synchronization submodule, configured to synchronize data on the target server to the cache server;
the first server switching submodule is used for switching the buffer server into a main server and switching the target server into a standby server;
and the server removing submodule is used for stopping the service provided by the target server and removing the target server from the original server cluster.
Optionally, the virtual machine backup module includes:
the format conversion submodule is used for converting the format of the virtual machine stored in the target server into a format supported by the new server cluster to obtain the virtual machine with the converted format;
and the virtual machine backup submodule is used for backing up the virtual machine after the format conversion to a storage resource pool.
Optionally, the capacity expansion module includes:
a server initialization submodule, configured to initialize the target server as a new node in the new server cluster;
a connection submodule for connecting the new server cluster to the storage resource pool;
and the virtual machine loading submodule is used for loading the virtual machine in the storage resource pool to the target server.
Optionally, the second server switching module includes:
the data synchronization sub-module is used for synchronizing the data on the buffer server to the target server;
and the second server switching submodule is used for switching the target server to the main server and switching the buffer server to the standby server.
Optionally, the second server switching module further includes:
the relation removing submodule is used for detecting the target server and removing the main-standby relation between the target server and the buffer server when detecting that the target server normally provides services;
and the server migration sub-module is used for taking the buffer server as a standby server of another server to be migrated in the original server cluster to finish the migration of the server to be migrated.
Optionally, the second server switching module further includes:
the server recovery submodule is used for detecting the target server, switching the buffer server to a main server and switching the target server to a standby server when detecting that the target server cannot normally provide services;
and the server repair submodule is used for repairing the target server, switching the target server to a main server after the repair is confirmed, and simultaneously switching the buffer server to a standby server.
Based on the same inventive concept, another embodiment of the present application provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the migration method of the non-stop service of the heterogeneous cloud according to any of the embodiments of the present application.
Based on the same inventive concept, another embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps in the migration method for the non-stop service of the heterogeneous cloud according to any of the embodiments of the present application are implemented.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising one of \ 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The method, the device, the equipment and the storage medium for migrating the non-stop heterogeneous cloud service provided by the application are introduced in detail, a specific example is applied in the description to explain the principle and the implementation mode of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A method for migrating a heterogeneous cloud non-stop service is characterized by comprising the following steps:
responding to a migration instruction aiming at a target server, and newly adding a buffer server in an original server cluster, wherein the original server cluster is a server cluster where the target server is located currently;
replacing the target server with the buffer server to provide service, and removing the target server from the original server cluster, wherein the buffer server is used for replacing the target server to provide service to the outside during the migration of the target server;
backing up the virtual machine in the target server to a storage resource pool, including: converting the format of the virtual machine stored in the target server into a format supported by a new server cluster to obtain a format-converted virtual machine, and backing up the format-converted virtual machine to a storage resource pool;
initializing the target server as a new node in a new server cluster, and loading a virtual machine in the storage resource pool into the target server;
and using the target server to replace the buffer server to provide the service, and stopping the service provided on the buffer server.
2. The method of claim 1, wherein removing the target server from the cluster of origin servers using the caching server to provide services in place of the target server comprises:
setting the buffer server as a standby server of the target server;
synchronizing data on the target server to the caching server;
switching the buffer server to a main server and simultaneously switching the target server to a standby server;
stopping the service provided by the target server, and removing the target server from the original server cluster.
3. The method of claim 1, wherein initializing the target server as a new node in a new server cluster and loading a virtual machine in the storage resource pool into the target server comprises:
initializing the target server as the new node in the new server cluster;
connecting the new server cluster to the storage resource pool;
and loading the virtual machine in the storage resource pool to the target server.
4. The method of claim 1, wherein using the target server to provide services in place of the caching server to stop services provided on the caching server comprises:
synchronizing data on the caching server to the target server;
and switching the target server to a main server, and simultaneously switching the buffer server to a standby server.
5. The method of claim 4, further comprising:
detecting the target server, and when detecting that the target server normally provides service, removing the main-standby relation between the target server and the buffer server;
and taking the buffer server as a standby server of another server to be migrated in the original server cluster to finish the migration of the server to be migrated.
6. The method of claim 4, further comprising:
detecting the target server, switching the buffer server to a main server and switching the target server to a standby server when detecting that the target server cannot normally provide services;
and repairing the target server, switching the target server to a main server and switching the buffer server to a standby server after the completion of repair is confirmed.
7. An apparatus for migrating a heterogeneous cloud non-stop service, the apparatus comprising:
the buffer server adding module is used for responding to the migration instruction aiming at the target server and newly adding a buffer server in the original server cluster;
the first server switching module is used for replacing the target server with the buffer server to provide service and removing the target server from the original server cluster, and the buffer server is used for replacing the target server to provide service to the outside during the migration of the target server;
the virtual machine backup module is used for backing up the virtual machine in the target server to a storage resource pool, and comprises: converting the format of the virtual machine stored in the target server into a format supported by a new server cluster to obtain a format-converted virtual machine, and backing up the format-converted virtual machine to a storage resource pool;
the capacity expansion module is used for initializing the target server as a new node in a new server cluster and loading the virtual machine in the storage resource pool into the target server;
and the second server switching module is used for replacing the buffer server with the target server to provide the service and stopping the service provided on the buffer server.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented when the computer program is executed by the processor.
CN202110383068.2A 2021-04-09 2021-04-09 Method, device and equipment for migrating heterogeneous cloud non-stop service and storage medium Active CN113064699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110383068.2A CN113064699B (en) 2021-04-09 2021-04-09 Method, device and equipment for migrating heterogeneous cloud non-stop service and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110383068.2A CN113064699B (en) 2021-04-09 2021-04-09 Method, device and equipment for migrating heterogeneous cloud non-stop service and storage medium

Publications (2)

Publication Number Publication Date
CN113064699A CN113064699A (en) 2021-07-02
CN113064699B true CN113064699B (en) 2022-12-13

Family

ID=76566615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110383068.2A Active CN113064699B (en) 2021-04-09 2021-04-09 Method, device and equipment for migrating heterogeneous cloud non-stop service and storage medium

Country Status (1)

Country Link
CN (1) CN113064699B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104903859A (en) * 2012-12-03 2015-09-09 国际商业机器公司 Method and system for migration of processes in heterogeneous computing environments
CN110545203A (en) * 2019-08-21 2019-12-06 之江实验室 method for establishing initial resource backup pool and self-healing repair of cloud platform by cloud platform

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605561A (en) * 2013-11-28 2014-02-26 中标软件有限公司 Cloud computing cluster system and method for on-line migration of physical server thereof
CN106385449B (en) * 2016-09-13 2019-01-29 哈尔滨工程大学 A kind of isomeric group services migrating transferring system and middle shifting method based on container
CN107608764A (en) * 2017-09-27 2018-01-19 郑州云海信息技术有限公司 The moving method and moving apparatus of a kind of server
CN110874264B (en) * 2018-08-30 2023-05-02 阿里巴巴集团控股有限公司 Instance thermomigration method and device, storage medium and processor
CN110532241A (en) * 2019-07-18 2019-12-03 政采云有限公司 Data migration method is not shut down using MySQL Binlog
CN110825494A (en) * 2019-11-01 2020-02-21 北京京东尚科信息技术有限公司 Physical machine scheduling method and device and computer storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104903859A (en) * 2012-12-03 2015-09-09 国际商业机器公司 Method and system for migration of processes in heterogeneous computing environments
CN110545203A (en) * 2019-08-21 2019-12-06 之江实验室 method for establishing initial resource backup pool and self-healing repair of cloud platform by cloud platform

Also Published As

Publication number Publication date
CN113064699A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
US8689211B2 (en) Live migration of virtual machines in a computing environment
US9959063B1 (en) Parallel migration of multiple consistency groups in a storage system
US8910172B2 (en) Application resource switchover systems and methods
US20140376362A1 (en) Dynamic client fail-over during a rolling patch installation based on temporal server conditions
CN111078667B (en) Data migration method and related device
CN108345617B (en) Data synchronization method and device and electronic equipment
CN110263095B (en) Data backup and recovery method and device, computer equipment and storage medium
US20130346803A1 (en) Reliably testing virtual machine failover using differencing disks
US20130013566A1 (en) Storage group synchronization in data replication environments
CN103885857B (en) virtual machine fault-tolerant method and device
CN112380062A (en) Method and system for rapidly recovering system for multiple times based on system backup point
CN105022678A (en) Data backup method and apparatus for virtual machine
US20200034284A1 (en) Automatic bug reproduction using replication and cpu lockstep
CN112231403B (en) Consistency verification method, device, equipment and storage medium for data synchronization
WO2015043155A1 (en) Method and device for network element backup and recovery based on command set
CN112256477A (en) Virtualization fault-tolerant method and device
CN114035905A (en) Fault migration method and device based on virtual machine, electronic equipment and storage medium
US10318385B2 (en) Service recovery using snapshots and interservice messages
CN115658390A (en) Container disaster tolerance method, system, device, equipment and computer readable storage medium
CN104111843A (en) Sandbox based script updating method and system
CN113064699B (en) Method, device and equipment for migrating heterogeneous cloud non-stop service and storage medium
CN107621994A (en) The method and device that a kind of data snapshot creates
US10514988B2 (en) Method and system of migrating applications to a cloud-computing environment
CN116700884A (en) Snapshot rollback data consistency test method, device, equipment and medium
CN111786808A (en) Cloud system migration method and device and mixed cloud system

Legal Events

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