CN107678838A - A kind of method, apparatus and virtual machine management platform for tracking virtual machine operations - Google Patents

A kind of method, apparatus and virtual machine management platform for tracking virtual machine operations Download PDF

Info

Publication number
CN107678838A
CN107678838A CN201710996943.8A CN201710996943A CN107678838A CN 107678838 A CN107678838 A CN 107678838A CN 201710996943 A CN201710996943 A CN 201710996943A CN 107678838 A CN107678838 A CN 107678838A
Authority
CN
China
Prior art keywords
virtual machine
time
machine operations
service
traffic table
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
CN201710996943.8A
Other languages
Chinese (zh)
Other versions
CN107678838B (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.)
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 CN201710996943.8A priority Critical patent/CN107678838B/en
Publication of CN107678838A publication Critical patent/CN107678838A/en
Application granted granted Critical
Publication of CN107678838B publication Critical patent/CN107678838B/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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/301Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is a virtual computing platform, e.g. logically partitioned systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method, apparatus and virtual machine management platform for tracking virtual machine operations, including:Call virtualization services to perform virtual machine operations, and the operation is formed into an operation service;If the operation is the time-consuming operation of setting, the information of the operation service is added in time-consuming traffic table, and discharges the thread for calling virtualization services;Traffic table is taken with according to this, the implementation procedure of virtual machine operations is tracked.From technical scheme provided by the invention, after time-consuming operation business is added to time-consuming traffic table by virtual management platform, just the thread of virtualization services is called in release immediately, accordingly even when multiple time-consuming operations carry out also causing the virtual management platform to collapse simultaneously.

Description

