CN109814978A - Across cluster moving method and system based on more OpenStack platforms - Google Patents

Across cluster moving method and system based on more OpenStack platforms Download PDF

Info

Publication number
CN109814978A
CN109814978A CN201811537913.1A CN201811537913A CN109814978A CN 109814978 A CN109814978 A CN 109814978A CN 201811537913 A CN201811537913 A CN 201811537913A CN 109814978 A CN109814978 A CN 109814978A
Authority
CN
China
Prior art keywords
cluster
virtual machine
migration
source
target
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
Application number
CN201811537913.1A
Other languages
Chinese (zh)
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.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201811537913.1A priority Critical patent/CN109814978A/en
Publication of CN109814978A publication Critical patent/CN109814978A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a kind of across cluster moving method based on more OpenStack platforms, method includes the following steps: step 1: receiving migration request of the virtual machine across cluster;Step 2: scope check and condition inspection are carried out to migration request;Step 3: the parameter requested according to virtual machine (vm) migration judges that migration is static migrating or dynamic migration, if static migrating, then step 4 is carried out, if dynamic migration then carries out step 5;Step 4: the static migrating across cluster being carried out to virtual machine and is operated;Step 5: the dynamic migration across cluster being carried out to virtual machine and is operated;Step 6: migration results being returned into user after the completion of migration.The present invention also provides across the cluster migratory systems based on more OpenStack platforms, including client and server end.The present invention, which provides, fills up the defect that OpenStack platform can not be migrated directly across cluster, improves the load balance ability of more clusters.

Description

