WO2014090021A1 - Device, method and system for managing resources of virtual machine - Google Patents

Device, method and system for managing resources of virtual machine Download PDF

Info

Publication number
WO2014090021A1
WO2014090021A1 PCT/CN2013/084532 CN2013084532W WO2014090021A1 WO 2014090021 A1 WO2014090021 A1 WO 2014090021A1 CN 2013084532 W CN2013084532 W CN 2013084532W WO 2014090021 A1 WO2014090021 A1 WO 2014090021A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
resource management
resource
status information
machine resource
Prior art date
Application number
PCT/CN2013/084532
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2014090021A1 publication Critical patent/WO2014090021A1/en

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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources

Definitions

  • the present invention relates to virtual machine resource management in the field of IT technology, and more particularly to a resource management apparatus, method and system for a virtual machine in a distributed virtual machine resource deployment scenario.
  • Resource virtualization technology represented by cloud computing is one of the most active technologies in the world, and is widely used in communications, security, storage, and Internet of Things. Resource Virtualization technology virtualizes traditional hardware, network, computing and other resources into a “resource pool.” When resources in the resource pool are used, users dynamically apply on demand to minimize user I T expenses.
  • Cloud system a cloud-based system
  • cloud system needs to provide an efficient virtual machine resource management mechanism to properly schedule resources in the cloud system.
  • efficient scheduling methods are needed to maximize customer service with limited virtual machine resources to reduce operating costs.
  • customers it is necessary to “purchase cloud computing services like purchasing hydropower”, ie Purchase services as needed, and release them in time to minimize user IT expenses.
  • FIG. 1 is a schematic diagram showing a virtual machine resource management system in a current cloud system.
  • the implementation is usually as follows: The user first performs demand planning and applies for virtual machine resources to the cloud system administrator; after signing the contract or approval process, the cloud system administrator provides the determined virtual machine resource allocation original H 'J to the virtual
  • the machine allocation device (for example, the cloud virtual machine issuing system); according to the virtual machine resource allocation principle, the virtual machine allocation device allocates virtual machine resources to the virtual machine resource pool to form a virtual machine; the user logs in the virtual machine to use the virtual machine resource. .
  • This method of allocating virtual machine resources according to the user's application requires when the user's business changes result in insufficient or excess virtual machine resources.
  • an object of the present invention is to provide a resource management apparatus, method and system for a virtual machine, which flexibly adjust a resource allocation scheme of a virtual machine according to the needs of the user.
  • a resource management apparatus for a virtual machine comprising:
  • a management rule generating module configured to generate a virtual machine resource management rule according to the received user-defined virtual machine resource management parameter, where the virtual machine resource management rule includes at least a condition of the virtual machine resource change;
  • the status information receiving module is configured to receive virtual machine status information sent by the virtual machine monitoring module.
  • a resource allocation scheme generating module configured to generate a resource allocation scheme of the virtual machine when the virtual machine state information satisfies the condition of the virtual machine resource change according to the virtual machine state information and the virtual machine resource management rule;
  • the resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
  • the virtual machine resource management parameter includes: a condition for changing a virtual machine resource, a granularity of a virtual machine resource change, a charging mode, and an information notification manner. One or more.
  • the management rule generation module receives the virtual machine resource management parameter periodically updated by the user, according to the updated virtual machine resource management parameter, Update office Describe virtual machine resource management rules.
  • the device further includes: an indicator sending module, configured to deliver the virtual machine resource management parameter according to the received user-defined virtual machine resource a virtual machine state monitoring indicator to the virtual machine monitoring module, where the virtual machine state monitoring indicator includes at least one of a virtual machine resource occupation indicator, a virtual machine service operation indicator, and an abnormality alarm indicator; and the status message, the receiving module receiving station The virtual machine monitoring module reports the virtual machine state information reported by the virtual machine state monitoring indicator.
  • the virtual machine state information includes at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormal alarm indicator exceeding a predetermined threshold.
  • the virtual machine state information includes a current monitoring value of at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormality alarm indicator.
  • the virtual machine resource management rule further includes a granularity of the virtual machine resource change; correspondingly, the resource allocation plan generating module is The virtual machine state information and the condition and granularity of the virtual machine resource change are generated, and a resource allocation plan of the virtual machine is generated.
  • the virtual machine resource management rule further includes a virtual machine charging mode; the resource management device of the virtual machine further includes: an accounting plan generating module And generating a virtual machine charging scheme according to the virtual machine state information and the virtual machine charging manner.
  • the virtual machine resource management rule further includes an authorization right, where the authorization authority is used to instruct the user or the operator to modify the virtual machine resource.
  • Management rule Right authority is used to instruct the user or the operator to modify the virtual machine resource.
  • the virtual machine resource management rule further includes an information notification manner, where the information notification manner is used to indicate the virtual machine state information and/or the The method for notifying the resource allocation scheme of the virtual machine; the resource management device of the virtual machine further includes: an information notification module, configured to send the virtual machine state information and/or the location to the user according to the information notification manner The resource allocation scheme of the virtual machine.
  • a resource management method for a virtual machine comprising:
  • the resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
  • the virtual machine resource management parameter includes: a condition for changing a virtual machine resource, a granularity of a virtual machine resource change, a charging mode, and an information notification manner. One or more.
  • the method further includes: receiving virtual machine resource management parameters periodically updated by the user, according to the updated virtual machine resource management parameter, Update the virtual machine resource management rules.
  • the method further includes: delivering a virtual machine state monitoring indicator to the virtual machine monitoring module according to the received user-defined virtual machine resource management parameter, where the virtual machine state monitoring indicator includes a virtual machine resource At least one of an occupancy indicator, a virtual machine service running indicator, and an abnormality alarm indicator; and receiving the virtual machine state information reported by the virtual machine monitoring module according to the virtual machine state monitoring indicator.
  • the virtual machine state information includes at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormal alarm indicator exceeds a predetermined schedule.
  • the indication of the threshold value; or the virtual machine state information includes a current monitoring value of at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormality alarm indicator.
  • the virtual machine resource management rule further includes a granularity of the virtual machine resource change; correspondingly, the virtual machine state information is And the virtual machine resource management rule, the generating a resource allocation plan of the virtual machine includes: generating a resource allocation plan of the virtual machine according to the virtual machine state information and a condition and a granularity of the virtual machine resource change.
  • the virtual machine resource management rule further includes a virtual machine charging mode; the method further includes: according to the virtual machine state information and the The virtual machine charging mode generates a virtual machine charging plan.
  • the virtual machine resource management rule further includes an authorization right, where the authorization authority is used to instruct the user or the operator to modify the virtual machine resource. Authorize permissions for management rules.
  • the virtual machine resource management rule further includes an information notification manner, where the information notification manner is used to indicate the virtual machine state information and/or the notification manner of the resource allocation scheme of the virtual machine.
  • the method further includes: And sending, according to the information notification manner, the virtual machine state information and/or the resource allocation plan of the virtual machine to the user.
  • a resource management system for a virtual machine characterized in that the system includes a resource management device according to the above virtual machine, and the system further includes a virtual machine monitoring module and a virtual machine resource. Allocating devices, virtual resource pools, and virtual machines;
  • the virtual machine monitoring module monitors the virtual machine state, and sends the monitored virtual machine state information to the resource management device of the virtual machine;
  • the resource management device of the virtual machine generates a resource allocation scheme of the virtual machine according to the virtual machine state information sent by the virtual machine monitoring module and the virtual machine resource management rule, and sends the resource allocation plan of the virtual machine.
  • the virtual machine resource allocation device To the virtual machine resource allocation device;
  • the virtual machine resource allocation device performs resource allocation between the virtual resource pool and the virtual machine according to a resource allocation scheme of the virtual machine sent by the resource management device of the virtual machine.
  • the device, the method and the system of the embodiment of the present invention generate a virtual machine resource management rule according to the virtual machine resource management parameter of the user, and perform virtual machine resource allocation based on the virtual machine state information and the virtual machine resource management rule, thereby avoiding the lengthy approval process.
  • the virtual machine resource allocation scheme can be flexibly adjusted to eliminate the inconsistency between the manual evaluation and the actual needs, so that the virtual machine resource allocation division is adapted to the current needs of the user, and the "distribution on demand" is truly achieved.
  • the device, the method, and the system of the embodiments of the present invention require a short time for managing and managing virtual machine resources, and do not interrupt the user's service during the virtual machine resource allocation process, thereby ensuring the reliability of the user service. Can also satisfy the user industry New demands brought about by changes in business.
  • FIG. 1 is a schematic diagram showing a virtual machine resource management system in the prior art
  • FIG. 2 is a block diagram showing a resource management device of a virtual machine according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing a resource management apparatus of a virtual machine according to another embodiment of the present invention.
  • FIG. 4 is a block diagram showing a resource management apparatus of a virtual machine according to another embodiment of the present invention.
  • FIG. 5 is a block diagram showing a resource management apparatus of a virtual machine according to another embodiment of the present invention.
  • FIG. 6 shows a flow chart of a resource management method of a virtual machine in accordance with one embodiment of the present invention
  • FIG. 7 is a flow chart showing a resource management method of a virtual machine according to another embodiment of the present invention.
  • FIG. 8 shows a block diagram of a virtual machine resource management system in accordance with one embodiment of the present invention. detailed description
  • the device includes:
  • the management rule generation module 2 01 is configured to generate a virtual machine resource management rule according to the received user-defined virtual machine resource management parameter, where the virtual machine resource management rule includes at least a condition of the virtual machine resource change;
  • the status information receiving module 2 02 is configured to receive the virtual machine status information sent by the virtual machine monitoring module.
  • a resource allocation scheme generating module 203 configured to generate, according to the virtual machine state information and the virtual machine resource management rule, when the virtual machine state information satisfies a condition of the virtual machine resource change a resource allocation scheme; wherein the resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
  • the resource management apparatus of the virtual machine according to the embodiment of the present invention generates a virtual machine resource management rule according to the received user-defined virtual machine resource management parameter, and generates a virtual machine resource allocation plan according to the virtual machine state information and the virtual machine resource management rule. , thus avoiding lengthy approval processes.
  • the virtual machine resource management rule can reflect the current requirement of the virtual machine resource. Therefore, the resource management device of the virtual machine according to the embodiment of the present invention can flexibly adjust the resource allocation plan of the virtual machine according to the user's needs, and eliminate the inconsistency between the manual evaluation and the actual needs. Sexuality, so that the virtual machine resource allocation is divided into the user's current needs, and truly "as needed". And During the operation of the resource management device of the virtual machine, the user can update his current needs for virtual machine resources, and use the new virtual machine resources without interruption, without interrupting the service or reducing the quality of service.
  • the "virtual machine resource management parameter" in this embodiment refers to a parameter customized by the user for generating a virtual machine resource management rule, which may be a parameter value of various variables that can be defined by the user in the virtual machine resource management rule.
  • the user-defined virtual machine resource management parameters may include, but are not limited to, a combination of one or more of the following various types of parameters:
  • the granularity of virtual machine resource change that is, the minimum unit of virtual machine resource change, such as the minimum changed vCPU granularity; the minimum changed memory GB granularity; the minimum changed virtual network card granularity GE / 1 0 GE;
  • Billing method for example, the user pays in advance; the service pack has thousands of users (monthly, year of the package, etc.); the user pays later; the user account is authorized to automatically deduct the fee;
  • the above virtual machine resource management parameters may be completely defined by the user, or the operator may provide an optional template, and then the user defines the template based on the template.
  • the management rule generation module 2 01 generates a virtual machine resource management rule according to the above virtual machine resource management parameters.
  • the virtual machine resource management rules should at least include the conditions for the virtual machine's resource changes.
  • the change condition may be: the user's traffic volume rises or falls, and the virtual machine resource currently used by the user does not exceed the maximum resource range available to the user.
  • the maximum resource range that the user can use is, for example, the largest vCPU running for the user's virtual machine, the maximum usable memory, the maximum usable bandwidth, and the like.
  • the following is an example in which the management rule generation module 201 generates virtual machine resource management rules based on user-defined virtual machine resource management parameters.
  • ⁇ X1, X2, X3, X4.... ⁇ represents the granularity of the changes contained in the user-defined virtual machine resource management parameters, where XI, X2, X3, X4... represent various virtual machines.
  • MAX ⁇ Zl, Z2, Z3, Z4... ⁇ represents the maximum resource range available to the user, where Zl, Z2, Z3, Z4... represent the maximum amount of resources available to users of various virtual machine resources.
  • the user currently uses resources ⁇ Yl, Y2, Y3, Y4... ⁇ , where Yl, Y2, Y3, Y4... represent the usage of various virtual machine resources currently used by the user.
  • the generated virtual machine resource management rules can be expressed as follows:
  • the maximum resources available to the user may not be set or set for the specified user. Scope, and only the increase and decrease of user traffic as a virtual machine resource change More conditions.
  • the management rule generation module 201 may also generate the virtual machine resource management rule by using the amount of change of other fixed or non-fixed virtual machine resources.
  • the management rule generating module 201 may further receive the virtual machine resource management parameter periodically updated by the user, and update the virtual machine resource management rule according to the updated virtual machine resource management parameter.
  • the rise and fall of the user traffic may be reflected by the virtual machine state information sent by the virtual machine monitoring module received by the state information receiving module 202.
  • the "virtual machine state information" in this embodiment refers to a message reflecting the running state of the virtual machine.
  • the resource management device 200 of the virtual machine may further include an indicator delivery module 301 for Receiving the user-defined virtual machine resource management parameter, the virtual machine state monitoring indicator is sent to the virtual machine monitoring module, and the state information receiving module 202 receives the report that the virtual machine monitoring module reports according to the virtual machine state monitoring indicator.
  • Virtual machine status information can also be defined on the virtual machine monitoring module side without being delivered by the virtual machine's resource management device.
  • the virtual machine state monitoring indicator may include at least one of a virtual machine resource occupation indicator, a virtual machine service operation indicator, and an abnormality alarm indicator.
  • the virtual machine resource occupation indicator is, for example, the occupation status of resources such as a memory, a CPU, a disk, and a network.
  • the virtual machine service running indicators are, for example, the running status of the memory, CPU usage, network packet delay, and disk I0PS (Input/Output Operations Per Second) of the main business process.
  • the abnormal alarm indicator is, for example, an alarm threshold for specifying the monitoring status (such as the occupied status or running status of resources such as memory, CPU, disk, and network).
  • the virtual machine state information returned by the virtual machine state monitoring module correspondingly includes the virtual machine resource
  • the at least one of the source occupancy indicator, the virtual machine service operation indicator, and the abnormality alarm indicator exceeds a predetermined threshold; or the virtual machine state information includes the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormal alarm indicator.
  • the resource allocation scheme is based on information indicating that the virtual machine resource is insufficient or excessive (corresponding to the rise and fall of the user service) indicated by the indication.
  • the generation module may generate an allocation scheme for increasing or decreasing resources of the virtual machine according to the virtual machine resource management rule.
  • the virtual machine state information includes a monitoring target of the current monitoring of each virtual machine state monitoring indicator, and a change threshold is set, so that when the current monitoring value of the specified monitoring target included in the virtual machine state information exceeds the change threshold, the A resource allocation scheme for the virtual machine that changes (eg, increases or decreases) virtual machine resources.
  • the user-defined virtual machine resource management parameters include "CP U change granularity", and the management rule generation module generates the following virtual machine resource management rules: "When the virtual machine state information contains CPU usage is higher than When the set change threshold (that is, the condition for changing the virtual machine resource) is satisfied, the virtual CP U resource corresponding to the CPU change granularity is added to the virtual machine.
  • the resource allocation scheme generating module 203 currently monitors the CP U occupancy rate included in the virtual machine state information according to the virtual machine resource management rule H'J and the virtual machine state information received by the state information receiving module 220. When the value is higher than the set change threshold, the generation is added to the virtual machine and FIG. 4 shows the resource management device of the virtual machine according to another embodiment of the present invention.
  • the resource management device 400 of the virtual machine further includes a billing scheme generating module 410 based on the components shown in FIG. 2 or FIG.
  • the virtual machine resource management rule further includes a virtual machine charging mode
  • the charging plan generating module 401 is configured to generate the the virtual machine state information according to the virtual machine state information and the virtual machine charging mode.
  • Virtual machine billing plan refers to a method for calculating a fee generated by a user using a virtual machine resource, such as a prepaid fee, a flow rate fee, a monthly fee, a special charge, etc., which is not in this embodiment. Make restrictions.
  • the "virtual machine charging scheme” in this embodiment refers to a specific charging scheme for the current usage of the virtual machine resources of the user generated according to the virtual machine charging mode and the virtual machine state information.
  • the virtual machine state information is associated with the resource allocation scheme of the virtual machine.
  • the charging scheme generating module 401 may also generate the virtual machine charging scheme according to the resource allocation scheme of the virtual machine and the virtual machine charging manner. .
  • the charging scheme generated by the charging scheme generating module 401 is: checking whether the charging is sufficient or within a certain allowable range. Within, if not, notify the user to process according to the agreement. If the charging method is a service packet, the processing is not required; if the charging method is post-paid, the charging scheme generated by the charging scheme generating module 401 is: generating charging information, and writing the accounting database. If the charging method is to authorize the automatic deduction, the charging scheme generated by the charging scheme generating module 401 is: Check whether the account balance is sufficient. If not, the short message notifies the user to process according to the agreed protocol.
  • FIG. 5 is a structural diagram of a resource management apparatus 500 of a virtual machine according to another embodiment of the present invention, the resource management apparatus 500 of the virtual machine including the components shown in FIG. 2, FIG. 3 or FIG.
  • the information notification module 5 01 is also included.
  • the virtual machine resource management rule further includes an information notification manner, where the information notification manner is used to indicate virtual machine state information and/or the virtual machine. The way the resource allocation scheme is notified.
  • the information notification module 501 is configured to send virtual machine state information and/or a resource allocation plan of the virtual machine to the user according to the information notification manner.
  • the information notification module 501 can also send information of the charging plan generated by the charging plan generating module 410.
  • the information notification manner includes, for example, a short message push, an email push, a telephone notification, an interface prompt, and the like.
  • the information notification module 510 may push, by using a communication interface, a prompt box displaying information of a resource allocation scheme of a virtual machine and information of a charging scheme to a terminal system of a service provider or a user, for example, according to a TCP/IP protocol, After the terminal system receives the information, a prompt window pops up, for example, "Hint: your business has newly added 2 U / 2 G (2 units of CPU, 2 G memory) virtual machine resources, and the new cost is 20 yuan".
  • the prompt box may not be popped up, but the information is written into the system event of the terminal system, waiting for the user to view the system event or performing subsequent processing, which has the advantage of large-scale management. Underneath, you can avoid frequent pop-up prompts and interfere with normal operation.
  • the information notification module 501 can also automatically activate the included mail service sub-module (not shown) to send the information content to an email set by the user in advance.
  • the information notification module 510 can also send the information to the virtual machine and count it into the virtual machine log or alarm.
  • the user obtains the information and performs subsequent analysis when logging in to the virtual machine.
  • the advantage of this method is that it does not generate excessive network load, and the information is recorded on the virtual machine resource server, which is safe and reliable, and avoids information leakage during transmission.
  • the virtual machine resource management rule further includes an authorization authority, where the authorization authority is used to instruct the user or the operator to modify the authorization authority of the virtual machine resource management rule.
  • FIG. 6 illustrates resource management of a virtual machine according to an embodiment of the present invention.
  • the method comprises:
  • the resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
  • the virtual machine resource management parameter includes one or more of a virtual machine resource change condition, a virtual machine resource change granularity, a charging mode, and an information notification mode.
  • the method for managing a resource of the virtual machine further includes: receiving virtual machine resource management parameters periodically updated by the user, and updating the virtual machine resource management rule according to the updated virtual machine resource management parameter.
  • the virtual machine state information includes an indication that at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormality alarm indicator exceeds a predetermined threshold; or the virtual machine state information includes the virtual machine resource.
  • the current monitoring value of at least one of the occupancy indicator, the virtual machine service running indicator, and the abnormal alarm indicator is not limited to a predetermined threshold.
  • the virtual machine resource management rule further includes a granularity of virtual machine resource change.
  • step S6Q3 includes: generating a resource allocation scheme of the virtual machine according to the virtual machine state information and the condition and granularity of the virtual machine resource change.
  • the virtual machine resource management rule further includes a virtual machine charging mode; correspondingly, the virtual machine resource management method further includes: according to the virtual machine The state information and the virtual machine charging mode generate a charging plan of the virtual machine.
  • the virtual machine resource management rule further includes an authorization authority, where the authorization authority is used to instruct the user or the operator to modify the authorization authority of the virtual machine resource management rule.
  • the virtual machine resource management rule further includes an information notification manner, where the information notification manner is used to indicate virtual machine status information and/or a notification manner of the virtual machine resource allocation scheme.
  • the resource management method of the virtual machine further includes: sending the virtual machine state information and/or the resource allocation plan of the virtual machine to the user according to the information notification manner.
  • the method includes:
  • the virtual machine state monitoring indicator is sent to the virtual machine monitoring module, where the virtual machine state monitoring indicator includes a virtual machine resource occupancy indicator, At least one of a virtual machine service running indicator and an abnormal alarm indicator;
  • the resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
  • the "virtual machine resource management rule is generated according to the received user-defined virtual machine resource management parameter" and the virtual machine state monitoring indicator is delivered according to the received user-defined virtual machine resource management parameter to the Virtual
  • the execution order of the machine monitoring module is not limited.
  • FIG. 8 illustrates a resource management system for a virtual machine according to an embodiment of the present invention, characterized in that the system includes a resource management device 8.1 of a virtual machine according to the above embodiments, and the system further includes a virtual machine.
  • the virtual machine monitoring module 802 monitors the status of the virtual machine 850, and sends the monitored virtual machine status information to the resource management device 810 of the virtual machine; the resource management device 810 of the virtual machine is based on The virtual machine state information sent by the virtual machine monitoring module 802 and the virtual machine resource management rule generate a resource allocation plan of the virtual machine, and send the resource allocation plan of the virtual machine to the virtual machine resource allocation Device 8 03 ;
  • the virtual machine resource allocating device 803 performs resources between the virtual resource pool 804 and the virtual machine 850 according to the resource allocation scheme of the virtual machine sent by the resource management device 201 of the virtual machine. distribution.
  • the virtual machine monitoring module 202 can monitor various monitoring indicators of the virtual machine state in real time or periodically as needed.
  • the virtual machine monitoring module 8 02 can monitor the status of the virtual machine by monitoring system resources, specific processes, and so on.
  • the virtual machine monitoring module 802 can also be a "state probe" built in the virtual machine, running in the virtual machine inside the service, monitoring the state of the virtual machine in real time, or running in a driving manner. It saves resources and improves monitoring efficiency.
  • Another alternative is to run the "virtual machine monitoring agent" on the operating system of the virtualization platform, and collect all the virtual machine monitoring information data of the nodes on each node, and send them to the "virtual machine monitoring platform" for distribution.
  • the present invention is described by taking a cloud computing system as an example, the method, apparatus and system of the present invention are applicable to a variety of business applications, particularly distributed service deployment scenarios.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random Acce ss Memory), a magnetic disk or an optical disk, and the like, which can store program codes. Medium.

