CN108958889A - The management method and device of virtual machine in cloud data system - Google Patents

The management method and device of virtual machine in cloud data system Download PDF

Info

Publication number
CN108958889A
CN108958889A CN201810763840.1A CN201810763840A CN108958889A CN 108958889 A CN108958889 A CN 108958889A CN 201810763840 A CN201810763840 A CN 201810763840A CN 108958889 A CN108958889 A CN 108958889A
Authority
CN
China
Prior art keywords
host
virtual machine
managed
system upgrade
migration
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
CN201810763840.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.)
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 CN201810763840.1A priority Critical patent/CN108958889A/en
Publication of CN108958889A publication Critical patent/CN108958889A/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
    • 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
    • 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/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses the management methods and device of virtual machine in a kind of cloud data system.The described method includes: before system upgrade starts, being obtained in the cluster or data center just in running order virtual machine when cluster or data center carry out system upgrade where receiving virtual machine;Determine the host to be managed for running the virtual machine;Control does not have at virtual machine in working condition on the host to be managed in system upgrade starts the period terminated to system upgrade and restores after system upgrade on the host to be managed at virtual machine in working condition.

Description

The management method and device of virtual machine in cloud data system
Technical field
The present invention relates to field of information processing, the management method and device of virtual machine in espespecially a kind of cloud data system.
Background technique
Cloud computing (cloud computing) is the increase, use and delivery mode of related service Internet-based, is led to Often it is related to providing the resource of dynamic easily extension and often virtualization by internet.Cloud is a kind of ratio of network, internet Explain saying.Past often indicates telecommunications network in figure with cloud, also is used to indicate the pumping of internet and underlying infrastructure later As.Therefore, cloud computing even can allow you to experience the operational capability of 10 trillion times per second, and possessing so powerful computing capability can With simulated-nuclear explosion, Prediction of Climate Change and market trend.User accesses number by modes such as computer, notebook, mobile phones According to center, operation is carried out by the demand of oneself.
Definition to cloud computing, well accepted at this stage is National Institute of Standards and Technology's definition: cloud computing It is a kind of mode paid by usage amount, this mode provides available, convenient and fast, on-demand network access, into configurable Computing resources shared pool, wherein resource includes network, server, storage, application software and service etc., these resources can be by It quickly provides, only need to put into seldom management work, or carry out seldom interaction with service supplier.In Constructing data center Initial stage be mainly complete network, calculating, storage are built, construct unified resource management platform, complete the unitized pipe of resource Reason and autonomous service;User gradually pays close attention to the real service condition of resource in subsequent development process, preferably to plan The use of resource and control resource.
Nowadays increasingly mature with virtualization technology, become in server admin field virtualization product and becomes more and more important Management tool, and with the update of technology or the continuous evolution of business function, so that virtualization product is continuously updated, such as Smooth upgrade is where carried out between different virtualization products to be just particularly important.
Realize process of the present invention in, inventor discovery the prior art has the following problems:
Host may be needed to restart in escalation process, or some cases such as network interruption occur, will lead to and transported on host Capable virtual machine is closed or service disconnection, cause user's application can not normal use, so that influencing user can not work, Cause irreparable damage.In system upgrade work, how the virtual machine being currently running is managed, guarantees virtual machine Normal operation be a problem to be solved.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides the management methods and dress of virtual machine in a kind of cloud data system It sets, in system upgrade work, the virtual machine being currently running is managed, guarantees the normal operation of virtual machine.
In order to reach the object of the invention, the present invention provides a kind of management methods of virtual machine in cloud data system, comprising:
When cluster or data center carry out system upgrade where receiving virtual machine, before system upgrade starts, obtain Just in running order virtual machine in the cluster or data center;
Determine the host to be managed for running the virtual machine;
Control starts do not have virtual machine on the host to be managed in the period terminated to system upgrade in system upgrade It is in working condition and restores on the host to be managed after system upgrade at virtual machine in working condition.
Wherein, the method also has a characteristic that the control when system upgrade starts to system upgrade to terminate Between there is no in section virtual machine to be in working condition on the host to be managed and restore described to pipe after system upgrade Virtual machine is in working condition on reason host, comprising:
Before carrying out system upgrade to the host to be managed, control the host to be managed since system upgrade to It is in close state in the period that system upgrade terminates, and records the information for the virtual machine closed on each host to be managed;
After the completion of detecting to the host progress system upgrade to be managed, according on each of record host to be managed The information of the virtual machine of closing starts corresponding virtual machine on the host to be managed.
Wherein, the method also has a characteristic that the control when system upgrade starts to system upgrade to terminate Between there is no in section virtual machine to be in working condition on the host to be managed and restore described to pipe after system upgrade Virtual machine is in working condition on reason host, comprising:
Before treating managing main frame and carrying out updating operation, by the in running order virtual machine on the host to be managed The source for migrating other hosts into the cluster or data center, and recording every virtual machine where before executing migration operation Host and the destination host where after migration operation, obtain the corresponding relationship of virtual machine, source host and destination host;
After the completion of detecting that the in running order virtual machine on the host to be managed all migrates, control allows pair The host to be managed carries out updating operation;
After the completion of detecting the updating operation of the host to be managed, according to the information of the host to be managed, determine There are the destination host of corresponding relationship and virtual machines with the host to be managed;According to the corresponding relationship, from the target master Machine is by the virtual machine (vm) migration to the host to be managed;
After the completion of operation of the virtual machine (vm) migration to the host to be managed, start the virtual machine.
Wherein, the method also has a characteristic that the in running order void by the host to be managed Quasi- machine migrates other hosts into the cluster or data center, comprising:
Determine that the in running order virtual machine at least two hosts to be managed executes corresponding to migration operation Destination host;
According to determining destination host, by the in running order virtual machine on the host to be managed migrate in batches to Corresponding destination host.
Wherein, the method, which also has a characteristic that, is in work on the determination at least two host to be managed The virtual machine for making state executes destination host corresponding to migration operation, comprising:
From selected in the cluster or data center a host as in running order virtual on host to be managed Machine executes corresponding destination host when migration operation, obtains the pairing relationship of the virtual machine and destination host;
According to the resource consumption information of the virtual machine, the mesh after the virtual machine (vm) migration to the destination host is calculated Mark the remaining resource information of host;
After the completion of calculating, it is further continued for judging whether next virtual machine can migrate to its of the cluster or data center His host, until the virtual machine of all operations all finds available destination host.
The managing device of virtual machine in a kind of cloud data system, comprising:
Module is obtained, when carrying out system upgrade for the cluster where receiving virtual machine or data center, in system liter Before grade starts, obtain in the cluster or data center just in running order virtual machine;
Determining module, for determining the host to be managed for running the virtual machine;
Control module starts the host to be managed in the period terminated to system upgrade in system upgrade for controlling Upper no virtual machine is in working condition and restores on the host to be managed after system upgrade at virtual machine in work Make state.
Wherein, described device also has a characteristic that the control module includes:
Submodule is managed before upgrading, for controlling described to be managed before carrying out system upgrade to the host to be managed Host is in close state since within the period terminated system upgrade to system upgrade, and records each host to be managed The information of the virtual machine of upper closing;
Submodule is managed after upgrading, for detect system upgrade is carried out to the host to be managed after the completion of, according to The information for the virtual machine closed on each of record host to be managed, starts corresponding virtual machine on the host to be managed.
Wherein, described device also has a characteristic that the control module includes:
First management submodule, for treat managing main frame carry out updating operation before, will be on the host to be managed Other hosts of in running order virtual machine (vm) migration into the cluster or data center, and record every virtual machine and holding Source host where before row migration operation and the destination host where after migration operation, obtain virtual machine, source host and target The corresponding relationship of host;
Control submodule, for detecting that the in running order virtual machine on the host to be managed all migrated Cheng Hou, control allow to carry out updating operation to the host to be managed;
Migration management submodule, for after the completion of detecting the updating operation of the host to be managed, according to it is described to The information of managing main frame determines that there are the destination host of corresponding relationship and virtual machines with the host to be managed;According to described right It should be related to, from the destination host by the virtual machine (vm) migration to the host to be managed;
Second management submodule, for starting after the completion of operation of the virtual machine (vm) migration to the host to be managed The virtual machine.
Wherein, described device also has a characteristic that the first management submodule includes:
Determination unit, the in running order virtual machine execution for determining at least two hosts to be managed are moved Move the corresponding destination host of operation;
Migration units, for according to determining destination host, by the in running order void on the host to be managed Quasi- machine is migrated in batches to corresponding destination host.
Wherein, described device also has a characteristic that the determination unit includes:
Judgment sub-unit, for from selected in the cluster or data center a host as being on host to be managed The virtual machine of working condition executes corresponding destination host when migration operation, and the pairing for obtaining the virtual machine and destination host is closed System;
Computation subunit calculates the virtual machine (vm) migration to described for the resource consumption information according to the virtual machine The remaining resource information of the destination host after destination host;
Subelement is controlled, for being further continued for judging whether next virtual machine can migrate to the collection after the completion of calculating Other hosts of group or data center, until the virtual machine of all operations all finds available destination host.
Embodiment provided by the invention, when cluster or data center carry out system upgrade where receiving virtual machine, Before system upgrade starts, obtains in the cluster or data center just in running order virtual machine, determine described in operation The host to be managed of virtual machine, then control and start the host to be managed in the period terminated to system upgrade in system upgrade Upper no virtual machine is in working condition and restores on the host to be managed after system upgrade at virtual machine in work Make state to be managed the virtual machine being currently running, guarantees that the normal operation of virtual machine is completed to empty fortune automatically before upgrading Capable virtual machine operations, and start the virtual machine being automatically closed automatically after upgrading successfully, to solve to need in escalation process Restart host, the virtual machine for perhaps occurring to run on the caused hosts of some cases such as network interruption is closed or business The problem of interruption, realizes the purpose of smooth upgrade, guarantees the normal operation of virtual machine, improves the competitiveness of product.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the management method of virtual machine in cloud data system provided by the invention;
Fig. 2 is the flow chart of virtual machine management method provided by the invention;
Fig. 3 is the structure chart of the managing device of virtual machine in cloud data system provided by the invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Fig. 1 is the flow chart of the management method of virtual machine in cloud data system provided by the invention.Method packet shown in Fig. 1 It includes:
Step 101, when receiving cluster where virtual machine or data center carries out system upgrade, start in system upgrade Before, it obtains in the cluster or data center just in running order virtual machine;
Step 102 determines the host to be managed for running the virtual machine;
Step 103, control start not having on the host to be managed in the period terminated to system upgrade in system upgrade There is virtual machine to be in working condition and restore on the host to be managed after system upgrade at virtual machine in work shape State.
Embodiment of the method provided by the invention, cluster or data center carry out system upgrade where receiving virtual machine When, before system upgrade starts, obtains in the cluster or data center just in running order virtual machine, determine operation The host to be managed of the virtual machine, then control start in system upgrade it is described to be managed in the period terminated to system upgrade Do not have to restore on the host to be managed at virtual machine in working condition at virtual machine and after system upgrade on host The virtual machine being currently running is managed in working condition, guarantees that the normal operation of virtual machine is automatic clear before upgrading in completion Virtual machine operations of dry running, and start the virtual machine being automatically closed automatically after upgrading successfully, with solve can in escalation process Can need to restart host, the virtual machine for perhaps occurring to run on the caused host of some cases such as network interruption be closed or The problem of service disconnection, realizes the purpose of smooth upgrade, guarantees the normal operation of virtual machine, improves the competitiveness of product.
Embodiment of the method provided by the invention is described further below:
The present invention is based on the virtual machine methods for emptying operation before upgrading in kind of virtualization system automatically, and this method passes through automatic It closes virtual machine or by the mode of the migration of the virtual machine of operations all on host, the virtual machine just in working condition is protected Shield, the virtual machine being automatically closed is opened after upgrading successfully, realizes the smooth transition of upgrading.
The first processing mode provided by the invention:
The control starts do not have void in the period terminated to system upgrade on the host to be managed in system upgrade Quasi- machine is in working condition and restores on the host to be managed after system upgrade at virtual machine in working condition, packet It includes:
Before carrying out system upgrade to the host to be managed, control the host to be managed since system upgrade to It is in close state in the period that system upgrade terminates, and records the information for the virtual machine closed on each host to be managed;
After the completion of detecting to the host progress system upgrade to be managed, according on each of record host to be managed The information of the virtual machine of closing starts corresponding virtual machine on the host to be managed.
For example, virtual machine in running order in cluster is virtual machine 1, virtual machine 2, virtual machine 3, virtual machine 4 With virtual machine 5, wherein virtual machine 1 and virtual machine 2 are on host a, and virtual machine 3 and virtual machine 4 are on host b, and virtual machine 5 is in master On machine c.
Before carrying out system upgrade to the host to be managed, the corresponding relationship of virtual machine and host, i.e. virtual machine 1 are recorded With 2 corresponding host a of virtual machine, virtual machine 3 and virtual machine 4 corresponding host b, 5 corresponding host c of virtual machine, and close host a, master Machine b and host c.
After the completion of system upgrade, according to the corresponding relationship of record, start host a, host b and host c, and will be on host Virtual machine starting.
By the above-mentioned means, can guarantee the work of virtual machine just to avoid virtual machine business with the generation of accidental interruption Often operation.
Second of processing mode provided by the invention:
Wherein, the method also has a characteristic that the control when system upgrade starts to system upgrade to terminate Between there is no in section virtual machine to be in working condition on the host to be managed and restore described to pipe after system upgrade Virtual machine is in working condition on reason host, comprising:
Before treating managing main frame and carrying out updating operation, by the in running order virtual machine on the host to be managed The source for migrating other hosts into the cluster or data center, and recording every virtual machine where before executing migration operation Host and the destination host where after migration operation, obtain the corresponding relationship of virtual machine, source host and destination host;
After the completion of detecting that the in running order virtual machine on the host to be managed all migrates, control allows pair The host to be managed carries out updating operation;
After the completion of detecting the updating operation of the host to be managed, according to the information of the host to be managed, determine There are the destination host of corresponding relationship and virtual machines with the host to be managed;According to the corresponding relationship, from the target master Machine is by the virtual machine (vm) migration to the host to be managed;
After the completion of operation of the virtual machine (vm) migration to the host to be managed, start the virtual machine.
Still it is illustrated with given example above:
As unit of host, judge whether the virtual machine on host can migrate to other hosts of cluster or data center On, if the virtual machine on the host can move on other hosts, such as by host 1 virtual machine 1 and virtual machine 2 move It moves on on host 4, after moving to the success of host 4, records the pairing relationship of virtual machine 1 and host 4, and record virtual machine 1 From host 1;Similarly the processing of virtual machine 2 is with virtual machine 1, and details are not described herein again.
On host virtual machine 1 and virtual machine 2 all migrate after the completion of, notice to host 1 carry out updating operation;
It, will further according to the corresponding relationship of 1 three of the virtual machine 1 of record, host 4 and host after the completion of upgrading on host 1 Virtual machine 1 is back to virtual machine 1 from the migration of virtual machine 4, and similarly the processing of virtual machine 2 is with virtual machine 1, and details are not described herein again.
After virtual machine 1 and virtual machine 2 all move back to host 1, restart virtual machine 1 and virtual machine 2.
Unlike first way, during system upgrade, virtual machine handles always working condition, ensure that industry The continuity of business equally also achieves the smooth transition of upgrading.
Wherein, the in running order virtual machine (vm) migration by the host to be managed is to the cluster or data Other hosts in center, comprising:
Determine that the in running order virtual machine at least two hosts to be managed executes corresponding to migration operation Destination host;
According to determining destination host, by the in running order virtual machine on the host to be managed migrate in batches to Corresponding destination host.
Specifically, we can determine the destination host to be migrated of the virtual machine on host in batches, further according to determining mesh Host is marked, the in running order virtual machine on the host to be managed is migrated in batches to corresponding destination host.
For example, host 1, host 2 destination host corresponding with virtual machine on host 3 can be determined in batches, for example, empty Quasi- machine 1 and the corresponding destination host of virtual machine 2 are host 4, and virtual machine 3, virtual machine 4 and the corresponding destination host of virtual machine 5 are Host 5.
During realization, it can be migrated by batch twice, for the first time move virtual machine 1, virtual machine 2 and virtual machine 3 Virtual machine 4 is moved to, for the second time again migrates virtual machine 4 and virtual machine 5 to virtual machine 5.5 virtual machines are divided into 2 row batches Migration, can effective operating efficiency.
On determining the host to be managed after the corresponding destination host of virtual machine, by migrating in batches, can effectively it mention High migration velocity shortens the operating time.
Wherein, the in running order virtual machine on the determination at least two host to be managed executes migration behaviour Make corresponding destination host, comprising:
From selected in the cluster or data center a host as in running order virtual on host to be managed Machine executes corresponding destination host when migration operation, obtains the pairing relationship of the virtual machine and destination host;
According to the resource consumption information of the virtual machine, the mesh after the virtual machine (vm) migration to the destination host is calculated Mark the remaining resource information of host;
After the completion of calculating, it is further continued for judging whether next virtual machine can migrate to its of the cluster or data center His host, until the virtual machine of all operations all finds available destination host.
It is realized it should be noted that the calculating of resource migration can use the prior art, details are not described herein again.
Before realizing progress migration operation, the present invention carries out the calculating of resource using above-mentioned algorithm, can judge void in advance Whether the realization rate of quasi- machine migration feasible, confirm it is feasible after, then carry out migration operation, provided for migration operation operate according to According to.
Fig. 2 is the flow chart of virtual machine management method provided by the invention.Method shown in Fig. 2 includes:
User uploads first or downloading upgrade package selects a cluster or data center to upgrade, it will usually include multiple Host, upgrade package requires to empty virtual machine automatically, while having the virtual machine of operation on host, may require that user selects on interface Automatically it empties virtual machine mode and just triggers upgrading task, specific implementation process is such as after user's selection is automatically closed or migrates Under:
1) user uploads first or downloading upgrade package selects a cluster or data center to upgrade, it will usually include more A host, upgrade package requires to empty virtual machine automatically, while having the virtual machine of operation on host, may require that user selects on interface It selects and empties virtual machine mode automatically, after user's selection is automatically closed or migrates, just trigger upgrading task;
If 2) 1) selected to be automatically closed, appointing for power supply, is closed into the virtual machine triggering for upgrading all operations on host Business, and logger task ID is to eligible task list;
If 3) 1) selected Autonomic Migration Framework, the migration information of the virtual machine of all operations first in calculating main frame, i.e., Virtual machine ID and destination host unpaired message, judge whether virtual machine has transition condition, identity set is (in cluster or data The heart) in the presence or absence of for migration host, after pairing, host memory need plus pairing virtual machine after, be further continued for judging Next virtual machine, until the virtual machine of all operations all finds available destination host, remigration information list;If certain One virtual machine does not have transition condition, then upgrades mission failure;
4) after running succeeded, migration task is triggered according to migration information list, triggers the migration information of different hosts every time, After the completion of equal migrations, the virtual machine of operation has not been migrated, and continues to trigger remaining migration task;
5) after upgrading successfully, if empty that mode selects automatically is that virtual machine is automatically closed, starting is automatic one by one is closed The virtual machine closed
In the above-mentioned methods, the side of two kinds of virtual machines for emptying operation automatically can be selected by user at system upgrade interface Formula,;
The virtual machine for often emptying (closing or migration) operation conveniently exists in the newly-increased record of eligible task list After upgrading successfully, the operation for running virtual machine is emptied before carrying out recovery upgrading, virtual machine is automatically closed and needs after upgrading successfully The virtual machine closed is restarted, Autonomic Migration Framework virtual machine does not need to restore the migration operation before upgrading after upgrading successfully.
Wherein, moving moves the migration information for needing to calculate the virtual machine of all operations before upgrading, if there is a void Quasi- machine can not migrate, then upgrade mission failure.Meanwhile to guarantee to make full use of host resource, a host can control simultaneously Allow the Limited Number system of migration task, so the migration of same host needs serial execution, the migration between different hosts It can concurrently execute.
Application example provided by the invention empties the virtual machine operations of operation automatically before upgrading, and after upgrading successfully Automatically start the virtual machine being automatically closed, to solve to need to restart host in escalation process, or network interruption occurs etc. Some cases, the virtual machine run on caused host is closed or service disconnection, thus user's application can not normal use, It can not work normally to influence user, cause irreparable damage, be also used as smooth upgrade necessary functions, improve product Competitiveness.
Fig. 3 is the structure chart of the managing device of virtual machine in cloud data system provided by the invention.Fig. 3 shown device, packet It includes:
Module 301 is obtained, when carrying out system upgrade for the cluster where receiving virtual machine or data center, in system Before upgrading starts, obtain in the cluster or data center just in running order virtual machine;
Determining module 302, for determining the host to be managed for running the virtual machine;
Control module 303, for control start in system upgrade it is described to be managed in the period terminated to system upgrade Do not have to restore on the host to be managed at virtual machine in working condition at virtual machine and after system upgrade on host In working condition.
It is provided in an Installation practice in the present invention, the control module 303 includes:
Submodule is managed before upgrading, for controlling described to be managed before carrying out system upgrade to the host to be managed Host is in close state since within the period terminated system upgrade to system upgrade, and records each host to be managed The information of the virtual machine of upper closing;
Submodule is managed after upgrading, for detect system upgrade is carried out to the host to be managed after the completion of, according to The information for the virtual machine closed on each of record host to be managed, starts corresponding virtual machine on the host to be managed.
It is provided in an Installation practice in the present invention, the control module 303 includes:
First management submodule, for treat managing main frame carry out updating operation before, will be on the host to be managed Other hosts of in running order virtual machine (vm) migration into the cluster or data center, and record every virtual machine and holding Source host where before row migration operation and the destination host where after migration operation, obtain virtual machine, source host and target The corresponding relationship of host;
Control submodule, for detecting that the in running order virtual machine on the host to be managed all migrated Cheng Hou, control allow to carry out updating operation to the host to be managed;
Migration management submodule, for after the completion of detecting the updating operation of the host to be managed, according to it is described to The information of managing main frame determines that there are the destination host of corresponding relationship and virtual machines with the host to be managed;According to described right It should be related to, from the destination host by the virtual machine (vm) migration to the host to be managed;
Second management submodule, for starting after the completion of operation of the virtual machine (vm) migration to the host to be managed The virtual machine.
It is provided in an Installation practice in the present invention, the first management submodule includes:
Determination unit, the in running order virtual machine execution for determining at least two hosts to be managed are moved Move the corresponding destination host of operation;
Migration units, for according to determining destination host, by the in running order void on the host to be managed Quasi- machine is migrated in batches to corresponding destination host.
It is provided in an Installation practice in the present invention, the determination unit includes:
Judgment sub-unit, for from selected in the cluster or data center a host as being on host to be managed The virtual machine of working condition executes corresponding destination host when migration operation, and the pairing for obtaining the virtual machine and destination host is closed System;
Computation subunit calculates the virtual machine (vm) migration to described for the resource consumption information according to the virtual machine The remaining resource information of the destination host after destination host;
Subelement is controlled, for being further continued for judging whether next virtual machine can migrate to the collection after the completion of calculating Other hosts of group or data center, until the virtual machine of all operations all finds available destination host.
Installation practice provided by the invention, cluster or data center carry out system upgrade where receiving virtual machine When, before system upgrade starts, obtains in the cluster or data center just in running order virtual machine, determine operation The host to be managed of the virtual machine, then control start in system upgrade it is described to be managed in the period terminated to system upgrade Do not have to restore on the host to be managed at virtual machine in working condition at virtual machine and after system upgrade on host The virtual machine being currently running is managed in working condition, guarantees that the normal operation of virtual machine is automatic clear before upgrading in completion Virtual machine operations of dry running, and start the virtual machine being automatically closed automatically after upgrading successfully, with solve can in escalation process Can need to restart host, the virtual machine for perhaps occurring to run on the caused host of some cases such as network interruption be closed or The problem of service disconnection, realizes the purpose of smooth upgrade, guarantees the normal operation of virtual machine, improves the competitiveness of product.
Those of ordinary skill in the art will appreciate that computer journey can be used in all or part of the steps of above-described embodiment Sequence process realizes that the computer program can be stored in a computer readable storage medium, the computer program exists (such as system, unit, device) executes on corresponding hardware platform, when being executed, include the steps that embodiment of the method it One or combinations thereof.
Optionally, integrated circuit can be used also to realize in all or part of the steps of above-described embodiment, these steps can To be fabricated to integrated circuit modules one by one respectively, or make multiple modules or steps in them to single integrated electricity Road module is realized.In this way, the present invention is not limited to any specific hardware and softwares to combine.
Each device/functional module/functional unit in above-described embodiment, which can be adopted, is realized with general computing device realization, it Can be concentrated on a single computing device, can also be distributed over a network of multiple computing devices.
Each device/functional module/functional unit in above-described embodiment realized in the form of software function module and as Independent product when selling or using, can store in a computer readable storage medium.Computer mentioned above Read/write memory medium can be read-only memory, disk or CD etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to protection scope described in claim.