Across cluster moving method and system based on more OpenStack platforms
Technical field
The present invention relates to field of cloud calculation, and in particular to a kind of across cluster moving method based on more OpenStack platforms And system.
Background technique
OpenStack is one of most active open source projects of current field of cloud calculation, is the cloud computing management of an open source Platform project.It mainly carries out resource virtualizing to multiple hardwares resource using virtualization technology, forms a big resource Then pond is managed collectively virtualization resource.It is mainly made of several service modules: keystone(authentication clothes Business), nova(calculate service), glance(mirroring service), the service of neutron(network), cinder(block storage service), Swift(object storage service) etc., wherein nova controls the primary operational of migration.OpenStack only provides cluster at present Interior migration operation, for the shift function across cluster there is no realizing, this is a kind of big for the load balancing of more clusters Challenge.
The also referred to as offline migration of static migrating, migration are mainly in the case where virtual machine shutdown, by virtual machine (vm) migration It is restarted to another physical host, and on another physical host.Since virtual machine is in off-mode, can't produce Raw new data, so migration only needs to copy virtual machine instance file and configuration file on purpose host to.
The also referred to as online migration of dynamic migration, migration are mainly in the state of virtual machine operation, by virtual machine (vm) migration To another physical host.Since virtual machine is in running order, new data all are being generated at any time, so migration not only needs It copies instance document and configuration file to purpose host, while still copying the dynamic data of memory to purpose host Machine.
The case where OpenStack does not have the ability across cluster migration at present, consumes excessively for resource in cluster does not have There is good dredging method, for can only also rely on operation maintenance personnel manually by virtual organ for virtual machine (vm) migration to other clusters Machine migration, while compatibility, there is also very big problem, the demand across cluster migration is increasingly urgent to.
Summary of the invention
More OpenStack(cloud computing management are based in view of the deficiencies of the prior art, it is an object of the present invention to provide a kind of Platform project) platform across cluster moving method, the method aims to solve the problem that current OpenStack cluster can not be directly across cluster The defect for migrating virtual machine, increases the scalability and load balance ability of OpenStack cluster.While the invention also discloses A kind of across cluster migratory system based on more OpenStack platforms, the system devise the server-side of complete set, create across The communication mechanism of cluster and complete static migrating across cluster and dynamic migration operation.
It is of the invention the specific implementation process is as follows, a kind of across cluster moving method based on more OpenStack platforms, the party Method the following steps are included:
S1, migration request of the virtual machine across cluster is received;
S2, scope check and condition inspection are carried out to migration request;
S3, the parameter requested according to virtual machine (vm) migration judge that migration is across cluster static migrating or across cluster dynamic migration, if It is across cluster static migrating, then carries out step S4, if across cluster dynamic migration then carries out step S5;
S4, the static migrating operation across cluster is carried out to virtual machine;
S5, the dynamic migration operation across cluster is carried out to virtual machine;
Migration results are returned into user after the completion of S6, migration.
Preferably, in step s 2, scope check includes whether the user of execution migration request possesses administrator right.
Preferably, in step s 2, condition inspection includes:
Whether the physical host in source cluster and target cluster can exempt from mutually code key login;
Whether target cluster contains enough spatial contents, i.e. the remaining spatial content of target cluster needs to be greater than to be migrated virtual Amount of capacity required for machine;
The hypervisor(virtual machine monitor of the physical host of target cluster) and virtual machine where source physical host Hypervisor whether identical version.
Preferably, in step s 4, the static migrating operation across cluster comprises the steps that
S4-1, source cluster is sent by across cluster static migrating request;
S4-2, source cluster carry out the preparation across cluster static migrating after receiving migration request, comprising:
Check whether virtual machine state is operation or shutdown, if operation then carries out power-off operation to virtual machine, if can not be just Often shutdown then returns to error message to user, and forbids executing static migrating;
Unload the virtual network interface of virtual machine binding;
S4-3, source cluster notice target cluster carry out across cluster static migrating;
S4-4, target cluster carry out the preparation across cluster static migrating after receiving migration request, comprising:
The target physical host of migration is selected according to the resource utilization of each physical host of target cluster, wherein resource utilization The utilization rate of utilization rate, memory including hard drive space and the utilization rate of Internet resources;
Create virtual machine network;
S4-5, the static migrating operation across cluster is carried out, comprising the following steps:
To the target physical host migration virtual-machine data of target cluster, data include the xml(extensible markup language of virtual machine Speech) configuration information and corresponding instance document, wherein instance document includes rear end image file and delta file;
Target cluster creates virtual machine by migrated virtual-machine data, while binding virtual machine network and opening virtual machine;
S4-6, migrated after cleaning operation, comprising:
In source, cluster deletes rear end image file, delta file and the configuration file of source virtual machine, deletes source virtual machine network, deletes Except source virtual machine information;
The state of migrated virtual machine is updated in target cluster and database is written, and completes migration;
Preferably, in step s 5, the dynamic migration operation across cluster comprises the steps that
S5-1, source cluster is sent by across cluster dynamic migration request;
S5-2, source cluster carry out the preparation across cluster dynamic migration after receiving migration request, comprising:
Check whether virtual machine state is operation or pause, if it is not, then forbidding carrying out across cluster dynamic migration operation, and handle Virtual machine state information returns to user;
Unload the virtual network interface of virtual machine binding;
S5-3, source cluster notice target cluster carry out across cluster dynamic migration;
S5-4, target cluster carry out the preparation across cluster dynamic migration after receiving migration request, comprising:
The target physical host of migration is selected according to the resource utilization of each physical host of target cluster, wherein resource utilization The utilization rate of utilization rate, memory including hard drive space and the utilization rate of Internet resources;;
Create virtual machine network;
Virtual machine information is created, by the title of virtual machine, the detailed description of virtual machine, virtual machine specification size, virtual machine image The information such as information, virtual machine owning user and project are stored in database;
S5-5, the dynamic migration operation across cluster is carried out, comprising:
Virtual-machine data is copied to the corresponding position of target physical host, wherein virtual-machine data includes the xml of virtual machine Configuration information and corresponding instance document, wherein instance document includes rear end image file and delta file;
In source cluster call libvirt(management virtual platform API) interface migrateToURI3(dynamic migration letter Number), by virtual machine (vm) migration to specified target physical host;
Virtual machine network is bound for the virtual machine after migration;
S5-6, migrated after cleaning operation, comprising:
In source, cluster deletes rear end image file, delta file and the configuration file of source virtual machine, deletes source virtual machine network, deletes Except source virtual machine information;
The state of migrated virtual machine is updated in target cluster and database is written, and completes migration;
A kind of across cluster migratory system based on more OpenStack platforms, the system comprises client and server ends;
Wherein the form of client includes but is not limited to the WWW web(, World Wide Web) page end, the end app, computer desk Face client etc..
Server end comprises the following modules:
Request processing module: the request sent for receiving user from client, and operating result is returned to client;
Message distribution module: for being requested to collection pocket transmission;
Communication tunnel module: mechanism is in communication with each other between cluster for setting up, and can call migration process module;
Migration process module: it is used for across cluster migration process, after the preparation migrated, execution transition process and migration Cleaning operation.
Compared with the prior art, the invention has the following advantages and beneficial effects:
The present invention realizes across cluster moving method and system based on more OpenStack platforms, has filled up Openstack across collection The blank of group's migration controls distribution using across the cluster communication mechanism and message of foundation, realizes the function across cluster migration, solution It has determined the difficult point across cluster migration, while the load balancing between more clusters may be implemented based on the invention, meet diversified demand.
Detailed description of the invention
Fig. 1 is across cluster migratory system block architecture diagram of the embodiment of the present invention based on more OpenStack platforms.
Fig. 2 is the general flow chart across cluster migration in the embodiment of the present invention based on more OpenStack platforms.
Fig. 3 is the flow chart of across the cluster static migrating part based on more OpenStack platforms in the embodiment of the present invention.
Fig. 4 is the flow chart of across the cluster dynamic migration part based on more OpenStack platforms in the embodiment of the present invention.
Specific embodiment
Present invention will now be described in further detail with reference to the embodiments and the accompanying drawings, it is to be understood that the tool The examples are only for explaining the invention for body, and embodiments of the present invention are not limited thereto.
The embodiment of the present invention is unable to complete for current cluster across cluster on the basis of the migration of single OpenStack cluster The defect of migration operation proposes a kind of across the cluster moving method of more OpenStack platforms, and at the same time realizing across cluster Static migrating and dynamic migration.This method is first by increasing the communication tunnel between cluster come so that obtaining between cluster in mutual Then communication transmits the relevant information and either statically or dynamically migration information of virtual machine to be migrated, then general by communication tunnel The relevant informations such as the instance document information of virtual machine and xml profile information are transferred to the target physical host of target cluster On, last migration operation is completed finally by static migrating operation or dynamic migration operation.
Across the cluster moving method based on more OpenStack platforms and system provided below to the embodiment of the present invention is done It is described in detail.
As shown in Figure 1, it is shown that the system architecture of the embodiment across cluster migration based on more OpenStack platforms.
The system includes client and server end.
Client uses the form at web page end in the present embodiment, provides visual administration page for user, clothes Realize message passing mechanism and across cluster migration operation across cluster in business device end.
Client is a web page end in the present embodiment, and user can carry out relevant operation on the visualization interface, The operation of user shows as calling a REST(Representational State Transfer, declarative state transmitting) The API(Application Programming Interface of style, application programming interface) it is asked to server end sending It asks, if user can initiate across cluster static migrating or request across cluster dynamic migration, then the request can be sent to Request processing module.
Server end includes request processing module, message distribution module, migration process module, communication tunnel module.
Request processing module is responsible for reception client in the present embodiment and is transmitted through the request come, right after module reception request Required parameter is parsed, first progress scope check and condition inspection, then judges that the request is the static migrating across cluster Or the dynamic migration across cluster, finally sends message distribution module, and the knot that will be migrated across cluster for the result after judgement Fruit returns to client.
Message distribution module in the present embodiment mainly by message distribution to source cluster and target cluster, notice cluster into The relevant operation of row migration.
Migration process module in the present embodiment be responsible for processing migration relevant operation, including migration before preparation, Cleaning work after executing migration operation and migration, and the action of the migration process module of source cluster and target cluster It is different.As shown in Figure 1, OpenStack cluster 1 and OpenStack cluster 2 are two different OpenStack collection respectively Group, migration process module is present in the two OpenStack clusters, if OpenStack cluster 1 is source cluster, OpenStack Cluster 2 is target cluster, then to be processed positioned at the migration process module master of OpenStack cluster 1 is that across cluster migration prepares The information deletion of source virtual machine, to be processed positioned at the migration process module master of OpenStack cluster 2 to be after work and migration The state of virtual machine updates after across cluster migration operation and migration.
Communication tunnel module is responsible for the communication between cluster in the present embodiment, and the form of expression is RPC (Remote Procedure Call Protocol, remote procedure call protocol) framework remote procedure call.RPC uses client/clothes Business device mode, there are two roles in RPC communication: Client (user terminal) and Server(server end).Client hair RPC request is played, the program that the end Server receives RPC request call local executes, and implementing result is returned to Client.
Therefore in the present embodiment, each cluster can function simultaneously as client and server end, so as to initiate call with And respond the calling of other clusters.
Across the cluster moving method to provided in an embodiment of the present invention based on more OpenStack platforms carries out detailed below Step explanation, this method includes following processing step:
Step 1: as shown in Fig. 2, the API of client call REST style is moved to the transmission of the virtual machine request receiving module of client Request is moved, the request receiving module of server end receives the virtual machine of client across the migration request of cluster, and migration request includes Static migrating across cluster and the dynamic migration across cluster, request receiving module provide as Server and receive request function.
Step 2: the request receiving module of server end carries out scope check and condition to the migration request that client issues It checks.
The scope check user user-token(user identity token entrained according to request), to the user- of user Token carries out permission judgement, if user possesses admin(administrator) permission, i.e. administrator right, then allow user to execute across collection Otherwise group's migration operation then forbids executing the operation, and return to the processing result of Insufficient privilege to client.
Condition inspection is used to check the condition whether cluster meets across cluster migration, comprising:
Whether the physical host in inspection source cluster and target cluster can exempt from mutually code key login;
Check whether target cluster contains enough spatial contents, i.e., the remaining spatial content of target cluster needs to be greater than to be migrated Amount of capacity required for virtual machine;
The hypervisor of physical host and source physical host where the virtual machine of client for checking target cluster Hypervisor whether identical version;
If meeting all conditions above simultaneously, subsequent operation is continued to execute;Otherwise, forbid executing across cluster migration operation, and The information for not meeting condition is returned to client.
Step 3: being static migrating or dynamic migration according to the judgement migration of virtual machine (vm) migration required parameter, wherein request ginseng Number includes the information such as across cluster migration mark, request user id, virtual machine id.An across cluster migration is used in the present embodiment Mark is across cluster static migrating or across cluster dynamic migration to judge to migrate, if across cluster static migrating, carries out step 4, if across cluster dynamic migration, carry out step 5.
Step 4: across cluster transferring module carries out the relevant treatment across cluster static migrating to the virtual machine of client.
Step 5: across cluster transferring module carries out the relevant treatment across cluster dynamic migration to the virtual machine of client.
Step 6: client will be returned to across the result that cluster migrates, as a result unify to pass through request receiving module to client It returns.
In step 4, as shown in figure 3, to realize that the relevant treatment across cluster static migrating specifically follows the steps below:
Step 4-1: client is requested by message distribution module to across the cluster static migrating of source collection pocket transmission, to source collection pocket transmission Request mainly carry user id, virtual machine id.It can be inquired in the cluster of source in source Cluster Database by virtual machine id The relevant information of virtual machine to be migrated, including virtual machine title, the detailed description of virtual machine, virtual machine mirror image id, virtual machine Specification, wherein virtual machine specification includes magnetic disk of virtual machine size, memory size, cpu virtual kernel number etc.;
Step 4-2: the preparation of source cluster progress static migrating, comprising:
The migration process module of source cluster passes through the nova(computing module of source cluster) virtual machine state of component inspection source cluster Whether in operation (active) or shutdown (stoped), if operation then carries out power-off operation to the virtual machine of source cluster, If can not normal shutdown, request processing module returns to error message to client, and forbids executing across cluster static migrating;
The migration process module of source cluster passes through the neutron(network management module of source cluster) component unloads the virtual of source cluster The virtual network interface of machine binding;
Step 4-3: source cluster notifies target cluster to carry out across cluster static migrating by communication tunnel module, and will be to be migrated Virtual machine information is sent to target cluster, and virtual machine information includes virtual machine title, the detailed description of virtual machine, virtual machine image Information, virtual machine specification etc., wherein virtual machine image information includes used mirror image title and mirror image size, virtual machine rule Lattice include magnetic disk of virtual machine size, memory size, cpu virtual kernel number etc.;
Step 4-4: across the cluster static state of progress is moved after the migration process module of target cluster receives across cluster static migrating request The preparation of shifting, comprising:
The migration process module of target cluster selects the target of migration according to the resource utilization of each physical host of target cluster Physical host.In the present embodiment, resource utilization includes the utilization rate of hard drive space, the utilization rate of memory and Internet resources Utilization rate, the method for selection target physical host is respectively to disk space utilization rate, memory usage and Internet usage Rate carries out weight computing, and three's weight proportion is respectively 40%, 50%, 10%, finally selects the smallest physical host of weight and makees For the target physical host of migration.
The migration process module of target cluster target cluster call neutron(network management module) component be will move Move past the virtual machine creating network come.
Step 4-5: migration process module carries out the static migrating operation across cluster, comprising:
The virtual-machine data of source cluster is copied to the target physical host of target cluster by the migration process module of target cluster, Middle virtual-machine data include virtual machine xml configuration information and corresponding instance document, wherein instance document includes rear end mirror As file and delta file, these data will be stored in the corresponding fixed catalogue of target physical host;
The migration process module of target cluster creates virtual machine in target cluster by replicated virtual-machine data, binds simultaneously The virtual machine network created in step 4-4 starts virtual machine after the completion of creation;
Step 4-6: migration process module carries out the cleaning operation after across cluster static migrating, comprising:
The migration process module of source cluster deletes the rear end image file, delta file and configuration text of source virtual machine in source cluster Part deletes source virtual machine network, including discharging actual Internet resources and deleting the network information in database, deletes database Middle source virtual machine information;
The migration process module of target cluster updates the state of migrated virtual machine in target cluster and database is written, and completes to move It moves;
In steps of 5, as shown in figure 4, specifically being followed the steps below to realize the relevant treatment across cluster dynamic migration:
Step 5-1: client is requested by message distribution module to across the cluster dynamic migration of source collection pocket transmission, to source collection pocket transmission Request mainly carry user id, virtual machine id.It can be inquired in the cluster of source in source Cluster Database by virtual machine id The relevant information of virtual machine to be migrated, including virtual machine title, the detailed description of virtual machine, virtual machine mirror image id, virtual machine Specification, wherein virtual machine specification includes magnetic disk of virtual machine size, memory size, cpu virtual kernel number etc.;
Step 5-2: the preparation of source cluster progress dynamic migration, comprising:
The migration process module of source cluster passes through the nova(computing module of source cluster) virtual machine state of component inspection source cluster Whether in operation (active) or pause (paused), if it is not, then forbidding across cluster dynamic migration to operate, and will be virtual Machine current state returns to client;
The migration process module of source cluster passes through the neutron(network management module of source cluster) component unloads the virtual of source cluster The virtual network interface of machine binding;
Step 5-3: source cluster notifies target cluster to carry out across cluster dynamic migration by communication tunnel module, and will be to be migrated Virtual machine information is sent to target cluster, and virtual machine information includes virtual machine title, the detailed description of virtual machine, virtual machine image Information, virtual machine specification etc., wherein virtual machine image information includes used mirror image title and mirror image size, virtual machine rule Lattice include magnetic disk of virtual machine size, memory size, cpu virtual kernel number etc.;
Step 5-4: target cluster carries out the preparation across cluster dynamic migration, comprising:
The migration process module of target cluster selects the target of migration according to the resource utilization of each physical host of target cluster Physical host.In the present embodiment, resource utilization includes the utilization rate of hard drive space, the utilization rate of memory and Internet resources Utilization rate, the method for selection target physical host is respectively to disk space utilization rate, memory usage and Internet usage Rate carries out weight computing, and three's weight proportion is respectively 40%, 50%, 10%, finally selects the smallest physical host of weight and makees For the target physical host of migration.
The migration process module of target cluster target cluster call neutron(network management module) component be will move Move past the virtual machine creating network come.
The migration process module creation virtual machine information of target cluster, including virtual machine title, virtual machine detailed description, void Quasi- machine specification size, virtual machine image information, virtual machine owning user and project, and it is stored in target Cluster Database.
Step 5-5: migration process module carries out the dynamic migration operation across cluster, comprising:
The virtual-machine data of source cluster is copied to the target physical host of target cluster by the migration process module of target cluster, Middle virtual-machine data include virtual machine xml configuration information and corresponding instance document, wherein instance document includes rear end mirror As file and delta file, these data will be stored in the corresponding fixed catalogue of target physical host;
The migration process module of target cluster calls the interface migrateToURI3 of libvirt by far call in source cluster, By virtual machine (vm) migration to specified target physical host, at this time the internal storage data of virtual machine also and then go over by migration;
The migration process module of target cluster is the virtual machine binding virtual machine network after migration, invocation target cluster Neutron(network management module) virtual machine network that is created in component binding step 5-4.
Step 5-6: migration process module carries out the cleaning operation after across cluster dynamic migration, comprising:
The migration process module of source cluster deletes the rear end image file, delta file and configuration text of source virtual machine in source cluster Part deletes source virtual machine network, including discharging actual Internet resources and deleting the network information in database, deletes database Middle source virtual machine information;
The migration process module of target cluster updates the state of migrated virtual machine in target cluster and database is written, and completes to move It moves;
In some optionally implementations of the present embodiment, the migrating data that virtual machine is related to include rear end image file, Increment image file and memory dynamic data, wherein sharing storage mode according to more clusters, i.e., multiple clusters share same A rear end storage, then rear end image file and increment image file are all storable in shared storage, then this in transition process Two kinds of data can not have to migration.
Across the cluster migration operation that current cluster is not supported can be completed through this embodiment, while on transit time It is not much different with cluster shifting of moving to the interior, and provides the good client operation page, reduces the cluster O&M of operation maintenance personnel Difficulty.
The redundancy ability that cluster can be improved through this embodiment excessively uses or generates collapse in some cluster resource In the case where, across cluster migration operation can be used virtual machine (vm) migration to other clusters in time, while can reach well To the effect of multiple cluster load balances.
The above is only the preferred embodiment of the present invention, it should be pointed out that for those skilled in the art, is not taking off Under the premise of from structure of the invention, various modifications and improvements can be made, these all will not influence the effect that the present invention is implemented And patent practicability, the technical solution of patent and its patent of invention design are subject to equivalent substitution or change according to the present invention, all Belong to the scope of protection of the patent of the present invention.

