JP2012208541A - Virtual machine management device, virtual machine method, and virtual machine program - Google Patents

Virtual machine management device, virtual machine method, and virtual machine program Download PDF

Info

Publication number
JP2012208541A
JP2012208541A JP2011071375A JP2011071375A JP2012208541A JP 2012208541 A JP2012208541 A JP 2012208541A JP 2011071375 A JP2011071375 A JP 2011071375A JP 2011071375 A JP2011071375 A JP 2011071375A JP 2012208541 A JP2012208541 A JP 2012208541A
Authority
JP
Japan
Prior art keywords
virtual machine
machine
resource
virtual
physical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2011071375A
Other languages
Japanese (ja)
Inventor
Takeshi Higuchi
毅 樋口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2011071375A priority Critical patent/JP2012208541A/en
Publication of JP2012208541A publication Critical patent/JP2012208541A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To appropriately eliminate a resource shortage when the resource shortage occurs in any physical machine in a virtual machine system in which plural virtual machines are operated by using plural physical machines.SOLUTION: A virtual machine management device 5 performs the steps of: specifying, if a resource shortage occurs, a physical machine having a predetermined amount or more of a residual resource amount as a specific physical machine; specifying, from among virtual machines operated by using a physical machine in which a resource shortage has occurred, a virtual machine with a low probability of a conflict of resource occurring in the case of operating the virtual machine as a specific virtual machine on the basis of the resource usage amount of the virtual machine operated by using the physical machine; and transiting a physical machine operating the specific virtual machine to the specific physical machine.

Description

この発明は、複数の物理マシン(サーバ)において複数の仮想マシンが動作する仮想マシンシステムのリソース管理技術に関する。   The present invention relates to a resource management technique for a virtual machine system in which a plurality of virtual machines operate in a plurality of physical machines (servers).

仮想化技術の普及に伴い、各サーバ機能やデスクトップ機能をそれぞれ仮想マシンとすることで、1台の物理マシン上に複数の仮想マシンを配備することが可能となっている。
例えば、データセンタ事業者は、従来は、顧客毎に物理マシンを用意し、サービス提供していた。しかし、上述した仮想化技術の普及により、データセンタ事業者は、複数の顧客に対して共用の1台の物理マシンを用意し、その物理マシン上に各顧客用の仮想マシンを用意して、サービス提供することが可能となっている。
With the spread of virtualization technology, each server function and desktop function is a virtual machine, and a plurality of virtual machines can be deployed on one physical machine.
For example, data center operators have conventionally provided physical machines for each customer and provided services. However, with the popularization of the above-described virtualization technology, a data center operator prepares one physical machine shared for a plurality of customers, and prepares a virtual machine for each customer on the physical machine, It is possible to provide services.

仮想マシンでサービスを提供する場合には、集約度を高め、1台の物理マシン上に可能な限り多くの仮想マシンを稼動させることにより、低コストでのサービスの提供が可能となる。
一方で、集約度を高め過ぎると、仮想マシン間でリソースの競合が発生してしまう。この場合、ある仮想マシンが処理を実施していることで別の仮想マシンの処理が待たされるという状況が頻発し、結果として応答性能の劣化等が発生し、顧客満足度を低下させることになってしまう。
When providing services with virtual machines, it is possible to provide services at low cost by increasing the degree of aggregation and operating as many virtual machines as possible on one physical machine.
On the other hand, if the degree of aggregation is too high, resource contention occurs between virtual machines. In this case, a situation in which a process of another virtual machine is awaited due to the execution of a certain virtual machine frequently occurs, resulting in degradation of response performance and the like, resulting in a decrease in customer satisfaction. End up.

特許文献1には、予め契約等で定められたSLA(Service Level Agreement)に基づき、各アプリケーションに割り当てるリソースを制御する方法についての記載がある。
これにより、特許文献1では、集約度を高め低コストでサービスを提供したいという要求と、顧客満足度は低下させたくないという要求との相反する2つの要求を満足させようとしている。
Patent Document 1 describes a method for controlling resources allocated to each application based on SLA (Service Level Agreement) determined in advance by a contract or the like.
As a result, Patent Document 1 attempts to satisfy two conflicting requirements: a request to increase the degree of aggregation and provide a service at a low cost, and a request not to reduce customer satisfaction.

特許文献2には、複数の仮想マシンが使用しているメモリ領域のうち共通する情報を記憶する部分を1つにまとめてしまい、必要な物理メモリ量を削減する方法についての記載がある。
これにより、特許文献2では、例えば、1台の物理マシンにおいて4GBのメモリが必要な仮想マシンが2台稼動している場合、実際に使用するメモリ量を8GBより少なくして、各仮想マシンに4GBのメモリを提供しようとしている。この方法は、仮想マシン間で共通してメモリに記憶する情報が多いほど有効であり、少ないメモリ量で多くの仮想マシンを動作させることが可能となる。
Patent Document 2 describes a method for reducing the amount of required physical memory by collecting a portion for storing common information in a memory area used by a plurality of virtual machines.
Accordingly, in Patent Document 2, for example, when two virtual machines that require 4 GB of memory are operating in one physical machine, the amount of memory actually used is less than 8 GB, and each virtual machine I am trying to provide 4GB of memory. This method is more effective as more information is stored in the memory in common between the virtual machines, and a larger number of virtual machines can be operated with a smaller amount of memory.

特開2008−293283号公報JP 2008-293283 A 特開2010−211259号公報JP 2010-211259 A

特許文献1に記載された方法では、SLAのみでリソースの割り当てを判定しているため、アプリケーション間でSLAに差がなければ有効に機能しない。したがって、前記相反する2つの要求を満足させることはできない。
この発明は、複数の物理マシンを用いて複数の仮想マシンが動作している仮想マシンシステムにおいて、いずれかの物理マシンにリソース不足が発生した場合に、適切にリソース不足を解消することを目的とする。
In the method described in Patent Document 1, since resource allocation is determined only by SLA, it does not function effectively unless there is a difference in SLA between applications. Therefore, the two conflicting requirements cannot be satisfied.
An object of the present invention is to appropriately solve a resource shortage when a resource shortage occurs in any of the physical machines in a virtual machine system in which a plurality of virtual machines are operated using a plurality of physical machines. To do.

この発明に係る仮想マシン管理装置は、
複数の物理マシンにおいて複数の仮想マシンが動作する仮想マシンシステムを管理する仮想マシン管理装置であり、
各物理マシンについて、使用されていないリソースの量であるリソース残量を計測する残量計測部と、
各仮想マシンについて、その仮想マシンが使用しているリソースの量であるリソース使用量を計測する使用量計測部と、
いずれかの物理マシンでリソース不足が発生した場合、前記残量計測部が計測したリソース残量が所定量以上ある物理マシンを特定物理マシンとして特定する物理マシン特定部と、
前記使用量計測部が計測したリソース使用量であって、前記リソース不足が発生した物理マシンである不足マシンで動作する仮想マシンのリソース使用量に基づき、前記不足マシンで動作する仮想マシンから、前記物理マシン特定部が特定した特定物理マシンで動作させた場合にリソースの競合が発生する可能性が低い仮想マシンを特定仮想マシンとして特定する仮想マシン特定部と、
前記仮想マシン特定部が特定した特定仮想マシンを、前記不足マシンで動作させるのを止め、前記特定物理マシンで動作させる仮想マシン移動部と
を備えることを特徴とする。
The virtual machine management device according to the present invention is:
A virtual machine management apparatus that manages a virtual machine system in which a plurality of virtual machines operate in a plurality of physical machines,
For each physical machine, a remaining amount measurement unit that measures the remaining amount of resources, which is the amount of unused resources,
For each virtual machine, a usage meter that measures the resource usage, which is the amount of resources used by the virtual machine,
When a resource shortage occurs in any of the physical machines, a physical machine specifying unit that specifies a physical machine having a predetermined amount or more of the remaining amount of resources measured by the remaining amount measuring unit as a specific physical machine;
The resource usage measured by the usage meter, based on the resource usage of a virtual machine that operates on the insufficient machine that is the physical machine on which the resource shortage has occurred, from the virtual machine that operates on the insufficient machine, A virtual machine identification unit that identifies a virtual machine that has a low possibility of resource contention as a specific virtual machine when operated on a specific physical machine identified by the physical machine identification unit;
And a virtual machine moving unit that stops operating the specific virtual machine specified by the virtual machine specifying unit on the insufficient physical machine and operates on the specific physical machine.

この発明に係る仮想マシン管理装置では、リソース不足が発生した物理マシンにおいて動作する仮想マシンのうち、特定物理マシンへ移動させてもリソースの競合が発生する可能性の低い仮想マシンを特定して、特定物理マシンへ移動させる。そのため、仮想マシンを移動させることによる移動先の物理マシンへの影響を抑えつつ、リソース不足が発生した物理マシンのリソース不足を解消することができる。   In the virtual machine management device according to the present invention, among virtual machines operating on a physical machine in which a resource shortage has occurred, a virtual machine that is unlikely to cause resource contention even if moved to a specific physical machine is identified. Move to a specific physical machine. Therefore, it is possible to solve the shortage of resources of the physical machine in which the resource shortage has occurred while suppressing the influence on the destination physical machine due to the movement of the virtual machine.

