WO2014000497A1 - 一种虚拟系统的平滑关闭方法及系统 - Google Patents

一种虚拟系统的平滑关闭方法及系统 Download PDF

Info

Publication number
WO2014000497A1
WO2014000497A1 PCT/CN2013/074219 CN2013074219W WO2014000497A1 WO 2014000497 A1 WO2014000497 A1 WO 2014000497A1 CN 2013074219 W CN2013074219 W CN 2013074219W WO 2014000497 A1 WO2014000497 A1 WO 2014000497A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
virtual system
shutdown
smooth
configuration information
Prior art date
Application number
PCT/CN2013/074219
Other languages
English (en)
French (fr)
Inventor
楚俊生
孟昱
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US14/410,623 priority Critical patent/US9830181B2/en
Priority to EP13810573.9A priority patent/EP2866143A4/en
Publication of WO2014000497A1 publication Critical patent/WO2014000497A1/zh

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
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3246Power saving characterised by the action undertaken by software initiated power-off
    • 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
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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/45575Starting, stopping, suspending or resuming virtual machine instances

Definitions

  • the embodiments of the present invention relate to the field of virtualization technologies, and in particular, to a method and system for smoothly closing a virtual system. Background technique
  • Virtualization technology refers to the division of physical resources into multiple logical partitions on a physical server through a hypervisor. Each logical partition is isolated from each other and becomes an independent virtual machine. The resources of the same physical server are shared among multiple virtual machines. For the operating system and applications, the virtual machine is no different from the physical server.
  • the front end and database of application servers and application servers are usually deployed on different virtual machines, and the entire virtual machine constitutes a virtual system.
  • the virtual machine in the virtual system deploys different software to form different functional nodes, for example: the front end of the application server is used to perform service access functions, the application server is used to process user service requests, and the database is used to store user and service related Data information. Because there are certain dependencies between different functional nodes, when the virtual computing system is deployed, the cloud computing platform needs to provide the functions of starting the virtual machine and shutting down the virtual machine in a certain order according to the role of the virtual machine.
  • FIG. 1 is a schematic diagram of a management architecture of a virtual system in a cloud computing platform in the prior art.
  • the virtual system manager is responsible for life cycle management, related life cycle management, such as creation, modification, and deletion of a virtual system.
  • the virtual system manager is also responsible for updating the virtual system information into the virtual system information base;
  • the virtual system information base is used to record the virtual system information, and the virtual system information includes the virtual machine related information in the virtual system;
  • the virtual system is controlled according to the virtual system information in the virtual system information database to control the startup, operation and shutdown of the virtual system; the virtual system is composed of a set of virtual machines.
  • the startup and smooth shutdown operations of the virtual system include: Each virtual machine in the virtual system is set with a sequence number. When the virtual system is started, the virtual system is sequentially started in the ascending order of the virtual machine. For a virtual machine with the same sequence number, start the virtual machine at the same time. When the virtual system is shut down, the virtual machine is shut down in the descending order of the sequential number of the virtual machine, and the virtual machines with the same sequential number are simultaneously closed.
  • the traditional application server is hosted in the virtual computing system to the cloud computing platform.
  • the virtual machines in the virtual system are different functional nodes according to different loaded application service programs. Different application service programs have different dependencies.
  • the application service program needs to be installed in a certain order, that is, the dependent application service program needs to be started first, and the application server program needs to be started afterwards. Therefore, for virtual machines loaded with application services, they also need to be started in a certain order at startup.
  • the virtual system is shut down, the traditional method of shutting down according to the reverse order of the startup sequence, that is, the application service program is first closed, and is closed after being dependent on the application service program.
  • the dependencies between application servers are very complicated. Some dependencies when the application server starts, when the smooth shutdown is closed, the original dependencies will change. Thus, the existing mechanism Will not be able to meet the needs of large application servers. Summary of the invention
  • the main purpose of the embodiments of the present invention is to provide a method and system for smoothly closing a virtual system, which can solve the problem of shutting down a virtual machine in the reverse order of the startup sequence in the prior art.
  • the present invention provides a smooth shutdown method for a virtual system, which receives the smooth shutdown configuration information configured for the virtual system, and saves the smooth shutdown configuration information.
  • the virtual machine When a request to close the virtual system is received, the virtual machine is sequentially shut down according to the saved smooth shutdown configuration information.
  • the receiving is a smooth shutdown configuration information configured for the virtual system, and is saved.
  • the smoothing off configuration information is:
  • the receiving user configures the smooth shutdown configuration information for the virtual system according to the dependency relationship between the application service programs;
  • the virtual system manager writes the smooth shutdown configuration information configured for the virtual system into the virtual system repository, and the virtual system repository stores the smooth shutdown configuration information.
  • the virtual system includes a set of virtual machines
  • the smoothing off configuration information includes a smooth closed sequence number corresponding to each virtual machine in the virtual system.
  • the smooth closing sequence number is a non-negative integer
  • the smoothing off configuration information further includes: stopping the delay indication information, and/or waiting for the closing indication information, and/or closing the action information.
  • the sequence of executing the virtual machine according to the saved smooth shutdown configuration information is:
  • the virtual system controller sends the request to close the virtual system to the virtual system controller
  • the virtual system controller obtains the smooth shutdown configuration information of the virtual system from the virtual system information database.
  • the virtual system controller performs the sequential shutdown of the virtual machine according to the smoothed shutdown configuration information obtained by the virtual machine according to the smooth shutdown sequence number corresponding to the virtual machine.
  • the sequential shutdown of the virtual machine according to the smooth shutdown sequence number corresponding to the virtual machine is:
  • the virtual machine is sequentially closed.
  • the method further includes:
  • the virtual system controller simultaneously shuts down virtual machines with the same smooth shutdown sequence number.
  • the method further includes:
  • the virtual system controller When the smoothing off configuration information includes stopping the delay indication information, and/or waiting for the closing indication information, and/or closing the action information, the virtual system controller performs a sequential closing operation of the virtual machine, and according to the stopping The extended indication information, and/or waiting for the closing indication information, and/or the closing action information, controls the smooth closing of the virtual machine in the virtual system.
  • the stop delay indication information indicates that it takes time to close the virtual machine corresponding to the next smooth shutdown sequence number after all the virtual machines corresponding to a smooth shutdown sequence number are smoothly closed.
  • the waiting for the shutdown indication information indicates that after receiving the shutdown completion indication message of the virtual machine, the subsequent virtual machine is continuously closed;
  • the closing action information includes controlling the virtual machine to enter a sleep state, a virtual machine, or shutting down the virtual machine.
  • the present invention also provides a smooth shutdown system for a virtual system, including: a virtual system manager, a virtual system information library, and a virtual system controller;
  • a virtual system manager configured to receive the smooth shutdown configuration information configured for the virtual system, and save the configured smooth shutdown configuration information to the virtual system information repository;
  • a virtual system information repository configured to save the smoothed shutdown configuration information
  • the virtual system controller is configured to perform the sequential shutdown of the virtual machine according to the smooth shutdown configuration information saved in the virtual system information database when receiving the request to shut down the virtual system.
  • the method and system for smoothly closing a virtual system receives smooth shutdown configuration information configured for a virtual system, and saves the smooth shutdown configuration information; and when receiving the request to close the virtual system, according to the saved smooth shutdown configuration
  • the order in which the information is executed by the virtual machine is turned off.
  • the smooth shutdown of the virtual machine in the virtual system can be realized.
  • the above technical solution can be utilized to solve the problem that the virtual machine is completely shut down in the reverse order of the startup sequence in the prior art, and smoothing can be achieved. Close the flexible configuration of the order.
  • FIG. 1 is a schematic diagram of a management architecture of a virtual system in a cloud computing platform in the prior art
  • FIG. 2 is a schematic flowchart of a method for implementing a smooth shutdown of a virtual system according to an embodiment of the present invention
  • FIG. 3 is a virtual diagram of a cloud computing platform according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart diagram of Embodiment 1 of a method for implementing a smooth shutdown of a virtual system according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of Embodiment 2 of a method for implementing a smooth shutdown of a virtual system according to an embodiment of the present invention
  • Embodiment 6 is a schematic flowchart of Embodiment 3 of a method for implementing a smooth shutdown of a virtual system according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a smooth shutdown system for implementing a virtual system according to an embodiment of the present invention. detailed description
  • the basic idea of the embodiment of the present invention is: receiving smooth shutdown configuration information configured for the virtual system, and saving the smooth shutdown configuration information; when receiving the request to close the virtual system, executing the virtual machine according to the saved smooth shutdown configuration information shut down.
  • FIG. 2 is a schematic flowchart of a method for implementing a smooth shutdown of a virtual system according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step 201 Receive smooth shutdown configuration information configured for the virtual system, and save the smooth shutdown configuration information.
  • the virtual system manager receives the request for creating the virtual system, and after completing the creation of the virtual system, can receive the user through the client and configure the virtual system according to the dependency relationship between the application service programs.
  • FIG. 3 is a schematic diagram of a management architecture of a virtual system in a cloud computing platform according to an embodiment of the present invention. As shown in FIG. 3, the virtual system manager writes the smooth shutdown configuration information configured by the user for the virtual system. In the virtual system information repository, the smooth shutdown configuration information is saved by the virtual system information repository;
  • each virtual system can be configured with smooth shutdown configuration information corresponding to the virtual system.
  • the virtual system information database can store smooth shutdown configuration information of multiple virtual systems.
  • Each virtual system includes a set of virtual machines.
  • the smoothing off configuration information includes a smoothing sequence number corresponding to each virtual machine in the virtual system, and the smoothing sequence number is a non-negative integer, and the smoothing sequence number may be the same as the number in the startup sequence, or may be different.
  • the smoothing off configuration information may further include stopping the delay indication information, and/or waiting for the closing indication information, and/or closing the action information, and the like.
  • Step 202 When receiving the request to close the virtual system, perform the sequential shutdown of the virtual machine according to the saved smooth shutdown configuration information;
  • the virtual system manager when the virtual system manager receives the request of the user to close the virtual system sent by the client, the virtual system manager sends the request for shutting down the virtual system to the virtual system controller in the cloud computing platform, where the shutdown is performed.
  • the virtual system controller carrying the virtual system requesting the shutdown in the request of the virtual system receives the request of the virtual system manager to close the virtual system, and obtains the virtual system information base according to the number of the virtual system therein.
  • the virtual system controller closes the configuration information according to the smoothed shutdown configuration information; the virtual system controller performs the shutdown of the virtual machine according to the smoothed shutdown sequence number corresponding to the virtual machine, and the virtual machine is sequentially closed; The ascending order of the sequential numbers, the order of executing the virtual machines is closed, or the descending order of the smoothing sequence numbers may be performed, and the order of the virtual machines is closed; wherein, the virtual In the proposed system, the virtual machine having the same smooth shutdown sequence number may be simultaneously closed; the smoothing off configuration information further includes: stopping the delay indication information, and/or waiting for the closing indication information, and/or closing the action information.
  • the virtual machine in the virtual system may be simultaneously configured according to the stop delay indication information configured for the virtual system, and/or waiting for the shutdown indication information, and/or the shutdown action information. Smooth shutdown is controlled.
  • the stop delay indication information indicates that after completing all the virtual machines corresponding to a smooth shutdown sequence number, the next smoothing is waited for. The time required to shut down the virtual machine corresponding to the sequence number.
  • the stop delay timer expires, the virtual system controller will shut down the virtual machine corresponding to the next smooth shutdown sequence number; configure the wait for shutdown indication for the virtual machine in the virtual system.
  • the subsequent virtual machine is continuously closed; when the shutdown action information is configured for the virtual machine in the virtual system, the shutdown action information includes controlling the virtual machine to enter a sleep state, a virtual machine or shutting down the virtual machine, and the virtual machine Shutdown refers to the soft shutdown of the virtual machine, that is, the safe shutdown of the guest operating system. Shutting down the virtual machine refers to the hard shutdown of the virtual machine, that is, when the guest operating system is shut down, the customer data may be lost.
  • the technical solution of the embodiment of the present invention can coexist with the method of shutting down the virtual machine in the reverse order of the startup sequence in the prior art, that is, when the configuration of the smooth shutdown configuration is configured, the virtual machine in the virtual system is shut down according to the smooth shutdown configuration information, and is not configured.
  • the configuration information is smoothly closed, the virtual machines in the virtual system are shut down in the reverse order of the startup sequence.
  • FIG. 4 is a schematic flowchart of Embodiment 1 of a method for implementing a smooth shutdown of a virtual system according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
  • Step 401 The virtual system manager receives a request for creating a virtual system, and after completing the creation of the virtual system, receiving virtual system information configured for the virtual system, where the virtual system information includes a startup sequence number of the virtual machine, and a smooth shutdown of the virtual machine. Configuration information, virtual system manager Write the configured virtual system information to the virtual system repository.
  • Step 402 When the virtual system manager receives the request to start the virtual system, the virtual system controller sends the request for starting the virtual system to the virtual system controller, and the virtual system controller starts the virtual machine with the corresponding number in the virtual system according to the configured startup sequence number. .
  • Step 403 The virtual system manager forwards the request for shutting down the virtual system to the virtual system controller when receiving the request to shut down the virtual system; the request to close the virtual system carries the number of the virtual system that needs to be shut down, for example: In the example, the virtual system that needs to be shut down is virtual system X.
  • Step 404 The virtual system controller obtains the smooth shutdown configuration information of the virtual system X from the virtual system information base according to the number of the virtual system that needs to be shut down carried in the request for shutting down the virtual system.
  • Step 405 The virtual system controller performs the shutdown of the virtual machine with the smooth shutdown sequence number M according to the obtained smooth shutdown configuration information, and performs the smooth shutdown sequence number after completing the shutdown of all the virtual machines with the smooth shutdown sequence number M.
  • Step 406 After completing the sequence of all the virtual machines in the virtual system X, the virtual system controller returns a close virtual system X completion message to the virtual system manager.
  • Step 407 The virtual system manager forwards the close virtual system X completion message to the client that sends the request to close the virtual system.
  • the sequential shutdown of the virtual machines in the virtual system is performed by using the descending order of the smooth shutdown sequence number, or the sequential shutdown of the virtual machines in the virtual system may be performed in the ascending manner of the smooth shutdown sequence number.
  • Step 501 A virtual system manager receives a request for creating a virtual system, and after completing the creation of the virtual system, receiving virtual system information configured for the virtual system, where the virtual system information includes: The boot sequence number of the machine, and the smooth shutdown configuration information of the virtual machine.
  • the virtual system manager writes the configured virtual system information into the virtual system information repository.
  • the smooth shutdown configuration information has three smooth shutdown sequence numbers, and the smooth shutdown configuration information is also included as a virtual system.
  • Step 502 When the virtual system manager receives the request to start the virtual system, the virtual system controller sends the request for starting the virtual system to the virtual system controller, and the virtual machine system controller starts the virtual number corresponding to the virtual system according to the configured startup sequence number. machine.
  • Step 503 The virtual system manager forwards the request for shutting down the virtual system to the virtual system controller when the virtual system manager receives the request to shut down the virtual system; the request to close the virtual system carries the number of the virtual system that needs to be shut down, for example: In the example, the virtual system that needs to be shut down is virtual system X.
  • Step 504 The virtual system controller obtains the smooth shutdown configuration information of the virtual system X from the virtual system information base according to the number of the virtual system that needs to be shut down carried in the request for shutting down the virtual system.
  • Step 505 The virtual system controller performs shutdown of all virtual machines in the virtual system X in the smooth shutdown sequence number 3 according to the smooth shutdown configuration information, where the virtual system controller simultaneously executes the virtual machine VM31 and VM32 with the smooth shutdown sequence number 3. , VM33 and VM34 are shut down; according to the stop delay indication information configured for the virtual machine VM32, the virtual system controller starts the stop delay timer.
  • Step 506 after the virtual system controller completes the shutdown of the virtual machines VM31, VM32, VM33, and VM34, the virtual system controller does not perform the shutdown of the virtual machine with the smooth shutdown sequence number 2 because the stop delay timer is running; When the system controller receives the message that the stop delay timer expires, it then performs the shutdown of the virtual machine with the smooth shutdown sequence number 2.
  • Step 507 After the virtual system controller completes shutdown of all virtual machines with the shutdown sequence number 2, the virtual machine with the smooth shutdown sequence number 1 is closed.
  • Step 508 after the virtual system controller completes the shutdown of all the virtual machines with the smooth shutdown sequence number 1, completes the sequential shutdown of all the virtual machines in the virtual system X, and the virtual system controller returns to the virtual system manager to close the virtual system X. Complete the message.
  • Step 509 The virtual system manager forwards the close virtual system X completion message to the client that sends the request to close the virtual system.
  • FIG. 6 is a schematic flowchart of Embodiment 3 of a method for implementing a smooth shutdown of a virtual system according to an embodiment of the present invention, which is a specific implementation method for implementing a smooth shutdown method of a virtual system when a virtual machine in a virtual system is configured with a shutdown indication information, as shown in the figure.
  • the method includes the following steps: Step 601: The virtual system manager receives a request for creating a virtual system, and after completing the creation of the virtual system, receiving virtual system information configured for the virtual system, where the virtual system information includes: a virtual machine The boot sequence number, as well as the smooth shutdown configuration information for the virtual machine.
  • the virtual system manager writes the configured virtual system information into the virtual system information repository.
  • the smooth closed configuration information has three smooth closed sequence numbers, and the smooth closed configuration information is also a virtual system.
  • the virtual machine VM32 is configured to wait for the shutdown indication information.
  • Step 602 When the virtual system manager receives the request to start the virtual system, the virtual system controller sends the request for starting the virtual system to the virtual system controller, and the virtual machine system controller starts the virtual number corresponding to the virtual system according to the configured startup sequence number. machine.
  • Step 603 the virtual system manager receives the request to close the virtual system, and will close the The request of the virtual system is forwarded to the virtual system controller.
  • the request to close the virtual system carries the number of the virtual system that needs to be shut down.
  • the virtual system that needs to be shut down is the virtual system X.
  • Step 604 The virtual system controller acquires the smooth shutdown configuration information of the virtual system X from the virtual system information repository.
  • Step 605 The virtual system controller performs shutdown of all virtual machines in the virtual system X in the smooth shutdown sequence number 3 according to the smooth shutdown configuration information, where the virtual system controller simultaneously performs the virtual machine VM31 and VM32 with the smooth shutdown sequence number 3. Closing; According to the waiting for shutdown indication information configured for the virtual machine VM32 of the virtual system, the virtual system controller waits for the shutdown completion indication message of the virtual machine VM32.
  • Step 606 The virtual system controller receives a shutdown completion indication message of the virtual machine VM32.
  • Step 607 The virtual system controller performs shutdown of the virtual machines VM33 and VM34.
  • Step 608 After the virtual system controller completes the shutdown of all the virtual machines with the smooth shutdown sequence number 3, the shutdown of the virtual machine with the smooth shutdown sequence number 2 is performed.
  • Step 609 After the virtual system controller completes the shutdown of all the virtual machines with the smooth shutdown sequence number 2, the shutdown of the virtual machine with the smooth shutdown sequence number 1 is performed.
  • Step 610 After the virtual system controller completes the shutdown of all the virtual machines with the smooth shutdown sequence number 1, the virtual system controller completes the sequential shutdown of all the virtual machines in the virtual system X, and the virtual system controller returns to the virtual system manager to close the virtual system X. Complete the message.
  • Step 611 The virtual system manager forwards the close virtual system X completion message to the client that sends the request to close the virtual system.
  • FIG. 7 is a schematic structural diagram of a smooth shutdown system for implementing a virtual system according to an embodiment of the present invention.
  • the system includes: a virtual system a manager 70, a virtual system information base 71, and a virtual system controller 72; wherein The virtual system manager 70 is configured to receive the smooth shutdown configuration information configured for the virtual system, and save the configured smooth shutdown configuration information to the virtual system information database 71;
  • the virtual system information base 71 is configured to save the smoothed shutdown configuration information
  • the virtual system controller 72 is configured to perform sequential shutdown of the virtual machine according to the smooth shutdown configuration information saved in the virtual system information repository 71 when receiving the request to shut down the virtual system.
  • the virtual system manager 70 receives the smooth shutdown configuration information configured for the virtual system, and the virtual system information repository 71 saves the smooth shutdown configuration information as:
  • the user receives the smooth shutdown configuration information configured for the virtual system according to the dependency relationship between the application service programs; the virtual system manager 70 configures the smooth shutdown configuration information for the virtual system. It is written into the virtual system information base 71, and the virtual system information base 71 holds the smooth closed configuration information.
  • the smoothing off configuration information includes: a smoothing sequence number corresponding to each virtual machine in the virtual system, and may further include: stopping delay indication information, and/or waiting for closing indication information, and/or closing action information;
  • the configuration information includes the stop delay indication information, and/or the waiting for the shutdown indication information, and/or the closing of the action information, when the virtual system controller performs the sequential shutdown of the virtual machine, according to the stop delay indication information, and / Or wait for the shutdown indication, and / or close the action information to control the smooth shutdown of the virtual machine in the virtual system.
  • the virtual system controller 72 performs the sequential shutdown of the virtual machine according to the saved smooth shutdown configuration information:
  • the virtual system manager 70 When receiving the request to shut down the virtual system, the virtual system manager 70 sends the request to close the virtual system to the virtual system controller 72; the virtual system controller 72 obtains the smooth shutdown configuration information of the virtual system from the virtual system information base 71. The virtual system controller 72 performs the sequential shutdown of the virtual machine according to the smoothed shutdown configuration information obtained by the virtual machine according to the smooth shutdown sequence number corresponding to the virtual machine.
  • the sequential shutdown of the virtual machine according to the smooth shutdown sequence corresponding to the virtual machine is: The sequential order of the virtual machines is performed in ascending order of the smooth shutdown order number; or, the descending order of the smoothed shutdown order numbers is performed, and the order of the virtual machines is closed.
  • the virtual system controller 72 simultaneously turns off virtual machines having the same smooth shutdown sequence number.
  • the virtual system manager and the virtual system controller may be separately set, each being an independent entity, or may be combined into one entity; and, the virtual system information database may be combined with the virtual system manager and/or the virtual system.
  • the controllers are grouped into one entity and can be set separately to become a separate entity.