Abstract

The present invention relates to a device, method and system for managing resources of a virtual machine. The device comprises: a management rule generating module used for generating a virtual machine resource management rule according to the received user-defined virtual machine resource management parameters, the virtual machine resource management rule at least comprising a virtual machine resource change condition; a state information receiving module used for receiving state information about a virtual machine sent by a virtual machine monitoring module; and a resource allocation scheme generating module used for generating a resource allocation scheme for the virtual machine according to the state information about the virtual machine and the virtual machine resource management rule when the state information about the virtual machine meets the virtual machine resource change condition, wherein the resource allocation scheme for the virtual machine is used for updating the resource configuration of the virtual machine.

Description

虚拟机的资源管理装置、 方法和系统 技术领域  Resource management device, method and system for virtual machine
本发明涉及 I T技术领域虚拟机资源管理,特别是涉及一种应 用于分布式虚拟机资源部署场景中的虚拟机的资源管理装置、方 法和系统。  The present invention relates to virtual machine resource management in the field of IT technology, and more particularly to a resource management apparatus, method and system for a virtual machine in a distributed virtual machine resource deployment scenario.
背景技术  Background technique
以云计算为代表的资源虚拟化技术是目前最活跃的技术领 域之一, 正广泛应用于通信、 安全、 存储、 物联网等领域。 资源 虚拟化技术将传统的硬件、网络、计算等资源虚拟化为 "资源池 ", 当使用该资源池中的资源时, 用户按需动态申请, 从而最大限度 地降低用户 I T开支。  Resource virtualization technology represented by cloud computing is one of the most active technologies in the world, and is widely used in communications, security, storage, and Internet of Things. Resource Virtualization technology virtualizes traditional hardware, network, computing and other resources into a “resource pool.” When resources in the resource pool are used, users dynamically apply on demand to minimize user I T expenses.
资源虚拟化技术需要高效的虚拟机资源管理机制。以云计算 为例, 基于云计算的系统 ( 以下简称 "云系统") 中都需要提供 高效的虚拟机资源管理机制, 以对云系统中的资源进行合理调 度。 对云系统运营商而言, 需要高效的调度方法, 以有限的虚拟 机资源最大限度地服务客户, 以降低运营成本; 对客户而言, 需 要 "像购买水电一样, 购买云计算服务", 即按照需要购买服务, 用后及时释放, 最大限度降低用户 I T开支。  Resource virtualization technology requires an efficient virtual machine resource management mechanism. Taking cloud computing as an example, a cloud-based system (hereinafter referred to as "cloud system") needs to provide an efficient virtual machine resource management mechanism to properly schedule resources in the cloud system. For cloud system operators, efficient scheduling methods are needed to maximize customer service with limited virtual machine resources to reduce operating costs. For customers, it is necessary to “purchase cloud computing services like purchasing hydropower”, ie Purchase services as needed, and release them in time to minimize user IT expenses.
图 1是显示目前云系统中的虚拟机资源管理系统的示意图。 其实现方式通常如下: 用户先做需求规划, 并向云系统管理者申 请虚拟机资源; 经签订合同或审批流程后, 云系统管理者将所确 定的虚拟机资源分配原 H 'J提供给虚拟机分配装置(例如云虚拟机 发放系统); 虚拟机分配装置才 据该虚拟机资源分配原则, 从虚 拟机资源池中为用户分配虚拟机资源, 构成虚拟机; 用户登录虚 拟机使用虚拟机资源。这种根据用户的申请来进行虚拟机资源分 配的方式, 在用户业务变化导致虚拟机资源不足或过剩时, 需要 人工监控、 评估、 并申请重新分配资源, 不仅在工程中通常难以 实现或实时性不足, 而且由于这种重新分配基于人工评估, 因此 无法与用户的业务负荷完全一致, 做不到完全的 "按需分配"。 发明内容 FIG. 1 is a schematic diagram showing a virtual machine resource management system in a current cloud system. The implementation is usually as follows: The user first performs demand planning and applies for virtual machine resources to the cloud system administrator; after signing the contract or approval process, the cloud system administrator provides the determined virtual machine resource allocation original H 'J to the virtual The machine allocation device (for example, the cloud virtual machine issuing system); according to the virtual machine resource allocation principle, the virtual machine allocation device allocates virtual machine resources to the virtual machine resource pool to form a virtual machine; the user logs in the virtual machine to use the virtual machine resource. . This method of allocating virtual machine resources according to the user's application requires when the user's business changes result in insufficient or excess virtual machine resources. Manually monitoring, evaluating, and applying for reallocation of resources is not only difficult or impossible to achieve in real time in engineering, but because this redistribution is based on manual evaluation, it cannot be completely consistent with the user's business load, and cannot be completely "pressed". Need to be assigned." Summary of the invention
针对上述问题,本发明的目的在于提供一种虚拟机的资源管 理装置、 方法和系统, 其根据用户的需要灵活地调整虚拟机的资 源分配方案。  In view of the above problems, an object of the present invention is to provide a resource management apparatus, method and system for a virtual machine, which flexibly adjust a resource allocation scheme of a virtual machine according to the needs of the user.
为达以上目的, 在本发明的第一方面中, 提出了一种虚拟 机的资源管理装置, 该装置包括:  In order to achieve the above object, in a first aspect of the present invention, a resource management apparatus for a virtual machine is provided, the apparatus comprising:
管理规则生成模块, 用于根据接收到的用户 自定义的虚拟 机资源管理参数生成虚拟机资源管理规则, 所述虚拟机资源管 理规则至少包括虚拟机资源变更的条件;  And a management rule generating module, configured to generate a virtual machine resource management rule according to the received user-defined virtual machine resource management parameter, where the virtual machine resource management rule includes at least a condition of the virtual machine resource change;
状态信息接收模块, 用于接收虚拟机监控模块发送的虚拟 机状态信息 \  The status information receiving module is configured to receive virtual machine status information sent by the virtual machine monitoring module.
资源分配方案生成模块,用于根据所述虚拟机状态信息以及 所述虚拟机资源管理规则, 在所述虚拟机状态信息满足所述虚 拟机资源变更的条件时, 生成虚拟机的资源分配方案;  a resource allocation scheme generating module, configured to generate a resource allocation scheme of the virtual machine when the virtual machine state information satisfies the condition of the virtual machine resource change according to the virtual machine state information and the virtual machine resource management rule;
其中,所述虚拟机的资源分配方案用于更新所述虚拟机的资 源配置。  The resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
根据以上虚拟机的资源管理装置, 在第一种可能的实施例 中, 所述虚拟机资源管理参数包括: 虚拟机资源变更的条件、 虚拟机资源变更的粒度、 计费方式、 信息通知方式中的一种或 者多种。  According to the resource management device of the virtual machine, in a first possible embodiment, the virtual machine resource management parameter includes: a condition for changing a virtual machine resource, a granularity of a virtual machine resource change, a charging mode, and an information notification manner. One or more.
根据以上虚拟机的资源管理装置, 在第二种可能的实施例 中, 所述管理规则生成模块接收所述用户周期性更新的虚拟机 资源管理参数, 根据所述更新的虚拟机资源管理参数, 更新所 述虚拟机资源管理规则。 According to the resource management device of the virtual machine, in a second possible embodiment, the management rule generation module receives the virtual machine resource management parameter periodically updated by the user, according to the updated virtual machine resource management parameter, Update office Describe virtual machine resource management rules.
根据以上虚拟机的资源管理装置, 在第三种可能的实施例 中, 所述装置还包括: 指标下发模块, 用于根据所述接收到的 用户 自定义的虚拟机资源管理参数, 下发虚拟机状态监控指标 到所述虚拟机监控模块, 所述虚拟机状态监控指标包括虚拟机 资源占用指标、 虚拟机业务运行指标以及异常告警指标至少之 一; 以及所述状态信, 接收模块接收所述虚拟机监控模块根据 所述虚拟机状态监控指标上报的所述虚拟机状态信息。  According to the resource management device of the above virtual machine, in a third possible embodiment, the device further includes: an indicator sending module, configured to deliver the virtual machine resource management parameter according to the received user-defined virtual machine resource a virtual machine state monitoring indicator to the virtual machine monitoring module, where the virtual machine state monitoring indicator includes at least one of a virtual machine resource occupation indicator, a virtual machine service operation indicator, and an abnormality alarm indicator; and the status message, the receiving module receiving station The virtual machine monitoring module reports the virtual machine state information reported by the virtual machine state monitoring indicator.
根据以上虚拟机的资源管理装置, 在第四种可能的实施例 中, 所述虚拟机状态信息包括所述虚拟机资源占用指标、 虚拟 机业务运行指标以及异常告警指标至少之一超过预定阈值的指 示; 或者, 所述虚拟机状态信息包括所述虚拟机资源占用指标、 虚拟机业务运行指标以及异常告警指标至少之一的当前监控 值。  According to the resource management device of the virtual machine, in a fourth possible embodiment, the virtual machine state information includes at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormal alarm indicator exceeding a predetermined threshold. The virtual machine state information includes a current monitoring value of at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormality alarm indicator.
根据以上虚拟机的资源管理装置, 在第五种可能的实施例 中, 所述虚拟机资源管理规则还包括所述虚拟机资源变更的粒 度; 相应地, 所述资源分配方案生成模块才 据所述虚拟机状态 信息以及所述虚拟机资源变更的条件和粒度, 生成所述虚拟机 的资源分配方案。  According to the resource management device of the virtual machine, in a fifth possible embodiment, the virtual machine resource management rule further includes a granularity of the virtual machine resource change; correspondingly, the resource allocation plan generating module is The virtual machine state information and the condition and granularity of the virtual machine resource change are generated, and a resource allocation plan of the virtual machine is generated.
根据以上虚拟机的资源管理装置, 在第六种可能的实施例 中, 所述虚拟机资源管理规则还包括虚拟机计费方式; 所述虚 拟机的资源管理装置还包括: 计费方案生成模块, 用于根据所 述虚拟机状态信息和所述虚拟机计费方式, 生成虚拟机计费方 案。  According to the resource management device of the above virtual machine, in a sixth possible embodiment, the virtual machine resource management rule further includes a virtual machine charging mode; the resource management device of the virtual machine further includes: an accounting plan generating module And generating a virtual machine charging scheme according to the virtual machine state information and the virtual machine charging manner.
根据以上虚拟机的资源管理装置, 在第七种可能的实施例 中, 所述虚拟机资源管理规则还包括授权权限, 所述授权权限 用于指示所述用户或运营商修改所述虚拟机资源管理规则的授 权权限。 According to the resource management apparatus of the above virtual machine, in a seventh possible embodiment, the virtual machine resource management rule further includes an authorization right, where the authorization authority is used to instruct the user or the operator to modify the virtual machine resource. Management rule Right authority.
根据以上虚拟机的资源管理装置, 在第八种可能的实施例 中, 所述虚拟机资源管理规则还包括信息通知方式, 所述信息 通知方式用于指示所述虚拟机状态信息和 /或所述虚拟机的资 源分配方案的通知方式; 所述虚拟机的资源管理装置还包括: 信息通知模块, 用于根据所述信息通知方式, 向所述用户发送 所述虚拟机状态信息和 /或所述虚拟机的资源分配方案。  According to the resource management device of the above virtual machine, in an eighth possible embodiment, the virtual machine resource management rule further includes an information notification manner, where the information notification manner is used to indicate the virtual machine state information and/or the The method for notifying the resource allocation scheme of the virtual machine; the resource management device of the virtual machine further includes: an information notification module, configured to send the virtual machine state information and/or the location to the user according to the information notification manner The resource allocation scheme of the virtual machine.
在本发明的第二方面中, 提出了一种虚拟机的资源管理方 法, 该方法包括:  In a second aspect of the present invention, a resource management method for a virtual machine is provided, the method comprising:
根据接收到的用户 自定义的虚拟机资源管理参数生成虚拟 机资源管理规则, 所述虚拟机资源管理规则至少包括虚拟机资 源变更的条件;  Generating a virtual machine resource management rule according to the received user-defined virtual machine resource management parameter, where the virtual machine resource management rule includes at least a condition for virtual machine resource change;
接收虚拟机监控模块发送的虚拟机状态信息;  Receiving virtual machine status information sent by the virtual machine monitoring module;
根据所述虚拟机状态信息以及所述虚拟机资源管理规则,在 所述虚拟机状态信息满足所述虚拟机资源变更的条件时, 生成 虚拟机的资源分配方案;  And generating, according to the virtual machine state information and the virtual machine resource management rule, a resource allocation plan of the virtual machine when the virtual machine state information satisfies the condition of the virtual machine resource change;
其中,所述虚拟机的资源分配方案用于更新所述虚拟机的资 源配置。  The resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
根据以上虚拟机的资源管理方法, 在第一种可能的实施例 中, 所述虚拟机资源管理参数包括: 虚拟机资源变更的条件、 虚拟机资源变更的粒度、 计费方式、 信息通知方式中的一种或 者多种。  According to the resource management method of the virtual machine, in a first possible embodiment, the virtual machine resource management parameter includes: a condition for changing a virtual machine resource, a granularity of a virtual machine resource change, a charging mode, and an information notification manner. One or more.
根据以上虚拟机的资源管理方法, 在第二种可能的实施例 中, 所述方法还包括: 接收所述用户周期性更新的虚拟机资源 管理参数, 根据所述更新的虚拟机资源管理参数, 更新所述虚 拟机资源管理规则。  According to the resource management method of the above virtual machine, in a second possible embodiment, the method further includes: receiving virtual machine resource management parameters periodically updated by the user, according to the updated virtual machine resource management parameter, Update the virtual machine resource management rules.
根据以上虚拟机的资源管理方法, 在第三种可能的实施例 中, 所述方法还包括: 根据所述接收到的用户 自定义的虚拟机 资源管理参数, 下发虚拟机状态监控指标到所述虚拟机监控模 块, 所述虚拟机状态监控指标包括虚拟机资源占用指标、 虚拟 机业务运行指标以及异常告警指标至少之一; 以及接收所述虚 拟机监控模块根据所述虚拟机状态监控指标上报的所述虚拟机 状态信息。 According to the resource management method of the above virtual machine, in the third possible embodiment The method further includes: delivering a virtual machine state monitoring indicator to the virtual machine monitoring module according to the received user-defined virtual machine resource management parameter, where the virtual machine state monitoring indicator includes a virtual machine resource At least one of an occupancy indicator, a virtual machine service running indicator, and an abnormality alarm indicator; and receiving the virtual machine state information reported by the virtual machine monitoring module according to the virtual machine state monitoring indicator.
才艮据以上虚拟机的资源管理方法, 在第四种可能的实施例 中, 所述虚拟机状态信息包括所述虚拟机资源占用指标、 虚拟 机业务运行指标以及异常告警指标至少之一超过预定阈值的指 示; 或者, 所述虚拟机状态信息包括所述虚拟机资源占用指标、 虚拟机业务运行指标以及异常告警指标至少之一的当前监控 值。  According to the resource management method of the virtual machine, in a fourth possible embodiment, the virtual machine state information includes at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormal alarm indicator exceeds a predetermined schedule. The indication of the threshold value; or the virtual machine state information includes a current monitoring value of at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormality alarm indicator.
根据以上虚拟机的资源管理方法, 在第五种可能的实施例 中, 所述虚拟机资源管理规则还包括所述虚拟机资源变更的粒 度; 相应地, 所述才 据所述虚拟机状态信息以及所述虚拟机资 源管理规则, 生成所述虚拟机的资源分配方案包括: 根据所述 虚拟机状态信息以及所述虚拟机资源变更的条件和粒度, 生成 所述虚拟机的资源分配方案。  According to the resource management method of the virtual machine, in a fifth possible embodiment, the virtual machine resource management rule further includes a granularity of the virtual machine resource change; correspondingly, the virtual machine state information is And the virtual machine resource management rule, the generating a resource allocation plan of the virtual machine includes: generating a resource allocation plan of the virtual machine according to the virtual machine state information and a condition and a granularity of the virtual machine resource change.
根据以上虚拟机的资源管理方法, 在第六种可能的实施例 中, 所述虚拟机资源管理规则还包括虚拟机计费方式; 所述方 法还包括: 根据所述虚拟机状态信息和所述虚拟机计费方式, 生成虚拟机计费方案。  According to the resource management method of the above virtual machine, in a sixth possible embodiment, the virtual machine resource management rule further includes a virtual machine charging mode; the method further includes: according to the virtual machine state information and the The virtual machine charging mode generates a virtual machine charging plan.
根据以上虚拟机的资源管理方法, 在第七种可能的实施例 中, 所述虚拟机资源管理规则还包括授权权限, 所述授权权限 用于指示所述用户或运营商修改所述虚拟机资源管理规则的授 权权限。  According to the resource management method of the above virtual machine, in a seventh possible embodiment, the virtual machine resource management rule further includes an authorization right, where the authorization authority is used to instruct the user or the operator to modify the virtual machine resource. Authorize permissions for management rules.
根据以上虚拟机的资源管理方法, 在第八种可能的实施例 中, 所述虚拟机资源管理规则还包括信息通知方式, 所述信息 通知方式用于指示所述虚拟机状态信息和 /或所述虚拟机的资 源分配方案的通知方式; 所述方法还包括: 根据所述信息通知 方式, 向所述用户发送所述虚拟机状态信息和 /或所述虚拟机的 资源分配方案。 According to the resource management method of the above virtual machine, in the eighth possible embodiment The virtual machine resource management rule further includes an information notification manner, where the information notification manner is used to indicate the virtual machine state information and/or the notification manner of the resource allocation scheme of the virtual machine. The method further includes: And sending, according to the information notification manner, the virtual machine state information and/or the resource allocation plan of the virtual machine to the user.
在本发明的第三方面中, 提出了一种虚拟机的资源管理系 统, 其特征在于, 该系统包括根据以上的虚拟机的资源管理装 置, 该系统还包括状虚拟机监控模块、 虚拟机资源分配装置、 虚拟资源池以及虚拟机;  In a third aspect of the present invention, a resource management system for a virtual machine is provided, characterized in that the system includes a resource management device according to the above virtual machine, and the system further includes a virtual machine monitoring module and a virtual machine resource. Allocating devices, virtual resource pools, and virtual machines;
所述虚拟机监控模块监控所述虚拟机状态, 并将监控到的虚 拟机状态信息发送至所述虚拟机的资源管理装置;  The virtual machine monitoring module monitors the virtual machine state, and sends the monitored virtual machine state information to the resource management device of the virtual machine;
所述虚拟机的资源管理装置根据所述虚拟机监控模块发送 的所述虚拟机状态信息以及所述虚拟机资源管理规则生成虚拟 机的资源分配方案, 并将所述虚拟机的资源分配方案发送至所 述虚拟机资源分配装置;  The resource management device of the virtual machine generates a resource allocation scheme of the virtual machine according to the virtual machine state information sent by the virtual machine monitoring module and the virtual machine resource management rule, and sends the resource allocation plan of the virtual machine. To the virtual machine resource allocation device;
所述虚拟机资源分配装置根据所述虚拟机的资源管理装置 发送的所述虚拟机的资源分配方案在所述虚拟资源池和所述虚 拟机之间进行资源分配。  The virtual machine resource allocation device performs resource allocation between the virtual resource pool and the virtual machine according to a resource allocation scheme of the virtual machine sent by the resource management device of the virtual machine.
本发明实施例的装置、方法及系统根据用户的虚拟机资源管 理参数生成虚拟机资源管理规则,并基于虚拟机状态信息和虚拟 机资源管理规则进行虚拟机资源分配,从而能够避免冗长的审批 流程, 根据用户的需要灵活地调整虚拟机的资源分配方案, 消除 人工评估与实际需要的不一致性,使虚拟机资源分配分案与用户 当前的需要相适应, 真正做到了 "按需分配"。  The device, the method and the system of the embodiment of the present invention generate a virtual machine resource management rule according to the virtual machine resource management parameter of the user, and perform virtual machine resource allocation based on the virtual machine state information and the virtual machine resource management rule, thereby avoiding the lengthy approval process. According to the needs of users, the virtual machine resource allocation scheme can be flexibly adjusted to eliminate the inconsistency between the manual evaluation and the actual needs, so that the virtual machine resource allocation division is adapted to the current needs of the user, and the "distribution on demand" is truly achieved.
本发明实施例的装置、方法及系统的对虚拟机资源的管理分 配需要的时间短,且在虚拟机资源分配的过程中不中断用户的业 务, 从而在保证了用户业务的可靠性的同时, 还能够满足用户业 务变化带来的新的需求。 The device, the method, and the system of the embodiments of the present invention require a short time for managing and managing virtual machine resources, and do not interrupt the user's service during the virtual machine resource allocation process, thereby ensuring the reliability of the user service. Can also satisfy the user industry New demands brought about by changes in business.
根据本发明所公开的方法和装置的其它特征和优点将在以 下的并入本文的附图以及下文对本发明的详细描述中呈现或予 以阐明,附图和对本发明的详细描述共同用于解释本发明的特定 原理。 附图说明  Other features and advantages of the present invention will be apparent from the following description of the embodiments of the invention and the appended claims. The specific principle of the invention. DRAWINGS
应理解, 附图没有必要按比例绘制, 其呈现的是对描述本发 明基本原理的各个特征的某种程度上的简化表示。这里公开的本 发明特定的设计特征, 包括例如特定的尺寸、方向、位置和形状, 部分地由具体指定的应用和使用环境确定。  It is understood that the drawings are not necessarily to scale, The specific design features of the present invention disclosed herein include, for example, specific dimensions, orientations, positions and shapes, and are determined in part by the particular application and use environment.
图 1显示了现有技术中的虚拟机资源管理系统的示意图; 图 2显示了根据本发明的一个实施例的虚拟机的资源管理装 置的结构图;  1 is a schematic diagram showing a virtual machine resource management system in the prior art; FIG. 2 is a block diagram showing a resource management device of a virtual machine according to an embodiment of the present invention;
图 3显示了根据本发明的另一个实施例的虚拟机的资源管理 装置的结构图;  3 is a block diagram showing a resource management apparatus of a virtual machine according to another embodiment of the present invention;
图 4显示了根据本发明的另一个实施例的虚拟机的资源管理 装置的结构图;  4 is a block diagram showing a resource management apparatus of a virtual machine according to another embodiment of the present invention;
图 5显示了根据本发明的另一个实施例的虚拟机的资源管理 装置的结构图;  FIG. 5 is a block diagram showing a resource management apparatus of a virtual machine according to another embodiment of the present invention; FIG.
图 6显示了根据本发明的一个实施例的虚拟机的资源管理方 法的流程图;  6 shows a flow chart of a resource management method of a virtual machine in accordance with one embodiment of the present invention;
图 7显示了根据本发明的另一个实施例的虚拟机的资源管理 方法的流程图;  7 is a flow chart showing a resource management method of a virtual machine according to another embodiment of the present invention;
图 8显示了根据本发明的一个实施例的虚拟机资源管理系统 的结构图。 具体实施方式 FIG. 8 shows a block diagram of a virtual machine resource management system in accordance with one embodiment of the present invention. detailed description
下面将详细参考本发明的各实施例,其示例显示在附图和下 文描述中。 尽管结合示例性实施例描述了本发明, 但应该理解, 本说明书无意将本发明限制于这些示例性实施例。 相反, 本发明 不仅覆盖这些示例性实施例,而且也覆盖包含在由所附权利要求 书限定的本发明的实质和范围内的各种替代物、修改、 等价物和 其它实施例。  Reference will now be made in detail to the embodiments of the invention, While the present invention has been described in connection with the exemplary embodiments, it is understood that this description is not intended to limit the invention. Rather, the invention is not limited to the embodiments of the invention, and the various alternatives, modifications, equivalents, and other embodiments, which are included within the scope and scope of the invention as defined by the appended claims.
图 2显示了根据本发明的一个实施例的虚拟机的资源管理装 置 2 00的结构, 在该实施例中, 该装置包括:  2 shows the structure of a resource management device 200 of a virtual machine in accordance with an embodiment of the present invention. In this embodiment, the device includes:
管理规则生成模块 2 01, 用于根据接收到的用户 自定义的虚 拟机资源管理参数生成虚拟机资源管理规则, 所述虚拟机资源 管理规则至少包括虚拟机资源变更的条件;  The management rule generation module 2 01 is configured to generate a virtual machine resource management rule according to the received user-defined virtual machine resource management parameter, where the virtual machine resource management rule includes at least a condition of the virtual machine resource change;
状态信息接收模块 2 02, 用于接收虚拟机监控模块发送的虚 拟机状态信息 \  The status information receiving module 2 02 is configured to receive the virtual machine status information sent by the virtual machine monitoring module.
资源分配方案生成模块 2 03, 用于根据所述虚拟机状态信息 以及所述虚拟机资源管理规则, 在所述虚拟机状态信息满足所 述虚拟机资源变更的条件时, 生成所述虚拟机的资源分配方案; 其中,所述虚拟机的资源分配方案用于更新所述虚拟机的资 源配置。  a resource allocation scheme generating module 203, configured to generate, according to the virtual machine state information and the virtual machine resource management rule, when the virtual machine state information satisfies a condition of the virtual machine resource change a resource allocation scheme; wherein the resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
本发明实施例的虚拟机的资源管理装置根据接收到的用户 自定义的虚拟机资源管理参数生成虚拟机资源管理规则,并根据 虚拟机状态信息和虚拟机资源管理规则生成虚拟机的资源分配 方案, 从而能够避免冗长的审批流程。 虚拟机资源管理规则可以 反映用户当前对虚拟机资源的需要,因此本发明实施例的虚拟机 的资源管理装置能够根据用户需要灵活地调整虚拟机的资源分 配方案, 消除人工评估与实际需要的不一致性, 使虚拟机资源分 配分案与用户当前的需要相适应, 真正做到 "按需分配"。 并且 在该虚拟机的资源管理装置运行期间,用户可以更新自身对当前 对虚拟机资源的需要, 并不间断地使用新的虚拟机资源, 不用中 断业务或降低服务质量。 The resource management apparatus of the virtual machine according to the embodiment of the present invention generates a virtual machine resource management rule according to the received user-defined virtual machine resource management parameter, and generates a virtual machine resource allocation plan according to the virtual machine state information and the virtual machine resource management rule. , thus avoiding lengthy approval processes. The virtual machine resource management rule can reflect the current requirement of the virtual machine resource. Therefore, the resource management device of the virtual machine according to the embodiment of the present invention can flexibly adjust the resource allocation plan of the virtual machine according to the user's needs, and eliminate the inconsistency between the manual evaluation and the actual needs. Sexuality, so that the virtual machine resource allocation is divided into the user's current needs, and truly "as needed". And During the operation of the resource management device of the virtual machine, the user can update his current needs for virtual machine resources, and use the new virtual machine resources without interruption, without interrupting the service or reducing the quality of service.
以下详细说明本发明实施例的虚拟机的资源管理装置 2 00及 其各部件的优选实施方式。  DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a preferred embodiment of a resource management device 200 of a virtual machine and its components will be described in detail.
本实施例中的 "虚拟机资源管理参数"是指由用户 自定义的 用于生成虚拟机资源管理规则的参数,其可以是虚拟机资源管理 规则中可由用户定义的各种变量的参数值。在一个优选的实施例 中,用户 自定义的虚拟机资源管理参数可包括但不限于以下各类 参数中的一种或多种的组合:  The "virtual machine resource management parameter" in this embodiment refers to a parameter customized by the user for generating a virtual machine resource management rule, which may be a parameter value of various variables that can be defined by the user in the virtual machine resource management rule. In a preferred embodiment, the user-defined virtual machine resource management parameters may include, but are not limited to, a combination of one or more of the following various types of parameters:
( 1 ) 虚拟机资源变更的条件;  (1) conditions for virtual machine resource changes;
(2 )虚拟机资源变更的粒度: 即虚拟机的资源一次变更的最 小单位, 如最小变更的 vCPU粒度; 最小变更的内存 GB粒度; 最小 变更的虚拟网卡粒度 GE / 1 0 GE等;  (2) The granularity of virtual machine resource change: that is, the minimum unit of virtual machine resource change, such as the minimum changed vCPU granularity; the minimum changed memory GB granularity; the minimum changed virtual network card granularity GE / 1 0 GE;
( 3)计费方式: 例如用户预先付费; 服务包千用户 (包月、 包年等); 用户后付费; 用户账户授权自动扣费等;  (3) Billing method: for example, the user pays in advance; the service pack has thousands of users (monthly, year of the package, etc.); the user pays later; the user account is authorized to automatically deduct the fee;
(4)信息通知方式: 短信通知、 Ema i l通知等;  (4) Information notification method: SMS notification, Ema i l notification, etc.;
优选地, 以上虚拟机资源管理参数可完全由用户 自行定义, 也可由运营商提供可供选择的模版, 再由用户基于模版进行定 义。  Preferably, the above virtual machine resource management parameters may be completely defined by the user, or the operator may provide an optional template, and then the user defines the template based on the template.
管理规则生成模块 2 01根据以上虚拟机资源管理参数生成 虚拟机资源管理规则。 虚拟机资源管理规则至少应包括虚拟机 的资源变更的条件。 优选地, 该变更条件可为: 用户的业务量 上升或下降, 以及用户当前使用的虚拟机资源不超过用户可使 用的最大资源范围等。  The management rule generation module 2 01 generates a virtual machine resource management rule according to the above virtual machine resource management parameters. The virtual machine resource management rules should at least include the conditions for the virtual machine's resource changes. Preferably, the change condition may be: the user's traffic volume rises or falls, and the virtual machine resource currently used by the user does not exceed the maximum resource range available to the user.
其中用户可使用的最大资源范围例如是针对该用户的虚拟 机运行的最大的 vCPU、最大可使用的内存、最大可使用的带宽等。 以下是管理规则生成模块 201根据用户 自定义的虚拟机资源 管理参数生成虚拟机资源管理规则的一个例子。 The maximum resource range that the user can use is, for example, the largest vCPU running for the user's virtual machine, the maximum usable memory, the maximum usable bandwidth, and the like. The following is an example in which the management rule generation module 201 generates virtual machine resource management rules based on user-defined virtual machine resource management parameters.
在该例子中, 以 {X1,X2,X3,X4.... } 表示用户 自定义的虚 拟机资源管理参数中包含的变更粒度,其中 XI, X2, X3, X4……代 表各种虚拟机资源的变更粒度。 以 MAX { Zl, Z2, Z3, Z4... } 表示 用户可使用的最大资源范围, 其中 Zl, Z2, Z3, Z4…代表各种虚 拟机资源的用户可使用的最大资源量。 以 {Yl, Y2, Y3, Y4...}表示 用户当前使用资源,其中 Yl, Y2, Y3, Y4…代表用户当前使用的各 种虚拟机资源的使用量。 那么所生成的虚拟机资源管理规则可 表述^口下:  In this example, {X1, X2, X3, X4.... } represents the granularity of the changes contained in the user-defined virtual machine resource management parameters, where XI, X2, X3, X4... represent various virtual machines. The granularity of change of resources. MAX { Zl, Z2, Z3, Z4... } represents the maximum resource range available to the user, where Zl, Z2, Z3, Z4... represent the maximum amount of resources available to users of various virtual machine resources. The user currently uses resources {Yl, Y2, Y3, Y4...}, where Yl, Y2, Y3, Y4... represent the usage of various virtual machine resources currently used by the user. Then the generated virtual machine resource management rules can be expressed as follows:
( 1 ) 如果用户当前使用总资源 SUM (Yl, Y2, Y3, Y4, ... } 等 于用户可使用的最大资源范围 MAX { Zl, Z2, Z3, Z4... } ,则表示, 用户资源达到允许的上限, 则通知用户, 资源已经达到上限, 需要调整业务或重新签署协议;  (1) If the user currently uses the total resource SUM (Yl, Y2, Y3, Y4, ... } equals the maximum resource range MAX { Zl, Z2, Z3, Z4... } that the user can use, it means that the user resource If the upper limit is reached, the user is notified that the resource has reached the upper limit and the service needs to be adjusted or the agreement is re-signed;
( 2 ) 如果用户当前使用总资源 SUM (Yl, Y2, Y3, Y4, ... } 小 于用户可使用的最大资源范围 MAX (Z1, Z2, Z3,Z4... } ,则有两种 情况: 如果用户业务量下降, 需要减少虚拟机资源, 则为用户 分配的新的虚拟机资源为  ( 2 ) If the user currently uses the total resource SUM (Yl, Y2, Y3, Y4, ... } is less than the maximum resource range MAX (Z1, Z2, Z3, Z4... } available to the user, there are two cases : If the user traffic decreases and the virtual machine resources need to be reduced, the new virtual machine resources allocated for the user are
SUM { Yl, Y2, Y3, Υ4, ... } = SUM { Yl, Υ2, Y3, Υ4, ... }  SUM { Yl, Y2, Y3, Υ 4, ... } = SUM { Yl, Υ2, Y3, Υ4, ... }
-SUM { XI, Χ2, Χ3, Χ4, ... } 如果用户业务量上升, 需要增加虚拟机资源, 则为用户分 配的新的虚拟机资源为:  -SUM { XI, Χ2, Χ3, Χ4, ... } If the user traffic increases and virtual machine resources need to be added, the new virtual machine resources allocated for the user are:
SUM { Yl, Y2, Υ3, Υ4, ... } = SUM { Yl, Υ2, Υ3, Υ4, ... }  SUM { Yl, Y2, Υ3, Υ4, ... } = SUM { Yl, Υ2, Υ3, Υ4, ... }
+ SUM { XI, Χ2, Χ3, Χ4, ... } ; 优选地, 在虚拟机资源相对于用户的需求足够充足的情况 下, 也可不设置、 或针对指定用户不设置用户可使用的最大资 源范围, 而仅以用户业务量的上升和下降作为虚拟机的资源变 更的条件。 + SUM { XI, Χ 2, Χ 3, Χ 4, ... } ; Preferably, in the case that the virtual machine resources are sufficiently sufficient relative to the user, the maximum resources available to the user may not be set or set for the specified user. Scope, and only the increase and decrease of user traffic as a virtual machine resource change More conditions.
优选地, 在用户未定义变更粒度的情况下, 管理规则生成模 块 201也可采用以其他固定或非固定的虚拟机资源的变更量来生 成虚拟机资源管理规则。  Preferably, in the case where the user does not define the change granularity, the management rule generation module 201 may also generate the virtual machine resource management rule by using the amount of change of other fixed or non-fixed virtual machine resources.
优选地, 管理规则生成模块 201还可以接收所述用户周期性 更新的虚拟机资源管理参数, 根据所述更新的虚拟机资源管理 参数, 更新所述虚拟机资源管理规则。  Preferably, the management rule generating module 201 may further receive the virtual machine resource management parameter periodically updated by the user, and update the virtual machine resource management rule according to the updated virtual machine resource management parameter.
优选地, 用户业务量的上升和下降可由状态信息接收模块 202所接收的虚拟机监控模块发送的虚拟机状态信息来反映。 本 实施例中的 "虚拟机状态信息" 是指反映虚拟机运行状态的信 在图 3所示的实施例中, 虚拟机的资源管理装置 200还可包 括指标下发模块 301, 用于根据所述接收到的用户 自定义的虚拟 机资源管理参数, 下发虚拟机状态监控指标到虚拟机监控模块, 状态信息接收模块 202接收所述虚拟机监控模块根据所述虚拟 机状态监控指标上报的所述虚拟机状态信息。 在一个变形中, 虚拟机状态监控指标也可在虚拟机监控模块一侧定义, 而不经 由虚拟机的资源管理装置下发。  Preferably, the rise and fall of the user traffic may be reflected by the virtual machine state information sent by the virtual machine monitoring module received by the state information receiving module 202. The "virtual machine state information" in this embodiment refers to a message reflecting the running state of the virtual machine. In the embodiment shown in FIG. 3, the resource management device 200 of the virtual machine may further include an indicator delivery module 301 for Receiving the user-defined virtual machine resource management parameter, the virtual machine state monitoring indicator is sent to the virtual machine monitoring module, and the state information receiving module 202 receives the report that the virtual machine monitoring module reports according to the virtual machine state monitoring indicator. Virtual machine status information. In a variant, the virtual machine status monitoring indicator can also be defined on the virtual machine monitoring module side without being delivered by the virtual machine's resource management device.
优选地, 虚拟机状态监控指标可包括虚拟机资源占用指标、 虚拟机业务运行指标以及异常告警指标至少之一。  Preferably, the virtual machine state monitoring indicator may include at least one of a virtual machine resource occupation indicator, a virtual machine service operation indicator, and an abnormality alarm indicator.
其中, 虚拟机资源占用指标例如为内存、 CPU、 磁盘、 网络 等资源的占用状态。虚拟机业务运行指标例如为主要业务进程的 内存、 CPU占用率、 网络包延迟、 磁盘 I0PS ( Input/Output Operations Per Second, 即每秒进行读写操作的次数) 等运行 状态。 异常告警指标例如为指定监控目标 (例如内存、 CPU、 磁 盘、 网络等资源的占用状态或运行状态)的告警阈值。 虚拟机状 态监控模块返回的述虚拟机状态信息相应地包括所述虚拟机资 源占用指标、虚拟机业务运行指标以及异常告警指标至少之一超 过预定阈值的指示; 或者, 所述虚拟机状态信息包括所述虚拟机 资源占用指标、虚拟机业务运行指标以及异常告警指标至少之一 的当前监控值。 The virtual machine resource occupation indicator is, for example, the occupation status of resources such as a memory, a CPU, a disk, and a network. The virtual machine service running indicators are, for example, the running status of the memory, CPU usage, network packet delay, and disk I0PS (Input/Output Operations Per Second) of the main business process. The abnormal alarm indicator is, for example, an alarm threshold for specifying the monitoring status (such as the occupied status or running status of resources such as memory, CPU, disk, and network). The virtual machine state information returned by the virtual machine state monitoring module correspondingly includes the virtual machine resource The at least one of the source occupancy indicator, the virtual machine service operation indicator, and the abnormality alarm indicator exceeds a predetermined threshold; or the virtual machine state information includes the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormal alarm indicator. The current monitoring value of one.
在虚拟机状态信息包括各虚拟机状态监控指标的超过预定 阈值的指示的情况下,根据该指示所表明的虚拟机资源不足或过 剩(对应于用户业务的上升和下降)的信息, 资源分配方案生成 模块可根据虚拟机资源管理规则生成增加或减少虚拟机的资源 的分配方案。  In the case that the virtual machine state information includes an indication that each virtual machine state monitoring indicator exceeds a predetermined threshold, the resource allocation scheme is based on information indicating that the virtual machine resource is insufficient or excessive (corresponding to the rise and fall of the user service) indicated by the indication. The generation module may generate an allocation scheme for increasing or decreasing resources of the virtual machine according to the virtual machine resource management rule.
在虚拟机状态信息包括各虚拟机状态监控指标的当前监控 的监控目标分别设置变更阈值,从而在虚拟机状态信息所包含的 指定监控目标的当前监控值超过该变更阈值的情况下,生成用于 变更(例如增加或减少)虚拟机资源的所述虚拟机的资源分配方 案。  The virtual machine state information includes a monitoring target of the current monitoring of each virtual machine state monitoring indicator, and a change threshold is set, so that when the current monitoring value of the specified monitoring target included in the virtual machine state information exceeds the change threshold, the A resource allocation scheme for the virtual machine that changes (eg, increases or decreases) virtual machine resources.
以下以 C PU的占用率为例, 说明本实施例的虚拟机的资源管 理装置的工作流程。  The workflow of the resource management device of the virtual machine of this embodiment will be described below by taking the occupancy rate of the CPU as an example.
首先, 用户 自定义的虚拟机资源管理参数中包括 " CP U变更 粒度", 管理规则生成模块生成了如下的虚拟机资源管理规则: "当虚拟机状态信息中所包含的 CPU的占用率高于所设定的变更 阈值 (即满足虚拟机资源变更的条件) 时, 为虚拟机增加与 C PU 变更粒度相对应的虚拟 CP U资源 "。 资源分配方案生成模块 2 0 3根 据该虚拟机资源管理规 H 'J以及状态信息接收模块 2 0 2所接收到的 虚拟机状态信息, 在虚拟机状态信息中包含的 CP U占用率的当前 监控值高于所设定的变更阈值的情况下, 生成为虚拟机增加与 图 4显示了根据本发明的另一实施例的虚拟机的资源管理装 置 400的结构图, 该虚拟机的资源管理装置 400在包括图 2或图 3 所示的各组成部分的基础上还包括计费方案生成模块 4 01。 在图 4所述的实施例中, 虚拟机资源管理规则还包括虚拟机计费方 式, 计费方案生成模块 401用于根据所述虚拟机状态信息和所述 虚拟机计费方式, 生成所述虚拟机计费方案。 本实施例中的 "虚 拟机计费方式" 是指对用户使用虚拟机资源产生的费用进行计 算的方式, 例如预付费、 流量计费、 包月计费、 特殊收费等, 本实施例对此不做限制。 本实施例中的 "虚拟机计费方案" 是 指按照虚拟机计费方式和虚拟机状态信息而生成的针对用户的 虚拟机资源的当前使用情况的具体计费方案。 由于虚拟机状态 信息与虚拟机的资源分配方案相关联, 优选地, 计费方案生成 模块 401也可根据虚拟机的资源分配方案和所述虚拟机计费方 式, 生成所述虚拟机计费方案。 First, the user-defined virtual machine resource management parameters include "CP U change granularity", and the management rule generation module generates the following virtual machine resource management rules: "When the virtual machine state information contains CPU usage is higher than When the set change threshold (that is, the condition for changing the virtual machine resource) is satisfied, the virtual CP U resource corresponding to the CPU change granularity is added to the virtual machine. The resource allocation scheme generating module 203 currently monitors the CP U occupancy rate included in the virtual machine state information according to the virtual machine resource management rule H'J and the virtual machine state information received by the state information receiving module 220. When the value is higher than the set change threshold, the generation is added to the virtual machine and FIG. 4 shows the resource management device of the virtual machine according to another embodiment of the present invention. The resource management device 400 of the virtual machine further includes a billing scheme generating module 410 based on the components shown in FIG. 2 or FIG. In the embodiment of FIG. 4, the virtual machine resource management rule further includes a virtual machine charging mode, and the charging plan generating module 401 is configured to generate the the virtual machine state information according to the virtual machine state information and the virtual machine charging mode. Virtual machine billing plan. The "virtual machine charging method" in this embodiment refers to a method for calculating a fee generated by a user using a virtual machine resource, such as a prepaid fee, a flow rate fee, a monthly fee, a special charge, etc., which is not in this embodiment. Make restrictions. The "virtual machine charging scheme" in this embodiment refers to a specific charging scheme for the current usage of the virtual machine resources of the user generated according to the virtual machine charging mode and the virtual machine state information. The virtual machine state information is associated with the resource allocation scheme of the virtual machine. Preferably, the charging scheme generating module 401 may also generate the virtual machine charging scheme according to the resource allocation scheme of the virtual machine and the virtual machine charging manner. .
作为生成计费方案的示例,如果针对用户的虚拟机资源管理 规则中的计费方式为预先付费, 则计费方案生成模块 401生成的 计费方案为: 检查付费是否足够或在一定的允许范围内, 如果不 是,则通知用户,按照协议约定处理。如果计费方式是服务包千, 则不需要处理;如果计费方式是后付费,则计费方案生成模块 401 产生的计费方案为: 生成计费信息, 写入计费数据库。 如果计费 方式是授权自动扣费, 则计费方案生成模块 401产生的计费方案 为: 检查账户余额是否足够, 如果不够, 则短信通知用户, 按照 约定的协议处理。  As an example of generating a charging scheme, if the charging method in the virtual machine resource management rule for the user is prepaid, the charging scheme generated by the charging scheme generating module 401 is: checking whether the charging is sufficient or within a certain allowable range. Within, if not, notify the user to process according to the agreement. If the charging method is a service packet, the processing is not required; if the charging method is post-paid, the charging scheme generated by the charging scheme generating module 401 is: generating charging information, and writing the accounting database. If the charging method is to authorize the automatic deduction, the charging scheme generated by the charging scheme generating module 401 is: Check whether the account balance is sufficient. If not, the short message notifies the user to process according to the agreed protocol.
图 5显示了根据本发明的另一实施例的虚拟机的资源管理 装置 5 00的结构图, 该虚拟机的资源管理装置 5 00在包括图 2、 图 3或图 4所示的各组成部分的基础上还包括信息通知模块 5 01。 在 该实施例中, 所述虚拟机资源管理规则还包括信息通知方式, 所述信息通知方式用于指示虚拟机状态信息和 /或所述虚拟机 的资源分配方案的通知方式。 信息通知模块 5 01用于根据所述信 息通知方式, 向所述用户发送虚拟机状态信息和 /或所述虚拟机 的资源分配方案。 此外, 信息通知模块 5 01还可发送计费方案生 成模块 4 01所生成的计费方案的信息。 FIG. 5 is a structural diagram of a resource management apparatus 500 of a virtual machine according to another embodiment of the present invention, the resource management apparatus 500 of the virtual machine including the components shown in FIG. 2, FIG. 3 or FIG. The information notification module 5 01 is also included. In this embodiment, the virtual machine resource management rule further includes an information notification manner, where the information notification manner is used to indicate virtual machine state information and/or the virtual machine. The way the resource allocation scheme is notified. The information notification module 501 is configured to send virtual machine state information and/or a resource allocation plan of the virtual machine to the user according to the information notification manner. In addition, the information notification module 501 can also send information of the charging plan generated by the charging plan generating module 410.
优选地,信息通知方式例如包括:短信推送、 电子邮件推送、 电话告知、 界面提示等方式。  Preferably, the information notification manner includes, for example, a short message push, an email push, a telephone notification, an interface prompt, and the like.
作为一个例子, 信息通知模块 5 01可通过通信接口基于例如 TCP / I P协议将显示虚拟机的资源分配方案的信息以及计费方案 的信息的提示框推送到服务提供商或用户的终端系统中,终端系 统接收到信息后, 弹出提示窗口, 例如 "提示:您的业务新增加 2 U / 2 G ( 2个单位 CPU , 2 G内存) 虚拟机资源, 新增费用 2 0元" 等 信息。 优选地, 为避免千扰用户正常操作和使用, 可不弹出提示 框, 而是将信息写入终端系统的系统事件, 等待用户查看系统事 件或进行后续处理, 这样作的优点是, 在大规模管理下, 可避免 频繁弹出提示框, 千扰正常操作。  As an example, the information notification module 510 may push, by using a communication interface, a prompt box displaying information of a resource allocation scheme of a virtual machine and information of a charging scheme to a terminal system of a service provider or a user, for example, according to a TCP/IP protocol, After the terminal system receives the information, a prompt window pops up, for example, "Hint: your business has newly added 2 U / 2 G (2 units of CPU, 2 G memory) virtual machine resources, and the new cost is 20 yuan". Preferably, in order to avoid disturbing the normal operation and use of the user, the prompt box may not be popped up, but the information is written into the system event of the terminal system, waiting for the user to view the system event or performing subsequent processing, which has the advantage of large-scale management. Underneath, you can avoid frequent pop-up prompts and interfere with normal operation.
优选地, 信息通知模块 5 01还可自动激活所包含的邮件服务 子模块 (未示出 ), 将信息内容发送到用户预先设置的电子邮件 中。  Preferably, the information notification module 501 can also automatically activate the included mail service sub-module (not shown) to send the information content to an email set by the user in advance.
优选地, 信息通知模块 5 01还可将信息发送至虚拟机, 并计 入虚拟机日志或告警中,用户在登录虚拟机时获取该信息并进行 后续分析。 这种方式的优点是, 不会产生过重的网络负荷, 且信 息记录在虚拟机资源服务端, 安全可靠, 避免传输过程中信息泄 路。  Preferably, the information notification module 510 can also send the information to the virtual machine and count it into the virtual machine log or alarm. The user obtains the information and performs subsequent analysis when logging in to the virtual machine. The advantage of this method is that it does not generate excessive network load, and the information is recorded on the virtual machine resource server, which is safe and reliable, and avoids information leakage during transmission.
优选地, 所述虚拟机资源管理规则还包括授权权限, 所述 授权权限用于指示所述用户或运营商修改所述虚拟机资源管理 规则的授权权限。  Preferably, the virtual machine resource management rule further includes an authorization authority, where the authorization authority is used to instruct the user or the operator to modify the authorization authority of the virtual machine resource management rule.
图 6示出了根据本发明的一个实施例的虚拟机的资源管理 方法的流程图, 在该实施例中, 该方法包括: FIG. 6 illustrates resource management of a virtual machine according to an embodiment of the present invention. Flowchart of the method, in this embodiment, the method comprises:
S 6 01 , 根据接收到的用户 自定义的虚拟机资源管理参数生 成虚拟机资源管理规则, 所述虚拟机资源管理规则至少包括虚 拟机资源变更的条件;  S6 01, generating a virtual machine resource management rule according to the received user-defined virtual machine resource management parameter, where the virtual machine resource management rule includes at least a condition of the virtual machine resource change;
S 6 02 , 接收虚拟机监控模块发送的虚拟机状态信息;  S6 02, receiving virtual machine state information sent by the virtual machine monitoring module;
S 6 03 ,根据所述虚拟机状态信息以及所述虚拟机资源管理规 则, 在所述虚拟机状态信息满足所述虚拟机资源变更的条件时, 生成虚拟机的资源分配方案;  S6 03, according to the virtual machine state information and the virtual machine resource management rule, when the virtual machine state information satisfies the condition of the virtual machine resource change, generating a resource allocation plan of the virtual machine;
其中,所述虚拟机的资源分配方案用于更新所述虚拟机的资 源配置。  The resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
优选地, 所述虚拟机资源管理参数包括: 虚拟机资源变更 的条件、 虚拟机资源变更的粒度、 计费方式、 信息通知方式中 的一种或者多种。  Preferably, the virtual machine resource management parameter includes one or more of a virtual machine resource change condition, a virtual machine resource change granularity, a charging mode, and an information notification mode.
优选地, 该虚拟机的资源管理方法方法还包括: 接收所述 用户周期性更新的虚拟机资源管理参数, 根据所述更新的虚拟 机资源管理参数, 更新所述虚拟机资源管理规则。  Preferably, the method for managing a resource of the virtual machine further includes: receiving virtual machine resource management parameters periodically updated by the user, and updating the virtual machine resource management rule according to the updated virtual machine resource management parameter.
优选地, 所述虚拟机状态信息包括所述虚拟机资源占用指 标、 虚拟机业务运行指标以及异常告警指标至少之一超过预定 阈值的指示; 或者, 所述虚拟机状态信息包括所述虚拟机资源 占用指标、 虚拟机业务运行指标以及异常告警指标至少之一的 当前监控值。  Preferably, the virtual machine state information includes an indication that at least one of the virtual machine resource occupation indicator, the virtual machine service operation indicator, and the abnormality alarm indicator exceeds a predetermined threshold; or the virtual machine state information includes the virtual machine resource. The current monitoring value of at least one of the occupancy indicator, the virtual machine service running indicator, and the abnormal alarm indicator.
优选地, 所述虚拟机资源管理规则还包括虚拟机资源变更 的粒度。 相应地, 步骤 S 6 Q 3包括: 根据所述虚拟机状态信息以 及所述虚拟机资源变更的条件和粒度, 生成所述虚拟机的资源 分配方案。  Preferably, the virtual machine resource management rule further includes a granularity of virtual machine resource change. Correspondingly, step S6Q3 includes: generating a resource allocation scheme of the virtual machine according to the virtual machine state information and the condition and granularity of the virtual machine resource change.
优选地, 所述虚拟机资源管理规则还包括虚拟机计费方式; 相应地, 该虚拟机的资源管理方法还包括: 才 据所述虚拟机状 态信息和所述虚拟机计费方式, 生成虚拟机的计费方案。 Preferably, the virtual machine resource management rule further includes a virtual machine charging mode; correspondingly, the virtual machine resource management method further includes: according to the virtual machine The state information and the virtual machine charging mode generate a charging plan of the virtual machine.
优选地, 所述虚拟机资源管理规则还包括授权权限, 所述 授权权限用于指示所述用户或运营商修改所述虚拟机资源管理 规则的授权权限。  Preferably, the virtual machine resource management rule further includes an authorization authority, where the authorization authority is used to instruct the user or the operator to modify the authorization authority of the virtual machine resource management rule.
优选地, 所述虚拟机资源管理规则还包括信息通知方式, 所述信息通知方式用于指示虚拟机状态信息和 /或所述虚拟机 的资源分配方案的通知方式。 相应地, 该虚拟机的资源管理方 法还包括: 才 据所述信息通知方式, 向所述用户发送虚拟机状 态信息和 /或所述虚拟机的资源分配方案。  Preferably, the virtual machine resource management rule further includes an information notification manner, where the information notification manner is used to indicate virtual machine status information and/or a notification manner of the virtual machine resource allocation scheme. Correspondingly, the resource management method of the virtual machine further includes: sending the virtual machine state information and/or the resource allocation plan of the virtual machine to the user according to the information notification manner.
在图 7所示的实施例中, 该方法该包括:  In the embodiment shown in Figure 7, the method includes:
S 7 0 1 , 根据接收到的用户 自定义的虚拟机资源管理参数生 成虚拟机资源管理规则, 所述虚拟机资源管理规则至少包括虚 拟机资源变更的条件;  S7 0 1 , generating a virtual machine resource management rule according to the received user-defined virtual machine resource management parameter, where the virtual machine resource management rule includes at least a condition of the virtual machine resource change;
S 7 0 2 , 根据所述接收到的用户 自定义的虚拟机资源管理参 数, 下发虚拟机状态监控指标到所述虚拟机监控模块, 所述虚 拟机状态监控指标包括虚拟机资源占用指标、 虚拟机业务运行 指标以及异常告警指标至少之一;  S7 0 2, according to the received user-defined virtual machine resource management parameter, the virtual machine state monitoring indicator is sent to the virtual machine monitoring module, where the virtual machine state monitoring indicator includes a virtual machine resource occupancy indicator, At least one of a virtual machine service running indicator and an abnormal alarm indicator;
S 7 0 3 , 接收所述虚拟机监控模块根据所述虚拟机状态监控 指标上报的所述虚拟机状态信息;  S7 0 3, receiving the virtual machine state information reported by the virtual machine monitoring module according to the virtual machine state monitoring indicator;
S 7 0 4 ,根据所述虚拟机状态信息以及所述虚拟机资源管理规 则, 在所述虚拟机状态信息满足所述虚拟机资源变更的条件时, 生成虚拟机的资源分配方案;  S7 0 4, according to the virtual machine state information and the virtual machine resource management rule, when the virtual machine state information satisfies the condition of the virtual machine resource change, generating a resource allocation plan of the virtual machine;
其中,所述虚拟机的资源分配方案用于更新所述虚拟机的资 源配置。  The resource allocation scheme of the virtual machine is used to update a resource configuration of the virtual machine.
其中 "根据接收到的用户 自定义的虚拟机资源管理参数生 成虚拟机资源管理规则" 以及 "根据所述接收到的用户 自定义 的虚拟机资源管理参数, 下发虚拟机状态监控指标到所述虚拟 机监控模块" 的执行顺序不作限定。 The "virtual machine resource management rule is generated according to the received user-defined virtual machine resource management parameter" and the virtual machine state monitoring indicator is delivered according to the received user-defined virtual machine resource management parameter to the Virtual The execution order of the machine monitoring module is not limited.
图 8示出了根据本发明的实施例的一种虚拟机的资源管理 系统, 其特征在于, 该系统包括根据上述各实施例的虚拟机的 资源管理装置 8 01, 该系统还包括状虚拟机监控模块 8 02、 虚拟 机资源分配装置 8 0 3、 虚拟资源池 8 04以及虚拟机 8 05 ;  FIG. 8 illustrates a resource management system for a virtual machine according to an embodiment of the present invention, characterized in that the system includes a resource management device 8.1 of a virtual machine according to the above embodiments, and the system further includes a virtual machine. Monitoring module 802, virtual machine resource allocation device 803, virtual resource pool 804, and virtual machine 850;
所述虚拟机监控模块 8 02监控所述虚拟机 8 05状态, 并将监控 到的虚拟机状态信息发送至所述虚拟机的资源管理装置 8 01 ; 所述虚拟机的资源管理装置 8 01根据所述虚拟机监控模块 8 02发送的所述虚拟机状态信息以及所述虚拟机资源管理规则 生成虚拟机的资源分配方案, 并将所述虚拟机的资源分配方案 发送至所述虚拟机资源分配装置 8 03 ;  The virtual machine monitoring module 802 monitors the status of the virtual machine 850, and sends the monitored virtual machine status information to the resource management device 810 of the virtual machine; the resource management device 810 of the virtual machine is based on The virtual machine state information sent by the virtual machine monitoring module 802 and the virtual machine resource management rule generate a resource allocation plan of the virtual machine, and send the resource allocation plan of the virtual machine to the virtual machine resource allocation Device 8 03 ;
所述虚拟机资源分配装置 8 0 3根据所述虚拟机的资源管理装 置 8 01发送的所述虚拟机的资源分配方案在所述虚拟资源池 8 04 和所述虚拟机 8 05之间进行资源分配。  The virtual machine resource allocating device 803 performs resources between the virtual resource pool 804 and the virtual machine 850 according to the resource allocation scheme of the virtual machine sent by the resource management device 201 of the virtual machine. distribution.
优选地, 虚拟机监控模块 8 02可以根据需要实时地或定时地 监控虚拟机状态的各项监控指标。 虚拟机监控模块 8 02可通过监 控虚拟机的系统资源、 特定进程等进行状态监控。 虚拟机监控模 块 8 02还可以是内建在虚拟机中的 "状态探针", 以服务的形式运 行在虚拟机内部, 实时地监控虚拟机的状态, 也可以以驱动的方 式运行,其目的是节省资源,提高监控效率。 另一种替代方案是, 在虚拟化平台操作系统上运行 "虚拟机监控代理", 将各代理所 在节点上所有虚拟机监控信息数据统一收集, 统一发送给 "虚拟 机监控平台" 进行分配。  Preferably, the virtual machine monitoring module 202 can monitor various monitoring indicators of the virtual machine state in real time or periodically as needed. The virtual machine monitoring module 8 02 can monitor the status of the virtual machine by monitoring system resources, specific processes, and so on. The virtual machine monitoring module 802 can also be a "state probe" built in the virtual machine, running in the virtual machine inside the service, monitoring the state of the virtual machine in real time, or running in a driving manner. It saves resources and improves monitoring efficiency. Another alternative is to run the "virtual machine monitoring agent" on the operating system of the virtualization platform, and collect all the virtual machine monitoring information data of the nodes on each node, and send them to the "virtual machine monitoring platform" for distribution.
尽管本发明以云计算系统为例进行说明, 但本发明的方法、 装置和系统适用于各种业务应用场合,特别是分布式业务部署场 景。  Although the present invention is described by taking a cloud computing system as an example, the method, apparatus and system of the present invention are applicable to a variety of business applications, particularly distributed service deployment scenarios.
上文为了描绘和描述的目的,呈现了本发明的特定示例性实 施例。 这些示例性实施例并非穷举的, 或将本发明限制为公开的 精确形式,明显地,根据上述教示的诸多修改和变化都是可行的。 选择并描述这些示例性实施例是为了解释本发明的特定原理及 例性实施例, 及其各种替代物和修改。 事实上本发明的范围由所 附的权利要求书及其等价物限定。 The foregoing is a specific exemplary embodiment of the present invention for the purposes of illustration and description. Example. The present invention is not intended to be exhaustive or to limit the invention to the precise forms disclosed. The exemplary embodiments were chosen and described in order to explain the specific embodiments and exemplary embodiments The scope of the invention is defined by the appended claims and their equivalents.
本领域普通技术人员可以意识到,结合本文中所公开的实施 例描述的各示例的单元及算法步骤, 能够以电子硬件、 或者计算 机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件 方式来执行, 取决于技术方案的特定应用和设计约束条件。 专业 技术人员可以对每个特定的应用来使用不同方法来实现所描述 的功能, 但是这种实现不应认为超出本发明的范围。  Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时, 可 以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案 本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产 品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令 用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等) 执 行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U 盘、 移动硬盘、 只读存储器(ROM, Read-On l y Memory )、 随机存取存储器( RAM, Random Acce s s Memory ) 、 磁碟或者光盘等各种可以存储程序代码的介质。 The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random Acce ss Memory), a magnetic disk or an optical disk, and the like, which can store program codes. Medium.