実施の形態1に係る仮想マシンシステム100の構成図。1 is a configuration diagram of a virtual machine system 100 according to Embodiment 1. FIG. 実施の形態1に係るグループ管理テーブル16に格納されたグループ情報の例を示す図。The figure which shows the example of the group information stored in the group management table 16 which concerns on Embodiment 1. FIG. 実施の形態1に係るリソース監視部12の動作を示すフローチャート。6 is a flowchart showing the operation of the resource monitoring unit 12 according to the first embodiment. 実施の形態1に係る移動対象選定部13の動作を示すフローチャート。5 is a flowchart showing an operation of a movement target selection unit 13 according to the first embodiment. 移動対象選定部13が各物理マシン1の空きリソース情報をまとめた例を示す図。The figure which shows the example which the movement object selection part 13 put together the free resource information of each physical machine 1. FIG. 仮想マシン3のメモリの利用状況を概念的に示した図。The figure which showed notionally the utilization condition of the memory of the virtual machine 3. FIG. 実施の形態2に係る仮想マシンシステム100の構成図。FIG. 3 is a configuration diagram of a virtual machine system 100 according to a second embodiment. 実施の形態2に係る係数記憶部17に格納された情報の例を示す図。The figure which shows the example of the information stored in the coefficient memory | storage part 17 which concerns on Embodiment 2. FIG. 実施の形態2に係る移動対象選定部13の動作を示すフローチャート。9 is a flowchart showing an operation of a movement target selection unit 13 according to the second embodiment. 実施の形態3に係る係数記憶部17に格納された情報の例を示す図。FIG. 10 is a diagram illustrating an example of information stored in a coefficient storage unit 17 according to the third embodiment. 実施の形態3に係る移動対象選定部13の動作を示すフローチャート。10 is a flowchart showing the operation of a movement target selection unit 13 according to the third embodiment. リソースの共有に関する値と、評価値とを示す図。The figure which shows the value regarding sharing of a resource, and an evaluation value. 仮想マシン管理装置5のハードウェア構成の一例を示す図。The figure which shows an example of the hardware constitutions of the virtual machine management apparatus 5.

以下、図に基づき発明の実施の形態について説明する。
なお、以下の説明において、処理装置は後述するCPU911等であり、記憶装置は後述するROM913、RAM914、磁気ディスク装置920等である。つまり、処理装置や記憶装置はハードウェアである。
Hereinafter, embodiments of the invention will be described with reference to the drawings.
In the following description, the processing device is a CPU 911 and the like which will be described later, and the storage device is a ROM 913, a RAM 914, a magnetic disk device 920 and the like which will be described later. That is, the processing device and the storage device are hardware.

実施の形態1.
実施の形態1では、仮想マシン3間で共有しているメモリ量を利用して、移動させる仮想マシン3を特定する方法について説明する。
Embodiment 1 FIG.
In the first embodiment, a method for specifying a virtual machine 3 to be moved using a memory amount shared between the virtual machines 3 will be described.

図1は、実施の形態1に係る仮想マシンシステム100の構成図である。
仮想マシンシステム100は、複数の物理マシン1(物理マシン1a,1b,...)を備える。各物理マシン1では、仮想マシン3を動作させる環境を提供する仮想化ソフトウェア2(仮想化ソフトウェア2a,2b,...)が動作している。そして、各仮想化ソフトウェア2では、サーバ機能やデスクトップ機能を提供する複数の仮想マシン3が動作している。
FIG. 1 is a configuration diagram of a virtual machine system 100 according to the first embodiment.
The virtual machine system 100 includes a plurality of physical machines 1 (physical machines 1a, 1b,...). In each physical machine 1, virtualization software 2 (virtualization software 2 a, 2 b,...) That provides an environment for operating the virtual machine 3 is operating. In each virtualization software 2, a plurality of virtual machines 3 that provide server functions and desktop functions are operating.

また、仮想マシンシステム100は、各物理マシン1と通信回線4を介して接続された仮想マシン管理装置5を備える。さらに、仮想マシンシステム100は、各物理マシン1と通信回線6を介して接続されたストレージ7を備える。
通信回線4は、例えばイントラネット、LAN(Local Area Network)等のネットワークである。ここでは1本のネットワークで記載しているが、管理用のネットワークや業務用のネットワークなどで複数用意することも可能である。仮想マシン管理装置5は、物理マシン1で動作する仮想マシン3を管理する装置である。通信回線6は、例えばFC(Fibre Channel)、LAN等のストレージ7にアクセスするためのストレージネットワークである。ストレージ7は、仮想マシン3のディスクイメージを格納する記憶装置である。
The virtual machine system 100 also includes a virtual machine management device 5 connected to each physical machine 1 via the communication line 4. Furthermore, the virtual machine system 100 includes a storage 7 connected to each physical machine 1 via a communication line 6.
The communication line 4 is, for example, a network such as an intranet or a LAN (Local Area Network). Although a single network is described here, a plurality of networks can be prepared using a management network, a business network, or the like. The virtual machine management device 5 is a device that manages the virtual machine 3 operating on the physical machine 1. The communication line 6 is a storage network for accessing a storage 7 such as an FC (Fibre Channel) or a LAN. The storage 7 is a storage device that stores a disk image of the virtual machine 3.

仮想マシン管理装置5は、グループ管理部11、リソース監視部12(使用量計測部)、移動対象選定部13、仮想マシン移動部14、リソース使用情報記憶部15、グループ管理テーブル16(グループ情報記憶部)を備える。   The virtual machine management device 5 includes a group management unit 11, a resource monitoring unit 12 (usage measurement unit), a migration target selection unit 13, a virtual machine migration unit 14, a resource usage information storage unit 15, and a group management table 16 (group information storage). Part).

グループ管理部11は、グループ管理部11は、OS(Operating System)、ミドルウェア、アプリケーション等の共通の構成要素を持つ仮想マシン3が同じグループになるように、仮想マシン3を処理装置によりグループ分けする。そして、グループ管理部11は、各グループを示すグループ情報をグループ管理テーブル16に格納する。   The group management unit 11 groups the virtual machines 3 by the processing device so that the virtual machines 3 having common components such as an OS (Operating System), middleware, and applications are in the same group. . The group management unit 11 stores group information indicating each group in the group management table 16.

リソース監視部12は、各物理マシン1や各仮想マシン3の構成情報やリソース使用情報を定期的に収集し、リソース使用情報記憶部15に格納する。また、リソース監視部12は、予め設定された閾値や、収集したリソース使用情報に基づき、物理マシン1でリソース不足が発生していないか処理装置によりチェックする。   The resource monitoring unit 12 periodically collects configuration information and resource usage information of each physical machine 1 and each virtual machine 3 and stores them in the resource usage information storage unit 15. Further, the resource monitoring unit 12 checks the processing device for a resource shortage in the physical machine 1 based on a preset threshold or the collected resource usage information.

移動対象選定部13は、ある物理マシン1(不足マシン)にリソース不足が発生した場合に、不足マシンで動作するどの仮想マシン3を、不足マシン以外のどの物理マシン1へ移動させるかを処理装置により決定する。
移動対象選定部13は、各物理マシン1について、使用されていないリソースの量である空きリソース(リソース残量)を計測する残量計測部131と、移動先の物理マシン1を移動先物理マシン(特定物理マシン)として特定する物理マシン特定部132と、移動させる仮想マシン3を移動対象仮想マシン(特定仮想マシン)として特定する仮想マシン特定部133とを備える。
The movement target selection unit 13 is a processing device that determines which virtual machine 3 operating on a shortage machine is moved to which physical machine 1 other than the shortage machine when a shortage of resources occurs in a certain physical machine 1 (shortage machine). Determined by
The movement target selection unit 13 includes, for each physical machine 1, a remaining amount measurement unit 131 that measures a free resource (remaining resource amount) that is an amount of unused resources, and a destination physical machine 1 as a destination physical machine. A physical machine specifying unit 132 that specifies (specific physical machine) and a virtual machine specifying unit 133 that specifies the virtual machine 3 to be moved as a movement target virtual machine (specific virtual machine).

仮想マシン移動部14は、仮想マシン特定部133が特定した移動対象仮想マシンを物理マシン特定部132が特定した移動先物理マシンへ処理装置により移動させることにより、不足マシンのリソース不足を解消する。
つまり、仮想マシン移動部14は、不足マシンで特定仮想マシンを動作させるのを止め、特定物理マシンで特定仮想マシンを動作させる。これにより、不足マシンで動作する仮想マシン3を減らして、不足マシンのリソース不足を解消する。
The virtual machine moving unit 14 eliminates the resource shortage of the insufficient machine by moving the movement target virtual machine specified by the virtual machine specifying unit 133 to the destination physical machine specified by the physical machine specifying unit 132 by the processing device.
That is, the virtual machine moving unit 14 stops operating the specific virtual machine with the shortage machine, and operates the specific virtual machine with the specific physical machine. As a result, the number of virtual machines 3 operating on the insufficient machine is reduced, and the resource shortage of the insufficient machine is resolved.

