CN106844011A - A kind of cluster and its virtual machine migration method, system - Google Patents

A kind of cluster and its virtual machine migration method, system Download PDF

Info

Publication number
CN106844011A
CN106844011A CN201710057148.2A CN201710057148A CN106844011A CN 106844011 A CN106844011 A CN 106844011A CN 201710057148 A CN201710057148 A CN 201710057148A CN 106844011 A CN106844011 A CN 106844011A
Authority
CN
China
Prior art keywords
virtual machine
cluster
migration
rule
association rule
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
CN201710057148.2A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710057148.2A priority Critical patent/CN106844011A/en
Publication of CN106844011A publication Critical patent/CN106844011A/en
Pending legal-status Critical Current

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses a kind of cluster and its virtual machine migration method, system, the method includes:Virtual machine on each node in cluster is monitored in real time;If the position for monitoring target virtual machine changes, the virtual machine correlation rule for being created for target virtual machine in advance is obtained, obtain target association rule;Wherein, target virtual machine is any virtual machine in cluster, and virtual machine correlation rule is the rule being defined to the migration position of virtual machine;According to target association rule, corresponding migration operation is carried out to target virtual machine.The application is monitored in real time by the position to virtual machine, after the position for monitoring any virtual machine changes, virtual machine correlation rule corresponding with the virtual machine will be utilized, correspondingly migration operation is carried out to the virtual machine, data exchange process wrong between virtual machine application, further improves the data interaction performance of application program in cluster caused by can avoiding being changed due to virtual machine position.

Description

