CN109960564A - A kind of method of virtual machine (vm) migration - Google Patents

A kind of method of virtual machine (vm) migration Download PDF

Info

Publication number
CN109960564A
CN109960564A CN201711415858.4A CN201711415858A CN109960564A CN 109960564 A CN109960564 A CN 109960564A CN 201711415858 A CN201711415858 A CN 201711415858A CN 109960564 A CN109960564 A CN 109960564A
Authority
CN
China
Prior art keywords
migration
task
numerical value
agency
current
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.)
Granted
Application number
CN201711415858.4A
Other languages
Chinese (zh)
Other versions
CN109960564B (en
Inventor
马炳洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI SHENGXIAO CLOUD COMPUTING TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI SHENGXIAO CLOUD COMPUTING TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI SHENGXIAO CLOUD COMPUTING TECHNOLOGY Co Ltd filed Critical SHANGHAI SHENGXIAO CLOUD COMPUTING TECHNOLOGY Co Ltd
Priority to CN201711415858.4A priority Critical patent/CN109960564B/en
Publication of CN109960564A publication Critical patent/CN109960564A/en
Application granted granted Critical
Publication of CN109960564B publication Critical patent/CN109960564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present invention relates to a kind of methods of virtual machine (vm) migration, comprising: by migration task that all front ends send over, positive sequence sorts and is stored in database table A in chronological order, and migration task status is set as " waiting " state;According to the source IP of migration and destination IP searching database Table A, and judge whether current source IP or destination IP belong to the IP migrated;If belonging to the IP in migration, new migration task will not be handed down to virtual level order and execute agency's processing;If it is determined that it is no, then execute further operating.The present invention effectively manages virtual machine (vm) migration process, shortens the transit time of virtual machine, so that physical resource obtains efficient and rational utilization.

Description

A kind of method of virtual machine (vm) migration
Technical field
The present invention relates to a kind of method of Virtual Machine Manager more particularly to a kind of methods of virtual machine (vm) migration.
Background technique
Virtual machine technique is common computer memory technical, but the needs upgraded since physical machine is subsequent, that First the virtual machine having existed in physical machine must move on other machines, then to corresponding physical machine into Row upgrading.
Simultaneously as virtual machine (vm) migration belongs to time-consuming operation (system disk data volume is bigger, and time-consuming is longer), existing operation is all Be separate unit physical machine is issued with CC (Central Controller, central controller) control, but AE (Agent Executor, Virtual level order executes agency) it can only handle a virtual machine (vm) migration task, the migration task that other front ends are sent is always etc. It stays in task queue, and front end is shown in migration.
Summary of the invention
In view of the above-mentioned problems, a kind of method that the present invention proposes virtual machine (vm) migration, comprising: send over all front ends Positive sequence sorts and is stored in database table A migration task in chronological order, and migration task status is set as " waiting " state;Root According to the source IP and destination IP searching database Table A of migration, and judge each IP of current source IP (Internet Protocol, Internet protocol) or destination IP whether belong to the IP migrated;If belonging to the IP in migration, new migration Task will not be handed down to AE processing;If it is determined that it is no, then it performs the following operations:
Whether the source machine and the current operand value of purpose machine for judging migration are greater than 0;If being not more than 0, then it is assumed that Inadequate resource returns to operation;
If it is greater than 0, then source machine numerical value and target machine numerical value respectively subtract 1, then whether target machine numerical value is judged Less than 1, if target machine numerical value, which less than 1, migrates task, will also come in task queue, AE processing will not be handed down to;Such as Fruit target machine numerical value is not less than 1, and target machine numerical value subtracts 1, then issues task and gives AE processing;
Migration task can be with timeout treatment: migrating task by setting time poll;If (when current time-migration starts Between)/1000 >=migration task migration duration, then migration task has timed, out;Otherwise continue poll.
Poll confirmation migration task has timed, out, and CC sends the inquiry of a current migration task status to AE, if worked as Preceding migration task is also being handled, then CC is returned;Otherwise CC sends a termination order and terminates current migration task to AE, AE, CC carries out corresponding rolling back action, terminates current migration task, and be set to failure handling.
Technical solution of the present invention realize the utility model has the advantages that
Effectively management virtual machine (vm) migration process, shorten the transit time of virtual machine so that physical resource obtain it is efficient and rational Utilization.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method for virtual machine (vm) migration of the present invention.
Specific embodiment
In the following with reference to the drawings and specific embodiments, the present invention is further explained, and the embodiment of the present invention is only to illustrate this hair The protection scope that bright technical solution is not intended to limit the present invention.
A kind of method for proposing virtual machine (vm) migration such as Fig. 1, the present invention, comprising: the migration for sending over all front ends is appointed Positive sequence sorts and is stored in database table A in chronological order for business, and migration task status is set as " waiting " state;According to migration Source IP and destination IP searching database Table A, and judge whether current source IP or destination IP belong to the IP migrated;Such as Fruit belongs to the IP in migration, then new migration task will not be handed down to AE processing;If it is determined that it is no, then execute following behaviour Make:
Whether the source machine and the current operand value of purpose machine for judging migration are greater than 0;If being not more than 0, then it is assumed that Inadequate resource returns to operation;
If it is greater than 0, then source machine numerical value and target machine numerical value respectively subtract 1, then whether target machine numerical value is judged Less than 1, if target machine numerical value, which less than 1, migrates task, will also come in task queue, AE processing will not be handed down to;Such as Fruit target machine numerical value is not less than 1, and target machine numerical value subtracts 1, then issues task and gives AE processing;
Migration task can be with timeout treatment: migrating task by setting time poll;If (when current time-migration starts Between)/1000 >=migration task migration duration, then migration task has timed, out;Otherwise continue poll.
Poll confirmation migration task has timed, out, and CC sends the inquiry of a current migration task status to AE, if worked as Preceding migration task is also being handled, then CC is returned;Otherwise CC sends a termination order and terminates current migration task to AE, AE, CC carries out corresponding rolling back action, terminates current migration task, and be set to failure handling.

Claims (3)

1. a kind of method of virtual machine (vm) migration, characterized by comprising:
By migration task that all front ends send over, positive sequence sorts and is stored in database table A in chronological order, described to move Task status is moved to be set as " waiting " state;
The database table A is retrieved according to the source IP of migration and destination IP, and judges whether are the source IP or the destination IP Belong to the IP migrated;
Determine the IP belonged in migration, new migration task will not be handed down to virtual level order and execute agency's processing;
Determine no, then execute operation:
Whether the source machine and the current operand value of purpose machine for judging migration are greater than 0;
Determine to be not more than 0, returns to operation;
Determining to be greater than 0, source machine numerical value and target machine numerical value respectively subtract 1,
Whether continue to determine the target machine numerical value less than 1, determines the target machine numerical value less than 1, then the migration is appointed Business will also come in task queue, will not be handed down to the virtual level order and execute agency's processing;The target machine numerical value is not Less than 1, the target machine numerical value subtracts 1, issues task to the virtual level order and executes agency's processing.
2. the method for virtual machine (vm) migration according to claim 1, it is characterised in that the timeout treatment of the migration task are as follows: Task is migrated by described in setting time poll;(current time-migration time started)/1000 >=migration task migration Duration determines that the migration task has timed, out;Otherwise continue poll.
3. the method for virtual machine (vm) migration according to claim 2, it is characterised in that the poll confirms the migration task It has timed, out, central controller executes the inquiry that agency sends a current migration task status to virtual level order, determines institute It states current migration task also handling, the central controller returns;Otherwise the central controller sends a termination order Agency is executed to the virtual level order, the virtual level order executes agency and terminates the current migration task, the center Controller carries out corresponding rolling back action, terminates current migration task, and be set to failure handling.
CN201711415858.4A 2017-12-22 2017-12-22 Virtual machine migration method Active CN109960564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711415858.4A CN109960564B (en) 2017-12-22 2017-12-22 Virtual machine migration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711415858.4A CN109960564B (en) 2017-12-22 2017-12-22 Virtual machine migration method

Publications (2)

Publication Number Publication Date
CN109960564A true CN109960564A (en) 2019-07-02
CN109960564B CN109960564B (en) 2023-04-11

Family

ID=67020487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711415858.4A Active CN109960564B (en) 2017-12-22 2017-12-22 Virtual machine migration method

Country Status (1)

Country Link
CN (1) CN109960564B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104206A (en) * 2019-12-25 2020-05-05 曙光信息产业(北京)有限公司 Virtual machine storage migration method and device and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446115A (en) * 2012-01-09 2012-05-09 浙江大学 Dynamic deployment method for virtual machines
CN103631633A (en) * 2012-08-20 2014-03-12 中国电信股份有限公司 Virtual machine total-system online migration method, device and system
CN103810016A (en) * 2012-11-09 2014-05-21 北京华胜天成科技股份有限公司 Method and device for realizing virtual machine migration and cluster system
US20140245293A1 (en) * 2013-02-25 2014-08-28 Red Hat Israel, Ltd. Migration of Virtual Machines with Shared Memory
CN104750542A (en) * 2015-04-22 2015-07-01 成都睿峰科技有限公司 Data migration method based on cloud platform
CN105430049A (en) * 2015-10-29 2016-03-23 西安交通大学 Virtual streaming cluster cooperative migration method based on DCN
CN105677441A (en) * 2014-11-21 2016-06-15 华为技术有限公司 Migration method of virtual machines, manager of virtual facility and coordinator

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446115A (en) * 2012-01-09 2012-05-09 浙江大学 Dynamic deployment method for virtual machines
CN103631633A (en) * 2012-08-20 2014-03-12 中国电信股份有限公司 Virtual machine total-system online migration method, device and system
CN103810016A (en) * 2012-11-09 2014-05-21 北京华胜天成科技股份有限公司 Method and device for realizing virtual machine migration and cluster system
US20140245293A1 (en) * 2013-02-25 2014-08-28 Red Hat Israel, Ltd. Migration of Virtual Machines with Shared Memory
CN105677441A (en) * 2014-11-21 2016-06-15 华为技术有限公司 Migration method of virtual machines, manager of virtual facility and coordinator
CN104750542A (en) * 2015-04-22 2015-07-01 成都睿峰科技有限公司 Data migration method based on cloud platform
CN105430049A (en) * 2015-10-29 2016-03-23 西安交通大学 Virtual streaming cluster cooperative migration method based on DCN

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KEJIANG YE: "Live Migration of Multiple Virtual Machines with Resource Reservation in Cloud Computing Environments", 《 2011 IEEE 4TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING》 *
刘文洁等: "一种面向云资源调度的热点迁移策略", 《西北工业大学学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104206A (en) * 2019-12-25 2020-05-05 曙光信息产业(北京)有限公司 Virtual machine storage migration method and device and computer equipment
CN111104206B (en) * 2019-12-25 2023-09-01 曙光信息产业(北京)有限公司 Virtual machine storage migration method and device and computer equipment

Also Published As

Publication number Publication date
CN109960564B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN107526645B (en) A kind of communication optimization method and system
CN103294533A (en) Task flow control method and task flow control system
CN105159768A (en) Task management method and cloud data center management platform
CN112000441B (en) Method for declaratively arranging and managing virtual machine life cycle based on kubernets
JP2017507572A5 (en)
CN103677870B (en) Method for upgrading system and the system using this method upgrading
EP3537281B1 (en) Storage controller and io request processing method
CN103605574A (en) Virtual machine resource scheduling method and system for server clusters
CN103744808B (en) A kind of method and apparatus for being used to control I/O to ask
CN104111867B (en) A kind of virtual machine (vm) migration device and method
CN108021449A (en) One kind association journey implementation method, terminal device and storage medium
CN108008950A (en) The implementation method and device of a kind of user interface updating
CN103780686A (en) Method and system for customizing application approval procedure in cloud organization
CN108897876A (en) A kind of data cut-in method and device
CN107766160A (en) Queue message processing method and terminal device
CN105302641A (en) Node scheduling method and apparatus in virtual cluster
CN114661462A (en) Resource allocation method, system, computer readable storage medium and electronic device
CN109144428A (en) It is a kind of applied to the rubbish recovering method of solid state hard disk, equipment and medium
TWI414947B (en) Method, computer-readable medium and parallel computing system of loading a program on the computing system including multiple processing nodes
CN102999317A (en) Multi-tenant oriented elastic multi-process service processing method
CN109960564A (en) A kind of method of virtual machine (vm) migration
CN110968410A (en) Task failure retry method and device, computer equipment and storage medium
CN112860401A (en) Task scheduling method and device, electronic equipment and storage medium
CN108351802B (en) Computer data processing system and method for communication traffic based optimization of virtual machine communication
US10585620B2 (en) Storage monitoring system for monitoring components in a storage system in a distributed manner

Legal Events

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