リソース使用情報記憶部15は、リソース監視部12が収集した各物理マシン1や各仮想マシン3のリソース使用情報が格納される記憶装置である。   The resource usage information storage unit 15 is a storage device that stores the resource usage information of each physical machine 1 and each virtual machine 3 collected by the resource monitoring unit 12.

グループ管理テーブル16は、グループ管理部11が設定したグループ情報が格納される記憶装置である。   The group management table 16 is a storage device that stores group information set by the group management unit 11.

図2は、実施の形態1に係るグループ管理テーブル16に格納されたグループ情報の例を示す図である。
グループ管理テーブル16には、グループ名16−1、仮想マシン名16−2、稼働物理マシン名16−3の情報が格納される。グループ名16−1は、グループの識別情報である。ここでは、サービス事業者が複数の企業に対して仮想マシン3のリソースを提供している形態を示しており、A社デスクトップやA社Webサーバ等のグループ名を付与している。仮想マシン名16−2は、グループ名16−1が示すグループに属する仮想マシン3の識別情報である。稼動物理マシン名16−3は、仮想マシン名16−2が示す仮想マシン3が稼動している物理マシン1の識別情報である。
FIG. 2 is a diagram illustrating an example of group information stored in the group management table 16 according to the first embodiment.
The group management table 16 stores information on a group name 16-1, a virtual machine name 16-2, and an operating physical machine name 16-3. The group name 16-1 is group identification information. Here, a form in which the service provider provides the resources of the virtual machine 3 to a plurality of companies is shown, and group names such as A company desktop and A company Web server are given. The virtual machine name 16-2 is identification information of the virtual machine 3 belonging to the group indicated by the group name 16-1. The operating physical machine name 16-3 is identification information of the physical machine 1 in which the virtual machine 3 indicated by the virtual machine name 16-2 is operating.

図3は、実施の形態1に係るリソース監視部12の動作を示すフローチャートである。
(ST101)
リソース監視部12は、各物理マシン1で使用されているリソースの情報や、各仮想マシン3が使用しているリソースの情報等の各物理マシン1や各仮想マシン3のリソース使用に関する情報であるリソース使用情報の収集を定期的に行う。
なお、収集される情報は、CPU使用率、CPU数、CPU動作周波数、CPU処理待ち時間、メモリ割当量、メモリ使用量、メモリ共有利用量、スワップ発生状況、ネットワーク使用量、ストレージネットワーク使用量等である。収集する情報は、リソース不足の発生を判定できる情報であれば、前記に限ったものではない。
FIG. 3 is a flowchart showing the operation of the resource monitoring unit 12 according to the first embodiment.
(ST101)
The resource monitoring unit 12 is information on resource use of each physical machine 1 and each virtual machine 3 such as information on resources used in each physical machine 1 and information on resources used by each virtual machine 3. Collect resource usage information regularly.
The collected information includes CPU usage rate, number of CPUs, CPU operating frequency, CPU processing waiting time, memory allocation, memory usage, memory sharing usage, swap generation status, network usage, storage network usage, etc. It is. The information to be collected is not limited to the above as long as it is information that can determine the occurrence of a resource shortage.

(ST102)
リソース監視部12は、ST101で収集した情報を、リソース使用情報記憶部15に格納する。
(ST102)
The resource monitoring unit 12 stores the information collected in ST101 in the resource usage information storage unit 15.

(ST103)
リソース監視部12は、ST102で格納されたリソース使用に関する情報に基づき、いずれかの物理マシン1で何らかのリソースに不足が発生しているか否かを判定する。
なお、リソース不足が発生しているか否かは、例えば物理マシン1のCPU使用率が予め設定された閾値を超えているか否か、CPU処理待ち時間が所定の時間以上となっているか否か、スワップの発生頻度が閾値以上であるか否か等の方法で判定する。
リソース監視部12は、リソース不足が発生していると判定した場合(ST103でYES)、処理をST104へ進める。一方、リソース監視部12は、リソース不足が発生していないと判定した場合(ST103でNO)、処理をST101へ進める。
(ST103)
The resource monitoring unit 12 determines whether or not a shortage has occurred in any of the physical machines 1 based on the information on resource usage stored in ST102.
Whether the resource shortage has occurred is, for example, whether the CPU usage rate of the physical machine 1 exceeds a preset threshold, whether the CPU processing wait time is equal to or longer than a predetermined time, It is determined by a method such as whether or not the occurrence frequency of the swap is equal to or higher than a threshold value.
If resource monitoring unit 12 determines that a resource shortage has occurred (YES in ST103), the process proceeds to ST104. On the other hand, when resource monitoring unit 12 determines that there is no resource shortage (NO in ST103), the process proceeds to ST101.

(ST104)
リソース監視部12は、リソース不足が発生していると判定すると、リソース不足を解消するため、移動対象選定部13へ不足したリソースの種別(メモリやCPU等)を通知する。
(ST104)
If the resource monitoring unit 12 determines that a resource shortage has occurred, the resource monitoring unit 12 notifies the movement target selection unit 13 of the type of the resource (memory, CPU, etc.) in order to eliminate the resource shortage.

図4は、実施の形態1に係る移動対象選定部13の動作を示すフローチャートである。
(ST201)
残量計測部131は、ST104でリソース監視部12から通知を受け付けると、リソース使用情報記憶部15に蓄積されているリソース使用情報を読み込む。そして、移動対象選定部13は、各物理マシン1のCPU、メモリ、ネットワーク、ストレージネットワークの各空きリソースを計算する。
例えば、CPUの空き容量は、「(1−CPU使用率(%)/100)×物理コアの周波数×コア数」等の計算によって導出する。CPU使用率が70%で、物理コアの周波数が2GHz、コア数が8の場合は、0.3×2000×8=4800MHzとなる。なお、CPU使用率として利用する値は、過去からの平均、移動平均、ピーク値、パーセンタイル値、最新値などからシステムにおいて最適なものを利用すればよく、特に限定はない。
図5は、残量計測部131が各物理マシン1の空きリソース情報をまとめた例を示す図である。
FIG. 4 is a flowchart showing the operation of the movement target selection unit 13 according to the first embodiment.
(ST201)
When receiving the notification from the resource monitoring unit 12 in ST104, the remaining amount measuring unit 131 reads the resource usage information stored in the resource usage information storage unit 15. Then, the migration target selection unit 13 calculates each free resource of the CPU, memory, network, and storage network of each physical machine 1.
For example, the CPU free capacity is derived by calculation such as “(1−CPU usage rate (%) / 100) × physical core frequency × number of cores”. When the CPU usage rate is 70%, the physical core frequency is 2 GHz, and the number of cores is 8, 0.3 × 2000 × 8 = 4800 MHz. The value used as the CPU usage rate is not particularly limited as long as the optimal value in the system is used from the average from the past, moving average, peak value, percentile value, latest value, and the like.
FIG. 5 is a diagram illustrating an example in which the remaining amount measuring unit 131 summarizes the free resource information of each physical machine 1.

(ST202)
物理マシン特定部132は、リソース監視部12が通知してきたリソース種別の空きリソースが最も大きい物理マシン1を移動先物理マシンとして導出する。
例えば、図5の空きリソースを導出した結果で、不足したリソースがメモリだった場合、メモリ空きリソースが最も大きいSrv02が移動先物理マシンとして導出される。不足リソースがCPUだった場合、CPU空きリソースが最も大きいSrv03が移動先物理マシンとして導出される。
(ST202)
The physical machine specifying unit 132 derives the physical machine 1 having the largest available resource of the resource type notified by the resource monitoring unit 12 as the destination physical machine.
For example, as a result of deriving free resources in FIG. 5, when the insufficient resource is memory, Srv02 having the largest memory free resource is derived as the destination physical machine. When the insufficient resource is a CPU, Srv03 having the largest CPU free resource is derived as the movement destination physical machine.

(ST203)
仮想マシン特定部133は、リソース不足が発生している物理マシン1上で稼動しているすべての仮想マシン3のメモリ共有の状況をリソース使用情報記憶部15から取得し、メモリ共有の度合いが低い(共有しているメモリ領域の小さい)ものから順に並べる。そして、先頭の(共有しているメモリ領域が最も小さい)仮想マシン3を選択する。
図6は、仮想マシン3のメモリの利用状況を概念的に示した図である。例えば、図6の場合、仮想マシンA、仮想マシンB共に2GBのメモリが割り当てられていて、それぞれ実際に使用しているメモリ量が1.2GBである。使用しているメモリ量1.2GBのうち、仮想マシンAは400MB分が他の仮想マシン3と同じメモリ領域を使用しているのに対し、仮想マシンBは、250MB分が他の仮想マシン3と同じメモリ領域を使用している。従って、メモリ共有の度合いが低いものから順に並べると仮想マシンB、仮想マシンAの順番になる。他に仮想マシン3が動作しており、共有しているメモリ領域は仮想マシンA,B以外の他の仮想マシン3とも共有していると仮定すると、仮想マシンAを別の物理マシン1に移動させると、800MBの空き容量ができることになる。一方、仮想マシンBを別の物理マシン1に移動させると、950MBの空き容量ができることになる。つまり、仮想マシンBを移動させた方が、多くの空き容量ができる。
(ST203)
The virtual machine specifying unit 133 acquires the memory sharing status of all the virtual machines 3 running on the physical machine 1 in which the resource shortage has occurred from the resource usage information storage unit 15, and the degree of memory sharing is low Arrange in order from (smallest shared memory area). Then, the top virtual machine 3 (the shared memory area is the smallest) is selected.
FIG. 6 is a diagram conceptually showing the usage status of the memory of the virtual machine 3. For example, in the case of FIG. 6, 2 GB of memory is allocated to both the virtual machine A and the virtual machine B, and the amount of memory actually used is 1.2 GB. Of the 1.2 GB of memory used, the virtual machine A uses 400 MB for the same memory area as the other virtual machine 3, while the virtual machine B uses 250 MB for the other virtual machine 3 The same memory area is used. Therefore, when the memory sharing level is low, the virtual machine B and virtual machine A are in order. Assuming that another virtual machine 3 is operating and the shared memory area is shared with other virtual machines 3 other than the virtual machines A and B, the virtual machine A is moved to another physical machine 1 As a result, 800 MB of free space is created. On the other hand, when the virtual machine B is moved to another physical machine 1, 950 MB of free space is created. That is, a larger free space can be generated by moving the virtual machine B.