Cluster and virtual machine migration method and system thereof
Technical Field
The present invention relates to the field of cluster technologies, and in particular, to a cluster and a virtual machine migration method and system thereof.
Background
Currently, to reduce hardware cost, people gradually start to adopt virtualization technology to build computing node clusters. With the increasing number of applications on the virtualization platform where the cluster is located, the interaction between the applications is more compact, and at the same time, the data interaction performance requirements of users on the applications are higher and higher. How to further improve the data interaction performance of the applications in the cluster is a method to be solved at present.
Disclosure of Invention
In view of this, the present invention provides a cluster and a virtual machine migration method and system thereof, which can further improve data interaction performance of an application program in the cluster. The specific scheme is as follows:
a virtual machine migration method includes:
monitoring the virtual machine on each node in the cluster in real time;
if the position of a target virtual machine is monitored to change, acquiring a virtual machine association rule which is created for the target virtual machine in advance to obtain a target association rule; the target virtual machine is any virtual machine in the cluster, and the virtual machine association rule is a rule for defining the migration position of the virtual machine;
and carrying out corresponding migration operation on the target virtual machine according to the target association rule.
Optionally, the process of monitoring the virtual machine on each node in the cluster in real time includes:
and utilizing a pre-created virtual machine association migration service to monitor the virtual machine on each node in the cluster in real time.
Optionally, the creating process of the virtual machine federated migration service includes:
and creating the virtual machine associative migration service by utilizing a distributed resource scheduling program in the cluster.
Optionally, a virtual machine association rule corresponding to any virtual machine in the cluster is a virtual machine-virtual machine forward association rule or a virtual machine-virtual machine reverse association rule;
wherein the virtual machine-virtual machine positive association rule is a rule for specifying that a corresponding virtual machine is migrated to the same node in the cluster;
the virtual machine-virtual machine anti-association rule is a rule for specifying that a corresponding virtual machine is migrated to a different node in the cluster.
The invention also discloses a virtual machine migration system, which comprises:
the virtual machine monitoring module is used for monitoring the virtual machine on each node in the cluster in real time;
the rule acquisition module is used for acquiring a virtual machine association rule which is created for a target virtual machine in advance when the virtual machine monitoring module monitors that the position of the target virtual machine changes, so as to obtain a target association rule; the target virtual machine is any virtual machine in the cluster, and the virtual machine association rule is a rule for defining the migration position of the virtual machine;
and the virtual machine migration module is used for carrying out corresponding migration operation on the target virtual machine according to the target association rule.
Optionally, the virtual machine monitoring module includes:
the service creating unit is used for creating virtual machine association migration service in advance;
and the real-time monitoring unit is used for monitoring the virtual machines on each node in the cluster in real time by using the virtual machine association migration service.
Optionally, the service creating unit is configured to create the virtual machine federated migration service by using a distributed resource scheduler in the cluster.
Optionally, a virtual machine association rule corresponding to any virtual machine in the cluster is a virtual machine-virtual machine forward association rule or a virtual machine-virtual machine reverse association rule;
wherein the virtual machine-virtual machine positive association rule is a rule for specifying that a corresponding virtual machine is migrated to the same node in the cluster;
the virtual machine-virtual machine anti-association rule is a rule for specifying that a corresponding virtual machine is migrated to a different node in the cluster.
The invention further discloses a cluster which comprises the virtual machine migration system disclosed in the foregoing.
In the invention, the virtual machine migration method comprises the following steps: monitoring the virtual machine on each node in the cluster in real time; if the position of the target virtual machine is monitored to be changed, acquiring a virtual machine association rule which is created for the target virtual machine in advance to obtain a target association rule; the target virtual machine is any virtual machine in the cluster, and the virtual machine association rule is a rule for defining the migration position of the virtual machine; and carrying out corresponding migration operation on the target virtual machine according to the target association rule.
Therefore, the invention discloses a virtual machine migration method, which comprises the steps of monitoring the positions of virtual machines in a cluster in real time, and carrying out corresponding migration operation on the virtual machines by using virtual machine association rules corresponding to the virtual machines after monitoring that the positions of any virtual machines are changed, so that the wrong data interaction process between the application programs of the virtual machines caused by the position change of the virtual machines can be avoided, and the data interaction performance of the application programs in the cluster is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a virtual machine migration method according to an embodiment of the present invention;
fig. 2 is a flowchart of a specific virtual machine migration method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a virtual machine migration system according to an embodiment of 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.
The embodiment of the invention discloses a virtual machine migration method, which is shown in figure 1 and comprises the following steps:
step S11: and monitoring the virtual machines on each node in the cluster in real time.
It can be understood that, in the embodiment of the present invention, before step S11, a computing node cluster needs to be built based on a virtualization technology, so as to obtain the cluster in step S11.
Step S12: if the position of the target virtual machine is monitored to be changed, acquiring a virtual machine association rule which is created for the target virtual machine in advance to obtain a target association rule; the target virtual machine is any virtual machine in the cluster, and the virtual machine association rule is a rule for defining the migration position of the virtual machine.
Step S13: and carrying out corresponding migration operation on the target virtual machine according to the target association rule.
Therefore, the embodiment of the invention discloses a virtual machine migration method, which comprises the steps of monitoring the positions of virtual machines in a cluster in real time, and carrying out corresponding migration operation on the virtual machines by using virtual machine association rules corresponding to the virtual machines after monitoring that the positions of any virtual machines are changed, so that the wrong data interaction process between the application programs of the virtual machines caused by the position change of the virtual machines can be avoided.
Referring to fig. 2, an embodiment of the present invention discloses a specific virtual machine migration method, including the following steps:
step S21: and utilizing the pre-created virtual machine association migration service to monitor the virtual machine on each node in the cluster in real time.
In this embodiment, the creating process of the virtual machine association migration service specifically includes: the above-described virtual machine federated migration service is created using a Distributed Resource Scheduler (DRS) in the cluster.
Step S22: and if the position of the target virtual machine is monitored to be changed, acquiring a virtual machine association rule which is created for the target virtual machine in advance, and acquiring the target association rule.
It can be understood that, in practical applications, the location of the virtual machine may be changed due to a boot operation of the virtual machine and a migration operation of the virtual machine caused by an administrator human factor or an intelligent resource scheduling migration.
In addition, it should be further explained that the virtual machine association rule corresponding to any virtual machine in the cluster may specifically be a virtual machine-virtual machine positive association rule or a virtual machine-virtual machine negative association rule. The virtual machine-virtual machine positive association rule is a rule for stipulating that a corresponding virtual machine is migrated to the same node in the cluster; a virtual machine-to-virtual machine anti-association rule is a rule that specifies migrating a corresponding virtual machine to a different node in a cluster.
Step S23: and carrying out corresponding migration operation on the target virtual machine according to the target association rule.
Correspondingly, the embodiment of the present invention further discloses a virtual machine migration system, as shown in fig. 3, the system includes:
the virtual machine monitoring module 11 is configured to monitor a virtual machine on each node in the cluster in real time;
the rule obtaining module 12 is configured to, when the virtual machine monitoring module 11 monitors that the position of the target virtual machine changes, obtain a virtual machine association rule that is created in advance for the target virtual machine, and obtain a target association rule; the target virtual machine is any virtual machine in the cluster, and the virtual machine association rule is a rule for defining the migration position of the virtual machine;
and the virtual machine migration module 13 is configured to perform corresponding migration operation on the target virtual machine according to the target association rule.
Specifically, the virtual machine monitoring module includes a service creation unit and a real-time monitoring unit; wherein,
the service creating unit is used for creating virtual machine association migration service in advance;
and the real-time monitoring unit is used for monitoring the virtual machines on each node in the cluster in real time by using the virtual machine association migration service.
The service creation unit is specifically configured to create a virtual machine associated migration service by using a distributed resource scheduler in the cluster.
It should be further noted that the virtual machine association rule corresponding to any virtual machine in the cluster is a virtual machine-virtual machine positive association rule or a virtual machine-virtual machine negative association rule.
The virtual machine-virtual machine positive association rule is a rule for stipulating that a corresponding virtual machine is migrated to the same node in the cluster; a virtual machine-to-virtual machine anti-association rule is a rule that specifies migrating a corresponding virtual machine to a different node in a cluster.
Therefore, the embodiment of the invention monitors the positions of the virtual machines in the cluster in real time, and performs corresponding migration operation on the virtual machines by using the virtual machine association rule corresponding to any virtual machine after monitoring that the position of the virtual machine changes, so as to avoid the erroneous data interaction process between the virtual machine application programs caused by the change of the position of the virtual machine.
Further, an embodiment of the present invention further discloses a cluster, which includes the virtual machine migration system disclosed in the foregoing embodiment. For the specific structure of the system, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The cluster and the virtual machine migration method and system thereof provided by the invention are introduced in detail, and a specific example is applied in the description to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (9)