Claims

权 利 要 求 书 claims
1、 一种虚拟机的资源管理装置, 该装置包括: 1. A resource management device for a virtual machine, which includes:
管理规则生成模块, 用于根据接收到的用户 自定义的虚拟 机资源管理参数生成虚拟机资源管理规则, 所述虚拟机资源管 理规则至少包括虚拟机资源变更的条件; A management rule generation module, configured to generate virtual machine resource management rules based on the received user-defined virtual machine resource management parameters, where the virtual machine resource management rules at least include conditions for virtual machine resource changes;
状态信息接收模块, 用于接收虚拟机监控模块发送的虚拟 机状态信息 \ The status information receiving module is used to receive the virtual machine status information sent by the virtual machine monitoring module\
资源分配方案生成模块,用于根据所述虚拟机状态信息以及 所述虚拟机资源管理规则, 在所述虚拟机状态信息满足所述虚 拟机资源变更的条件时, 生成虚拟机的资源分配方案; A resource allocation plan generation module, configured to generate a resource allocation plan for the virtual machine based on the virtual machine status information and the virtual machine resource management rules when the virtual machine status information meets the conditions for the virtual machine resource change;
其中,所述虚拟机的资源分配方案用于更新所述虚拟机的资 源配置。 Wherein, the resource allocation plan of the virtual machine is used to update the resource configuration of the virtual machine.
2、根据权利要求 1所述的虚拟机的资源管理装置, 其特征在 于, 所述虚拟机资源管理参数包括: 2. The virtual machine resource management device according to claim 1, characterized in that the virtual machine resource management parameters include:
虚拟机资源变更的条件、 虚拟机资源变更的粒度、 计费方 式、 信息通知方式中的一种或者多种。 One or more of the conditions for virtual machine resource changes, the granularity of virtual machine resource changes, billing methods, and information notification methods.
3、 根据权利要求 2所述的虚拟机的资源管理装置, 其特征 在于, 3. The virtual machine resource management device according to claim 2, characterized in that,
所述管理规则生成模块接收所述用户周期性更新的虚拟机 资源管理参数, 根据所述更新的虚拟机资源管理参数, 更新所 述虚拟机资源管理规则。 The management rule generation module receives the virtual machine resource management parameters periodically updated by the user, and updates the virtual machine resource management rules according to the updated virtual machine resource management parameters.
4、 根据权利要求 1或 2所述的虚拟机的资源管理装置, 其特 征在于, 所述装置还包括: 4. The virtual machine resource management device according to claim 1 or 2, characterized in that the device further includes:
指标下发模块, 用于根据所述接收到的用户 自定义的虚拟 机资源管理参数, 下发虚拟机状态监控指标到所述虚拟机监控 模块, 所述虚拟机状态监控指标包括虚拟机资源占用指标、 虚 拟机业务运行指标以及异常告警指标至少之一; 以及 所述状态信 , 接收模块接收所述虚拟机监控模块根据所述 虚拟机状态监控指标上报的所述虚拟机状态信息。 An indicator delivery module, configured to deliver virtual machine status monitoring indicators to the virtual machine monitoring module according to the received user-defined virtual machine resource management parameters. The virtual machine status monitoring indicators include virtual machine resource occupation. At least one of indicators, virtual machine business operation indicators and abnormal alarm indicators; and The status information receiving module receives the virtual machine status information reported by the virtual machine monitoring module according to the virtual machine status monitoring indicator.
5、 根据权利要求 4所述的虚拟机的资源管理装置, 其特征 在于, 5. The virtual machine resource management device according to claim 4, characterized in that,
所述虚拟机状态信息包括所述虚拟机资源占用指标、 虚拟 机业务运行指标以及异常告警指标至少之一超过预定阈值的指 示; 或者, The virtual machine status information includes an indication that at least one of the virtual machine resource occupancy indicators, virtual machine business operation indicators and abnormal alarm indicators exceeds a predetermined threshold; or,
所述虚拟机状态信息包括所述虚拟机资源占用指标、 虚拟 机业务运行指标以及异常告警指标至少之一的当前监控值。 The virtual machine status information includes the current monitoring value of at least one of the virtual machine resource occupancy indicator, virtual machine service operation indicator and abnormal alarm indicator.
6、 根据权利要求 1所述的虚拟机的资源管理装置, 其特征 在于, 所述虚拟机资源管理规则还包括所述虚拟机资源变更的 粒度; 6. The virtual machine resource management device according to claim 1, wherein the virtual machine resource management rules further include the granularity of the virtual machine resource change;
相应地, 所述资源分配方案生成模块才 据所述虚拟机状态 信息以及所述虚拟机资源变更的条件和粒度, 生成所述虚拟机 的资源分配方案。 Correspondingly, the resource allocation plan generation module generates a resource allocation plan for the virtual machine based on the virtual machine status information and the conditions and granularity of the virtual machine resource change.
7、 根据权利要求 1或 6所述的虚拟机的资源管理装置, 其特 征在于, 所述虚拟机资源管理规则还包括虚拟机计费方式; 所述虚拟机的资源管理装置还包括: 7. The virtual machine resource management device according to claim 1 or 6, wherein the virtual machine resource management rules further include a virtual machine billing method; the virtual machine resource management device further includes:
计费方案生成模块, 用于根据所述虚拟机状态信息和所述 虚拟机计费方式, 生成虚拟机计费方案。 A billing plan generation module is configured to generate a virtual machine billing plan based on the virtual machine status information and the virtual machine billing method.
8、 根据权利要求 1或 6所述的虚拟机的资源管理装置, 其特 征在于, 所述虚拟机资源管理规则还包括授权权限, 所述授权 权限用于指示所述用户或运营商修改所述虚拟机资源管理规则 的授权权限。 8. The virtual machine resource management device according to claim 1 or 6, characterized in that the virtual machine resource management rules further include authorization rights, and the authorization rights are used to instruct the user or operator to modify the Authorization permissions for virtual machine resource management rules.
9、 根据权利要求 1或 6所述的虚拟机的资源管理装置, 其特 征在于, 所述虚拟机资源管理规则还包括信息通知方式, 所述 信息通知方式用于指示所述虚拟机状态信息和 /或所述虚拟机的 资源分配方案的通知方式; 9. The virtual machine resource management device according to claim 1 or 6, characterized in that the virtual machine resource management rules further include an information notification method, and the information notification method is used to indicate the virtual machine status information and /or the virtual machine's Notification method of resource allocation plan;
所述虚拟机的资源管理装置还包括: The resource management device of the virtual machine also includes:
信息通知模块, 用于根据所述信息通知方式, 向所述用户 发送所述虚拟机状态信息和 /或所述虚拟机的资源分配方案。 An information notification module, configured to send the virtual machine status information and/or the resource allocation plan of the virtual machine to the user according to the information notification method.
10、 一种虚拟机的资源管理方法, 该方法包括: 10. A virtual machine resource management method, the method includes:
根据接收到的用户 自定义的虚拟机资源管理参数生成虚拟 机资源管理规则, 所述虚拟机资源管理规则至少包括虚拟机资 源变更的条件; Generate virtual machine resource management rules based on the received user-defined virtual machine resource management parameters, where the virtual machine resource management rules at least include conditions for virtual machine resource changes;
接收虚拟机监控模块发送的虚拟机状态信息; Receive virtual machine status information sent by the virtual machine monitoring module;
才 据所述虚拟机状态信息以及所述虚拟机资源管理规则,在 所述虚拟机状态信息满足所述虚拟机资源变更的条件时, 生成 虚拟机的资源分配方案; According to the virtual machine status information and the virtual machine resource management rules, when the virtual machine status information meets the conditions for the virtual machine resource change, a resource allocation plan for the virtual machine is generated;
其中,所述虚拟机的资源分配方案用于更新所述虚拟机的资 源配置。 Wherein, the resource allocation plan of the virtual machine is used to update the resource configuration of the virtual machine.
1 1、 根据权利要求 10所述的虚拟机的资源管理方法, 其特 征在于, 所述虚拟机资源管理参数包括: 11. The virtual machine resource management method according to claim 10, characterized in that the virtual machine resource management parameters include:
虚拟机资源变更的条件、 虚拟机资源变更的粒度、 计费方 式、 信息通知方式中的一种或者多种。 One or more of the conditions for virtual machine resource changes, the granularity of virtual machine resource changes, billing methods, and information notification methods.
12、 根据权利要求 1 1所述的虚拟机的资源管理方法, 其特 征在于, 所述方法还包括: 12. The virtual machine resource management method according to claim 11, characterized in that the method further includes:
接收所述用户周期性更新的虚拟机资源管理参数, 根据所 述更新的虚拟机资源管理参数, 更新所述虚拟机资源管理规则。 Receive virtual machine resource management parameters periodically updated by the user, and update the virtual machine resource management rules according to the updated virtual machine resource management parameters.
13、才 据权利要求 10或 1 1所述的虚拟机的资源管理方法, 其 特征在于, 所述方法还包括: 13. The virtual machine resource management method according to claim 10 or 11, characterized in that the method further includes:
根据所述接收到的用户 自定义的虚拟机资源管理参数, 下 发虚拟机状态监控指标到所述虚拟机监控模块, 所述虚拟机状 态监控指标包括虚拟机资源占用指标、 虚拟机业务运行指标以 及异常告警指标至少之一; 以及 According to the received user-defined virtual machine resource management parameters, virtual machine status monitoring indicators are delivered to the virtual machine monitoring module. The virtual machine status monitoring indicators include virtual machine resource occupancy indicators and virtual machine business operation indicators. by and at least one of the abnormal alarm indicators; and
接收所述虚拟机监控模块根据所述虚拟机状态监控指标上 报的所述虚拟机状态信息。 Receive the virtual machine status information reported by the virtual machine monitoring module according to the virtual machine status monitoring indicator.
14、 根据权利要求 13所述的虚拟机的资源管理方法, 其特 征在于, 所述虚拟机状态信息包括所述虚拟机资源占用指标、 虚拟机业务运行指标以及异常告警指标至少之一超过预定阈值 的指示; 或者, 所述虚拟机状态信息包括所述虚拟机资源占用 指标、 虚拟机业务运行指标以及异常告警指标至少之一的当前 监控值。 14. The resource management method of a virtual machine according to claim 13, wherein the virtual machine status information includes at least one of the virtual machine resource occupancy indicator, virtual machine business operation indicator and abnormal alarm indicator exceeding a predetermined threshold. indication; or, the virtual machine status information includes the current monitoring value of at least one of the virtual machine resource occupancy indicator, virtual machine service operation indicator, and abnormal alarm indicator.
15、 根据权利要求 10所述的虚拟机的资源管理方法, 其特 征在于, 所述虚拟机资源管理规则还包括所述虚拟机资源变更 的粒度; 15. The virtual machine resource management method according to claim 10, characterized in that the virtual machine resource management rules further include the granularity of the virtual machine resource change;
相应地, 所述才 据所述虚拟机状态信息以及所述虚拟机资 源管理规则, 生成所述虚拟机的资源分配方案包括: Correspondingly, generating a resource allocation plan for the virtual machine based on the virtual machine status information and the virtual machine resource management rules includes:
根据所述虚拟机状态信息以及所述虚拟机资源变更的条件 和粒度, 生成所述虚拟机的资源分配方案。 Generate a resource allocation plan for the virtual machine based on the virtual machine status information and the conditions and granularity of the virtual machine resource change.
16、 才 据权利要求 10或 15所述的虚拟机的资源管理方法, 其特征在于, 所述虚拟机资源管理规则还包括虚拟机计费方式; 所述方法还包括: 16. The virtual machine resource management method according to claim 10 or 15, wherein the virtual machine resource management rules further include a virtual machine billing method; the method further includes:
根据所述虚拟机状态信息和所述虚拟机计费方式, 生成虚 拟机计费方案。 According to the virtual machine status information and the virtual machine billing method, a virtual machine billing plan is generated.
17、 才 据权利要求 10或 15所述的虚拟机的资源管理方法, 其特征在于, 所述虚拟机资源管理规则还包括授权权限, 所述 授权权限用于指示所述用户或运营商修改所述虚拟机资源管理 规则的授权权限。 17. The virtual machine resource management method according to claim 10 or 15, characterized in that the virtual machine resource management rules further include authorization rights, and the authorization rights are used to instruct the user or operator to modify the Authorization permissions for the virtual machine resource management rules.
18、 才 据权利要求 10或 15所述的虚拟机的资源管理方法, 其特征在于, 所述虚拟机资源管理规则还包括信息通知方式, 所述信息通知方式用于指示所述虚拟机状态信息和 /或所述虚拟 机的资源分配方案的通知方式; 18. The virtual machine resource management method according to claim 10 or 15, characterized in that the virtual machine resource management rules further include an information notification method, The information notification method is used to indicate the notification method of the virtual machine status information and/or the resource allocation plan of the virtual machine;
所述方法还包括: The method also includes:
根据所述信息通知方式, 向所述用户发送所述虚拟机状态 信息和 /或所述虚拟机的资源分配方案。 According to the information notification method, the virtual machine status information and/or the resource allocation plan of the virtual machine is sent to the user.
19、 一种虚拟机的资源管理系统, 其特征在于, 该系统包 括根据权利要求 1至 9中任意一项所述的虚拟机的资源管理装 置, 该系统还包括状虚拟机监控模块、 虚拟机资源分配装置、 虚拟资源池以及虚拟机; 19. A virtual machine resource management system, characterized in that the system includes the virtual machine resource management device according to any one of claims 1 to 9, and the system further includes a virtual machine monitoring module, a virtual machine Resource allocation device, virtual resource pool and virtual machine;
所述虚拟机监控模块监控所述虚拟机状态, 并将监控到的虚 拟机状态信息发送至所述虚拟机的资源管理装置; The virtual machine monitoring module monitors the status of the virtual machine and sends the monitored virtual machine status information to the resource management device of the virtual machine;
所述虚拟机的资源管理装置根据所述虚拟机监控模块发送 的所述虚拟机状态信息以及所述虚拟机资源管理规则生成虚拟 机的资源分配方案, 并将所述虚拟机的资源分配方案发送至所 述虚拟机资源分配装置; The resource management device of the virtual machine generates a resource allocation plan for the virtual machine based on the virtual machine status information and the virtual machine resource management rules sent by the virtual machine monitoring module, and sends the resource allocation plan of the virtual machine. To the virtual machine resource allocation device;
所述虚拟机资源分配装置根据所述虚拟机的资源管理装置 发送的所述虚拟机的资源分配方案在所述虚拟资源池和所述虚 拟机之间进行资源分配。 The virtual machine resource allocation device performs resource allocation between the virtual resource pool and the virtual machine according to the resource allocation plan of the virtual machine sent by the resource management device of the virtual machine.
PCT/CN2013/084532 2012-12-11 2013-09-27 Device, method and system for managing resources of virtual machine WO2014090021A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210532072.1 2012-12-11
CN201210532072.1A CN103049309B (en) 2012-12-11 2012-12-11 Resource management apparatus, the method and system of virtual machine