(ST204)
仮想マシン特定部133は、グループ管理テーブル16を参照して、ST203で選択した仮想マシン3と同じグループに属する仮想マシン3が、ST202で導出した移動先物理マシンで稼動しているか否かを判定する。
このような判定を行うのは、移動先物理マシンで同一のグループに属している仮想マシン3が稼働している場合、ST204で選択した仮想マシン3を移動先物理マシンへ移動させると、多くのメモリを共有できると認められるためである。
仮想マシン特定部133は、同一グループに属する仮想マシン3が稼動している場合(ST204でYES)、ST205へ処理を進める。一方、移動対象選定部13は、同一グループに属する仮想マシン3が稼動していない場合(ST204でNO)、ST206へ処理を進める。
(ST204)
The virtual machine specifying unit 133 refers to the group management table 16 and determines whether or not the virtual machine 3 belonging to the same group as the virtual machine 3 selected in ST203 is operating on the migration destination physical machine derived in ST202. To do.
Such a determination is made when the virtual machine 3 belonging to the same group is operating in the destination physical machine, and if the virtual machine 3 selected in ST204 is moved to the destination physical machine, This is because it is recognized that the memory can be shared.
If the virtual machine 3 belonging to the same group is operating (YES in ST204), the virtual machine specifying unit 133 advances the process to ST205. On the other hand, when the virtual machine 3 belonging to the same group is not operating (NO in ST204), the movement target selecting unit 13 advances the process to ST206.

(ST205)
仮想マシン特定部133は、選択した仮想マシン3を移動対象仮想マシンとして導出する。
(ST205)
The virtual machine specifying unit 133 derives the selected virtual machine 3 as a movement target virtual machine.

(ST206)
仮想マシン特定部133は、ST203で並べた仮想マシン3に、まだ選択されていない仮想マシン3があるか否かを判定する。
移動対象選定部13は、選択されていない仮想マシン3がある場合(ST206でYES)、選択されていない仮想マシン3のうち、先頭の(共有しているメモリ領域が最も小さい)仮想マシン3を選択して、処理をST204へ戻す。一方、移動対象選定部13は、選択されていない仮想マシン3がない場合(ST206でNO)、処理をST207へ進める。
(ST206)
The virtual machine specifying unit 133 determines whether there is a virtual machine 3 that has not yet been selected among the virtual machines 3 arranged in ST203.
When there is a virtual machine 3 that has not been selected (YES in ST206), the movement target selection unit 13 selects the virtual machine 3 at the head (the smallest shared memory area) among the virtual machines 3 that have not been selected. Select and return the process to ST204. On the other hand, when there is no virtual machine 3 that has not been selected (NO in ST206), the movement target selection unit 13 advances the process to ST207.

(ST207)
仮想マシン特定部133は、最も共有しているメモリ領域が最も小さい仮想マシン3、つまり初めにST203で選択した仮想マシン3を移動対象仮想マシンとして導出する。
(ST207)
The virtual machine specifying unit 133 derives the virtual machine 3 with the smallest shared memory area, that is, the virtual machine 3 first selected in ST203 as a migration target virtual machine.

(ST208)
移動対象選定部13は、移動対象仮想マシンの導出が完了すると、仮想マシン移動部14に通知する。
なお、通知を受けた仮想マシン移動部14は、ST205又はST207で導出された移動対象仮想マシンを、ST202で導出された移動先物理マシンに移動させることでリソース不足の解消を行う。また、仮想マシン移動部14にて仮想マシン3を別の物理マシン1に移動した場合は、グループ管理部11が稼動物理マシン名16−3の内容を更新する。
(ST208)
The migration target selection unit 13 notifies the virtual machine migration unit 14 when the derivation of the migration target virtual machine is completed.
Upon receiving the notification, the virtual machine migration unit 14 resolves the resource shortage by moving the migration target virtual machine derived in ST205 or ST207 to the migration destination physical machine derived in ST202. When the virtual machine 3 is moved to another physical machine 1 by the virtual machine moving unit 14, the group management unit 11 updates the contents of the operating physical machine name 16-3.

もし、1つの仮想マシン3を移動させてもリソース不足が解消しない場合には、再びST104で移動対象選定部13へ通知され、他の仮想マシン3の移動がされる。つまり、繰り返し仮想マシン3の移動がされることにより、リソース不足が解消される。   If the shortage of resources is not resolved even if one virtual machine 3 is moved, the movement target selection unit 13 is notified again in ST104, and the other virtual machine 3 is moved. That is, the resource shortage is resolved by repeatedly moving the virtual machine 3.

以上のように、実施の形態1に係る仮想マシン管理装置5は、リソース不足が発生した場合、複数の仮想マシン3間で共有しているメモリ量に基づき、移動させる仮想マシン3を選択する。また、実施の形態1に係る仮想マシン管理装置5は、特に、移動先でのメモリ共有が実施できる可能性が高い仮想マシン3を選択する。
これにより、リソース不足が発生している物理マシン1のリソース不足を解消できるとともに、移動先の物理マシン1で移動してきた仮想マシン3が専有するメモリ量を抑えることができる。そのため、仮想マシン3を移動させることに伴い、移動先の物理マシン1でリソース不足が発生するリスクを抑えることができる。その結果、リソース不足発生に伴う顧客への影響を抑えることが可能となる。
また、リソースの共有利用を前提とした仮想マシン3の配置が可能となるため、1台の物理マシン1で稼動させることができる仮想マシン3の台数を増やすことが可能となる。そのため、必要な物理マシン1の台数を削減することができ、仮想マシン3を提供する事業者のコスト削減を実現することが可能となる。
As described above, when the resource shortage occurs, the virtual machine management device 5 according to the first embodiment selects the virtual machine 3 to be moved based on the memory amount shared among the plurality of virtual machines 3. In addition, the virtual machine management device 5 according to the first embodiment selects the virtual machine 3 that is particularly likely to be able to perform memory sharing at the migration destination.
As a result, the shortage of resources of the physical machine 1 in which the shortage of resources has occurred can be resolved, and the amount of memory occupied by the virtual machine 3 that has moved on the destination physical machine 1 can be suppressed. Therefore, it is possible to suppress the risk of resource shortage occurring in the destination physical machine 1 as the virtual machine 3 is moved. As a result, it is possible to suppress the influence on the customer due to the resource shortage.
In addition, since it is possible to arrange the virtual machines 3 on the premise of shared use of resources, it is possible to increase the number of virtual machines 3 that can be operated by one physical machine 1. Therefore, the number of necessary physical machines 1 can be reduced, and it is possible to realize cost reduction of the business operator who provides the virtual machine 3.

なお、上記説明では、図6に示すように、仮想マシンAと仮想マシンBとは、使用しているメモリ量が同じであるとした。しかし、仮想マシン特定部133は、使用しているメモリ量が異なる場合であっても、使用しているメモリ量に関わらず、共有しているメモリ領域の大きさで、どの仮想マシン3を移動させるかを判定する。これは、各仮想サーバが使用しているメモリ量は時々刻々と変わってしまうため、不足が生じた時点において使用しているメモリ量で判定すると、実態と合わない可能性があるためである。共有しているメモリ領域の大きさも、時々刻々と変化する可能性もあるが、共有しているメモリ領域はOS等によって使用されている部分であり、変化率は小さいものと考えられる。そこで、移動対象選定部13は、使用しているメモリ量に関わらず、共有しているメモリ領域の大きさで、どの仮想マシン3を移動させるかを判定する。   In the above description, as shown in FIG. 6, it is assumed that the virtual machine A and the virtual machine B use the same amount of memory. However, the virtual machine specifying unit 133 moves any virtual machine 3 according to the size of the shared memory area, regardless of the amount of memory used, even when the amount of memory used is different. Judgment is made. This is because the amount of memory used by each virtual server changes from moment to moment, and therefore it may not match the actual situation when judged by the amount of memory used when the shortage occurs. The size of the shared memory area may change from moment to moment, but the shared memory area is a part used by the OS or the like, and the rate of change is considered to be small. Therefore, the movement target selection unit 13 determines which virtual machine 3 is to be moved according to the size of the shared memory area regardless of the amount of memory being used.

