CN113268315A - Online migration method for virtual host - Google Patents
Online migration method for virtual host Download PDFInfo
- Publication number
- CN113268315A CN113268315A CN202110649033.9A CN202110649033A CN113268315A CN 113268315 A CN113268315 A CN 113268315A CN 202110649033 A CN202110649033 A CN 202110649033A CN 113268315 A CN113268315 A CN 113268315A
- Authority
- CN
- China
- Prior art keywords
- cluster
- virtual host
- new cluster
- data
- original
- 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.)
- Pending
Links
- 230000005012 migration Effects 0.000 title claims abstract description 38
- 238000013508 migration Methods 0.000 title claims abstract description 38
- 238000000034 method Methods 0.000 title claims abstract description 18
- 230000001360 synchronised effect Effects 0.000 claims description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Abstract
The invention relates to a data migration technology, in particular to an online virtual host migration method, which comprises the following steps: step one, entering an online migration system, selecting an original cluster, a new cluster, migration time and whether to replace an IP (Internet protocol) or not; step two, synchronizing the original cluster data to a new cluster for the first time, and synchronizing the virtual host to the new cluster; step three, synchronizing the original cluster data to the new cluster for the second time; step four, if the IP needs to be replaced, the domain name is analyzed to a new cluster, the original cluster is started to forward, all requests are forwarded to the new cluster, after the domain name is completely effective, the forwarding is closed, and the original cluster is removed; step five, if the IP does not need to be replaced, the IP address is removed from the original cluster and configured on a new cluster; and step six, completing the online migration of the virtual host, and realizing seamless data migration, particularly ensuring the migration efficiency when the data volume is large, wherein the virtual host is uninterrupted or has extremely short interruption time.
Description
Technical Field
The invention relates to a data migration technology, in particular to a virtual host online migration method.
Background
The advantages of low cost, rapid deployment, flexible scaling and the like of virtual hosts have attracted high attention in the industry, and the traditional, single, explicit to fuzzy, generalized and dynamic transition of the traditional computing network environment has led to the gradual evolution of physical boundaries to virtual boundaries. However, with the deep development of the virtual host technology, the increase of the computing resource overhead and the increase of the complexity, a single virtual host cannot adapt to the continuously increasing and decreasing computing resource requirements. Enterprises and operators no longer suffice to own a single virtual machine, but instead turn to building multiple data clusters to form a hybrid virtual host or the computing resources of a virtual host of a mutually leased counterpart among multiple operators to form a federated cloud. However, in this case, the core requirement of virtual host environment migration cannot be met, the migration method in the prior art still manually migrates data to a new cluster, manually resolves a domain name to the new cluster, manually binds the domain name to set a home page, and the like, although the existing migration method can meet the basic requirement, seamless migration cannot be achieved, and particularly when the data volume is large, migration is time-consuming, and the virtual host interruption time is long.
Therefore, no effective solution has been proposed to solve the above problems in the related art.
Disclosure of Invention
The present invention is directed to provide an online migration method for a virtual machine, so as to solve the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a virtual host online migration method comprises the following steps:
step one, entering an online migration system, selecting an original cluster, a new cluster, migration time and whether to replace an IP (Internet protocol) or not;
step two, synchronizing the original cluster data to a new cluster for the first time, and synchronizing the virtual host to the new cluster;
step three, synchronizing the original cluster data to the new cluster for the second time;
step four, if the IP needs to be replaced, the domain name is analyzed to a new cluster, the original cluster is started to forward, all requests are forwarded to the new cluster, after the domain name is completely effective, the forwarding is closed, and the original cluster is removed;
and step five, if the IP does not need to be replaced, the IP address is removed from the original cluster and configured on the new cluster.
And step six, completing the online migration of the virtual host.
Preferably, the metadata uses rsync for data synchronization, and when a technician or a user needs to migrate the virtual host, the program calls rsync to synchronize the virtual host data in the original cluster to the new cluster.
Preferably, after the first data synchronization is completed, the program synchronizes the virtual host configuration in the original cluster to the new cluster.
Preferably, the virtual host configuration includes domain name setting, home page configuration, php version setting and FTP information.
Preferably, after the virtual host configuration synchronization is successful, the second data synchronization is performed, after the synchronization is completed, the domain name is automatically modified and resolved to the new cluster, the forwarding rule is started by the original cluster, and all the requests are forwarded to the new cluster.
Preferably, the second data synchronization is synchronization difference data.
Compared with the prior art, the invention has the beneficial effects that: the online migration method of the virtual host can realize seamless data migration, especially can ensure the migration efficiency when the data volume is large, and the virtual host does not interrupt or has extremely short interruption time.
Drawings
Fig. 1 is a flowchart illustrating an online migration method of a virtual host according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
Referring to fig. 1, an online migration method for a virtual machine includes the following steps:
step one, entering an online migration system, selecting an original cluster, a new cluster, migration time and whether to replace an IP (Internet protocol) or not;
step two, synchronizing the original cluster data to a new cluster for the first time, and synchronizing the virtual host to the new cluster;
step three, synchronizing the original cluster data to the new cluster for the second time;
step four, if the IP needs to be replaced, the domain name is analyzed to a new cluster, the original cluster is started to forward, all requests are forwarded to the new cluster, after the domain name is completely effective, the forwarding is closed, and the original cluster is removed;
and step five, if the IP does not need to be replaced, the IP address is removed from the original cluster and configured on the new cluster.
And step six, completing the online migration of the virtual host.
The metadata cluster data uses rsync to synchronize data, and when technicians or users need to migrate virtual hosts, programs call the rsync to synchronize the virtual host data in the original cluster to a new cluster; after the first data synchronization is completed, the program synchronizes the virtual host configuration in the original cluster to the new cluster; the virtual host configuration comprises domain name setting, home page configuration, php version setting and FTP information; when the virtual host configuration synchronization is successful, performing second data synchronization, automatically modifying the domain name and resolving to a new cluster after the synchronization is completed, starting a forwarding rule by the original cluster, and forwarding all requests to the new cluster; the second data synchronization is synchronous difference data.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (6)
1. A virtual host online migration method is characterized in that: the method comprises the following steps:
step one, entering an online migration system, selecting an original cluster, a new cluster, migration time and whether to replace an IP (Internet protocol) or not;
step two, synchronizing the original cluster data to a new cluster for the first time, and synchronizing the virtual host to the new cluster;
step three, synchronizing the original cluster data to the new cluster for the second time;
step four, if the IP needs to be replaced, the domain name is analyzed to a new cluster, the original cluster is started to forward, all requests are forwarded to the new cluster, after the domain name is completely effective, the forwarding is closed, and the original cluster is removed;
step five, if the IP does not need to be replaced, the IP address is removed from the original cluster and configured on a new cluster;
and step six, completing the online migration of the virtual host.
2. The online migration method of the virtual machine according to claim 1, wherein: and the metadata cluster data uses the rsync to carry out data synchronization, and when technicians or users need to migrate the virtual host, a program calls the rsync to synchronize the virtual host data in the original cluster into a new cluster.
3. The online migration method of the virtual machine according to claim 1, wherein: after the first data synchronization is completed, the program synchronizes the virtual host configuration in the original cluster to the new cluster.
4. The online migration method of the virtual machine according to claim 3, wherein: the virtual host configuration comprises domain name setting, home page configuration, php version setting and FTP information.
5. The online migration method of the virtual machine according to claim 1, wherein: and after the virtual host configuration synchronization is successful, performing secondary data synchronization, automatically modifying the domain name and resolving to a new cluster after the synchronization is completed, starting a forwarding rule by the original cluster, and forwarding all requests to the new cluster.
6. The online migration method of the virtual machine according to claim 5, wherein: the second data synchronization is synchronous difference data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110649033.9A CN113268315A (en) | 2021-06-10 | 2021-06-10 | Online migration method for virtual host |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110649033.9A CN113268315A (en) | 2021-06-10 | 2021-06-10 | Online migration method for virtual host |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113268315A true CN113268315A (en) | 2021-08-17 |
Family
ID=77234880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110649033.9A Pending CN113268315A (en) | 2021-06-10 | 2021-06-10 | Online migration method for virtual host |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113268315A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113760461A (en) * | 2021-09-07 | 2021-12-07 | 新华智云科技有限公司 | Version upgrading method and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103491070A (en) * | 2013-09-06 | 2014-01-01 | 广东工业大学 | Method for protecting privacy of vehicles in real-time migration of virtual machine |
CN104378452A (en) * | 2013-08-14 | 2015-02-25 | 阿里巴巴集团控股有限公司 | Method, device and system for domain name resolution |
CN104699522A (en) * | 2015-03-17 | 2015-06-10 | 成都艺辰德迅科技有限公司 | Virtual machine dynamic migration method |
US20170324645A1 (en) * | 2016-01-28 | 2017-11-09 | Oracle International Corporation | System and method for supporting vm migration between subnets in a high performance computing environment |
CN109542582A (en) * | 2018-10-22 | 2019-03-29 | 广东天唯科技有限公司 | A kind of method and system for the replacement server under safeguards system normal operation |
CN109814978A (en) * | 2018-12-15 | 2019-05-28 | 华南理工大学 | Across cluster moving method and system based on more OpenStack platforms |
CN112788072A (en) * | 2019-11-01 | 2021-05-11 | 阿里巴巴集团控股有限公司 | Data processing method, data processing system, computer device, and storage medium |
-
2021
- 2021-06-10 CN CN202110649033.9A patent/CN113268315A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104378452A (en) * | 2013-08-14 | 2015-02-25 | 阿里巴巴集团控股有限公司 | Method, device and system for domain name resolution |
CN103491070A (en) * | 2013-09-06 | 2014-01-01 | 广东工业大学 | Method for protecting privacy of vehicles in real-time migration of virtual machine |
CN104699522A (en) * | 2015-03-17 | 2015-06-10 | 成都艺辰德迅科技有限公司 | Virtual machine dynamic migration method |
US20170324645A1 (en) * | 2016-01-28 | 2017-11-09 | Oracle International Corporation | System and method for supporting vm migration between subnets in a high performance computing environment |
CN109542582A (en) * | 2018-10-22 | 2019-03-29 | 广东天唯科技有限公司 | A kind of method and system for the replacement server under safeguards system normal operation |
CN109814978A (en) * | 2018-12-15 | 2019-05-28 | 华南理工大学 | Across cluster moving method and system based on more OpenStack platforms |
CN112788072A (en) * | 2019-11-01 | 2021-05-11 | 阿里巴巴集团控股有限公司 | Data processing method, data processing system, computer device, and storage medium |
Non-Patent Citations (3)
Title |
---|
KUN XU等: ""An Effective Policy Relocation Scheme for VM Migration in Software-Defined Networks"", 《2015 24TH INTERNATIONAL CONFERENCE ON COMPUTER COMMUNICATION AND NETWORKS (ICCCN)》 * |
曾华实: "企业级混合式虚拟云平台建设的思考", 《科技信息》 * |
谢胜军等: ""动态DNS+网关分离的分布式数据中心互联方法"", 《通信学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113760461A (en) * | 2021-09-07 | 2021-12-07 | 新华智云科技有限公司 | Version upgrading method and computer readable storage medium |
CN113760461B (en) * | 2021-09-07 | 2023-09-05 | 新华智云科技有限公司 | Version upgrading method and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021056949A1 (en) | Edge application management method and system | |
CN103873290B (en) | A kind of method and system for being used to assess the performance of application | |
CN109151045B (en) | Distributed cloud system and monitoring method | |
US11422843B2 (en) | Virtual machine migration method and apparatus having automatic user registration at a destination virtual machine | |
JP2016505930A (en) | System, method, and apparatus for collaborative CAX editing | |
US9268588B2 (en) | Optimizing virtual machine migration via identification and treatment of virtual memory swap file | |
JP6432955B2 (en) | Method, apparatus and system for migrating virtual network function instances | |
WO2007008852A3 (en) | Account synchronization for common identity in an unmanaged network | |
Oechsner et al. | Flexible support of VNF placement functions in OpenStack | |
US20130054521A1 (en) | Method and device for automactic migration of system configuration item | |
CN104618508A (en) | Load balancing net framework based on Nginx, Memcached and Tomcat | |
CN104969654A (en) | Synchronizing generation and transmission of keep-alive messages | |
CN109525590B (en) | Data packet transmission method and device | |
CN106354566A (en) | Command processing method and server | |
US11425054B1 (en) | User-configured multi-location service deployment and scaling | |
CN114448895B (en) | Application access method, device, equipment and medium | |
US11824765B2 (en) | Fast redirect of traffic when pods fail | |
CN113268315A (en) | Online migration method for virtual host | |
CN114691290A (en) | Cross-cloud-platform application migration system and method and disaster recovery method | |
WO2015192583A1 (en) | Internet protocol (ip) address allocation method and apparatus, server and terminal | |
CN108200221B (en) | Method and device for synchronizing conversion rules in network address conversion environment | |
CN105227630A (en) | A kind of based on APACHE, MOD_JK, TOMCAT load balancing implementation | |
CN110018875B (en) | Desktop synchronization implementation method based on IDV | |
CN106230893A (en) | A kind of method of data synchronization based on mixed cloud storage | |
CN111224881A (en) | Routing method, system, equipment and computer readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210817 |
|
RJ01 | Rejection of invention patent application after publication |