Claims (10)

1. the management method of virtual machine in a kind of cloud data system characterized by comprising
When cluster or data center carry out system upgrade where receiving virtual machine, before system upgrade starts, described in acquisition Just in running order virtual machine in cluster or data center;
Determine the host to be managed for running the virtual machine;
Control system upgrade start not have on the host to be managed in the period terminated to system upgrade at virtual machine Working condition and restore on the host to be managed after system upgrade at virtual machine in working condition.
2. the method according to claim 1, wherein the control starts to system upgrade to terminate in system upgrade Period in there is no on the host to be managed virtual machine to be in working condition and described in restoring after system upgrade Virtual machine is in working condition on host to be managed, comprising:
Before carrying out system upgrade to the host to be managed, control the host to be managed since system upgrade to system Upgrade and be in close state in the period terminated, and records the information for the virtual machine closed on each host to be managed;
After the completion of detecting to the host progress system upgrade to be managed, closed according on each of record host to be managed Virtual machine information, start corresponding virtual machine on the host to be managed.
3. the method according to claim 1, wherein the control starts to system upgrade to terminate in system upgrade Period in there is no on the host to be managed virtual machine to be in working condition and described in restoring after system upgrade Virtual machine is in working condition on host to be managed, comprising:
Before treating managing main frame and carrying out updating operation, by the in running order virtual machine (vm) migration on the host to be managed Other hosts into the cluster or data center, and the source host for recording every virtual machine where before executing migration operation With the destination host at the place after migration operation, the corresponding relationship of virtual machine, source host and destination host is obtained;
After the completion of detecting that the in running order virtual machine on the host to be managed all migrates, control allows to described Host to be managed carries out updating operation;
After the completion of detecting the updating operation of the host to be managed, according to the information of the host to be managed, determining and institute Stating host to be managed, there are the destination host of corresponding relationship and virtual machines;It, will from the destination host according to the corresponding relationship The virtual machine (vm) migration is to the host to be managed;
After the completion of operation of the virtual machine (vm) migration to the host to be managed, start the virtual machine.
4. according to the method described in claim 3, it is characterized in that, described will be in running order on the host to be managed Other hosts into the cluster or data center of virtual machine (vm) migration, comprising:
Determine that the in running order virtual machine at least two hosts to be managed executes mesh corresponding to migration operation Mark host;
According to determining destination host, the in running order virtual machine on the host to be managed is migrated in batches to correspondence Destination host.
5. according to the method described in claim 4, it is characterized in that, place on the host to be managed of the determination at least two Destination host corresponding to migration operation is executed in the virtual machine of working condition, comprising:
From selecting a host to hold in the cluster or data center as virtual machine in running order on host to be managed Corresponding destination host when row migration operation, obtains the pairing relationship of the virtual machine and destination host;
According to the resource consumption information of the virtual machine, the target master after the virtual machine (vm) migration to the destination host is calculated The remaining resource information of machine;
After the completion of calculating, it is further continued for judging whether next virtual machine can migrate to other of the cluster or data center master Machine, until the virtual machine of all operations all finds available destination host.
6. the managing device of virtual machine in a kind of cloud data system characterized by comprising
Module is obtained, when carrying out system upgrade for the cluster where receiving virtual machine or data center, is opened in system upgrade Before beginning, obtain in the cluster or data center just in running order virtual machine;
Determining module, for determining the host to be managed for running the virtual machine;
Control module starts not having on the host to be managed in the period terminated to system upgrade for controlling in system upgrade There is virtual machine to be in working condition and restore on the host to be managed after system upgrade at virtual machine in work shape State.
7. device according to claim 6, which is characterized in that the control module includes:
Submodule is managed before upgrading, for controlling the host to be managed before carrying out system upgrade to the host to be managed It is in close state since within the period terminated system upgrade to system upgrade, and records and closed on each host to be managed The information of the virtual machine closed;
Submodule is managed after upgrading, for detect system upgrade is carried out to the host to be managed after the completion of, according to record Each of the information of virtual machine closed on host to be managed, start corresponding virtual machine on the host to be managed.
8. device according to claim 6, which is characterized in that the control module includes:
First management submodule, for treat managing main frame carry out updating operation before, by being on the host to be managed Other hosts of the virtual machine (vm) migration of working condition into the cluster or data center, and record every virtual machine and moved in execution The source host and the destination host where after migration operation for moving the preceding place of operation, obtain virtual machine, source host and destination host Corresponding relationship;
Control submodule, for detecting that the in running order virtual machine on the host to be managed all migrates completion Afterwards, control allows to carry out updating operation to the host to be managed;
Migration management submodule, for after the completion of detecting the updating operation of the host to be managed, according to described to be managed The information of host determines that there are the destination host of corresponding relationship and virtual machines with the host to be managed;According to the corresponding pass System, from the destination host by the virtual machine (vm) migration to the host to be managed;
Second management submodule, for after the completion of operation of the virtual machine (vm) migration to the host to be managed, described in starting Virtual machine.
9. device according to claim 8, which is characterized in that described first, which manages submodule, includes:
Determination unit, the in running order virtual machine for determining at least two hosts to be managed execute migration behaviour Make corresponding destination host;
Migration units, for according to determining destination host, by the in running order virtual machine on the host to be managed It is migrated in batches to corresponding destination host.
10. device according to claim 9, which is characterized in that the determination unit includes:
Judgment sub-unit, for from select in the cluster or data center one host as on host to be managed in work The virtual machine of state executes corresponding destination host when migration operation, obtains the pairing relationship of the virtual machine and destination host;
Computation subunit calculates the virtual machine (vm) migration to the target for the resource consumption information according to the virtual machine The remaining resource information of the destination host after host;
Control subelement, for after the completion of calculating, be further continued for judging next virtual machine whether can migrate to the cluster or Other hosts of data center, until the virtual machine of all operations all finds available destination host.
CN201810763840.1A 2018-07-12 2018-07-12 The management method and device of virtual machine in cloud data system Pending CN108958889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810763840.1A CN108958889A (en) 2018-07-12 2018-07-12 The management method and device of virtual machine in cloud data system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810763840.1A CN108958889A (en) 2018-07-12 2018-07-12 The management method and device of virtual machine in cloud data system