Claims (6)

1. a kind of across cluster moving method based on more openstack platforms, which is characterized in that the method includes following steps It is rapid:
S1, migration request of the virtual machine across cluster is received;
S2, scope check and condition inspection are carried out to migration request;
S3, the parameter requested according to virtual machine (vm) migration judge that migration is across cluster static migrating or across cluster dynamic migration, if It is across cluster static migrating, then carries out step S4, if across cluster dynamic migration then carries out step S5;
S4, the static migrating operation across cluster is carried out to virtual machine;
S5, the dynamic migration operation across cluster is carried out to virtual machine;
Migration results are returned into user after the completion of S6, migration.
2. across the cluster moving method of more openstack platforms according to claim 1, which is characterized in that step S2's Scope check includes whether the user of execution migration request possesses administrator right.
3. across the cluster moving method of more openstack platforms according to claim 1, which is characterized in that step S2's Condition inspection includes:
Whether the physical host in source cluster and target cluster exempts from mutually code key login;
Whether target cluster contains enough spatial contents, i.e. the remaining spatial content of target cluster is greater than virtual machine institute to be migrated The amount of capacity needed;
The hypervisor of the hypervisor of the physical host of target cluster and the source physical host where virtual machine whether phase Same version.
4. across the cluster moving method of more openstack platforms according to claim 1, which is characterized in that step S4 across The static migrating of cluster operate the following steps are included:
S4-1, source cluster is sent by across cluster static migrating request;
S4-2, source cluster carry out the preparation across cluster static migrating after receiving migration request, comprising:
Check whether virtual machine state is operation or shutdown, if operation then carries out power-off operation to virtual machine, if
Can not normal shutdown, then return to error message to user, and forbid executing across cluster static migrating;
Unload the virtual network interface of virtual machine binding;
S4-3, source cluster notice target cluster carry out across cluster static migrating;
S4-4, target cluster carry out the preparation across cluster static migrating after receiving migration request, comprising:
The target physical host of migration is selected according to the resource utilization of each physical host of target cluster, wherein resource utilization The utilization rate of utilization rate, memory including hard drive space and the utilization rate of Internet resources;
Create virtual machine network;
S4-5, the static migrating operation across cluster is carried out, comprising the following steps:
To the target physical host migration virtual-machine data of target cluster, data include the xml configuration information and phase of virtual machine The instance document answered, wherein instance document includes rear end image file and delta file;
Target cluster creates virtual machine by migrated virtual-machine data, while binding virtual machine network and opening virtual machine;
S4-6, migrated after cleaning operation, comprising:
In source, cluster deletes rear end image file, delta file and the configuration file of source virtual machine, deletes source virtual machine network, deletes Except source virtual machine information;
The state of migrated virtual machine is updated in target cluster and database is written, and completes migration.
5. across the cluster moving method of more openstack platforms according to claim 1, which is characterized in that step S5 across The dynamic migration of cluster operate the following steps are included:
S5-1, source cluster is sent by across cluster dynamic migration request;
S5-2, source cluster carry out the preparation across cluster dynamic migration after receiving migration request, comprising:
Check whether virtual machine state is operation or pause, if it is not, then forbidding carrying out across cluster dynamic migration operation, and handle The current status information of virtual machine returns to user;
Unload the virtual network interface of virtual machine binding;
S5-3, source cluster notice target cluster carry out across cluster dynamic migration;
S5-4, target cluster carry out the preparation across cluster dynamic migration after receiving migration request, comprising:
The target physical host of migration is selected according to the resource utilization of each physical host of target cluster, wherein resource utilization The utilization rate of utilization rate, memory including hard drive space and the utilization rate of Internet resources;
Create virtual machine network;
Virtual machine information is created, by the title of virtual machine, the detailed description of virtual machine, virtual machine specification size, virtual machine image The information such as information, virtual machine owning user and project are stored in database;
S5-5, the dynamic migration operation across cluster is carried out, comprising:
Virtual-machine data is copied to the corresponding position of target physical host, wherein virtual-machine data includes that the xml of virtual machine matches Confidence breath and corresponding instance document, wherein instance document includes rear end image file and delta file;
In source, cluster calls the interface migrateToURI3 of libvirt, by virtual machine (vm) migration to specified target physical host;
Virtual machine network is bound for the virtual machine after migration;
S5-6, migrated after cleaning operation, comprising:
In source, cluster deletes rear end image file, delta file and the configuration file of source virtual machine, deletes source virtual machine network, deletes Except source virtual machine information;
The state of migrated virtual machine is updated in target cluster and database is written, and completes migration.
6. a kind of across cluster migratory system based on more openstack platforms, which is characterized in that including client and server End;
Wherein the form of client includes but is not limited to web page end, the end app, computer desktop client;
Server end comprises the following modules:
Request processing module: the request sent for receiving user from client, and operating result is returned to client;
Message distribution module: for being requested to collection pocket transmission;
Communication tunnel module: mechanism is in communication with each other between cluster for establishing, and calls migration process module;
Migration process module: it is used for across cluster migration process, after the preparation migrated, execution transition process and migration Cleaning operation.
CN201811537913.1A 2018-12-15 2018-12-15 Across cluster moving method and system based on more OpenStack platforms Pending CN109814978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811537913.1A CN109814978A (en) 2018-12-15 2018-12-15 Across cluster moving method and system based on more OpenStack platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811537913.1A CN109814978A (en) 2018-12-15 2018-12-15 Across cluster moving method and system based on more OpenStack platforms