A kind of method, apparatus and virtual machine management platform for tracking virtual machine operations
Technical field
The present invention relates to virtual machine technique, espespecially a kind of method, apparatus of virtual management platform tracking virtual machine operations And virtual machine management platform.
Background technology
In virtualization services, pipe can be carried out to the virtualization services on server using a virtual management platform Reason, operation of the user to virtualization services are completed using virtual platform substantially.Operated including the management to virtual machine, Such as create virtual machine, create the operation such as virtual machine snapshot and complete backup virtual machine.Virtual platform management virtual machine is opened Hair will be completed by the api interface that virtualization services provide, and the operation of some of which Virtual Machine Manager needs to spend more than second level Time complete, such as the complete backup operation of virtual machine, such virtual platform call one it is time-consuming longer virtual Machine operate when it is necessary to wait virtualization services to complete the time-consuming operation after, the thread that just will be responsible for the calling discharges.If Substantial amounts of time-consuming operation, each call operation wait virtualization services end to complete the time-consuming operation, and substantial amounts of line just occurs Journey is occupied.If the quantity of time-consuming operation is excessive, it is likely that can collapse virtual management platform.
The content of the invention
The embodiment provides a kind of method for tracking virtual machine operations, including:
Virtual machine management platform calls virtualization services to perform virtual machine operations, and the virtual machine operations are formed into one Operation service;
If time-consuming operation of the virtual machine operations for setting, the virtual machine management platform is by the operation service Information is added in time-consuming operation traffic table, and discharges the thread for calling the virtualization services;
The virtual machine management platform is entered according to the time-consuming operation traffic table to the implementation procedure of the virtual machine operations Line trace.
Embodiments of the invention additionally provide a kind of device for tracking virtual machine operations, including:
Service module is called, the calling service module calls virtualization services to perform virtual machine operations, and by the void Plan machine operates to form an operation service;
Business add module, if time-consuming operation of the virtual machine operations for setting, the business add module is by institute The information for stating operation service is added in time-consuming operation traffic table, and discharges the thread for calling the virtualization services;With
Service tracing module, the Service tracing module is according to the time-consuming operation traffic table, to the virtual machine operations Implementation procedure be tracked.
Embodiments of the invention additionally provide a kind of virtual machine management platform, including memory, processor and are stored in institute The computer program that can be run on memory and on the processor is stated, it is real during computer program described in the computing device The now processing of method as described above.
In above-described embodiment scheme, after time-consuming operation business is added to time-consuming operation traffic table by virtual management platform, The thread for calling virtualization services is just discharged immediately, no longer takes thread, accordingly even when multiple time-consuming operations are carried out simultaneously The virtual management platform will not be caused to collapse.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is the flow chart according to the method for the tracking virtual machine operations of the embodiment of the present invention;
Fig. 2 is the flow chart being tracked to the implementation procedure of time-consuming operation according to the embodiment of the present invention;
Fig. 3 is the structural representation of the device of tracking virtual machine operations according to embodiments of the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application Feature can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of Perform.Also, although logical order is shown in flow charts, in some cases, can be with suitable different from herein Sequence performs shown or described step.
The embodiment provides a kind of method of virtual management platform tracking virtual machine operations, as shown in figure 1, This method includes:
Step 101, virtual machine management platform calls virtualization services to perform virtual machine operations, and by the virtual machine operations Form an operation service.
User is operated by virtual machine management platform to virtual machine, including establishment virtual machine, creates virtual machine Snapshot and complete backup virtual machine and the operation such as Data Migration is carried out to virtual machine.Virtual machine management platform receives user's After operational order, the API of a virtualization services can be called, the operation is formed into an operation service, for example formed as business An object in class vmLongTask, and service identification isLongTask is set.
Step 102, virtual machine management platform judges whether the virtual machine operations are the time-consuming operation set, if it is, Step 103 is performed, if not, performing step 105, carries out other processing, is terminated;
User judges whether the virtual machine operations are time-consuming operation according to the type of service of the operation.For example, create empty Plan machine snapshot, complete backup virtualization and being migrated to data just belong to time-consuming longer operation.
Step 103, the information of the operation service is added in time-consuming operation traffic table by virtual machine management platform, and discharges Call the thread of the virtualization services;
In the present embodiment, the information of the operation service includes action type, the information at virtualization services end, business mark Know.In one example, service class vmLongTask relevant information can be added in time-consuming operation traffic table, the industry The relevant information of business class includes:Business id (taskId), virtual machine id (vmId), virtual machine title (vmName), action type (optType), operation service id (optTaskId), time-consuming service identification (isLongTask), business progress (taskProgress) arranged corresponding to and other (otherInfo) etc., having in time-consuming operation traffic table for storing vmLongTask.Wherein, taskId is unique mark of the time-consuming operation business in database;VmId and vmName is respectively void The unique mark of plan machine and the title of virtual machine;OptType is the type of service of the time-consuming operation of virtual machine (for example, complete multiple Virtual machine processed etc.);When optTaskId is that virtual platform calls virtualization services asynchronous virtual machine operations API, the operation of return Unique mark;IsLongTask is identified whether to take business;TaskProgress is the progress that time-consuming operation business performs; OtherInfo is used to record extension information attribute.
Step 104, virtual machine management platform is carried out according to above-mentioned time-consuming operation traffic table to the implementation procedure of time-consuming operation Tracking.Tracking process is described more fully below.
In the present embodiment, virtual machine management platform is held according to the time-consuming operation traffic table to the virtual machine operations Row process is tracked, including:
The time-consuming operation traffic table is read in timing;
According to the information of the operation service read from the time-consuming operation traffic table, institute is obtained from virtualization services end State the state of operation service.
In the present embodiment, after the state that virtual machine management platform obtains the operation service from virtualization services end, also Including:If the operation service has been completed or failure, the operation service is removed into the time-consuming operation traffic table;If The operation service is carrying out, then updates the progress of the operation service.
As shown in Fig. 2 an exemplary tracking process includes:
Step 201, virtual machine management platform reads the data in time-consuming operation traffic table;
Virtual machine management platform can take out one according to certain time interval (such as 1 second) from time-consuming operation traffic table The business entry (such as 30) of fixed number amount.
Step 202, according to the information of the operation service read from the time-consuming operation traffic table, from virtualization services End obtains the state of the operation service;
From virtualization services end obtain operation service state such as can be carrying out, success or failure.
Step 203, judge that the operation service has been completed and (succeeded) or failed, if it is, step 204 is performed, it is no Then the operation service is carrying out, and performs step 205;
Step 204, the operation service is removed into time-consuming operation traffic table, terminated;
Step 205, the progress of operation service described in time-consuming operation traffic table is updated, also as described virtual machine operations Progress.
Embodiments of the invention additionally provide a kind of device for tracking virtual machine operations, as shown in Figure 3.The device includes:
Service module 301 is called, the calling service module 301 calls virtualization services to perform virtual machine operations, and will The virtual machine operations form an operation service.
Business add module 302, if the virtual machine operations are the time-consuming operation of setting, the business add module 302 are added to the information of the operation service in time-consuming operation traffic table, and discharge the thread for calling the virtualization services.
Service tracing module 303, the Service tracing module 303 is according to the time-consuming operation traffic table, to described virtual The implementation procedure of machine operation is tracked.
In the present embodiment, Service tracing module 303 is entered according to time-consuming operation traffic table to the implementation procedure of virtual machine operations Line trace, including:The time-consuming operation traffic table is read in timing;According to the operation read from the time-consuming operation traffic table The information of business, the state of the operation service is obtained from virtualization services end.
In the present embodiment, after the state that Service tracing module obtains the operation service from virtualization services end, also use In when the state of the operation service is success or failure, then the operation service is removed into the time-consuming operation traffic table; If the state of the operation service is to be carrying out, the progress of the operation service is updated.
In actual applications, calling service module 301, business add module 302 and the Service tracing module 303 By central processing unit (Central Processing Unit, CPU), the microprocessor of the device positioned at tracking virtual machine operations (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or scene Programmable gate array (Field Programmable Gate Array, FPGA) etc. is realized.
Embodiments of the invention additionally provide a kind of virtual machine management platform, including memory, processor and are stored in On reservoir and the computer program that can run on a processor, this implementation is realized during computer program described in the computing device The processing of the method for the above-mentioned tracking virtual machine operations of example.
Embodiments of the invention additionally provide a kind of computer-readable recording medium, are stored thereon with computer program, institute State the method that computer program is used to perform above-mentioned tracking virtual machine operations.
Although disclosed herein embodiment as above, described content be only readily appreciate the present invention and use Embodiment, it is not limited to the present invention.Technical staff in any art of the present invention, taken off not departing from the present invention On the premise of the spirit and scope of dew, any modification and change, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (10)

1. a kind of method for tracking virtual machine operations, including:
Virtual machine management platform calls virtualization services to perform virtual machine operations, and the virtual machine operations are formed into an operation Business;
If time-consuming operation of the virtual machine operations for setting, the virtual machine management platform is by the information of the operation service It is added in time-consuming operation traffic table, and discharges the thread for calling the virtualization services;
The virtual machine management platform according to the time-consuming operation traffic table, the implementation procedures of the virtual machine operations is carried out with Track.
2. the method for tracking virtual machine operations according to claim 1, it is characterised in that:
The information of the operation service includes action type, the information at virtualization services end, service identification.
3. the method for tracking virtual machine operations according to claim 2, it is characterised in that:
The virtual machine management platform according to the time-consuming operation traffic table, the implementation procedures of the virtual machine operations is carried out with Track, including:
The time-consuming operation traffic table is read in timing;
According to the information of the operation service read from the time-consuming operation traffic table, the behaviour is obtained from virtualization services end Make the state of business.
4. the method for tracking virtual machine operations according to claim 3, it is characterised in that:
After the state that the virtual machine management platform obtains the operation service from virtualization services end, in addition to:If institute State operation service to have completed or failed, then the operation service is removed into the time-consuming operation traffic table;If the operation industry Business is carrying out, then updates the progress of the operation service.
5. the method for tracking virtual machine operations according to claim 1, it is characterised in that the time-consuming operation includes carrying out The virtual machine operations of Data Migration and/or the virtual machine operations for creating virtual machine snapshot.
A kind of 6. device for tracking virtual machine operations, it is characterised in that including:
Service module is called, one is formed for calling virtualization services to perform virtual machine operations, and by the virtual machine operations Operation service;
Business add module, for the virtual machine operations for setting time-consuming operation when, by the information of the operation service It is added in time-consuming operation traffic table, and discharges the thread for calling the virtualization services;
Service tracing module, for according to the time-consuming operation traffic table, the implementation procedures of the virtual machine operations is carried out with Track.
7. the device of tracking virtual machine operations according to claim 6, it is characterised in that
The information of the operation service includes action type, the information at virtualization services end, service identification.
8. the device of tracking virtual machine operations according to claim 6, it is characterised in that
The Service tracing module according to the time-consuming operation traffic table, the implementation procedures of the virtual machine operations is carried out with Track, including:The time-consuming operation traffic table is read in timing, according to the operation service read from the time-consuming operation traffic table Information, the state of the operation service is obtained from virtualization services end.
9. a kind of virtual machine management platform, including memory, processor and it is stored on the memory and can be in the processing The computer program run on device, it is characterised in that realize such as claim described in the computing device during computer program The processing of method any one of 1-5.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The processing of the method as any one of claim 1-5 is realized when being performed.
CN201710996943.8A 2017-10-19 2017-10-19 Method and device for tracking operation of virtual machine and virtual machine management platform Active CN107678838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710996943.8A CN107678838B (en) 2017-10-19 2017-10-19 Method and device for tracking operation of virtual machine and virtual machine management platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710996943.8A CN107678838B (en) 2017-10-19 2017-10-19 Method and device for tracking operation of virtual machine and virtual machine management platform

Publications (2)

Publication Number Publication Date
CN107678838A true CN107678838A (en) 2018-02-09
CN107678838B CN107678838B (en) 2021-07-02

Family

ID=61140866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710996943.8A Active CN107678838B (en) 2017-10-19 2017-10-19 Method and device for tracking operation of virtual machine and virtual machine management platform

Country Status (1)

Country Link
CN (1) CN107678838B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873615A (en) * 2006-01-20 2006-12-06 华为技术有限公司 Method for servicing task of timer
CN101938396A (en) * 2009-06-30 2011-01-05 华为技术有限公司 Data stream control method and device
US20110252424A1 (en) * 2010-04-13 2011-10-13 Samsung Electronics (China) R&D Center System and method for detecting deadlock in a multithread program
CN102630316A (en) * 2011-12-22 2012-08-08 华为技术有限公司 Processing method and apparatus of concurrent tasks
CN103823712A (en) * 2014-03-17 2014-05-28 杭州华三通信技术有限公司 Data flow processing method and device for multi-CPU virtual machine system
CN105022662A (en) * 2014-04-22 2015-11-04 ***股份有限公司 Distributive task allocation method
CN105653365A (en) * 2016-02-22 2016-06-08 青岛海尔智能家电科技有限公司 Task processing method and device
CN106095590A (en) * 2016-07-21 2016-11-09 联动优势科技有限公司 A kind of method for allocating tasks based on thread pool and device
CN106095585A (en) * 2016-06-22 2016-11-09 中国建设银行股份有限公司 Task requests processing method, device and enterprise information system
CN106529965A (en) * 2016-12-02 2017-03-22 浪潮(苏州)金融技术服务有限公司 Data processing method, apparatus and system
CN106899649A (en) * 2016-06-30 2017-06-27 阿里巴巴集团控股有限公司 A kind of task requests processing method, device and user equipment
CN106959895A (en) * 2016-01-12 2017-07-18 阿里巴巴集团控股有限公司 The resource regulating method and system of quick release thread
CN107102894A (en) * 2017-04-07 2017-08-29 百度在线网络技术(北京)有限公司 Method for scheduling task, device and system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873615A (en) * 2006-01-20 2006-12-06 华为技术有限公司 Method for servicing task of timer
CN101938396A (en) * 2009-06-30 2011-01-05 华为技术有限公司 Data stream control method and device
US20110252424A1 (en) * 2010-04-13 2011-10-13 Samsung Electronics (China) R&D Center System and method for detecting deadlock in a multithread program
CN102630316A (en) * 2011-12-22 2012-08-08 华为技术有限公司 Processing method and apparatus of concurrent tasks
CN103823712A (en) * 2014-03-17 2014-05-28 杭州华三通信技术有限公司 Data flow processing method and device for multi-CPU virtual machine system
CN105022662A (en) * 2014-04-22 2015-11-04 ***股份有限公司 Distributive task allocation method
CN106959895A (en) * 2016-01-12 2017-07-18 阿里巴巴集团控股有限公司 The resource regulating method and system of quick release thread
CN105653365A (en) * 2016-02-22 2016-06-08 青岛海尔智能家电科技有限公司 Task processing method and device
CN106095585A (en) * 2016-06-22 2016-11-09 中国建设银行股份有限公司 Task requests processing method, device and enterprise information system
CN106899649A (en) * 2016-06-30 2017-06-27 阿里巴巴集团控股有限公司 A kind of task requests processing method, device and user equipment
CN106095590A (en) * 2016-07-21 2016-11-09 联动优势科技有限公司 A kind of method for allocating tasks based on thread pool and device
CN106529965A (en) * 2016-12-02 2017-03-22 浪潮(苏州)金融技术服务有限公司 Data processing method, apparatus and system
CN107102894A (en) * 2017-04-07 2017-08-29 百度在线网络技术(北京)有限公司 Method for scheduling task, device and system

Also Published As

Publication number Publication date
CN107678838B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN106201659B (en) A kind of method and host of live migration of virtual machine
CN103634337B (en) Page recovery, device and mobile terminal
CN109428913B (en) Storage capacity expansion method and device
CN110275722A (en) Method, apparatus, equipment and storage medium for upgrade application
CN104572446B (en) A kind of automated testing method and system
CN108255620B (en) Service logic processing method, device, service server and system
CN103677870B (en) Method for upgrading system and the system using this method upgrading
JP2006031109A (en) Management system and management method
CN105281949B (en) Mix the partition method and isolating device of host in memory module
CN106528293A (en) Database access method and apparatus
CN105867962A (en) System upgrading method and device
US10318343B2 (en) Migration methods and apparatuses for migrating virtual machine including locally stored and shared data
CN107678838A (en) A kind of method, apparatus and virtual machine management platform for tracking virtual machine operations
CN108121514B (en) Meta information updating method and device, computing equipment and computer storage medium
US10579446B2 (en) Per-request event detection to improve request-response latency
CN111127601A (en) Animation switching method and device, electronic equipment and storage medium
CN109783199A (en) A kind of virtual machine migration method and device
CN113655846B (en) OpenPOWER server time synchronization method and system
CN115237889A (en) Database switching method and device, storage medium and computer equipment
CN114816482A (en) Method and device for upgrading block storage service, computer equipment and storage medium
CN114281473A (en) Cloud platform test environment management method, system, terminal and storage medium
CN114610386A (en) Interaction method, device, equipment and storage medium of H5 and application program
CN110221952B (en) Service data processing method and device and service data processing system
CN106598687A (en) Script preheating method and device
CN106844261A (en) The method and apparatus of hot plug is realized in recovery mode

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