実施の形態2.
実施の形態2では、仮想マシン3で使用しているCPUの使用動作周波数を利用して、移動させる仮想マシン3を特定する方法について説明する。
Embodiment 2. FIG.
In the second embodiment, a method for specifying a virtual machine 3 to be moved using a use operating frequency of a CPU used in the virtual machine 3 will be described.

図7は、実施の形態2に係る仮想マシンシステム100の構成図である。
実施の形態2に係る仮想マシンシステム100は、各仮想マシン3に割り当てられているCPU数に応じて、周波数の値を変換するための変換係数が格納された記憶装置である係数記憶部17が追加されている点が図1に示す仮想マシンシステム100と異なる。
FIG. 7 is a configuration diagram of the virtual machine system 100 according to the second embodiment.
The virtual machine system 100 according to the second embodiment includes a coefficient storage unit 17 that is a storage device that stores a conversion coefficient for converting a frequency value according to the number of CPUs allocated to each virtual machine 3. The added point is different from the virtual machine system 100 shown in FIG.

図8は、実施の形態2に係る係数記憶部17に格納された情報の例を示す図である。
係数記憶部17には、割当CPU数17−1、係数17−2の情報が格納される。割当CPU数17−1は、各仮想マシン3に割り当てられているCPU数である。係数17−2は、割り当てられているCPU数に応じ、総使用周波数に掛ける係数である。
図8に示すように、割り当てられているCPU数が多いほど、総使用周波数に掛ける係数は大きくなる。
FIG. 8 is a diagram illustrating an example of information stored in the coefficient storage unit 17 according to the second embodiment.
The coefficient storage unit 17 stores information on the number of assigned CPUs 17-1 and the coefficient 17-2. The number of assigned CPUs 17-1 is the number of CPUs assigned to each virtual machine 3. The coefficient 17-2 is a coefficient to be multiplied by the total used frequency according to the number of assigned CPUs.
As shown in FIG. 8, the greater the number of assigned CPUs, the greater the coefficient multiplied by the total frequency used.

図9は、実施の形態2に係る移動対象選定部13の動作を示すフローチャートである。
ST301からST302までは、図4に示すST201からST202までと同じである。
FIG. 9 is a flowchart showing the operation of the movement target selection unit 13 according to the second embodiment.
ST301 to ST302 are the same as ST201 to ST202 shown in FIG.

(ST303)
仮想マシン特定部133は、リソース不足が発生している物理マシン1上で稼動しているすべての仮想マシン3のCPUの総使用周波数をリソース使用情報記憶部15から取得し、係数記憶部17の係数を掛け合わせる。そして、移動対象選定部13は、計算された値が最も低いものを移動対象仮想マシンとして導出する。割り当てられているCPU数が多いほど、総使用周波数に掛ける係数は大きいため、ほぼ同じ動作周波数の仮想マシン3であっても割り当てられているコア数の少ない仮想マシン3が移動対象仮想マシンとして導出される。
例えば、「CPU使用率(%)/100×物理コアの周波数×割当CPU数×係数」などの計算によって値を導出する。CPU使用率が70%で、物理コアの周波数が2GHz、割当CPU数が2の場合は、0.7×2000×2×1.2=3360となる。
(ST303)
The virtual machine specifying unit 133 acquires the total frequency of use of the CPUs of all the virtual machines 3 running on the physical machine 1 where the resource shortage has occurred from the resource use information storage unit 15, and stores the coefficient storage unit 17 in the coefficient storage unit 17. Multiply by a factor. Then, the movement target selection unit 13 derives the one having the lowest calculated value as the movement target virtual machine. The larger the number of assigned CPUs, the larger the coefficient multiplied by the total used frequency. Therefore, even if the virtual machine 3 has almost the same operating frequency, a virtual machine 3 with a smaller number of assigned cores is derived as the migration target virtual machine. Is done.
For example, the value is derived by calculation such as “CPU usage rate (%) / 100 × frequency of physical core × number of assigned CPUs × coefficient”. When the CPU usage rate is 70%, the frequency of the physical core is 2 GHz, and the number of assigned CPUs is 2, 0.7 × 2000 × 2 × 1.2 = 3360.

ST304は、図4に示すST208と同じである。   ST304 is the same as ST208 shown in FIG.

以上のように、実施の形態2に係る仮想マシン管理装置5は、リソース不足が発生した場合に、利用している周波数のみでなく、割り当てられているCPU数を考慮して、移動させる仮想マシン3を選択する。
これにより、ほぼ同じ動作周波数の仮想マシン3であっても割り当てられているコア数の少ない仮想マシン3が移動対象として導出されることになる。そのため、移動先の物理マシン1で移動した仮想マシン3が動作する際に専有するコア数が少なくなり、元々動作していた仮想マシン3の動作への影響を抑えることができる。その結果、リソース不足発生に伴う顧客への影響を抑えることが可能となる。
As described above, when the resource shortage occurs, the virtual machine management apparatus 5 according to the second embodiment moves the virtual machine in consideration of not only the frequency being used but also the number of assigned CPUs. Select 3.
As a result, even if the virtual machine 3 has substantially the same operating frequency, the virtual machine 3 with a small number of assigned cores is derived as a movement target. Therefore, the number of cores dedicated to the operation of the virtual machine 3 moved by the destination physical machine 1 is reduced, and the influence on the operation of the virtual machine 3 that was originally operating can be suppressed. As a result, it is possible to suppress the influence on the customer due to the resource shortage.

実施の形態3.
実施の形態1では、共有しているメモリ量を利用して、移動させる仮想マシン3を特定した。また、実施の形態2では、CPUの使用動作周波数を利用して、移動させる仮想マシン3を特定した。
実施の形態3では、仮想マシン3の各リソースの使用状況を総合的に利用して、移動させる仮想マシン3を特定する方法について説明する。
Embodiment 3 FIG.
In the first embodiment, the virtual machine 3 to be moved is specified using the shared memory amount. In the second embodiment, the virtual machine 3 to be moved is specified using the operating frequency of the CPU.
In the third embodiment, a method of specifying the virtual machine 3 to be moved by comprehensively using the usage status of each resource of the virtual machine 3 will be described.

実施の形態3に係る仮想マシンシステム100は、図7に示すと同じ構成である。但し、係数記憶部17に格納される情報が異なる。   The virtual machine system 100 according to the third embodiment has the same configuration as shown in FIG. However, the information stored in the coefficient storage unit 17 is different.

図10は、実施の形態3に係る係数記憶部17に格納された情報の例を示す図である。
係数記憶部17には、共有度判定要素17−3、係数17−4の情報が格納される。共有度判定要素17−3は、各リソースの識別情報である。係数17−4は、各リソースの重み付けを指定する係数である。
FIG. 10 is a diagram illustrating an example of information stored in the coefficient storage unit 17 according to the third embodiment.
The coefficient storage unit 17 stores information on the sharing degree determination element 17-3 and the coefficient 17-4. The sharing degree determination element 17-3 is identification information of each resource. The coefficient 17-4 is a coefficient that specifies weighting of each resource.

図11は、実施の形態3に係る移動対象選定部13の動作を示すフローチャートである。図12は、リソースの共有に関する値と、評価値とを示す図である。なお、図12では、上の表がリソースの共有に関する値を示し、下の表が評価値を示す。
ST401からST402までは、図4に示すST201からST202までと同じである。
FIG. 11 is a flowchart showing the operation of the movement target selection unit 13 according to the third embodiment. FIG. 12 is a diagram illustrating values related to resource sharing and evaluation values. In FIG. 12, the upper table shows values related to resource sharing, and the lower table shows evaluation values.
ST401 to ST402 are the same as ST201 to ST202 shown in FIG.

(ST403)
移動対象選定部13は、リソース不足が発生している物理マシン1上の仮想マシン3のリソース使用情報を抽出し、標準化を行う。
標準化は、例えば「(値−平均値)/標準偏差」の式で計算する。図12の上の表のメモリ共有量については、各仮想マシン3の値が427、639、436、330、526となっていることから、平均値は471.6、標準偏差は104.2となる。この時、VM01の標準化した値は、「(427−471.6)/104.2=−0.43」と計算できる。これらを全ての仮想マシン3の全てのパラメータについて計算する。但し、移動先の物理マシン1上に同一のグループに属する仮想マシン3があるか否かは、ある場合を−1、ない場合を0とした状態で標準化が実施されているものとみなし、そのままの値を使用する。
(ST403)
The migration target selection unit 13 extracts the resource usage information of the virtual machine 3 on the physical machine 1 where the resource shortage has occurred, and performs standardization.
The standardization is calculated by, for example, the formula “(value−average value) / standard deviation”. Regarding the memory sharing amount in the upper table of FIG. 12, since the values of the respective virtual machines 3 are 427, 639, 436, 330, and 526, the average value is 471.6 and the standard deviation is 104.2. Become. At this time, the standardized value of VM01 can be calculated as “(427−471.6) /104.2=−0.43”. These are calculated for all parameters of all virtual machines 3. However, whether there is a virtual machine 3 belonging to the same group on the destination physical machine 1 is regarded as being standardized in a state where -1 is present in some cases and 0 in other cases. Use the value of.