Publications (1)

Publication Number Publication Date
CN109814978A true CN109814978A (en) 2019-05-28

Family

ID=66602027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811537913.1A Pending CN109814978A (en) 2018-12-15 2018-12-15 Across cluster moving method and system based on more OpenStack platforms

Country Status (1)

Country Link
CN (1) CN109814978A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399201A (en) * 2019-06-28 2019-11-01 苏州浪潮智能科技有限公司 A kind of method, apparatus and cloud management platform of openstack calculate node host maintenance
CN110659109A (en) * 2019-09-26 2020-01-07 上海仪电(集团)有限公司中央研究院 Openstack cluster virtual machine monitoring system and method
CN111741068A (en) * 2020-05-20 2020-10-02 中国电子科技网络信息安全有限公司 Virtual machine mirror image chain key model and data encryption key transmission method thereof
CN111880905A (en) * 2020-08-03 2020-11-03 浪潮云信息技术股份公司 Method for migrating virtual machine across cell by openstack
CN112527452A (en) * 2020-12-03 2021-03-19 北京浪潮数据技术有限公司 Virtual machine migration method, device and medium across OpenStack
CN113268315A (en) * 2021-06-10 2021-08-17 郑州市景安网络科技股份有限公司 Online migration method for virtual host
CN114675938A (en) * 2022-04-21 2022-06-28 江苏安超云软件有限公司 Heterogeneous cluster virtual machine migration method and system and cloud platform
WO2024017274A1 (en) * 2022-07-22 2024-01-25 ***数智科技有限公司 Virtual machine cloning method and apparatus, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888417A (en) * 2012-12-21 2014-06-25 中国电信股份有限公司 Network switching method and system for virtual machine system migration
CN106126318A (en) * 2016-07-05 2016-11-16 云南大学 The dynamic migration method of virtual machine in a kind of Openstack cloud platform
US20170147399A1 (en) * 2015-11-25 2017-05-25 International Business Machines Corporation Policy-based virtual machine selection during an optimization cycle
CN107864055A (en) * 2017-10-31 2018-03-30 云宏信息科技股份有限公司 The management method and platform of virtualization system
CN108155988A (en) * 2017-12-22 2018-06-12 浪潮(北京)电子信息产业有限公司 A kind of moving method, device, equipment and readable storage medium storing program for executing for protecting key

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888417A (en) * 2012-12-21 2014-06-25 中国电信股份有限公司 Network switching method and system for virtual machine system migration
US20170147399A1 (en) * 2015-11-25 2017-05-25 International Business Machines Corporation Policy-based virtual machine selection during an optimization cycle
CN106126318A (en) * 2016-07-05 2016-11-16 云南大学 The dynamic migration method of virtual machine in a kind of Openstack cloud platform
CN107864055A (en) * 2017-10-31 2018-03-30 云宏信息科技股份有限公司 The management method and platform of virtualization system
CN108155988A (en) * 2017-12-22 2018-06-12 浪潮(北京)电子信息产业有限公司 A kind of moving method, device, equipment and readable storage medium storing program for executing for protecting key

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399201A (en) * 2019-06-28 2019-11-01 苏州浪潮智能科技有限公司 A kind of method, apparatus and cloud management platform of openstack calculate node host maintenance
CN110659109A (en) * 2019-09-26 2020-01-07 上海仪电(集团)有限公司中央研究院 Openstack cluster virtual machine monitoring system and method
CN110659109B (en) * 2019-09-26 2023-07-04 上海仪电(集团)有限公司中央研究院 System and method for monitoring openstack virtual machine
CN111741068A (en) * 2020-05-20 2020-10-02 中国电子科技网络信息安全有限公司 Virtual machine mirror image chain key model and data encryption key transmission method thereof
CN111741068B (en) * 2020-05-20 2022-03-18 中国电子科技网络信息安全有限公司 Data encryption key transmission method
CN111880905A (en) * 2020-08-03 2020-11-03 浪潮云信息技术股份公司 Method for migrating virtual machine across cell by openstack
CN112527452A (en) * 2020-12-03 2021-03-19 北京浪潮数据技术有限公司 Virtual machine migration method, device and medium across OpenStack
CN113268315A (en) * 2021-06-10 2021-08-17 郑州市景安网络科技股份有限公司 Online migration method for virtual host
CN114675938A (en) * 2022-04-21 2022-06-28 江苏安超云软件有限公司 Heterogeneous cluster virtual machine migration method and system and cloud platform
WO2024017274A1 (en) * 2022-07-22 2024-01-25 ***数智科技有限公司 Virtual machine cloning method and apparatus, and storage medium