Landscapes

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

Abstract

提供一种虚拟系统的平滑关闭方法及系统。该方法包括以下步骤:接收为虚拟系统配置的平滑关闭配置信息,并保存所述平滑关闭配置信息;收到关闭虚拟系统的请求时,根据保存的平滑关闭配置信息执行虚拟机的顺序关闭。本发明可解决现有技术中完全按照启动顺序的逆序关闭虚拟机带来的问题。

Description

一种虚拟系统的平滑关闭方法及系统 技术领域
本发明实施例涉及虚拟化技术领域, 尤其涉及一种虚拟系统的平滑关 闭方法及系统。 背景技术
虚拟化技术指的是在物理服务器上, 通过管理程序 (Hypervisor )将物 理资源分割为多个逻辑分区, 每个逻辑分区之间互相隔离, 成为独立的虚 拟机。 多个虚拟机之间共享同一台物理服务器的资源, 对操作系统和应用 程序而言, 虚拟机与物理服务器没有区别。
在数据中心和云计算环境下, 应用服务器及应用服务器的前端和数据 库通常部署在不同的虚拟机上, 整个虚拟机组构成一个虚拟系统。 虚拟系 统中的虚拟机部署不同的软件, 构成不同的功能节点, 例如: 应用服务器 的前端用于执行业务接入功能, 应用服务器用于处理用户的业务请求, 数 据库用于存储用户和业务相关的数据信息。 由于不同的功能节点之间存在 一定的依赖关系, 因此, 云计算平台在部署虚拟系统时, 需要根据虚拟机 的角色提供按某种设定的顺序启动虚拟机和关闭虚拟机的功能。
图 1是现有技术中的云计算平台中虚拟系统的管理架构示意图,如图 1 所示, 虚拟系统管理器负责虚拟系统的创建、 修改和删除等相关的生命期 管理, 相关的生命期管理包括虚拟系统信息, 虚拟系统管理器还负责将虚 拟系统信息更新到虚拟系统信息库中; 虚拟系统信息库用于记录虚拟系统 信息, 虚拟系统信息包括虚拟系统中虚拟机的相关信息; 虚拟系统控制器 根据虚拟系统信息库中的虚拟系统信息, 控制虚拟系统的启动、 运行和关 闭等; 虚拟系统由一组虚拟机构成。 在现有的云计算平台中, 虚拟系统的启动和平滑关闭操作过程包括: 虚拟系统中每个虚拟机都设置有顺序编号, 虚拟系统启动时, 按照虚拟机 的顺序编号的升序依次启动相应虚拟机, 对于具有相同顺序编号的虚拟机 同时进行启动; 虚拟系统关闭时, 按照虚拟机的顺序编号的降序依次关闭 相应虚拟机, 对于具有相同顺序编号的虚拟机同时进行关闭。
传统的应用服务器以虚拟系统的方式托管到云计算平台中, 虚拟系统 中的虚拟机根据加载的应用服务程序的不同作为不同的功能节点。 不同的 应用服务程序之间具有不同的依赖关系, 应用服务程序的启动需要安装一 定的顺序, 即被依赖应用服务程序需要先行启动, 依赖应用服务器程序需 要后启动。 因此, 对于加载了应用服务程序的虚拟机, 在启动时也需要按 照一定的顺序启动。 虚拟系统关闭时, 传统的根据启动顺序的逆序进行关 闭的方式, 即依赖应用服务程序先关闭, 被依赖应用服务程序后关闭。 但 是对于大型应用服务器而言, 应用服务程序之间的依赖关系是很复杂的, 有些应用服务程序启动时的依赖关系, 在平滑关闭时, 原先的依赖关系会 发生改变, 这样, 现有的机制将无法满足大型应用服务器的需求。 发明内容
有鉴于此, 本发明实施例的主要目的在于提供一种虚拟系统的平滑关 闭方法及系统, 可解决现有技术中完全按照启动顺序的逆序关闭虚拟机带 来的问题。
为达到上述目的, 本发明实施例的技术方案是这样实现的:
本发明提供一种虚拟系统的平滑关闭方法, 接收为虚拟系统配置的平 滑关闭配置信息, 并保存所述平滑关闭配置信息; 包括:
收到关闭虚拟系统的请求时, 根据保存的平滑关闭配置信息执行虚拟 机的顺序关闭。
上述方法中, 所述接收为虚拟系统配置的平滑关闭配置信息, 并保存 所述平滑关闭配置信息为:
虚拟系统管理器完成虚拟系统的创建后, 接收用户根据应用服务程序 之间的依赖关系, 为虚拟系统配置的平滑关闭配置信息;
虚拟系统管理器将为虚拟系统配置的平滑关闭配置信息, 写入到虚拟 系统信息库中, 虚拟系统信息库保存所述平滑关闭配置信息。
上述方法中,
所述虚拟系统包含一组虚拟机;
所述平滑关闭配置信息包括虚拟系统中每个虚拟机对应的平滑关闭顺 序编号。
上述方法中,
所述平滑关闭顺序编号为非负整数;
所述平滑关闭配置信息还包括: 停止时延指示信息、 和 /或等待关闭指 示信息、 和 /或关闭动作信息。
上述方法中, 所述收到关闭虚拟系统的请求时, 根据保存的平滑关闭 配置信息执行虚拟机的顺序关闭为:
虚拟系统管理器收到关闭虚拟系统的请求时, 将所述关闭虚拟系统的 请求发送给虚拟系统控制器;
虚拟系统控制器从虚拟系统信息库中获取虚拟系统的平滑关闭配置信 虚拟系统控制器根据获取到的平滑关闭配置信息, 按照虚拟机对应的 平滑关闭顺序编号, 执行虚拟机的顺序关闭。
上述方法中, 所述按照虚拟机对应的平滑关闭顺序编号, 执行虚拟机 的顺序关闭为:
按照平滑关闭顺序编号的升序, 执行虚拟机的顺序关闭;
或, 按照平滑关闭顺序编号的降序, 执行虚拟机的顺序关闭。 上述方法中, 该方法还包括:
虚拟系统控制器同时关闭具有相同的平滑关闭顺序编号的虚拟机。 上述方法中, 该方法还包括:
所述平滑关闭配置信息包括停止时延指示信息、 和 /或等待关闭指示信 息、 和 /或关闭动作信息时, 所述虚拟系统控制器执行虚拟机的顺序关闭操 作, 同时, 根据所述停止时延指示信息、 和 /或等待关闭指示信息、 和 /或关 闭动作信息, 对所述虚拟系统中的虚拟机的平滑关闭进行控制。
上述方法中,
所述停止时延指示信息表示完成平滑关闭一个平滑关闭顺序编号对应 的所有虚拟机后, 等待关闭下一个平滑关闭顺序编号对应的虚拟机需要的 时间;
所述等待关闭指示信息表示收到虚拟机的关闭完成指示消息后, 再继 续关闭后续的虚拟机;
所述关闭动作信息包括控制虚拟机进入休眠状态、 虚拟机关机或关闭 虚拟机。
本发明还提供一种虚拟系统的平滑关闭系统, 包括: 虚拟系统管理器、 虚拟系统信息库、 虚拟系统控制器; 其中,
虚拟系统管理器, 用于接收为虚拟系统配置的平滑关闭配置信息, 并 将配置的平滑关闭配置信息保存到虚拟系统信息库;
虚拟系统信息库, 用于保存所述平滑关闭配置信息;
虚拟系统控制器, 用于收到关闭虚拟系统的请求时, 根据虚拟系统信 息库中保存的平滑关闭配置信息执行虚拟机的顺序关闭。
本发明实施例提供的虚拟系统的平滑关闭方法及系统, 接收为虚拟系 统配置的平滑关闭配置信息, 并保存所述平滑关闭配置信息; 收到关闭 虚拟系统的请求时,根据保存的平滑关闭配置信息执行虚拟机的顺序关闭, 如此, 能够实现虚拟系统中虚拟机的平滑关闭; 而且, 对于大型的应用 服务器, 可以利用上述技术方案, 解决现有技术中完全按照启动顺序的 逆序关闭虚拟机带来的问题, 能够实现对平滑关闭顺序的灵活配置。 附图说明
图 1是现有技术中的云计算平台中虚拟系统的管理架构示意图; 图 2是本发明实施例实现虚拟系统的平滑关闭方法的流程示意图; 图 3是本发明实施例中云计算平台中虚拟系统的管理架构示意图; 图 4是本发明实施例实现虚拟系统的平滑关闭方法的实施例一的流程 示意图;
图 5是本发明实施例实现虚拟系统的平滑关闭方法的实施例二的流程 示意图;
图 6是本发明实施例实现虚拟系统的平滑关闭方法的实施例三的流程 示意图;
图 7是本发明实施例实现虚拟系统的平滑关闭系统的结构示意图。 具体实施方式
本发明实施例的基本思想是:接收为虚拟系统配置的平滑关闭配置信 息, 并保存所述平滑关闭配置信息; 收到关闭虚拟系统的请求时, 根据 保存的平滑关闭配置信息执行虚拟机的顺序关闭。
下面通过附图及具体实施例对本发明实施例再做进一步的详细说明。 本发明实施例提供一种虚拟系统的平滑关闭方法, 图 2是本发明实施 例实现虚拟系统的平滑关闭方法的流程示意图, 如图 2所示, 该方法包括 以下步驟:
步驟 201 ,接收为虚拟系统配置的平滑关闭配置信息, 并保存该平滑关 闭配置信息; 具体的, 云计算平台中, 虚拟系统管理器收到创建虚拟系统的请求, 并在完成虚拟系统的创建后, 可以接收用户通过客户端并根据应用服务程 序之间的依赖关系, 为虚拟系统配置的平滑关闭配置信息; 图 3是本发明 实施例中云计算平台中虚拟系统的管理架构示意图, 如图 3所示, 虚拟系 统管理器将用户为虚拟系统配置的平滑关闭配置信息, 写入到虚拟系统信 息库中, 由虚拟系统信息库保存该平滑关闭配置信息;
如图 3 所示, 可以为每个虚拟系统都配置对应该虚拟系统的平滑关闭 配置信息, 虚拟系统信息库中可以保存多个虚拟系统的平滑关闭配置信息; 每个虚拟系统包含一组虚拟机; 其中, 所述平滑关闭配置信息包括虚拟系 统中每个虚拟机对应的平滑关闭顺序编号, 平滑关闭顺序编号为非负整数 , 该平滑关闭顺序编号可以与启动顺序中的编号相同, 也可以不同; 可选的, 所述平滑关闭配置信息还可以包括停止时延指示信息、 和 /或等待关闭指示 信息、 和 /或关闭动作信息等。
步驟 202 , 收到关闭虚拟系统的请求时,根据保存的平滑关闭配置信息 执行虚拟机的顺序关闭;
具体的, 如图 3 所示, 虚拟系统管理器收到用户通过客户端发送的关 闭虚拟系统的请求时, 将该关闭虚拟系统的请求发送给云计算平台中的虚 拟系统控制器, 所述关闭虚拟系统的请求中携带请求关闭的虚拟系统的编 虚拟系统控制器收到虚拟系统管理器发来的关闭虚拟系统的请求后, 根据其中的虚拟系统的编号, 从虚拟系统信息库中, 获取与该虚拟系统的 编号对应的平滑关闭配置信息; 虚拟系统控制器根据获取到的平滑关闭配 置信息, 即: 按照虚拟机对应的平滑关闭顺序编号, 执行虚拟机的顺序关 闭; 其中, 可以按照平滑关闭顺序编号的升序, 执行虚拟机的顺序关闭, 也可以按照平滑关闭顺序编号的降序, 执行虚拟机的顺序关闭; 其中, 虚 拟系统中, 具有相同的平滑关闭顺序编号的虚拟机, 可以同时进行关闭; 所述平滑关闭配置信息还包括: 停止时延指示信息、 和 /或等待关闭指 示信息, 和 /或关闭动作信息时,虚拟系统控制器执行虚拟机的顺序关闭时, 可同时根据为虚拟系统配置的停止时延指示信息、和 /或等待关闭指示信息、 和 /或关闭动作信息, 以对虚拟系统中的虚拟机的平滑关闭进行控制, 例如: 为虚拟系统中的虚拟机配置停止时延指示信息时, 该停止时延指示信息表 示完成平滑关闭一个平滑关闭顺序编号对应的所有虚拟机后, 等待关闭下 一个平滑关闭顺序编号对应的虚拟机所需要的时间, 当停止时延定时器超 时后, 虚拟系统控制器将关闭下一个平滑关闭顺序编号对应的虚拟机; 为 虚拟系统中的虚拟机配置等待关闭指示信息时, 该等待关闭指示信息表示 收到虚拟机的关闭完成指示消息后, 再继续关闭后续的虚拟机; 为虚拟系 统中的虚拟机配置关闭动作信息时, 该关闭动作信息包括控制虚拟机进入 休眠状态、 虚拟机关机或关闭虚拟机, 虚拟机关机指的是虚拟机的软关闭, 即安全的关闭客户操作系统, 关闭虚拟机指的是虚拟机的硬关闭, 即关闭 客户操作系统时, 可能会丟失客户数据。
本发明实施例的技术方案可以与现有技术中按照启动顺序的逆序关闭 虚拟机的方式并存, 即: 配置有平滑关闭配置信息时, 按照平滑关闭配置 信息关闭虚拟系统中的虚拟机, 没有配置平滑关闭配置信息时, 则按照启 动顺序的逆序关闭虚拟系统中的虚拟机。
实施例一
图 4是本发明实施例实现虚拟系统的平滑关闭方法的实施例一的流程 示意图, 如图 4所示, 该方法包括以下步驟:
步驟 401 ,虚拟系统管理器接收创建虚拟系统的请求,在完成虚拟系统 的创建后, 接收为虚拟系统配置的虚拟系统信息, 该虚拟系统信息包括虚 拟机的启动顺序编号, 以及虚拟机的平滑关闭配置信息, 虚拟系统管理器 将配置的虚拟系统信息写入到虚拟系统信息库中。
步驟 402 ,虚拟系统管理器接收到启动虚拟系统的请求时,将该启动虚 拟系统的请求发送给虚拟系统控制器, 虚拟系统控制器按照配置的启动顺 序编号, 启动虚拟系统内相应编号的虚拟机。
步驟 403 ,虚拟系统管理器接收到关闭虚拟系统的请求时, 将该关闭虚 拟系统的请求转发给虚拟系统控制器; 该关闭虚拟系统的请求中携带需要 关闭的虚拟系统的编号, 例如: 本实施例中, 需要关闭的虚拟系统为虚拟 系统 X。
步驟 404,虚拟系统控制器根据关闭虚拟系统的请求中携带的需要关闭 的虚拟系统的编号, 从虚拟系统信息库中, 获取虚拟系统 X的平滑关闭配 置信息。
步驟 405 ,虚拟系统控制器根据获取到的平滑关闭配置信息,执行平滑 关闭顺序编号为 M的虚拟机的关闭,在完成平滑关闭顺序编号为 M的所有 虚拟机的关闭后, 执行平滑关闭顺序编号为 M-1的虚拟机的关闭; 在完成 平滑关闭顺序编号为 M-1的所有虚拟机的关闭后, 执行平滑关闭顺序编号 为 M-2的虚拟机的关闭, 以此类推, 虚拟系统控制器在完成平滑关闭顺序 编号为 2的所有虚拟机的关闭后, 执行平滑关闭顺序编号为 1的虚拟机的 关闭。
步驟 406, 虚拟系统控制器在完成虚拟系统 X内所有虚拟机的顺序关 闭后, 向虚拟系统管理器返回关闭虚拟系统 X完成消息。
步驟 407 , 虚拟系统管理器将关闭虚拟系统 X完成消息转发给发送关 闭虚拟系统的请求的客户端。
本实施例中, 利用平滑关闭顺序编号的降序方式执行虚拟系统中的虚 拟机的顺序关闭, 也可以利用平滑关闭顺序编号的升序方式执行虚拟系统 中的虚拟机的顺序关闭。 实施例二
图 5是本发明实施例实现虚拟系统的平滑关闭方法的实施例二的流程 示意图, 是虚拟系统中的虚拟机配置有停止时延指示信息时, 实现虚拟系 统平滑关闭方法的具体实现方法, 如图 5所示, 该方法包括以下步驟: 步驟 501 ,虚拟系统管理器接收创建虚拟系统的请求,在完成虚拟系统 的创建后, 接收为虚拟系统配置的虚拟系统信息, 该虚拟系统信息包括: 虚拟机的启动顺序编号, 以及虚拟机的平滑关闭配置信息。 虚拟系统管理 器将配置的所述虚拟系统信息写入到虚拟系统信息库中; 本实施例中, 平 滑关闭配置信息中有 3 个平滑关闭顺序编号, 并且平滑关闭配置信息中还 包括为虚拟系统的虚拟机 VM32配置的停止时延指示信息。
步驟 502 ,虚拟系统管理器接收到启动虚拟系统的请求时,将该启动虚 拟系统的请求发送给虚拟系统控制器, 虚拟机系统控制器按照配置的启动 顺序编号, 启动虚拟系统内相应编号的虚拟机。
步驟 503 ,虚拟系统管理器接收到关闭虚拟系统的请求时, 将该关闭虚 拟系统的请求转发给虚拟系统控制器; 该关闭虚拟系统的请求中携带需要 关闭的虚拟系统的编号, 例如: 本实施例中, 需要关闭的虚拟系统为虚拟 系统 X。
步驟 504,虚拟系统控制器根据关闭虚拟系统的请求中携带的需要关闭 的虚拟系统的编号, 从虚拟系统信息库中, 获取虚拟系统 X的平滑关闭配 置信息。
步驟 505 , 虚拟系统控制器根据平滑关闭配置信息, 执行虚拟系统 X 中平滑关闭顺序编号为 3 的所有虚拟机的关闭, 这里虚拟系统控制器同时 执行平滑关闭顺序编号为 3的虚拟机 VM31、 VM32、 VM33和 VM34的关 闭; 根据为虚拟系统的虚拟机 VM32配置的停止时延指示信息, 虚拟系统 控制器启动停止时延定时器。 步驟 506 ,虚拟系统控制器完成虚拟机 VM31、 VM32、 VM33和 VM34 的关闭后, 由于正在运行停止时延定时器, 虚拟系统控制器不执行对平滑 关闭顺序编号为 2 的虚拟机的关闭; 虚拟系统控制器收到停止时延定时器 超时的消息时, 再执行平滑关闭顺序编号为 2的虚拟机的关闭。
步驟 507 ,虚拟系统控制器完成关闭顺序编号为 2的所有虚拟机的关闭 后, 执行平滑关闭顺序编号为 1的虚拟机的关闭。
步驟 508 ,虚拟系统控制器完成平滑关闭顺序编号为 1的所有虚拟机的 关闭后, 就完成了虚拟系统 X内所有虚拟机的顺序关闭, 虚拟系统控制器 向虚拟系统管理器返回关闭虚拟系统 X完成消息。
步驟 509, 虚拟系统管理器将关闭虚拟系统 X完成消息转发给发送关 闭虚拟系统的请求的客户端。
实施例三
图 6是本发明实施例实现虚拟系统的平滑关闭方法的实施例三的流程 示意图, 是虚拟系统中的虚拟机配置有等待关闭指示信息时, 实现虚拟系 统平滑关闭方法的具体实现方法, 如图 6所示, 该方法包括以下步驟: 步驟 601 ,虚拟系统管理器接收创建虚拟系统的请求,在完成虚拟系统 的创建后, 接收为虚拟系统配置的虚拟系统信息, 该虚拟系统信息包括: 虚拟机的启动顺序编号, 以及虚拟机的平滑关闭配置信息。 虚拟系统管理 器将配置的所述虚拟系统信息写入到虚拟系统信息库中; 本实施例中, 平 滑关闭配置信息中有 3 个平滑关闭顺序编号, 并且平滑关闭配置信息中还 有为虚拟系统的虚拟机 VM32配置的等待关闭指示信息。
步驟 602 ,虚拟系统管理器接收到启动虚拟系统的请求时, 将该启动虚 拟系统的请求发送给虚拟系统控制器, 虚拟机系统控制器按照配置的启动 顺序编号, 启动虚拟系统内相应编号的虚拟机。
步驟 603 ,虚拟系统管理器接收到关闭虚拟系统的请求时, 并将该关闭 虚拟系统的请求转发给虚拟系统控制器; 该关闭虚拟系统的请求中携带需 要关闭的虚拟系统的编号, 例如: 本实施例中, 需要关闭的虚拟系统为虚 拟系统 X。
步驟 604, 虚拟系统控制器从虚拟系统信息库获取虚拟系统 X的平滑 关闭配置信息。
步驟 605 , 虚拟系统控制器根据平滑关闭配置信息, 执行虚拟系统 X 中平滑关闭顺序编号为 3 的所有虚拟机的关闭, 这里虚拟系统控制器同时 进行平滑关闭顺序编号为 3的虚拟机 VM31和 VM32的关闭; 根据为虚拟 系统的虚拟机 VM32配置的等待关闭指示信息, 虚拟系统控制器等待虚拟 机 VM32的关闭完成指示消息。
步驟 606 , 虚拟系统控制器接收虚拟机 VM32的关闭完成指示消息。 步驟 607 , 虚拟系统控制器执行对虚拟机 VM33和 VM34的关闭。 步驟 608 ,虚拟系统控制器完成平滑关闭顺序编号为 3的所有虚拟机的 关闭后, 执行平滑关闭顺序编号为 2的虚拟机的关闭。
步驟 609,虚拟系统控制器完成平滑关闭顺序编号为 2的所有虚拟机的 关闭后, 执行关闭平滑关闭顺序编号为 1的虚拟机的关闭。
步驟 610,虚拟系统控制器完成平滑关闭顺序编号为 1的所有虚拟机的 关闭后, 就完成了虚拟系统 X内所有虚拟机的顺序关闭, 虚拟系统控制器 向虚拟系统管理器返回关闭虚拟系统 X完成消息。
步驟 611 , 虚拟系统管理器将关闭虚拟系统 X完成消息转发给发送关 闭虚拟系统的请求的客户端。
为实现上述方法, 本发明实施例还提供一种虚拟系统的平滑关闭系统, 图 7是本发明实施例实现虚拟系统的平滑关闭系统的结构示意图, 如图 7 所示, 该系统包括: 虚拟系统管理器 70、 虚拟系统信息库 71、 虚拟系统控 制器 72; 其中, 所述虚拟系统管理器 70, 用于接收为虚拟系统配置的平滑关闭配置信 息, 并将配置的平滑关闭配置信息保存到虚拟系统信息库 71 ;
所述虚拟系统信息库 71 , 用于保存所述平滑关闭配置信息;
所述虚拟系统控制器 72, 用于收到关闭虚拟系统的请求时, 根据虚拟 系统信息库 71中保存的平滑关闭配置信息执行虚拟机的顺序关闭。
其中, 所述虚拟系统管理器 70接收为虚拟系统配置的平滑关闭配置信 息, 虚拟系统信息库 71保存所述平滑关闭配置信息为:
虚拟系统管理器 70完成虚拟系统的创建后, 接收用户根据应用服务程 序之间的依赖关系, 为虚拟系统配置的平滑关闭配置信息; 虚拟系统管理 器 70将为虚拟系统配置的平滑关闭配置信息, 写入到虚拟系统信息库 71 中, 虚拟系统信息库 71保存所述平滑关闭配置信息。
所述平滑关闭配置信息包括: 虚拟系统中每个虚拟机对应的平滑关闭 顺序编号, 还可以包括: 停止时延指示信息、 和 /或等待关闭指示信息、 和 / 或关闭动作信息; 所述平滑关闭配置信息包括停止时延指示信息、 和 /或等 待关闭指示信息、 和 /或关闭动作信息时, 虚拟系统控制器执行虚拟机的顺 序关闭时, 同时根据所述停止时延指示信息、 和 /或等待关闭指示信息、 和 / 或关闭动作信息, 对虚拟系统中的虚拟机的平滑关闭进行控制。
所述收到关闭虚拟系统的请求时, 虚拟系统控制器 72根据保存的平滑 关闭配置信息执行虚拟机的顺序关闭为:
虚拟系统管理器 70收到关闭虚拟系统的请求时, 将所述关闭虚拟系统 的请求发送给虚拟系统控制器 72; 虚拟系统控制器 72从虚拟系统信息库 71中获取虚拟系统的平滑关闭配置信息;虚拟系统控制器 72才 据获取到的 平滑关闭配置信息, 按照虚拟机对应的平滑关闭顺序编号, 执行虚拟机的 顺序关闭。
所述按照虚拟机对应的平滑关闭顺序编号, 执行虚拟机的顺序关闭为: 按照平滑关闭顺序编号的升序, 执行虚拟机的顺序关闭; 或, 按照平滑关 闭顺序编号的降序, 执行虚拟机的顺序关闭。
所述虚拟系统控制器 72同时关闭具有相同的平滑关闭顺序编号的虚拟 机。
本发明实施例中, 虚拟系统管理器与虚拟系统控制器可以分开设置, 各自为一个独立实体, 也可以合设成为一个实体; 而且, 虚拟系统信息库 可以与虚拟系统管理器和 /或虚拟系统控制器合设成一个实体, 也可以分开 设置, 成为一个独立实体。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种虚拟系统的平滑关闭方法, 接收为虚拟系统配置的平滑关闭配 置信息, 并保存所述平滑关闭配置信息; 该方法还包括:
收到关闭虚拟系统的请求时, 根据保存的平滑关闭配置信息执行虚拟 机的顺序关闭。
2、 根据权利要求 1所述的方法, 其中, 所述接收为虚拟系统配置的平 滑关闭配置信息, 并保存所述平滑关闭配置信息, 为:
虚拟系统管理器完成虚拟系统的创建后, 接收用户根据应用服务程序 之间的依赖关系, 为虚拟系统配置的平滑关闭配置信息;
虚拟系统管理器将为虚拟系统配置的平滑关闭配置信息, 写入到虚拟 系统信息库中, 虚拟系统信息库保存所述平滑关闭配置信息。
3、 根据权利要求 2所述的方法, 其中,
所述虚拟系统包含一组虚拟机;
所述平滑关闭配置信息包括虚拟系统中每个虚拟机对应的平滑关闭顺 序编号。
4、 根据权利要求 3所述的方法, 其中,
所述平滑关闭顺序编号为非负整数;
所述平滑关闭配置信息还包括: 停止时延指示信息、 和 /或等待关闭指 示信息、 和 /或关闭动作信息。
5、 根据权利要求 4所述的方法, 其中, 所述收到关闭虚拟系统的请求 时, 根据保存的平滑关闭配置信息执行虚拟机的顺序关闭, 为:
虚拟系统管理器收到关闭虚拟系统的请求时, 将所述关闭虚拟系统的 请求发送给虚拟系统控制器;
虚拟系统控制器从虚拟系统信息库中获取虚拟系统的平滑关闭配置信 息; 虚拟系统控制器根据获取到的平滑关闭配置信息, 按照虚拟机对应的 平滑关闭顺序编号, 执行虚拟机的顺序关闭。
6、 根据权利要求 5所述的方法, 其中, 所述按照虚拟机对应的平滑关 闭顺序编号, 执行虚拟机的顺序关闭为:
按照平滑关闭顺序编号的升序, 执行虚拟机的顺序关闭;
或, 按照平滑关闭顺序编号的降序, 执行虚拟机的顺序关闭。
7、 根据权利要求 5或 6所述的方法, 其中, 该方法还包括: 虚拟系统控制器同时关闭具有相同的平滑关闭顺序编号的虚拟机。
8、 根据权利要求 5或 6所述的方法, 其中, 该方法还包括: 所述平滑 关闭配置信息包括停止时延指示信息、 和 /或等待关闭指示信息、 和 /或关闭 动作信息时,
所述虚拟系统控制器执行虚拟机的顺序关闭操作, 同时, 根据所述停 止时延指示信息、 和 /或等待关闭指示信息、 和 /或关闭动作信息, 对所述虚 拟系统中的虚拟机的平滑关闭进行控制。
9、 根据权利要求 8所述的方法, 其中,
所述停止时延指示信息表示: 完成平滑关闭一个平滑关闭顺序编号对 应的所有虚拟机后, 等待关闭下一个平滑关闭顺序编号对应的虚拟机需要 的时间;
所述等待关闭指示信息表示: 收到虚拟机的关闭完成指示消息后, 再 继续关闭后续的虚拟机;
所述关闭动作信息包括: 控制虚拟机进入休眠状态、 虚拟机关机或关 闭虚拟机。
10、 一种虚拟系统的平滑关闭系统, 该系统包括: 虚拟系统管理器、 虚拟系统信息库、 虚拟系统控制器; 其中,
所述虚拟系统管理器, 设置为接收为虚拟系统配置的平滑关闭配置信 息, 并将配置的平滑关闭配置信息保存到虚拟系统信息库;
所述虚拟系统信息库, 设置为保存所述平滑关闭配置信息;
所述虚拟系统控制器, 设置为收到关闭虚拟系统的请求时, 根据虚拟 系统信息库中保存的平滑关闭配置信息执行虚拟机的顺序关闭。
PCT/CN2013/074219 2012-06-26 2013-04-15 一种虚拟系统的平滑关闭方法及系统 WO2014000497A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US14/410,623 US9830181B2 (en) 2012-06-26 2013-04-15 Method and system for gracefully shutdown virtual system
EP13810573.9A EP2866143A4 (en) 2012-06-26 2013-04-15 METHOD AND SYSTEM FOR PROGRESSIVE CLOSURE FOR VIRTUAL SYSTEM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210213049.6A CN103514038B (zh) 2012-06-26 2012-06-26 一种虚拟系统的平滑关闭方法及系统
CN201210213049.6 2012-06-26