(ST404)
移動対象選定部13は、標準化された値に、係数記憶部17に格納されている係数を掛けた値を評価値とする。そして、移動対象選定部13は、評価値の和が最も小さい仮想マシン3を移動対象仮想マシンとして導出する。
例えば、図12に示した仮想マシン3VM01〜VM05がリソース不足となっている物理マシン1上で動作している仮想マシン3であるとし、図12の上の表に示すように、それぞれのリソースに該当する値が得られているとする。すると、図12の下の表に示す値が、これらの値を標準化し、係数をかけた評価値となる。そして、右の和の欄に示した値が最も小さいVM04が移動対象の仮想マシン3として導出される。
(ST404)
The movement target selection unit 13 sets a value obtained by multiplying the standardized value by the coefficient stored in the coefficient storage unit 17 as an evaluation value. Then, the movement target selection unit 13 derives the virtual machine 3 having the smallest evaluation value as the movement target virtual machine.
For example, assuming that the virtual machines 3VM01 to VM05 shown in FIG. 12 are virtual machines 3 operating on the physical machine 1 in which resources are insufficient, as shown in the upper table of FIG. Assume that the corresponding value is obtained. Then, the values shown in the lower table of FIG. 12 become the evaluation values obtained by standardizing these values and multiplying the coefficients. Then, the VM 04 having the smallest value shown in the right sum column is derived as the migration target virtual machine 3.

ST405は、図4に示すST208と同じである。   ST405 is the same as ST208 shown in FIG.

以上のように、実施の形態3に係る仮想マシン管理装置5は、リソース不足が発生した場合に、すべての共有リソースに関する情報を総合的に用いて移動対象の仮想マシン3の選定を行う。
これにより、仮想マシン3を移動させることによる移動先の物理マシン1への影響を抑えることができる。その結果、リソース不足発生に伴う顧客への影響を抑えることが可能となる。
As described above, when the resource shortage occurs, the virtual machine management device 5 according to the third embodiment selects the virtual machine 3 to be moved by comprehensively using information on all shared resources.
Thereby, the influence on the physical machine 1 of the movement destination by moving the virtual machine 3 can be suppressed. As a result, it is possible to suppress the influence on the customer due to the resource shortage.

なお、以上の実施の形態では、移動対象の仮想マシン3を選択する際に、共有しているメモリ量を利用することや、CPUの使用動作周波数を利用することや、仮想マシン3の各リソースの使用状況を総合的に利用することを説明した。
これ以外にも、例えば、各仮想マシン3の通信回線4の使用量の状況を監視し、通信回線4の使用量の低い仮想マシン3を移動対象の仮想マシン3として選択するようにしてもよい。
また、例えば、ストレージネットワークである通信回線6の使用量の状況を監視し、通信回線6の使用量の低い仮想マシン3を移動対象の仮想マシン3として選択するようにしてもよい。
つまり、仮想マシン3を移動させた場合に、移動先の物理マシン1でリソースの競合が発生する可能性の低い仮想マシン3を移動対象仮想マシンとして選択できる方法であれば、他の方法であってもよい。
In the above embodiment, when selecting the virtual machine 3 to be moved, the shared memory amount is used, the operating operating frequency of the CPU is used, and each resource of the virtual machine 3 is used. Explained the comprehensive use of the usage status.
In addition to this, for example, the status of the usage amount of the communication line 4 of each virtual machine 3 may be monitored, and the virtual machine 3 having a low usage amount of the communication line 4 may be selected as the virtual machine 3 to be moved. .
Further, for example, the usage amount of the communication line 6 that is a storage network may be monitored, and the virtual machine 3 having a low usage amount of the communication line 6 may be selected as the virtual machine 3 to be moved.
In other words, when the virtual machine 3 is moved, any other method can be used as long as the virtual machine 3 is less likely to cause resource contention in the destination physical machine 1 as the movement target virtual machine. May be.

図13は、仮想マシン管理装置5のハードウェア構成の一例を示す図である。
図13に示すように、仮想マシン管理装置5は、プログラムを実行するCPU911(Central・Processing・Unit、中央処理装置、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、プロセッサともいう)を備えている。CPU911は、バス912を介してROM913、RAM914、LCD915(Liquid Crystal Display)、通信ボード916、磁気ディスク装置920と接続され、これらのハードウェアデバイスを制御する。磁気ディスク装置920(固定ディスク装置)の代わりに、光ディスク装置、メモリカード読み書き装置などの記憶装置でもよい。磁気ディスク装置920は、所定の固定ディスクインタフェースを介して接続される。
FIG. 13 is a diagram illustrating an example of a hardware configuration of the virtual machine management device 5.
As illustrated in FIG. 13, the virtual machine management device 5 includes a CPU 911 (also referred to as a central processing unit, a central processing unit, a processing unit, an arithmetic unit, a microprocessor, a microcomputer, and a processor) that executes a program. . The CPU 911 is connected to a ROM 913, a RAM 914, an LCD 915 (Liquid Crystal Display), a communication board 916, and a magnetic disk device 920 via a bus 912, and controls these hardware devices. Instead of the magnetic disk device 920 (fixed disk device), a storage device such as an optical disk device or a memory card read / write device may be used. The magnetic disk device 920 is connected via a predetermined fixed disk interface.

磁気ディスク装置920又はROM913などには、オペレーティングシステム921(OS)、ウィンドウシステム922、プログラム群923、ファイル群924が記憶されている。プログラム群923のプログラムは、CPU911、オペレーティングシステム921、ウィンドウシステム922により実行される。   An operating system 921 (OS), a window system 922, a program group 923, and a file group 924 are stored in the magnetic disk device 920 or the ROM 913. The programs in the program group 923 are executed by the CPU 911, the operating system 921, and the window system 922.

プログラム群923には、上記の説明において「グループ管理部11」、「リソース監視部12」、「移動対象選定部13」、「仮想マシン移動部14」等として説明した機能を実行するソフトウェアやプログラムやその他のプログラムが記憶されている。プログラムは、CPU911により読み出され実行される。
ファイル群924には、上記の説明において「リソース使用情報記憶部15」、「グループ管理テーブル16」、「係数記憶部17」等に記憶される情報やデータや信号値や変数値やパラメータが、「ファイル」や「データベース」の各項目として記憶される。「ファイル」や「データベース」は、ディスクやメモリなどの記録媒体に記憶される。ディスクやメモリなどの記憶媒体に記憶された情報やデータや信号値や変数値やパラメータは、読み書き回路を介してCPU911によりメインメモリやキャッシュメモリに読み出され、抽出・検索・参照・比較・演算・計算・処理・出力・印刷・表示などのCPU911の動作に用いられる。抽出・検索・参照・比較・演算・計算・処理・出力・印刷・表示のCPU911の動作の間、情報やデータや信号値や変数値やパラメータは、メインメモリやキャッシュメモリやバッファメモリに一時的に記憶される。
The program group 923 includes software and programs that execute the functions described as “group management unit 11”, “resource monitoring unit 12”, “migration target selection unit 13”, “virtual machine migration unit 14”, etc. And other programs are stored. The program is read and executed by the CPU 911.
In the file group 924, information, data, signal values, variable values, and parameters stored in the “resource use information storage unit 15”, “group management table 16”, “coefficient storage unit 17”, and the like in the above description, Stored as “file” and “database” items. The “file” and “database” are stored in a recording medium such as a disk or a memory. Information, data, signal values, variable values, and parameters stored in a storage medium such as a disk or memory are read out to the main memory or cache memory by the CPU 911 via a read / write circuit, and extracted, searched, referenced, compared, and calculated. Used for the operation of the CPU 911 such as calculation / processing / output / printing / display. Information, data, signal values, variable values, and parameters are temporarily stored in the main memory, cache memory, and buffer memory during the operation of the CPU 911 for extraction, search, reference, comparison, calculation, calculation, processing, output, printing, and display. Is remembered.