1. A virtual machine migration method is characterized by comprising the following steps:
monitoring the virtual machine on each node in the cluster in real time;
if the position of a target virtual machine is monitored to change, acquiring a virtual machine association rule which is created for the target virtual machine in advance to obtain a target association rule; the target virtual machine is any virtual machine in the cluster, and the virtual machine association rule is a rule for defining the migration position of the virtual machine;
and carrying out corresponding migration operation on the target virtual machine according to the target association rule.
2. The virtual machine migration method according to claim 1, wherein the process of monitoring the virtual machine on each node in the cluster in real time comprises:
and utilizing a pre-created virtual machine association migration service to monitor the virtual machine on each node in the cluster in real time.
3. The virtual machine migration method according to claim 2, wherein the creation process of the virtual machine federated migration service includes:
and creating the virtual machine associative migration service by utilizing a distributed resource scheduling program in the cluster.
4. The virtual machine migration method according to any one of claims 1 to 3,
the virtual machine association rule corresponding to any virtual machine in the cluster is a virtual machine-virtual machine positive association rule or a virtual machine-virtual machine negative association rule;
wherein the virtual machine-virtual machine positive association rule is a rule for specifying that a corresponding virtual machine is migrated to the same node in the cluster;
the virtual machine-virtual machine anti-association rule is a rule for specifying that a corresponding virtual machine is migrated to a different node in the cluster.
5. A virtual machine migration system, comprising:
the virtual machine monitoring module is used for monitoring the virtual machine on each node in the cluster in real time;
the rule acquisition module is used for acquiring a virtual machine association rule which is created for a target virtual machine in advance when the virtual machine monitoring module monitors that the position of the target virtual machine changes, so as to obtain a target association rule; the target virtual machine is any virtual machine in the cluster, and the virtual machine association rule is a rule for defining the migration position of the virtual machine;
and the virtual machine migration module is used for carrying out corresponding migration operation on the target virtual machine according to the target association rule.
6. The virtual machine migration system according to claim 5, wherein said virtual machine monitoring module comprises:
the service creating unit is used for creating virtual machine association migration service in advance;
and the real-time monitoring unit is used for monitoring the virtual machines on each node in the cluster in real time by using the virtual machine association migration service.
7. The virtual machine migration system according to claim 6,
the service creating unit is configured to create the virtual machine associated migration service by using a distributed resource scheduler in the cluster.
8. The virtual machine migration system according to any one of claims 5 to 7,
the virtual machine association rule corresponding to any virtual machine in the cluster is a virtual machine-virtual machine positive association rule or a virtual machine-virtual machine negative association rule;
wherein the virtual machine-virtual machine positive association rule is a rule for specifying that a corresponding virtual machine is migrated to the same node in the cluster;
the virtual machine-virtual machine anti-association rule is a rule for specifying that a corresponding virtual machine is migrated to a different node in the cluster.
9. A cluster comprising the virtual machine migration system according to any one of claims 5 to 8.
CN201710057148.2A 2017-01-23 2017-01-23 A kind of cluster and its virtual machine migration method, system Pending CN106844011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710057148.2A CN106844011A (en) 2017-01-23 2017-01-23 A kind of cluster and its virtual machine migration method, system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710057148.2A CN106844011A (en) 2017-01-23 2017-01-23 A kind of cluster and its virtual machine migration method, system