Publications (1)

Publication Number Publication Date
WO2014000497A1 true WO2014000497A1 (zh) 2014-01-03

Family

ID=49782187

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/074219 WO2014000497A1 (zh) 2012-06-26 2013-04-15 一种虚拟系统的平滑关闭方法及系统

Country Status (4)

Country Link
US (1) US9830181B2 (zh)
EP (1) EP2866143A4 (zh)
CN (1) CN103514038B (zh)
WO (1) WO2014000497A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105900059B (zh) 2014-01-21 2019-06-07 甲骨文国际公司 用于在应用服务器、云或其它环境中支持多租户的系统和方法
US10594619B2 (en) * 2014-06-23 2020-03-17 Oracle International Corporation System and method for supporting configuration of dynamic clusters in a multitenant application server environment
WO2016006026A1 (ja) * 2014-07-07 2016-01-14 株式会社日立システムズ 仮想サーバ稼動制御システム及び仮想サーバ稼動制御プログラム
GB201513039D0 (en) * 2015-07-23 2015-09-09 Eaton Ind France Sas Shutting down of a virtual system
US10782991B2 (en) 2016-02-26 2020-09-22 Red Hat, Inc. Customizable virtual machine retirement in a management platform
US10212035B2 (en) 2016-04-27 2019-02-19 At&T Intellectual Property I, L.P. Message flow management for virtual networks
US10503237B2 (en) 2017-02-13 2019-12-10 Gbs Laboratories, Llc Mobile device virtualization solution based on bare-metal hypervisor with optimal resource usage and power consumption
CN107608826A (zh) * 2017-09-19 2018-01-19 郑州云海信息技术有限公司 一种存储集群的节点的故障恢复方法、装置及介质
US10705499B2 (en) * 2018-03-30 2020-07-07 Schlumberger Technology Corporation System and method for automated shutdown and startup for a network
JP7063315B2 (ja) * 2019-11-29 2022-05-09 オムロン株式会社 情報処理装置、管理プログラム、管理方法、および、情報処理システム
CN114201221B (zh) * 2020-09-02 2023-03-21 成都鼎桥通信技术有限公司 基于双系统的系统关闭方法、设备及存储介质
US11782623B2 (en) * 2020-12-15 2023-10-10 International Business Machines Corporation Transferring an operating image into a multi-tenant environment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009037271A (ja) * 2007-07-31 2009-02-19 Hitachi Ltd 仮想計算機システムの停止方法および計算機装置
US20090249334A1 (en) * 2008-03-31 2009-10-01 Fujitsu Limited Recording medium recording thereon virtual machine management program, management server device, and method for managing virtual machine
CN101960464A (zh) * 2008-02-25 2011-01-26 松下电器产业株式会社 信息处理装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7254733B2 (en) * 2003-02-18 2007-08-07 International Business Machines Corporation Method of shutting down virtual machines in an orderly manner
US7426715B2 (en) * 2004-06-14 2008-09-16 Lucent Technologies Inc. Shutting down a plurality of software components in an ordered sequence
US8607009B2 (en) * 2006-07-13 2013-12-10 Microsoft Corporation Concurrent virtual machine snapshots and restore
CN101206582B (zh) 2006-12-22 2010-10-06 联想(北京)有限公司 一种虚拟机系统及其处理方法
US7818621B2 (en) 2007-01-11 2010-10-19 International Business Machines Corporation Data center boot order control
JP4924514B2 (ja) * 2008-03-31 2012-04-25 富士通株式会社 仮想マシン管理プログラム、管理サーバ装置及び仮想マシン管理方法
US8234515B2 (en) * 2010-04-01 2012-07-31 Accenture Global Services Limited Repurposable recovery environment
CN101951411A (zh) 2010-10-13 2011-01-19 戴元顺 云调度系统及方法以及多级云调度系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009037271A (ja) * 2007-07-31 2009-02-19 Hitachi Ltd 仮想計算機システムの停止方法および計算機装置
CN101960464A (zh) * 2008-02-25 2011-01-26 松下电器产业株式会社 信息处理装置
US20090249334A1 (en) * 2008-03-31 2009-10-01 Fujitsu Limited Recording medium recording thereon virtual machine management program, management server device, and method for managing virtual machine