また、上記の説明において「〜部」として説明するものは、「〜回路」、「〜装置」、「〜機器」、「〜手段」、「〜機能」であってもよく、また、「〜ステップ」、「〜手順」、「〜処理」であってもよい。また、「〜装置」として説明するものは、「〜回路」、「〜機器」、「〜手段」、「〜機能」であってもよく、また、「〜ステップ」、「〜手順」、「〜処理」であってもよい。さらに、「〜処理」として説明するものは「〜ステップ」であっても構わない。すなわち、「〜部」として説明するものは、ROM913に記憶されたファームウェアで実現されていても構わない。或いは、ソフトウェアのみ、或いは、素子・デバイス・基板・配線などのハードウェアのみ、或いは、ソフトウェアとハードウェアとの組み合わせ、さらには、ファームウェアとの組み合わせで実施されても構わない。ファームウェアとソフトウェアは、プログラムとして、ROM913等の記録媒体に記憶される。プログラムはCPU911により読み出され、CPU911により実行される。すなわち、プログラムは、上記で述べた「〜部」としてコンピュータ等を機能させるものである。あるいは、上記で述べた「〜部」の手順や方法をコンピュータ等に実行させるものである。   In addition, what is described as “to part” in the above description may be “to circuit”, “to device”, “to device”, “to means”, and “to function”. It may be “step”, “˜procedure”, “˜processing”. In addition, what is described as “˜device” may be “˜circuit”, “˜device”, “˜means”, “˜function”, and “˜step”, “˜procedure”, “ ~ Process ". Furthermore, what is described as “to process” may be “to step”. That is, what is described as “˜unit” may be realized by firmware stored in the ROM 913. Alternatively, it may be implemented only by software, or only by hardware such as elements, devices, substrates, and wirings, by a combination of software and hardware, or by a combination of firmware. Firmware and software are stored in a recording medium such as ROM 913 as a program. The program is read by the CPU 911 and executed by the CPU 911. That is, the program causes a computer or the like to function as the “˜unit” described above. Alternatively, the computer or the like is caused to execute the procedures and methods of “to part” described above.

1 物理マシン、2 仮想化ソフトウェア、3 仮想マシン、4 通信回線、5 仮想マシン管理装置、6 通信回線、7 ストレージ、11 グループ管理部、12 リソース監視部、13 移動対象選定部、131 残量計測部、132 物理マシン特定部、133 仮想マシン特定部、14 仮想マシン移動部、15 リソース使用情報記憶部、16 グループ管理テーブル、17 係数記憶部。   1 physical machine, 2 virtualization software, 3 virtual machine, 4 communication line, 5 virtual machine management device, 6 communication line, 7 storage, 11 group management unit, 12 resource monitoring unit, 13 movement target selection unit, 131 remaining amount measurement Part, 132 physical machine specifying part, 133 virtual machine specifying part, 14 virtual machine moving part, 15 resource use information storage part, 16 group management table, 17 coefficient storage part.

Claims (8)

複数の物理マシンにおいて複数の仮想マシンが動作する仮想マシンシステムを管理する仮想マシン管理装置であり、
各物理マシンについて、使用されていないリソースの量であるリソース残量を計測する残量計測部と、
各仮想マシンについて、その仮想マシンが使用しているリソースの量であるリソース使用量を計測する使用量計測部と、
いずれかの物理マシンでリソース不足が発生した場合、前記残量計測部が計測したリソース残量が所定量以上ある物理マシンを特定物理マシンとして特定する物理マシン特定部と、
前記使用量計測部が計測したリソース使用量であって、前記リソース不足が発生した物理マシンである不足マシンで動作する仮想マシンのリソース使用量に基づき、前記不足マシンで動作する仮想マシンから、前記物理マシン特定部が特定した特定物理マシンで動作させた場合にリソースの競合が発生する可能性が低い仮想マシンを特定仮想マシンとして特定する仮想マシン特定部と、
前記仮想マシン特定部が特定した特定仮想マシンを、前記不足マシンで動作させるのを止め、前記特定物理マシンで動作させる仮想マシン移動部と
を備えることを特徴とする仮想マシン管理装置。
A virtual machine management apparatus that manages a virtual machine system in which a plurality of virtual machines operate in a plurality of physical machines,
For each physical machine, a remaining amount measurement unit that measures the remaining amount of resources, which is the amount of unused resources,
For each virtual machine, a usage meter that measures the resource usage, which is the amount of resources used by the virtual machine,
When a resource shortage occurs in any of the physical machines, a physical machine specifying unit that specifies a physical machine having a predetermined amount or more of the remaining amount of resources measured by the remaining amount measuring unit as a specific physical machine;
The resource usage measured by the usage meter, based on the resource usage of a virtual machine that operates on the insufficient machine that is the physical machine on which the resource shortage has occurred, from the virtual machine that operates on the insufficient machine, A virtual machine identification unit that identifies a virtual machine that has a low possibility of resource contention as a specific virtual machine when operated on a specific physical machine identified by the physical machine identification unit;
A virtual machine management apparatus comprising: a virtual machine moving unit that stops operating the specified virtual machine specified by the virtual machine specifying unit on the insufficient machine and operates the specified virtual machine.
前記仮想マシン特定部は、前記不足マシンで動作する仮想マシンのうち、前記不足マシンで動作する仮想マシン間で共有して使用しているメモリの量である共有量が少ない仮想マシンを、前記特定仮想マシンとして特定する
ことを特徴とする請求項1に記載の仮想マシン管理装置。
The virtual machine identifying unit identifies, among the virtual machines operating on the insufficient machine, a virtual machine having a small amount of sharing, which is an amount of memory shared and used between virtual machines operating on the insufficient machine The virtual machine management apparatus according to claim 1, wherein the virtual machine management apparatus is specified as a virtual machine.
前記仮想マシン管理装置は、さらに、
前記複数の仮想マシンを、提供する機能毎にグループ分けしたグループ情報を記憶したグループ情報記憶部
を備え、
前記仮想マシン特定部は、前記グループ情報記憶部が記憶したグループ情報を参照して、前記不足マシンで動作する仮想マシンのうち、前記共有量が少ない仮想マシンであって、前記特定物理マシンで同一のグループに属する仮想マシンが動作している仮想マシンを、前記特定仮想マシンとして特定する
ことを特徴とする請求項2に記載の仮想マシン管理装置。
The virtual machine management device further includes:
A group information storage unit storing group information obtained by grouping the plurality of virtual machines for each function to be provided;
The virtual machine specifying unit refers to the group information stored in the group information storage unit and is a virtual machine with a small amount of sharing among virtual machines operating on the insufficient machine, and is the same on the specific physical machine The virtual machine management apparatus according to claim 2, wherein a virtual machine in which a virtual machine belonging to the group is operating is specified as the specific virtual machine.
前記仮想マシン特定部は、前記不足マシンで動作する仮想マシンのうち、CPU使用率と、その仮想マシンに割り当てられたCPU数との積である使用CPU周波数が小さい仮想マシンを、前記特定仮想マシンとして特定する
ことを特徴とする請求項1に記載の仮想マシン管理装置。
The virtual machine specifying unit selects a virtual machine having a low used CPU frequency, which is a product of a CPU usage rate and the number of CPUs assigned to the virtual machine, among virtual machines operating on the insufficient machine. The virtual machine management apparatus according to claim 1, characterized by:
前記仮想マシン管理装置は、さらに、
仮想マシンに割り当てられるCPU数に応じた係数を記憶した係数記憶部
を備え、
前記仮想マシン特定部は、前記不足マシンで動作する仮想マシンのうち、前記係数記憶部が記憶した係数であって、その仮想マシンに割り当てられたCPU数に対する係数を、前記使用CPU周波数に掛けた値が小さい仮想マシンを、前記特定仮想マシンとして特定する
ことを特徴とする請求項4に記載の仮想マシン管理装置。
The virtual machine management device further includes:
A coefficient storage unit that stores a coefficient according to the number of CPUs allocated to the virtual machine;
The virtual machine specifying unit is a coefficient stored in the coefficient storage unit among virtual machines operating on the insufficient machine, and a coefficient for the number of CPUs assigned to the virtual machine is multiplied by the used CPU frequency. The virtual machine management apparatus according to claim 4, wherein a virtual machine having a small value is specified as the specific virtual machine.
前記残量計測部は、複数の種類のリソースの各リソースについてのリソース残量を計測し、
前記使用量計測部は、前記各リソースについてのリソース使用量を計測し、
前記物理マシン特定部は、前記複数の種類のリソースのうち、いずれかのリソースのリソース残量が閾値以下になるリソース不足が発生した場合、そのリソースのリソース残量が所定量以上ある物理マシンを、前記特定物理マシンとして特定し、
前記仮想マシン特定部は、前記不足マシンで動作する仮想マシンのうち、前記各リソースのリソース使用量について、リソース毎に重み付けして所定の計算をして得られる値の和が小さい仮想マシンを、前記特定仮想マシンとして特定する
ことを特徴とする請求項1に記載の仮想マシン管理装置。
The remaining amount measuring unit measures a resource remaining amount for each resource of a plurality of types of resources,
The usage measurement unit measures the resource usage for each resource,
The physical machine specifying unit, when a resource shortage in which the resource remaining amount of any of the plurality of types of resources is equal to or less than a threshold occurs, selects a physical machine having the resource remaining amount of the resource equal to or greater than a predetermined amount. , Identify as the specific physical machine,
The virtual machine specifying unit is a virtual machine that operates on the shortage machine, and a virtual machine with a small sum of values obtained by weighting each resource and performing a predetermined calculation for the resource usage of each resource, The virtual machine management apparatus according to claim 1, wherein the virtual machine management apparatus is specified as the specific virtual machine.
複数の物理マシンにおいて複数の仮想マシンが動作する仮想マシンシステムを管理する仮想マシン管理方法であり、
処理装置が、各物理マシンについて、使用されていないリソースの量であるリソース残量を計測する残量計測工程と、
処理装置が、各仮想マシンについて、その仮想マシンが使用しているリソースの量であるリソース使用量を計測する使用量計測工程と、
処理装置が、いずれかの物理マシンでリソース不足が発生した場合、前記残量計測工程で計測したリソース残量が所定量以上ある物理マシンを特定物理マシンとして特定する物理マシン特定工程と、
処理装置が、前記使用量計測工程で計測したリソース使用量であって、前記リソース不足が発生した物理マシンである不足マシンで動作する仮想マシンのリソース使用量に基づき、前記不足マシンで動作する仮想マシンから、前記物理マシン特定工程で特定した特定物理マシンで動作させた場合にリソースの競合が発生する可能性が低い仮想マシンを特定仮想マシンとして特定する仮想マシン特定工程と、
処理装置が、前記仮想マシン特定工程で特定した特定仮想マシンを、前記不足マシンで動作させるのを止め、前記特定物理マシンで動作させる仮想マシン移動工程と
を備えることを特徴とする仮想マシン管理方法。
A virtual machine management method for managing a virtual machine system in which a plurality of virtual machines operate on a plurality of physical machines,
A remaining amount measuring step in which the processing device measures the remaining amount of resources, which is the amount of unused resources, for each physical machine;
A usage measurement step in which the processing device measures, for each virtual machine, a resource usage that is the amount of resources used by the virtual machine;
When a shortage of resources occurs in any of the physical machines, the processing device specifies a physical machine having a predetermined amount or more of the remaining amount of resources measured in the remaining amount measurement step as a specific physical machine, and
A virtual machine that operates on the insufficient machine based on the resource usage of the virtual machine that operates on the insufficient machine that is the physical machine on which the resource shortage has occurred, the processing apparatus is the resource usage measured in the usage measurement step A virtual machine specifying step for specifying, as a specific virtual machine, a virtual machine having a low possibility of resource conflict when operating on the specific physical machine specified in the physical machine specifying step from the machine;
A virtual machine management method comprising: a virtual machine moving step in which a processing device stops operating the specific virtual machine specified in the virtual machine specifying step on the insufficient machine and operates on the specific physical machine. .
複数の物理マシンにおいて複数の仮想マシンが動作する仮想マシンシステムを管理する仮想マシン管理プログラムであり、
各物理マシンについて、使用されていないリソースの量であるリソース残量を計測する残量計測処理と、
各仮想マシンについて、その仮想マシンが使用しているリソースの量であるリソース使用量を計測する使用量計測処理と、
いずれかの物理マシンでリソース不足が発生した場合、前記残量計測処理で計測したリソース残量が所定量以上ある物理マシンを特定物理マシンとして特定する物理マシン特定処理と、
前記使用量計測処理で計測したリソース使用量であって、前記リソース不足が発生した物理マシンである不足マシンで動作する仮想マシンのリソース使用量に基づき、前記不足マシンで動作する仮想マシンから、前記物理マシン特定処理で特定した特定物理マシンで動作させた場合にリソースの競合が発生する可能性が低い仮想マシンを特定仮想マシンとして特定する仮想マシン特定処理と、
前記仮想マシン特定処理で特定した特定仮想マシンを、前記不足マシンで動作させるのを止め、前記特定物理マシンで動作させる仮想マシン移動処理と
をコンピュータに実行させることを特徴とする仮想マシン管理プログラム。
A virtual machine management program for managing a virtual machine system in which a plurality of virtual machines operate on a plurality of physical machines,
For each physical machine, a remaining amount measurement process for measuring the remaining amount of resources, which is the amount of unused resources,
For each virtual machine, a usage measurement process that measures the resource usage, which is the amount of resources used by the virtual machine,
When a resource shortage occurs in any of the physical machines, a physical machine specifying process for specifying a physical machine having a predetermined amount or more of the remaining amount of resources measured in the remaining amount measuring process as a specific physical machine,
Based on the resource usage of the virtual machine that operates on the insufficient machine that is the physical machine on which the resource shortage has occurred, from the virtual machine that operates on the insufficient machine, the resource usage measured by the usage measurement process, A virtual machine specifying process for specifying a virtual machine with a low possibility of resource contention as a specific virtual machine when operated on a specific physical machine specified in the physical machine specifying process;
A virtual machine management program that stops operating a specific virtual machine specified in the virtual machine specifying process on the insufficient machine and causes a computer to execute a virtual machine movement process that operates on the specific physical machine.
JP2011071375A 2011-03-29 2011-03-29 Virtual machine management device, virtual machine method, and virtual machine program Withdrawn JP2012208541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011071375A JP2012208541A (en) 2011-03-29 2011-03-29 Virtual machine management device, virtual machine method, and virtual machine program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011071375A JP2012208541A (en) 2011-03-29 2011-03-29 Virtual machine management device, virtual machine method, and virtual machine program