Similar Documents

Publication Publication Date Title
CN109814978A (en) Across cluster moving method and system based on more OpenStack platforms
US11429442B2 (en) Parallel and distributed computing using multiple virtual machines
US10042628B2 (en) Automated upgrade system for a service-based distributed computer system
US10292044B2 (en) Apparatus for end-user transparent utilization of computational, storage, and network capacity of mobile devices, and associated methods
CN112104723B (en) Multi-cluster data processing system and method
CN107295096A (en) A kind of privately owned cloud computing service platform, management method and system
US10212045B2 (en) Method and system for testing and analyzing management servers
CN108076156A (en) A kind of mixing cloud system based on Chinese cloud product
US20190340057A1 (en) Methods and systems to compound alerts in a distributed computing system
CN107920117A (en) A kind of method for managing resource, control device and resource management system
KR20230024416A (en) Virtual Machine Migration Methods, Devices, Storage Media and Electronic Devices Between Cloud Platforms
Steketee et al. Implementation of process migration in amoeba
US20210311757A1 (en) Introspection into workloads running within virtual machines
Hossain et al. Active & Idle Virtual Machine Migration Algorithm-a new Ant Colony Optimization approach to consolidate Virtual Machines and ensure Green Cloud Computing
US8930967B2 (en) Shared versioned workload partitions
Liao et al. Towards virtualized desktop environment
Jeong et al. Dynamic offloading of web application execution using snapshot
US20200045050A1 (en) Reverse identity federation in distributed cloud systems
Wang et al. Developing a process in architecting microservice infrastructure with Docker, Kubernetes, and Istio
Calagna et al. Processing-aware migration model for stateful edge microservices
Hobbs et al. A remote process creation and execution facility supporting parallel execution on distributed systems
Rough et al. The development of an efficient checkpointing facility exploiting operating systems services of the GENESIS cluster operating system
CN115525425B (en) Federal learning calculation engine arrangement method and equipment based on cloud primordial technology
CN115118480B (en) Method and device for realizing split-weight split-domain function of Skyline system based on Openstack
Wufka et al. Overview of Cloud Computing

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: 20190528

RJ01 Rejection of invention patent application after publication