Publications (1)

Publication Number Publication Date
WO2014090021A1 true WO2014090021A1 (en) 2014-06-19

Family

ID=48061959

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/084532 WO2014090021A1 (en) 2012-12-11 2013-09-27 Device, method and system for managing resources of virtual machine

Country Status (2)

Country Link
CN (1) CN103049309B (en)
WO (1) WO2014090021A1 (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049309B (en) * 2012-12-11 2017-09-29 华为技术有限公司 Resource management apparatus, the method and system of virtual machine
CN104348653A (en) * 2013-08-06 2015-02-11 中国电信股份有限公司 Method and system for realizing user task of cloud management platform as well as trigger
CN103793278B (en) * 2013-09-30 2017-04-26 中国电子设备系统工程公司研究所 Automatic resource adjusting method on basis of operation and maintenance rules of virtual device
CN103605557A (en) * 2013-10-25 2014-02-26 普华基础软件股份有限公司 Virtual device management system and management method
CN104980297A (en) * 2014-04-14 2015-10-14 中兴通讯股份有限公司 Virtual machine resource changing method and device, and virtualized network function device
WO2015165095A1 (en) * 2014-04-30 2015-11-05 华为技术有限公司 Method for creating virtual base station, and base station cloud device
WO2015180169A1 (en) * 2014-05-30 2015-12-03 华为技术有限公司 Resource allocation method and device
CN105511959B (en) * 2014-10-16 2021-03-19 腾讯科技(深圳)有限公司 Virtual resource allocation method and device
CN104333457A (en) * 2014-11-20 2015-02-04 杭州华三通信技术有限公司 Cloud computing service charging method and device
CN105721325B (en) * 2014-12-04 2019-05-10 中国移动通信集团广东有限公司 A kind of multi-user virtual machine flow optimization method, device, controller and virtual machine
WO2016090608A1 (en) * 2014-12-11 2016-06-16 华为技术有限公司 Method and apparatus for determining virtual machine resource and program product
CN106161068B (en) * 2015-04-15 2020-10-16 华为技术有限公司 Recovery prompting and distributing method for network resources and controller
CN105988858A (en) * 2015-05-15 2016-10-05 中国银联股份有限公司 Virtual machine resource scheduling method, device and system
CN106572137B (en) * 2015-10-12 2020-04-24 阿里巴巴集团控股有限公司 Distributed service resource management method and device
CN106600245A (en) * 2016-12-15 2017-04-26 国云科技股份有限公司 Cloud computing resource scheduling system and realizing method thereof
CN108093062B (en) * 2017-12-26 2021-01-26 北京微网通联股份有限公司 Cloud resource management method and device
CN108303688B (en) * 2018-04-27 2022-02-11 北京东远润兴科技有限公司 Reconstruction system and method for radar signal processing and radar system
CN109408196A (en) * 2018-09-27 2019-03-01 中国科学院电子学研究所 A kind of virtual management system, construction method and computer readable storage medium based on Xen
US10884818B2 (en) 2018-11-08 2021-01-05 International Business Machines Corporation Increasing processing capacity of virtual machines
US10884845B2 (en) 2018-11-08 2021-01-05 International Business Machines Corporation Increasing processing capacity of processor cores during initial program load processing
US10944581B2 (en) 2018-11-08 2021-03-09 International Business Machines Corporation Increasing processing capacity of processor cores during initial program load processing
US10990434B2 (en) 2019-02-05 2021-04-27 International Business Machines Corporation Increasing processing capacity of virtual machines for an abnormal event
US11327767B2 (en) 2019-04-05 2022-05-10 International Business Machines Corporation Increasing resources for partition to compensate for input/output (I/O) recovery event
CN114564299A (en) * 2020-11-27 2022-05-31 华为云计算技术有限公司 Resource scheduling method, device and system
CN112787929B (en) * 2020-12-31 2022-10-04 中盈优创资讯科技有限公司 Three-layer VPN service resource automatic allocation and management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141930A (en) * 2010-12-20 2011-08-03 华为技术有限公司 Method and device for distributing resources to virtual machines
CN102307224A (en) * 2011-05-17 2012-01-04 华为软件技术有限公司 Method and device for realizing service isolation in cloud computing system, and cloud server
CN102609295A (en) * 2011-10-18 2012-07-25 华中科技大学 Dynamic operation scheduling system of virtual machine
CN102681899A (en) * 2011-03-14 2012-09-19 金剑 Virtual computing resource dynamic management system of cloud computing service platform
CN103049309A (en) * 2012-12-11 2013-04-17 华为技术有限公司 Device, method and system for resource management of virtual machine

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9021046B2 (en) * 2010-01-15 2015-04-28 Joyent, Inc Provisioning server resources in a cloud resource
CN102004671B (en) * 2010-11-15 2013-03-13 北京航空航天大学 Resource management method of data center based on statistic model in cloud computing environment
CN102523254B (en) * 2011-11-29 2014-08-13 曙光信息产业(北京)有限公司 Method for automatically distributing systematic resources of cloud computing environment
CN102624570B (en) * 2012-04-27 2015-04-15 杭州东信北邮信息技术有限公司 Monitoring system and method for detecting availability of web server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141930A (en) * 2010-12-20 2011-08-03 华为技术有限公司 Method and device for distributing resources to virtual machines
CN102681899A (en) * 2011-03-14 2012-09-19 金剑 Virtual computing resource dynamic management system of cloud computing service platform
CN102307224A (en) * 2011-05-17 2012-01-04 华为软件技术有限公司 Method and device for realizing service isolation in cloud computing system, and cloud server
CN102609295A (en) * 2011-10-18 2012-07-25 华中科技大学 Dynamic operation scheduling system of virtual machine
CN103049309A (en) * 2012-12-11 2013-04-17 华为技术有限公司 Device, method and system for resource management of virtual machine

Also Published As

Publication number Publication date
CN103049309A (en) 2013-04-17
CN103049309B (en) 2017-09-29

Similar Documents

Publication Publication Date Title
WO2014090021A1 (en) Device, method and system for managing resources of virtual machine
US8909783B2 (en) Managing multi-level service level agreements in cloud-based network
US9450838B2 (en) Resource management for cloud computing platforms
US9595054B2 (en) Resource management for cloud computing platforms
US8701117B2 (en) Resource consumption template processing model
US10528994B2 (en) Allocation of application licenses within cloud or infrastructure
US20120131172A1 (en) Managing service level agreements using statistical process control in a networked computing environment
US20110213686A1 (en) Systems and methods for managing a software subscription in a cloud network
US10944581B2 (en) Increasing processing capacity of processor cores during initial program load processing
CN108574593B (en) The management system and management method of licensing in a kind of NFV network
US10892959B2 (en) Prioritization of information technology infrastructure incidents
US20190229936A1 (en) Dynamically-assigned resource management in a shared pool of configurable computing resources
US20130173781A1 (en) Activity-based virtual machine availability in a networked computing environment
CN103248696A (en) Dynamic configuration method for virtual resource in cloud computing environment
CN102629348A (en) Equipment management method based on cloud computation
Scheid et al. Automatic sla compensation based on smart contracts
CN105357239B (en) Method and device for providing service and method and device for obtaining service
US20220286564A1 (en) Method and Apparatus for Dynamic Realtime Sharing of Credit Units for Online Charging
US11356505B2 (en) Hybrid cloud compliance and remediation services
KR20170121714A (en) NFV orchestrator having VNF license management function and VNF license management method using the same
CN110471769A (en) A kind of method for managing resource and device of virtual machine
US10547497B1 (en) Methods and systems for providing predictive rating using a buffer
CN103138951A (en) Processing method and system of billing service, billing gateway, online billing system
CN112565391A (en) Method, apparatus, device and medium for adjusting instances in an industrial internet platform
JP5382966B1 (en) Notification system

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: 13863589

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13863589

Country of ref document: EP

Kind code of ref document: A1