Publications (1)

Publication Number Publication Date
CN108958889A true CN108958889A (en) 2018-12-07

Family

ID=64483015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810763840.1A Pending CN108958889A (en) 2018-07-12 2018-07-12 The management method and device of virtual machine in cloud data system

Country Status (1)

Country Link
CN (1) CN108958889A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783217A (en) * 2019-01-22 2019-05-21 无锡华云数据技术服务有限公司 Shut down determination method, apparatus, electronic equipment and the storage medium of period
CN113381887A (en) * 2021-06-08 2021-09-10 中国工商银行股份有限公司 Method and device for processing faults of computing nodes

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739287A (en) * 2008-11-13 2010-06-16 国际商业机器公司 Device, system and method for managing virtual machines
CN104780071A (en) * 2015-04-21 2015-07-15 杭州华三通信技术有限公司 Method and device for upgrading virtual switch
CN105677441A (en) * 2014-11-21 2016-06-15 华为技术有限公司 Migration method of virtual machines, manager of virtual facility and coordinator
CN106569871A (en) * 2015-10-12 2017-04-19 中兴通讯股份有限公司 Method and device for upgrade processing
CN107247619A (en) * 2017-06-12 2017-10-13 上海优刻得信息科技有限公司 Live migration of virtual machine method, device, system, storage medium and equipment
CN107566470A (en) * 2017-08-25 2018-01-09 郑州云海信息技术有限公司 The method and apparatus that virtual machine is managed in cloud data system
US20180121233A1 (en) * 2015-05-27 2018-05-03 International Business Machines Corporation Updating networks with migration information for a virtual machine
US20180183869A1 (en) * 2016-03-16 2018-06-28 Google Llc Efficient live-migration of remotely accessed data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739287A (en) * 2008-11-13 2010-06-16 国际商业机器公司 Device, system and method for managing virtual machines
CN105677441A (en) * 2014-11-21 2016-06-15 华为技术有限公司 Migration method of virtual machines, manager of virtual facility and coordinator
CN104780071A (en) * 2015-04-21 2015-07-15 杭州华三通信技术有限公司 Method and device for upgrading virtual switch
US20180121233A1 (en) * 2015-05-27 2018-05-03 International Business Machines Corporation Updating networks with migration information for a virtual machine
CN106569871A (en) * 2015-10-12 2017-04-19 中兴通讯股份有限公司 Method and device for upgrade processing
US20180183869A1 (en) * 2016-03-16 2018-06-28 Google Llc Efficient live-migration of remotely accessed data
CN107247619A (en) * 2017-06-12 2017-10-13 上海优刻得信息科技有限公司 Live migration of virtual machine method, device, system, storage medium and equipment
CN107566470A (en) * 2017-08-25 2018-01-09 郑州云海信息技术有限公司 The method and apparatus that virtual machine is managed in cloud data system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783217A (en) * 2019-01-22 2019-05-21 无锡华云数据技术服务有限公司 Shut down determination method, apparatus, electronic equipment and the storage medium of period
CN109783217B (en) * 2019-01-22 2019-09-13 无锡华云数据技术服务有限公司 Shut down determination method, apparatus, electronic equipment and the storage medium of period
CN113381887A (en) * 2021-06-08 2021-09-10 中国工商银行股份有限公司 Method and device for processing faults of computing nodes
CN113381887B (en) * 2021-06-08 2023-04-07 中国工商银行股份有限公司 Method and device for processing faults of computing nodes