Also Published As

Publication number Publication date
EP2866143A4 (en) 2015-07-15
US20150193251A1 (en) 2015-07-09
CN103514038B (zh) 2018-11-27
CN103514038A (zh) 2014-01-15
EP2866143A1 (en) 2015-04-29
US9830181B2 (en) 2017-11-28

Similar Documents

Publication Publication Date Title
WO2014000497A1 (zh) 一种虚拟系统的平滑关闭方法及系统
US10579409B2 (en) Live migration of virtual machines with memory state sharing
US10445123B2 (en) Hypervisor exchange with virtual-machine consolidation
US10216585B2 (en) Enabling disk image operations in conjunction with snapshot locking
US10922123B2 (en) Container migration in computing systems
US8776058B2 (en) Dynamic generation of VM instance at time of invocation
US20170371693A1 (en) Managing containers and container hosts in a virtualized computer system
US20110113426A1 (en) Apparatuses for switching the running of a virtual machine between multiple computer devices belonging to the same computer platform and the associated switching methods
US20120144391A1 (en) Provisioning a virtual machine
CN103885833B (zh) 一种资源管理方法和系统
TWI518502B (zh) Apparatus, method and system for resilient computing cloud system
WO2011066761A1 (zh) 一种物理机到虚拟机的在线迁移方法、装置和系统
CN105511941B (zh) 辅助计算机系统中多个管理程序的联合操作的系统和方法
US9715403B2 (en) Optimized extended context management for virtual machines
CN110347483B (zh) 物理机到虚拟机迁移方法、装置及存储介质
US20210342173A1 (en) Dynamic power management states for virtual machine migration
WO2021018267A1 (zh) 虚拟机热迁移方法和通信设备
WO2016106756A1 (zh) 一种容灾方法、系统和装置
US11748094B2 (en) Techniques for non-disruptive operating system upgrade
WO2015018225A1 (zh) 虚拟机磁盘空间的扩展方法、宿主机和平台
US11520648B2 (en) Firmware emulated watchdog timer controlled using native CPU operations
US10789082B2 (en) Execution of multiple operating systems without rebooting
US20230229471A1 (en) Application-assisted live migration

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13810573

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14410623

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2013810573

Country of ref document: EP