Publications (1)

Publication Number Publication Date
JP2012208541A true JP2012208541A (en) 2012-10-25

Family

ID=47188255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011071375A Withdrawn JP2012208541A (en) 2011-03-29 2011-03-29 Virtual machine management device, virtual machine method, and virtual machine program

Country Status (1)

Country Link
JP (1) JP2012208541A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015145664A1 (en) * 2014-03-27 2015-10-01 株式会社日立製作所 Resource management method and resource management system
KR101572025B1 (en) 2014-05-02 2015-11-26 한국인터넷진흥원 Policy Management System and Method Based on Virtual Machine Logical Group
CN107832152A (en) * 2017-11-13 2018-03-23 苏州微站通信科技有限公司 Virtual resource collision probability algorithm
KR102084031B1 (en) * 2019-08-07 2020-05-29 주식회사 도시엔컴 Method for managing integrated local storage and apparatus therefor
JPWO2020235055A1 (en) * 2019-05-22 2020-11-26
JP2021060858A (en) * 2019-10-08 2021-04-15 横河電機株式会社 Real-time communication processing system and real-time communication processing method
US12032982B2 (en) 2020-03-04 2024-07-09 Fujitsu Limited Method for determining container to be migrated and non-transitory computer-readable medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015145664A1 (en) * 2014-03-27 2015-10-01 株式会社日立製作所 Resource management method and resource management system
US9432256B2 (en) 2014-03-27 2016-08-30 Hitachi, Ltd. Resource management method and resource management system
KR101572025B1 (en) 2014-05-02 2015-11-26 한국인터넷진흥원 Policy Management System and Method Based on Virtual Machine Logical Group
CN107832152A (en) * 2017-11-13 2018-03-23 苏州微站通信科技有限公司 Virtual resource collision probability algorithm
JPWO2020235055A1 (en) * 2019-05-22 2020-11-26
WO2020235055A1 (en) * 2019-05-22 2020-11-26 日本電信電話株式会社 Virtual machine monitoring device, virtual machine monitoring method, and program
JP7255675B2 (en) 2019-05-22 2023-04-11 日本電信電話株式会社 VIRTUAL MACHINE MONITORING DEVICE, VIRTUAL MACHINE MONITORING METHOD AND PROGRAM
KR102084031B1 (en) * 2019-08-07 2020-05-29 주식회사 도시엔컴 Method for managing integrated local storage and apparatus therefor
JP2021060858A (en) * 2019-10-08 2021-04-15 横河電機株式会社 Real-time communication processing system and real-time communication processing method
JP7010272B2 (en) 2019-10-08 2022-01-26 横河電機株式会社 Real-time communication processing system and real-time communication processing method
US12032982B2 (en) 2020-03-04 2024-07-09 Fujitsu Limited Method for determining container to be migrated and non-transitory computer-readable medium

Similar Documents

Publication Publication Date Title
US20230344729A1 (en) Dynamic scaling of storage volumes for storage client file systems
CN106489251B (en) The methods, devices and systems of applied topology relationship discovery
US9195509B2 (en) Identifying optimal platforms for workload placement in a networked computing environment
US9088575B2 (en) System and method for hand-offs in cloud environments
CN108039964B (en) Fault processing method, device and system based on network function virtualization
JP2012208541A (en) Virtual machine management device, virtual machine method, and virtual machine program
US9535749B2 (en) Methods for managing work load bursts and devices thereof
US20160352821A1 (en) Method and system for allocating resources for virtual hosts
JP2018063470A (en) Control apparatus and control method
CN106302628B (en) Unified management scheduling method for computing resources in ARM architecture network cluster
CN108874502B (en) Resource management method, device and equipment of cloud computing cluster
JP5552343B2 (en) Management device, management method, and program
US10164897B1 (en) System and method for host isolation in a web-based computing system
US20190253488A1 (en) Transaction process management by dynamic transaction aggregation
WO2017051474A1 (en) Computer system management method and computer system
JP2016110248A (en) Virtualization execution apparatus, virtualization system, and resource optimization method
EP2483797A1 (en) Attributing causality to program execution capacity modifications and dynamically modifying program execution capacity
CN110347546B (en) Dynamic adjustment method, device, medium and electronic equipment for monitoring task
CN109286532B (en) Management method and device for alarm information in cloud computing system
CN114070755A (en) Virtual machine network flow determining method and device, electronic equipment and storage medium
US9742687B2 (en) Management system and method for execution of virtual machines
US20070282984A1 (en) Autonomic web services pricing management
JP6357750B2 (en) Server management system and server management method
CN117176613B (en) Data acquisition method and device
CN113395291B (en) Flow control method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140603