Similar Documents

Publication Publication Date Title
US11102282B2 (en) Method for managing and allocating resources in a clustered computing environment
US10635500B2 (en) Decoupling partitioning for scalability
US11200526B2 (en) Methods and systems to optimize server utilization for a virtual data center
US10108460B2 (en) Method and system for integrated deployment planning for virtual appliances
CN103631633B (en) Virtual machine total-system online migration method, device and system
US9606480B2 (en) Computer system backup performance optimization through performance analytics
US8631403B2 (en) Method and system for managing tasks by dynamically scaling centralized virtual center in virtual infrastructure
US11508021B2 (en) Processes and systems that determine sustainability of a virtual infrastructure of a distributed computing system
US8260840B1 (en) Dynamic scaling of a cluster of computing nodes used for distributed execution of a program
EP3285166B1 (en) Optimizing a distribution of applications executing in a multiple platform system
CN106528327A (en) Data processing method and backup server
CN109168328B (en) Virtual machine migration method and device and virtualization system
CN117480494A (en) Coordinated container scheduling for improved resource allocation in virtual computing environments
CN103399781A (en) Cloud server and virtual machine management method thereof
CN107003713A (en) Event-driven re-optimization for the logical partition environment of electrical management
CN112099917B (en) Regulation and control system containerized application operation management method, system, equipment and medium
CN108958889A (en) The management method and device of virtual machine in cloud data system
EP3316518B1 (en) Method and device for upgrading virtual network element, and computer storage medium
US20230367654A1 (en) Automatic node fungibility between compute and infrastructure nodes in edge zones
CN115277398A (en) Cluster network configuration method and device
CN105094947B (en) The quota management method and system of a kind of virtual computing resource
CN103562852B (en) A kind of method and apparatus for ensureing cloud application procedure service quality
CN113439258A (en) Hosting virtual machines on secondary storage systems
CN110297692A (en) A kind of method and its system of the management of distributed software task dynamic
CN109101253A (en) The management method and device of host in cloud computing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207

RJ01 Rejection of invention patent application after publication