Publications (1)

Publication Number Publication Date
CN106844011A true CN106844011A (en) 2017-06-13

Family

ID=59122475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710057148.2A Pending CN106844011A (en) 2017-01-23 2017-01-23 A kind of cluster and its virtual machine migration method, system

Country Status (1)

Country Link
CN (1) CN106844011A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189556A (en) * 2018-08-29 2019-01-11 郑州云海信息技术有限公司 A kind of compatibility rule conflict monitoring method and device based on load balancing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078870A (en) * 2013-01-18 2013-05-01 浪潮电子信息产业股份有限公司 Correlating-anti-correlating system and method for virtual machine in cloud data center operation system
CN103617070A (en) * 2013-11-27 2014-03-05 华为技术有限公司 Virtual machine migration method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078870A (en) * 2013-01-18 2013-05-01 浪潮电子信息产业股份有限公司 Correlating-anti-correlating system and method for virtual machine in cloud data center operation system
CN103617070A (en) * 2013-11-27 2014-03-05 华为技术有限公司 Virtual machine migration method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189556A (en) * 2018-08-29 2019-01-11 郑州云海信息技术有限公司 A kind of compatibility rule conflict monitoring method and device based on load balancing

Similar Documents

Publication Publication Date Title
US11704144B2 (en) Creating virtual machine groups based on request
CN110865867B (en) Method, device and system for discovering application topological relation
Beloglazov et al. OpenStack Neat: a framework for dynamic and energy‐efficient consolidation of virtual machines in OpenStack clouds
US10489343B2 (en) Cluster file system comprising data mover modules having associated quota manager for managing back-end user quotas
Ahmad et al. A survey on virtual machine migration and server consolidation frameworks for cloud data centers
EP3364623B1 (en) Method for automatically deploying application, and cloud management node
CN110083455B (en) Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment
KR101939075B1 (en) eng
US20140149590A1 (en) Scaling computing clusters in a distributed computing system
US11232009B2 (en) Model-based key performance indicator service for data analytics processing platforms
EP3191954A2 (en) Load balancing of cloned virtual machines
WO2015066979A1 (en) Machine learning method for mapreduce task resource configuration parameters
US9678984B2 (en) File access for applications deployed in a cloud environment
KR20140055288A (en) System and method for providing data analysis service in cloud environment
US20150019722A1 (en) Determining, managing and deploying an application topology in a virtual environment
TW201347459A (en) Management method and system using the same
CN109960579B (en) Method and device for adjusting service container
CN111104548B (en) Data feedback method, system and storage medium
CN105100180A (en) Cluster node dynamic loading method, device and system
CN106844011A (en) A kind of cluster and its virtual machine migration method, system
US11080079B2 (en) Autonomously reproducing and destructing virtual machines
CN117093375A (en) Server scheduling method, device, equipment and storage medium
CN110868330B (en) Evaluation method, device and evaluation system for CPU resources which can be divided by cloud platform
CN106155782B (en) Virtual machine migration method and device
Cano et al. ADARES: adaptive resource management for virtual machines

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613