JP5872433B2 - Virtual machine placement apparatus and virtual machine placement method - Google Patents

Virtual machine placement apparatus and virtual machine placement method Download PDF

Info

Publication number
JP5872433B2
JP5872433B2 JP2012222119A JP2012222119A JP5872433B2 JP 5872433 B2 JP5872433 B2 JP 5872433B2 JP 2012222119 A JP2012222119 A JP 2012222119A JP 2012222119 A JP2012222119 A JP 2012222119A JP 5872433 B2 JP5872433 B2 JP 5872433B2
Authority
JP
Japan
Prior art keywords
virtual machine
physical server
standby
placement
active
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.)
Expired - Fee Related
Application number
JP2012222119A
Other languages
Japanese (ja)
Other versions
JP2014075027A (en
Inventor
彦俊 中里
彦俊 中里
清水 雅史
雅史 清水
瀬社家 光
光 瀬社家
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2012222119A priority Critical patent/JP5872433B2/en
Publication of JP2014075027A publication Critical patent/JP2014075027A/en
Application granted granted Critical
Publication of JP5872433B2 publication Critical patent/JP5872433B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Description

本発明は、冗長構成をとる仮想マシンの物理サーバへの配置技術に関する。   The present invention relates to a technology for arranging virtual machines having a redundant configuration on physical servers.

近年、システム規模の拡大に伴い、システム全体の調達運用コストを削減することが課題となっており、1台の物理サーバ上に複数の仮想マシンを配置することでシステム全体に必要な物理サーバ数を削減する技術が注目されている。ここで、複数の仮想マシンを1台の物理サーバに配置する場合に、物理サーバのリソース使用効率の向上やシステム性能の保証を実現するための技術が提案されている(特許文献1参照)。   In recent years, with the expansion of the system scale, it has become a challenge to reduce the procurement operation cost of the entire system, and the number of physical servers required for the entire system by arranging multiple virtual machines on one physical server The technology to reduce this is attracting attention. Here, when arranging a plurality of virtual machines on one physical server, a technique for improving the resource usage efficiency of the physical server and guaranteeing the system performance has been proposed (see Patent Document 1).

特開2011−170787号公報JP 2011-170787 A

仮想化マシンを用いたシステムにおいて冗長構成を組む場合、現用系の仮想マシンと予備系の仮想マシンをそれぞれ適切な物理サーバに配置し、高可用性を確保する必要がある。また、1台の物理サーバに多数の仮想マシンを配置すると、物理サーバのリソース使用効率が向上する一方で、配置される仮想マシン同士のリソース競合(同じ物理サーバ内の仮想マシンそれぞれで物理サーバのリソースの奪い合いが起こり、仮想マシンそれぞれの処理能力が低下してしまうこと)が発生し、システムの性能が低下するおそれがある。   When a redundant configuration is formed in a system using virtual machines, it is necessary to ensure high availability by arranging the active virtual machine and the standby virtual machine on appropriate physical servers. In addition, when a large number of virtual machines are placed on a single physical server, the resource usage efficiency of the physical server is improved. On the other hand, resource contention between the placed virtual machines (the physical server of each virtual machine in the same physical server There is a risk that resource contention will occur and the processing capacity of each virtual machine will be reduced), and the system performance may be reduced.

また、特許文献1に記載の技術は、仮想マシンの現用系および予備系の種別を考慮せずに物理サーバ上に仮想マシンを配置する手法であるため、同じ物理サーバ上に現用系の仮想マシンと予備系の仮想マシンとが同時に存在する場合がある。このため、物理サーバの故障により、同じシステムの現用系の仮想マシンと予備系の仮想マシンとが同時にダウンしてしまう場合や、予備系の仮想マシンの再構築を行う頻度が増加する場合があり、システムの冗長構成による可用性の保証が困難となる。そこで、本発明は、現用系の仮想マシンおよび予備系の仮想マシンからなるシステムにおいて、物理サーバのリソース使用効率を向上させつつ、システムの可用性を高めることを課題とする。   Further, since the technique described in Patent Document 1 is a method of arranging a virtual machine on a physical server without considering the types of active and standby systems of the virtual machine, the active virtual machine on the same physical server. And a standby virtual machine may exist at the same time. For this reason, the active virtual machine and the standby virtual machine of the same system may go down at the same time due to a physical server failure, or the frequency of rebuilding the standby virtual machine may increase. As a result, it becomes difficult to guarantee availability due to the redundant configuration of the system. Therefore, an object of the present invention is to improve the availability of a system while improving the resource usage efficiency of a physical server in a system composed of an active virtual machine and a standby virtual machine.

前記した課題を解決するため、請求項1に記載の発明は、現用系の仮想マシンと予備系の仮想マシンとのペアからなるシステムにおいて前記仮想マシンそれぞれの配置先の物理サーバを選択する仮想マシン配置装置であって、前記物理サーバの識別情報ごとに、当該物理サーバに配置される仮想マシンの識別情報、当該仮想マシンが現用系の仮想マシンか予備系の仮想マシンかを示す情報および前記システムにおいて当該仮想マシンのペアとなる仮想マシンの識別情報を示した仮想マシン配置情報と、前記物理サーバそれぞれの使用リソース量の上限閾値を示した物理サーバリソース上限閾値情報と、前記予備系の仮想マシンごとに、当該予備系の仮想マシンの待機時必要リソース量および稼動時必要リソース量を示した仮想マシン必要リソース量情報と、を記憶する記憶部と、前記現用系の仮想マシンおよび前記予備系の仮想マシンの初期配置先の物理サーバを選択する初期配置先選択部とを備え、前記初期配置先選択部は、前記現用系の仮想マシンそれぞれの初期配置先の物理サーバを選択する際、前記仮想マシン配置情報を参照して、前記予備系の仮想マシンが配置されていない物理サーバの中から前記現用系の仮想マシンの初期配置先の物理サーバを選択し、前記予備系の仮想マシンそれぞれの初期配置先の物理サーバを選択する際、前記仮想マシン配置情報、前記仮想マシン必要リソース量情報および前記物理サーバリソース上限閾値情報を参照して、配置対象のすべての前記予備系の仮想マシンの前記待機時必要リソース量の合計値を計算し、前記使用リソース量の上限閾値の合計値が、前記計算した合計値分の待機時必要リソース量以上となる台数の物理サーバ群を、前記予備系の仮想マシンの配置先候補の物理サーバ群として選択し、前記仮想マシン配置情報および前記仮想マシン必要リソース量情報を参照して、前記配置対象の予備系の仮想マシンのうち、前記待機時必要リソース量の大きい予備系の仮想マシンから順に1つずつ選択し、前記選択した配置先候補の物理サーバ群の中から、以下の(1)〜(3)の条件をすべて満たす前記物理サーバを前記予備系の仮想マシンの配置先の物理サーバとして選択する。
(1)前記選択した配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンの数が所定の閾値以下であること、
(2)前記選択した配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンの待機時必要リソース量の合計値が、当該物理サーバの使用リソース量の上限閾値以下であること、
(3)前記選択した配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンのうち、前記稼動時必要リソース量の大きいものから順に選択した所定数Nの予備系の仮想マシンの稼動時必要リソース量の合計値が、当該物理サーバの使用リソース量の上限閾値以下であること
In order to solve the above-described problem, the invention according to claim 1 is a virtual machine that selects a physical server to which each of the virtual machines is arranged in a system including a pair of an active virtual machine and a standby virtual machine. For each physical server identification information, a placement apparatus, identification information of a virtual machine placed on the physical server, information indicating whether the virtual machine is an active virtual machine or a standby virtual machine, and the system Virtual machine placement information indicating the identification information of the virtual machine that is a pair of the virtual machine, physical server resource upper limit threshold information indicating the upper limit threshold of the amount of used resources of each physical server, and the standby virtual machine For each standby virtual machine, the virtual machine required resource that indicates the standby required resource amount and the required resource amount during operation. A storage unit that stores a storage amount information, and an initial placement destination selection unit that selects a physical server that is an initial placement destination of the active virtual machine and the standby virtual machine, and the initial placement destination selection unit Refers to the virtual machine placement information when selecting the physical server of the initial placement destination of each of the working virtual machines, and selects the working system from the physical servers in which the standby virtual machine is not placed. When selecting the physical server of the initial placement destination of the virtual machine and selecting the physical server of the initial placement destination of each of the standby virtual machines, the virtual machine placement information, the virtual machine required resource amount information, and the physical server Referring to the resource upper limit threshold information, calculate the total value of the standby required resource amounts of all the standby virtual machines to be placed, and increase the used resource amount. Select the number of physical server groups whose total threshold value is equal to or larger than the standby required resource amount for the calculated total value as the physical server group as the placement destination candidate of the standby virtual machine, and the virtual machine placement Information and the virtual machine necessary resource amount information, one by one from the standby virtual machines having the large standby necessary resource amount, one by one in order from among the standby virtual machines to be arranged, and the selected The physical server that satisfies all of the following conditions (1) to (3) is selected from the physical server group as the placement destination candidate as the placement destination physical server of the standby virtual machine.
(1) The number of the standby virtual machines on the physical server including the standby virtual machine of the selected placement target is equal to or less than a predetermined threshold;
(2) The upper limit threshold value of the amount of resources used by the physical server is the total value of the standby required resource amounts of the standby virtual machine on the physical server, including the selected standby virtual machine to be placed That
(3) A predetermined number N of spares selected in descending order of the amount of resources required during operation among the spare virtual machines on the physical server, including the selected spare virtual machine to be placed The total value of the required resources during operation of the host virtual machine must be less than or equal to the upper limit threshold for the amount of resources used by the physical server

このように仮想マシン配置装置は、各仮想マシンの初期配置先を選択するとき、現用系の仮想マシンを、予備系の仮想マシンが配置されない(つまり現用系の仮想マシン用の)物理サーバへ配置し、予備系の仮想マシンを現用系の仮想マシンが配置されない(つまり予備系の仮想マシン用の)物理サーバへ配置する。これにより、物理サーバの故障により、現用系の仮想マシンと、その仮想マシンのペアとなる予備系の仮想マシンとが両方ダウンしてしまうことを避けることができるので、システムの可用性を高めることができる。また、仮想マシン配置装置は、1台の物理サーバに1以上の予備系の仮想マシンを配置するようにするが、このとき予備系の仮想マシンの配置先として、請求項に記載の(1)〜(3)の条件を満たす物理サーバを選択する。まず、仮想マシン配置装置は、(1)の条件を満たす物理サーバを選択することで、複数の現用系の仮想マシンが故障した際における予備系の仮想マシンの稼動による負荷増大を配置先の物理サーバ間で分散させることができる。さらに、仮想マシン配置装置は、予備系の仮想マシンの配置先を選択する際、(2)の条件を満たす物理サーバを選択することで、物理サーバに配置済みの仮想マシン間でリソース競合が発生し、各仮想マシンの性能が劣化してしまうことを抑制できる。また、仮想マシン配置装置は、(3)の条件を満たす物理サーバを選択することで、同じ物理サーバ上で、所定数N(Nはシステム開発者等が所望する値)の予備系の仮想マシンそれぞれが稼動状態になることができる。つまり、N個の予備系の仮想マシンがすべて稼働状態になったとき、物理サーバのリソース不足等のため、稼動状態になった予備系の仮想マシン(つまり現用系の仮想マシン)を他の物理サーバへ移動させる必要がなくなる。これにより、仮想マシン配置装置は、仮想マシンの移動回数を抑制し、システムの可用性を高めることができる。仮想マシン配置装置は、予備系の仮想マシンの配置先として以上の条件を満たす物理サーバを選択することで、できるだけ多くの予備系の仮想マシンを物理サーバ上に配置しつつ、システムの可用性を高めることができる。つまり、物理サーバのリソース使用効率を向上させつつ、システムの可用性を高めることができる。   As described above, when selecting the initial placement destination of each virtual machine, the virtual machine placement device places the active virtual machine on a physical server in which the standby virtual machine is not placed (that is, for the working virtual machine). Then, the standby virtual machine is allocated to a physical server where the active virtual machine is not allocated (that is, for the standby virtual machine). As a result, it is possible to prevent both the active virtual machine and the standby virtual machine paired with the virtual machine from going down due to a physical server failure. it can. Further, the virtual machine placement apparatus places one or more standby virtual machines on one physical server. At this time, as a placement destination of the standby virtual machines, (1) according to the claim A physical server that satisfies the conditions (3) to (3) is selected. First, the virtual machine placement apparatus selects a physical server that satisfies the condition (1), thereby increasing the load caused by the operation of the standby virtual machine when a plurality of active virtual machines fail. Can be distributed among servers. Furthermore, when the virtual machine placement device selects the placement destination of the standby virtual machine, resource competition occurs between virtual machines already placed on the physical server by selecting a physical server that satisfies the condition (2). In addition, it is possible to prevent the performance of each virtual machine from deteriorating. Further, the virtual machine placement apparatus selects a physical server that satisfies the condition (3), so that a predetermined number N (N is a value desired by a system developer or the like) of standby virtual machines on the same physical server. Each can be in operation. In other words, when all of the N standby virtual machines are in an operating state, the standby virtual machine that is in an operating state (that is, the active virtual machine) is changed to another physical machine due to a lack of physical server resources. No need to move to server. As a result, the virtual machine placement apparatus can suppress the number of movements of the virtual machine and increase the availability of the system. The virtual machine placement device increases the availability of the system while placing as many spare virtual machines as possible on the physical server by selecting physical servers that satisfy the above conditions as the placement destination of the standby virtual machines. be able to. That is, the availability of the system can be increased while improving the resource usage efficiency of the physical server.

請求項2に記載の発明は、請求項1に記載の仮想マシン配置装置の初期配置先選択部が、前記(1)〜(3)の条件をすべて満たす前記物理サーバがない場合、新たな空き物理サーバを前記配置先候補の物理サーバ群に追加して、再度、前記(1)〜(3)の条件を満たす前記物理サーバを選択する。   According to a second aspect of the present invention, when the initial placement destination selection unit of the virtual machine placement device according to the first aspect does not have the physical server that satisfies all the conditions (1) to (3), a new free space is provided. A physical server is added to the placement destination candidate physical server group, and the physical server that satisfies the conditions (1) to (3) is selected again.

このようにすることで、仮想マシン配置装置は、前記(1)〜(3)の条件を満たす物理サーバがなかった場合でも確実に予備系の仮想マシンを物理サーバ上に配置できる。   By doing so, the virtual machine placement apparatus can reliably place the standby virtual machine on the physical server even when there is no physical server that satisfies the conditions (1) to (3).

請求項3に記載の発明は、請求項1または請求項2に記載の仮想マシン配置装置の初期配置先選択部が、前記選択した配置先候補の物理サーバ群の中から、前記予備系の仮想マシンの配置先の物理サーバを選択するとき、前記(1)〜(3)の条件をすべて満たす前記物理サーバのうち、当該物理サーバに配置済みの予備系の仮想マシンのペアとなる現用系の仮想マシンの配置先の物理サーバと、前記選択した配置対象の予備系の仮想マシンのペアとなる現用系の仮想マシンの配置先の物理サーバとの一致数が最も少ない物理サーバを選択する。   According to a third aspect of the present invention, the initial placement destination selection unit of the virtual machine placement device according to the first or second aspect is configured so that the standby virtual server is selected from the selected placement destination candidate physical server groups. When selecting the physical server to which the machine is to be placed, among the physical servers that satisfy all of the conditions (1) to (3), the active system pair that is a pair of standby virtual machines that have already been placed on the physical server. The physical server having the smallest number of matches between the physical server that is the placement destination of the virtual machine and the physical server that is the placement destination of the active virtual machine that is a pair of the selected standby virtual machine to be placed is selected.

このようにすることで、仮想マシン配置装置は、同じ物理サーバ上にある現用系の仮想マシンのペアとなる予備系の仮想マシン同士を極力同じ物理サーバ上に配置しないようにすることができる。これにより、システムの可用性をより高めることができる。   By doing so, the virtual machine placement apparatus can prevent the spare virtual machines that are pairs of the active virtual machines on the same physical server from being placed on the same physical server as much as possible. Thereby, the availability of the system can be further increased.

請求項4に記載の発明は、請求項1ないし請求項3のいずれか1項に記載の仮想マシン配置装置の前記記憶部が、さらに、前記現用系の仮想マシンおよび予備系の仮想マシンからなるペアごとに、前記現用系の仮想マシンの故障により前記予備系の仮想マシンへの切り替えが行われる確率である故障率を示した故障率情報を記憶し、前記初期配置先選択部は、前記選択した予備系の仮想マシンの配置先の物理サーバを選択する際、前記(1)の条件に代えて、以下の条件を用いる。
前記故障率情報を参照して、前記配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンのペアの故障率の合計値が所定の閾値以下であること
According to a fourth aspect of the present invention, the storage unit of the virtual machine placement device according to any one of the first to third aspects further includes the active virtual machine and the standby virtual machine. For each pair, failure rate information indicating a failure rate that is a probability that switching to the standby virtual machine is performed due to a failure of the active virtual machine is stored, and the initial placement destination selection unit is configured to perform the selection When selecting the physical server to which the standby virtual machine is placed, the following condition is used instead of the condition (1).
With reference to the failure rate information, the total failure rate of the spare virtual machine pair on the physical server including the spare virtual machine to be arranged is equal to or less than a predetermined threshold value.

このようにすることで、仮想マシン配置装置は、複数の現用系の仮想マシンの故障により、同じ物理サーバ上に配置される予備系の仮想マシンが同時に稼動状態となり、物理サーバの負荷が増大してしまうことを抑制できる。   In this way, the virtual machine placement device causes the standby virtual machine placed on the same physical server to be in operation simultaneously due to a failure of multiple active virtual machines, increasing the load on the physical server. Can be suppressed.

請求項5に記載の発明は、請求項1ないし請求項4のいずれか1項に記載の仮想マシン配置装置が、さらに、前記仮想マシンの前記物理サーバへの配置を実行する仮想マシン配置実行部を備え、前記現用系の仮想マシンに故障が発生した場合において、前記仮想マシン配置実行部が、前記仮想マシン配置情報および仮想マシン必要リソース量情報を参照して、前記予備系の仮想マシンの配置される第1の物理サーバにおいて前記予備系の仮想マシンが稼動することにより、前記第1の物理サーバの使用リソース量が前記第1の物理サーバの上限閾値を超えると判断したとき、前記稼動状態となる予備系の仮想マシンのうち前記稼動時必要リソース量の大きい予備系の仮想マシンから順に、前記第1の物理サーバにおける使用リソース量が前記第1の物理サーバの上限閾値以下となるまで、空き物理サーバである第2の物理サーバのいずれかへ移動し、稼動させる。   According to a fifth aspect of the present invention, the virtual machine placement apparatus according to any one of the first to fourth aspects further executes placement of the virtual machine on the physical server. The virtual machine placement execution unit refers to the virtual machine placement information and the virtual machine required resource amount information when a failure occurs in the active virtual machine, and the placement of the standby virtual machine When it is determined that the amount of used resources of the first physical server exceeds the upper limit threshold of the first physical server by operating the standby virtual machine on the first physical server to be operated, In order from the standby virtual machine having the largest amount of resources required during operation among the standby virtual machines to be used, the used resource amount in the first physical server is Until less than 1 physical server upper threshold, go to one of the second physical server is empty physical server is running.

このようにすることで、仮想マシン配置装置は、予備系の仮想マシンが稼動状態になったときの物理サーバ内のリソース競合を抑制できる。なお、ここで予備系の仮想マシンの移動先である第2の物理サーバは、例えば、稼働状態となった予備系の仮想マシンが一時的に退避する退避用の物理サーバ等である。   By doing so, the virtual machine placement apparatus can suppress resource contention in the physical server when the standby virtual machine is in an operating state. Here, the second physical server that is the migration destination of the standby virtual machine is, for example, an evacuation physical server that temporarily saves the standby virtual machine that is in the operating state.

請求項6に記載の発明は、請求項5に記載の仮想マシン配置装置が、さらに、新たな前記予備系の仮想マシンの構築を行う仮想マシン構築部を備え、前記現用系の仮想マシンの故障が前記物理サーバの故障によるものであると判明したとき、前記仮想マシン配置実行部は、さらに、前記仮想マシン配置情報を参照して、前記第1の物理サーバで稼動している前記予備系の仮想マシンを前記第2の物理サーバのいずれかへ移動し、前記移動した予備系の仮想マシンを現用系の仮想マシンとして稼動させ、前記仮想マシン構築部は、前記仮想マシン配置情報を参照して、前記現用系として稼動させる仮想マシンのペアとなる予備系の仮想マシンを、前記第1の物理サーバ上に構築する。   According to a sixth aspect of the present invention, the virtual machine placement device according to the fifth aspect further comprises a virtual machine construction unit for constructing a new standby virtual machine, and the failure of the active virtual machine Is determined to be due to a failure of the physical server, the virtual machine placement execution unit further refers to the virtual machine placement information and refers to the standby system operating on the first physical server. The virtual machine is moved to one of the second physical servers, the moved standby virtual machine is operated as a working virtual machine, and the virtual machine construction unit refers to the virtual machine arrangement information A standby virtual machine that is a pair of virtual machines to be operated as the active system is constructed on the first physical server.

このようにすることで、仮想マシン配置装置は、予備系の仮想マシンが稼働状態となり現用系の仮想マシンとなったとき、この現用系の仮想マシン(新たな現用系の仮想マシン)のペアとなる予備系の仮想マシンを第1の物理サーバ(つまり、元予備系の仮想マシンが配置されていた物理サーバ)上に構築する。そして、この新たな現用系の仮想マシンについては、第2の物理サーバ(故障のあった物理サーバ以外の空き物理サーバ)に配置する。これにより、予備系の仮想マシンは、予備系の仮想マシン用の物理サーバ上に配置され、現用系の仮想マシンは、これとは別の物理サーバ上に配置されることになるので、システムの可用性をより高めることができる。   In this way, when the standby virtual machine becomes an active state and becomes the active virtual machine, the virtual machine placement apparatus can establish a pair with the active virtual machine (new active virtual machine) pair. This standby virtual machine is constructed on the first physical server (that is, the physical server on which the original standby virtual machine has been placed). The new active virtual machine is placed on the second physical server (an empty physical server other than the failed physical server). As a result, the standby virtual machine is placed on the physical server for the standby virtual machine, and the active virtual machine is placed on a different physical server. Availability can be further increased.

請求項7に記載の発明は、請求項6に記載の仮想マシン配置装置において、前記現用系の仮想マシンの故障が前記物理サーバの故障によるものではないと判明したとき、前記仮想マシン配置実行部は、さらに、前記仮想マシン配置情報を参照して、前記第1の物理サーバで稼動している前記予備系の仮想マシンを、前記故障した現用系の仮想マシンが配置される物理サーバへ移動し、前記移動した予備系の仮想マシンを現用系の仮想マシンとして稼動させ、前記仮想マシン構築部は、さらに、前記現用系として稼動させる仮想マシンのペアとなる予備系の仮想マシンを、前記第1の物理サーバ上に構築する。   According to a seventh aspect of the present invention, in the virtual machine placement device according to the sixth aspect, when it is determined that the failure of the active virtual machine is not due to the failure of the physical server, the virtual machine placement execution unit Further, referring to the virtual machine arrangement information, the standby virtual machine operating on the first physical server is moved to the physical server on which the failed active virtual machine is arranged. The moved standby virtual machine is operated as an active virtual machine, and the virtual machine construction unit further selects a standby virtual machine as a pair of virtual machines to be operated as the active system as the first virtual machine. Build on the physical server.

このようにすることで、仮想マシン配置装置は、予備系の仮想マシンが稼働状態となり現用系の仮想マシンとなったとき、この現用系の仮想マシン(新たな現用系の仮想マシン)のペアとなる予備系の仮想マシンを第1の物理サーバ(つまり、元予備系の仮想マシンが配置されていた物理サーバ)上に構築する。そして、この新たな現用系の仮想マシンについては、故障した現用系の仮想マシンの配置先の物理サーバに移動する。これにより、予備系の仮想マシンは、予備系の仮想マシン用の物理サーバ上に配置され、現用系の仮想マシンは、故障した現用系の仮想マシンが配置されていた物理サーバ上に配置されることになる。このようにすることで、物理サーバのリソース使用効率を向上させることができる。   In this way, when the standby virtual machine becomes an active state and becomes the active virtual machine, the virtual machine placement apparatus can establish a pair with the active virtual machine (new active virtual machine) pair. This standby virtual machine is constructed on the first physical server (that is, the physical server on which the original standby virtual machine has been placed). Then, the new active virtual machine is moved to the physical server where the failed active virtual machine is placed. As a result, the standby virtual machine is placed on the physical server for the standby virtual machine, and the active virtual machine is placed on the physical server on which the failed active virtual machine was placed. It will be. By doing so, the resource usage efficiency of the physical server can be improved.

請求項8に記載の発明は、請求項7に記載の仮想マシン配置装置において、前記予備系の仮想マシンが前記物理サーバの故障により故障したとき、前記仮想マシン構築部は、さらに、前記仮想マシン配置情報を参照して、前記故障した予備系の仮想マシンの代替となる前記予備系の仮想マシンを、前記第2の物理サーバのいずれかに構築し、前記予備系の仮想マシンの故障が前記物理サーバの故障ではないとき、前記仮想マシン構築部は、さらに、前記仮想マシン配置情報を参照して、前記故障した予備系の仮想マシンの代替となる前記予備系の仮想マシンを、前記第1の物理サーバ上に構築する。   According to an eighth aspect of the present invention, in the virtual machine placement device according to the seventh aspect, when the standby virtual machine fails due to a failure of the physical server, the virtual machine construction unit further includes the virtual machine Referring to the placement information, constructing the spare virtual machine as a substitute for the failed standby virtual machine in any of the second physical servers, and the failure of the standby virtual machine is When it is not a failure of the physical server, the virtual machine construction unit further refers to the virtual machine arrangement information and sets the first virtual machine as a substitute for the failed standby virtual machine to the first virtual machine. Build on the physical server.

このようにすることで、仮想マシン配置装置は、予備系の仮想マシンの故障が物理サーバの故障によるものであるときは、第2の物理サーバ(空き物理サーバ)に新たな予備系の仮想マシンを構築し、予備系の仮想マシンの故障が物理サーバの故障によるものではないときは、第1の物理サーバ(元予備系の仮想マシンが配置されていた物理サーバ)上に新たな予備系の仮想マシンを構築する。つまり、予備系の仮想マシンは、予備系の仮想マシン用の物理サーバ上に配置されることになるので、システムの可用性をより高めることができる。また、仮想マシン配置装置は、予備系の仮想マシンの故障が物理サーバの故障によるものではないときは第1の物理サーバ(元予備系の仮想マシンが配置されていた物理サーバ)上に新たな予備系の仮想マシンを構築するので、物理サーバのリソース使用効率を向上させることができる。   By doing so, the virtual machine placement apparatus allows a new standby virtual machine to be added to the second physical server (free physical server) when the failure of the standby virtual machine is due to a failure of the physical server. If the failure of the standby virtual machine is not due to a failure of the physical server, a new standby system on the first physical server (the physical server on which the original standby virtual machine was placed) Build a virtual machine. In other words, since the standby virtual machine is arranged on the physical server for the standby virtual machine, the availability of the system can be further increased. In addition, when the failure of the standby virtual machine is not due to the failure of the physical server, the virtual machine placement apparatus creates a new one on the first physical server (the physical server on which the original standby virtual machine has been placed). Since the standby virtual machine is constructed, the resource usage efficiency of the physical server can be improved.

本発明によれば、現用系の仮想マシンおよび予備系の仮想マシンからなるシステムにおいて、物理サーバのリソース使用効率を向上させつつ、システムの可用性を確保することができる。   According to the present invention, in a system composed of a working virtual machine and a standby virtual machine, the availability of the system can be ensured while improving the resource usage efficiency of the physical server.

本実施の形態の仮想マシン実行システムの構成例を示した図である。It is a figure showing an example of composition of a virtual machine execution system of this embodiment. 図1の仮想マシン配置装置による仮想マシンの初期配置先の物理サーバの選択処理の概要を説明した図である。FIG. 2 is a diagram illustrating an outline of a selection process of a physical server that is an initial placement destination of a virtual machine by the virtual machine placement apparatus of FIG. 1. 図1の仮想マシン配置装置による仮想マシンの初期配置先の物理サーバの選択処理の概要を説明した図である。FIG. 2 is a diagram illustrating an outline of a selection process of a physical server that is an initial placement destination of a virtual machine by the virtual machine placement apparatus of FIG. 1. 図1の仮想マシン配置装置の機能ブロック図である。FIG. 2 is a functional block diagram of the virtual machine arrangement device in FIG. 1. 図1の仮想マシン配置装置による仮想マシンの初期配置先の物理サーバの選択処理を示した図である。FIG. 2 is a diagram illustrating a process of selecting a physical server that is an initial placement destination of a virtual machine by the virtual machine placement apparatus of FIG. 1. 図1の仮想マシン配置装置による仮想マシンの冗長構成の再構築処理を示した図である。It is the figure which showed the reconstruction process of the redundant configuration of a virtual machine by the virtual machine arrangement | positioning apparatus of FIG. 図1の仮想マシン配置装置による仮想マシンの冗長構成の再構築処理を示した図である。It is the figure which showed the reconstruction process of the redundant configuration of a virtual machine by the virtual machine arrangement | positioning apparatus of FIG.

以下、図面を参照しながら、本発明の実施の形態(本実施の形態)について説明する。まず、本実施の形態の仮想マシン実行システム50の構成例について、図1を用いて説明する。図1に示すように、仮想マシン実行システム50は、仮想マシン配置装置10、1台以上の物理サーバ20で構成される物理サーバ群21および記憶装置31を備える。仮想マシン配置装置10、物理サーバ20および記憶装置31は、ネットワーク40を介して通信可能に接続されている。なお、図1では、記憶装置31は、1台しか記載していないが、複数台あってもよい。   Hereinafter, an embodiment (this embodiment) of the present invention will be described with reference to the drawings. First, a configuration example of the virtual machine execution system 50 according to the present embodiment will be described with reference to FIG. As illustrated in FIG. 1, the virtual machine execution system 50 includes a virtual machine placement device 10, a physical server group 21 including one or more physical servers 20, and a storage device 31. The virtual machine placement apparatus 10, the physical server 20, and the storage device 31 are connected to be communicable via the network 40. In FIG. 1, only one storage device 31 is shown, but a plurality of storage devices 31 may be provided.

記憶装置31は、ネットワーク40を介して仮想マシンA(VM(Virtual Machine)プログラム)30a〜仮想マシンE(VMプログラム)30eが読み書きされる。なお、以降の説明では、仮想マシンA(30a)〜仮想マシンE(30e)を区別する必要がない場合には、仮想マシン30と表記することとする。また、図1には、5つの仮想マシン30が記載されているが、5つに限られることはなく、4以下または6以上であっても構わない。   The storage device 31 reads and writes virtual machines A (VM (Virtual Machine) programs) 30 a to E (VM programs) 30 e through the network 40. In the following description, when there is no need to distinguish between the virtual machine A (30a) to the virtual machine E (30e), the virtual machine A will be referred to as the virtual machine 30. In FIG. 1, five virtual machines 30 are described, but the number is not limited to five and may be four or less or six or more.

仮想マシン配置装置10は、記憶装置31に記憶されている1以上の仮想マシン30を物理サーバ20に配置する。そして、仮想マシン配置装置10は、物理サーバ20に配置した仮想マシン30を現用系の仮想マシン30または予備系の仮想マシン30として稼働させる。この予備系の仮想マシン30は、現用系の仮想マシン30に故障等が発生したときに代替マシンとして稼働する仮想マシン30である。仮想マシン配置装置10は、現用系の仮想マシン30(または現用系の仮想マシン30が配置される物理サーバ20)の故障を検出すると、この現用系の仮想マシン30のペアとなる予備系の仮想マシン30を稼働させる。ここで、仮想マシン配置装置10は、物理サーバ20のリソース使用効率を向上させつつ、システムの可用性を高めるよう、予備系の仮想マシン30および現用系の仮想マシン30を、それぞれの種別(予備系/現用系)ごとに、別個の物理サーバ20へ集約して配置する。また、仮想マシン配置装置10は、現用系の仮想マシン30の故障発生時に予備系の仮想マシン30を稼働させたり、稼働状態になった予備系の仮想マシン30を他の物理サーバ20への移動(再配置)したり、予備系の仮想マシン30の再構築をしたりする。この仮想マシン配置装置10の詳細については後記する。   The virtual machine placement apparatus 10 places one or more virtual machines 30 stored in the storage device 31 on the physical server 20. Then, the virtual machine placement apparatus 10 operates the virtual machine 30 placed on the physical server 20 as the active virtual machine 30 or the standby virtual machine 30. The standby virtual machine 30 is a virtual machine 30 that operates as an alternative machine when a failure or the like occurs in the active virtual machine 30. When the virtual machine placement apparatus 10 detects a failure of the active virtual machine 30 (or the physical server 20 on which the active virtual machine 30 is placed), the virtual machine placement apparatus 10 creates a standby virtual machine that becomes a pair of the active virtual machine 30. The machine 30 is operated. Here, the virtual machine placement apparatus 10 divides the standby virtual machine 30 and the active virtual machine 30 into respective types (standby systems) so as to improve the resource usage efficiency of the physical server 20 and increase the system availability. / Working system) are aggregated and arranged on a separate physical server 20. In addition, the virtual machine placement apparatus 10 operates the standby virtual machine 30 when a failure occurs in the active virtual machine 30 or moves the standby virtual machine 30 in the operating state to another physical server 20. (Rearrangement) or reconfiguration of the standby virtual machine 30. Details of the virtual machine placement apparatus 10 will be described later.

物理サーバ20は、仮想マシン配置装置10によって配置された仮想マシン30を実行する。例えば、図1では、物理サーバ20aは、配置された仮想マシンA(30a)および仮想マシンC(30c)を実行し、物理サーバ20bは、配置された仮想マシンB(30b)、仮想マシンD(30d)、仮想マシンE(30e)を実行する。また、物理サーバ20mは、仮想マシン30が配置されていない、空き物理サーバである。   The physical server 20 executes the virtual machine 30 placed by the virtual machine placement apparatus 10. For example, in FIG. 1, the physical server 20a executes the arranged virtual machine A (30a) and the virtual machine C (30c), and the physical server 20b includes the arranged virtual machine B (30b) and the virtual machine D ( 30d) and the virtual machine E (30e) is executed. The physical server 20m is an empty physical server in which the virtual machine 30 is not arranged.

次に、図2を用いて、図1の仮想マシン配置装置10による仮想マシン30の初期配置先の物理サーバ20の選択処理の概要を説明する。仮想マシン30は現用系の仮想マシン30および予備系の仮想マシン30の初期配置において、現用系の仮想マシン30については現用系の仮想マシン30用の物理サーバ20に集約して配置し、予備系の仮想マシン30については予備系の仮想マシン30用の物理サーバ20に集約して配置するようにする。これにより、物理サーバ20の故障発生時に現用系の仮想マシン30と予備系の仮想マシン30の両方がダウンしてしまうという事態を避けることができる。つまり、システムの可用性を高めることができる。   Next, the outline of the selection processing of the physical server 20 that is the initial placement destination of the virtual machine 30 by the virtual machine placement device 10 of FIG. 1 will be described with reference to FIG. In the initial arrangement of the active virtual machine 30 and the standby virtual machine 30, the virtual machine 30 is collectively arranged on the physical server 20 for the active virtual machine 30, and the standby virtual machine 30 is arranged. The virtual machines 30 are aggregated and arranged on the physical server 20 for the standby virtual machine 30. As a result, it is possible to avoid a situation in which both the active virtual machine 30 and the standby virtual machine 30 are down when the physical server 20 fails. That is, the availability of the system can be increased.

さらに、仮想マシン配置装置10は、予備系の仮想マシン30を物理サーバ20に配置するとき、(a)〜(d)の条件(配置先物理サーバ決定基準)を満たすように配置する。
(a)物理サーバ20における予備系の仮想マシン30の数が所定の閾値以下となるようにする。このようにすることで、複数の予備系の仮想マシン30が稼動した場合における、負荷増大を物理サーバ20間で分散させることができる。
(b)物理サーバ20における仮想マシン30(予備系の仮想マシン30)の待機時必要リソース量の合計≦当該物理サーバ20のリソース上限閾値となるようにする。このようにすることで、物理サーバ20に配置済みの予備系の仮想マシン30間でリソース競合が発生してしまうことを抑制できる。
(c)物理サーバ20上にN個(システム開発者等が所望する数)まで予備系の仮想マシン30が稼働可能とする。つまり、配置予定の予備系の仮想マシン30を含む当該物理サーバ20に配置されるN個の仮想マシン30の稼働時必要リソース量の合計≦物理サーバ20のリソース上限閾値となる物理サーバ20を選択する。このようにすることで、同じ物理サーバ20の予備系の仮想マシン30が稼働状態になったとき、この物理サーバ20のリソース不足等のため、稼動状態になった予備系の仮想マシン30(つまり現用系の仮想マシン30)を他の物理サーバ20へ移動させる必要がなくなる。これにより、仮想マシン配置装置10は、システムの可用性を高めることができる。
(d)同じ物理サーバ20上の現用系の仮想マシン30のペアとなる予備系の仮想マシン30同士が極力同じ物理サーバ20にならないようにする。これにより、仮想マシン配置装置10は、システムの可用性を高めることができる。(d)の条件を満たす初期配置先の物理サーバ20の選択処理の概要を、図3を用いて説明する(適宜、図1参照)。
Furthermore, the virtual machine placement apparatus 10 places the standby virtual machine 30 so as to satisfy the conditions (a) to (d) (placement destination physical server determination criteria) when placing the standby virtual machine 30 on the physical server 20.
(A) The number of standby virtual machines 30 in the physical server 20 is set to be equal to or less than a predetermined threshold. By doing so, it is possible to distribute the load increase among the physical servers 20 when a plurality of standby virtual machines 30 are operated.
(B) The total required amount of standby resources of the virtual machine 30 (standby virtual machine 30) in the physical server 20 is set so that the resource upper limit threshold of the physical server 20 is satisfied. By doing so, it is possible to suppress the occurrence of resource contention between the standby virtual machines 30 already arranged in the physical server 20.
(C) It is possible to operate up to N virtual machines 30 on the physical server 20 (the number desired by the system developer or the like). That is, select the physical server 20 that satisfies the total resource amount required for operation of the N virtual machines 30 arranged in the physical server 20 including the standby virtual machine 30 to be arranged ≦ the resource upper limit threshold of the physical server 20 To do. In this way, when the standby virtual machine 30 of the same physical server 20 is in an operating state, the standby virtual machine 30 that is in an operating state due to a lack of resources of the physical server 20 (that is, It is not necessary to move the active virtual machine 30) to another physical server 20. Thereby, the virtual machine placement apparatus 10 can increase the availability of the system.
(D) The standby virtual machines 30 that are pairs of the active virtual machines 30 on the same physical server 20 are prevented from becoming the same physical server 20 as much as possible. Thereby, the virtual machine placement apparatus 10 can increase the availability of the system. An overview of the selection process of the physical server 20 at the initial placement destination that satisfies the condition (d) will be described with reference to FIG. 3 (see FIG. 1 as appropriate).

ここでは、予備系の仮想マシン30aの初期配置先として、仮想マシン配置装置10が、予備系の仮想マシン30用の物理サーバ20である物理サーバ20a,20bのいずれかを選択する場合を考える。物理サーバ20aには予備系の仮想マシン30b,30cが配置され、物理サーバ20bには予備系の仮想マシン30d,30eが配置される。また、物理サーバ20c,20d,20eは現用系の仮想マシン30用の物理サーバ20であり、物理サーバ20cには現用系の仮想マシン30f,30g,30hが配置され、物理サーバ20dには現用系の仮想マシン30iが配置され、物理サーバ20eには現用系の仮想マシン30jが配置される。現用系の仮想マシン30と予備系の仮想マシン30とのペアの関係は図3の矢印に示すとおりである。   Here, a case is considered where the virtual machine placement apparatus 10 selects one of the physical servers 20a and 20b, which is the physical server 20 for the standby virtual machine 30, as the initial placement destination of the standby virtual machine 30a. The standby virtual machines 30b and 30c are arranged on the physical server 20a, and the standby virtual machines 30d and 30e are arranged on the physical server 20b. The physical servers 20c, 20d, and 20e are physical servers 20 for the active virtual machine 30, and the active virtual machines 30f, 30g, and 30h are arranged on the physical server 20c, and the active server is set on the physical server 20d. Virtual machine 30i is arranged, and the active virtual machine 30j is arranged on the physical server 20e. A pair relationship between the active virtual machine 30 and the standby virtual machine 30 is as shown by an arrow in FIG.

このような場合に、予備系の仮想マシン30aのペアとなる現用系の仮想マシン30fは物理サーバ20cに配置され、この物理サーバ20cに配置される現用系の仮想マシン30g,30hのペアとなる予備系の仮想マシン30b,30cはいずれも物理サーバ20aに配置されている。ここで、仮想マシン配置装置10が予備系の仮想マシン30aの配置先として物理サーバ20aを選択してしまうと、現用系の仮想マシン30f,30g,30hのペアとなる予備系の仮想マシン30a,30b,30cがすべて同じ物理サーバ20aに配置されることになり、システムの可用性が低くなってしまう。一方、仮想マシン配置装置10が、配置先として物理サーバ20bを選択すれば、予備系の仮想マシン30d,30eのペアとなる現用系の仮想マシン30i,30jはいずれも、現用系の仮想マシン30fとは異なる物理サーバ20d,20eに配置され、かつ、複数の物理サーバ20に分散して配置されている。よって、仮想マシン配置装置10は、予備系の仮想マシン30aの配置先として物理サーバ20bを選択すれば、同じ物理サーバ20上の現用系の仮想マシン30のペアとなる予備系の仮想マシン30同士が極力同じ物理サーバ20にならない状態にできるので、システムの可用性を高めることができる。   In such a case, the active virtual machine 30f that is a pair of the standby virtual machine 30a is arranged in the physical server 20c, and becomes a pair of the active virtual machines 30g and 30h arranged in the physical server 20c. The standby virtual machines 30b and 30c are both arranged in the physical server 20a. Here, if the virtual machine placement apparatus 10 selects the physical server 20a as the placement destination of the standby virtual machine 30a, the standby virtual machine 30a, which is a pair of the active virtual machines 30f, 30g, and 30h. 30b and 30c are all arranged in the same physical server 20a, and the availability of the system is lowered. On the other hand, if the virtual machine placement apparatus 10 selects the physical server 20b as the placement destination, both the active virtual machines 30i and 30j that form a pair of the standby virtual machines 30d and 30e are the active virtual machines 30f. Are arranged in different physical servers 20 d and 20 e and distributed to a plurality of physical servers 20. Therefore, if the virtual machine placement apparatus 10 selects the physical server 20b as the placement destination of the standby virtual machine 30a, the standby virtual machines 30 that form a pair with the active virtual machine 30 on the same physical server 20 Therefore, the availability of the system can be increased.

以上のようにして、仮想マシン配置装置10が仮想マシン30の初期配置先の物理サーバ20の選択を行うことで、できるだけ多くの予備系の仮想マシン30を物理サーバ20上に配置しつつ、システムの可用性を高めることができる。   As described above, the virtual machine placement apparatus 10 selects the physical server 20 that is the initial placement destination of the virtual machine 30, so that as many spare virtual machines 30 as possible are placed on the physical server 20, the system Can increase availability.

なお、各物理サーバ20に予備系の仮想マシン30および現用系の仮想マシン30の初期配置が行われた後、いずれかの仮想マシン30の故障が発生した場合には、仮想マシン配置装置10は、仮想マシン30の移動を行い、稼働状態になった予備系の仮想マシン30(現用系の仮想マシン30)と予備系の仮想マシン30とを極力同じ物理サーバ20上に配置しないようにする。このときの処理手順の詳細は後記する。   In addition, after the initial placement of the standby virtual machine 30 and the active virtual machine 30 on each physical server 20, if any of the virtual machines 30 fails, the virtual machine placement device 10 Then, the virtual machine 30 is moved so that the standby virtual machine 30 (the active virtual machine 30) and the standby virtual machine 30 that are in an operating state are not arranged on the same physical server 20 as much as possible. Details of the processing procedure at this time will be described later.

次に、図4を用いて仮想マシン配置装置10の構成例を説明する(適宜、図1参照)。仮想マシン配置装置10は、処理部100、記憶部110および通信部120を備える。通信部120は、通信インタフェースであり、図1のネットワーク40を介して物理サーバ20や記憶装置31と情報を送受信する。   Next, a configuration example of the virtual machine placement apparatus 10 will be described with reference to FIG. 4 (see FIG. 1 as appropriate). The virtual machine placement apparatus 10 includes a processing unit 100, a storage unit 110, and a communication unit 120. The communication unit 120 is a communication interface, and transmits / receives information to / from the physical server 20 and the storage device 31 via the network 40 in FIG.

処理部100は、初期配置先選択部101、仮想マシン配置実行部102、仮想マシン構築部103および仮想マシン実行状態切替部104を備える。処理部100は、図示しないCPU(Central Processing Unit)およびメインメモリによって構成され、処理部100の各部は、記憶部110に記憶されているアプリケーションプログラムをメインメモリに展開して具現化される。   The processing unit 100 includes an initial placement destination selection unit 101, a virtual machine placement execution unit 102, a virtual machine construction unit 103, and a virtual machine execution state switching unit 104. The processing unit 100 includes a CPU (Central Processing Unit) and a main memory (not shown), and each unit of the processing unit 100 is realized by developing an application program stored in the storage unit 110 in the main memory.

記憶部110は、メモリやハードディスク等の記憶媒体である。記憶部110は、仮想マシン配置情報112(表1参照)と、物理サーバリソース上限閾値情報111(表2参照)と、仮想マシン必要リソース量情報113(表3参照)とが記憶される。破線で示した故障率情報114は配備される場合と配備されない場合とがあり、配備される場合については後記する。   The storage unit 110 is a storage medium such as a memory or a hard disk. The storage unit 110 stores virtual machine arrangement information 112 (see Table 1), physical server resource upper limit threshold information 111 (see Table 2), and virtual machine required resource amount information 113 (see Table 3). The failure rate information 114 indicated by a broken line may be deployed or not deployed, and the deployment will be described later.

仮想マシン配置情報112は、物理サーバ20の識別情報ごとに、当該物理サーバ20に配置される仮想マシン30の識別情報と、当該配置される仮想マシン30の現用系/予備系の種別を示す情報と、当該配置される仮想マシン30のペアとなる仮想マシン30の識別情報とを示した情報である(表1参照)。例えば、表1に示す仮想マシン配置情報112において、識別情報「Sa」の物理サーバ20には予備系の仮想マシン30である「仮想マシンA」および「仮想マシンC」が配置され、それぞれの予備系の仮想マシン30のペアとなる仮想マシン30は「仮想マシンB」および「仮想マシンF」であることを示す。また、識別情報「Sm」の物理サーバ20には仮想マシン30が配置されていない、つまり空き物理サーバであることを示す。なお、各仮想マシン30の予備系/現用系の種別やペアとなる仮想マシン30の識別情報は、各仮想マシン30の予備系/現用系の切り替えや、ペアとなる仮想マシン30の変更があったときに書き換えられる。   For each piece of identification information of the physical server 20, the virtual machine arrangement information 112 is information indicating the identification information of the virtual machine 30 arranged on the physical server 20 and the type of active / standby system of the arranged virtual machine 30. And the identification information of the virtual machine 30 that is a pair of the arranged virtual machines 30 (see Table 1). For example, in the virtual machine arrangement information 112 shown in Table 1, “virtual machine A” and “virtual machine C”, which are the standby virtual machines 30, are arranged on the physical server 20 with the identification information “Sa”. The virtual machines 30 that form a pair of the virtual machines 30 of the system are “virtual machine B” and “virtual machine F”. Further, it indicates that the virtual machine 30 is not arranged on the physical server 20 with the identification information “Sm”, that is, it is a free physical server. Note that the type of the standby system / working system of each virtual machine 30 and the identification information of the paired virtual machine 30 include the switching of the backup system / working system of each virtual machine 30 and the change of the paired virtual machine 30. It is rewritten when.

Figure 0005872433
Figure 0005872433

物理サーバリソース上限閾値情報111は、物理サーバ20それぞれの使用リソース量の上限閾値を示した情報である(表2参照)。   The physical server resource upper limit threshold information 111 is information indicating the upper limit threshold of the used resource amount of each physical server 20 (see Table 2).

Figure 0005872433
Figure 0005872433

仮想マシン必要リソース量情報113は、予備系の仮想マシン30ごとに、当該予備系の仮想マシン30に必要な待機時必要リソース量、および、当該予備系の仮想マシン30が稼働したとき(つまり、現用系の仮想マシン30として稼働するとき)に必要な稼動時必要リソース量を示した情報である(表3参照)。   The virtual machine required resource amount information 113 includes, for each standby virtual machine 30, the standby required resource amount required for the standby virtual machine 30 and when the standby virtual machine 30 operates (that is, This is information indicating the amount of resources required during operation (when operating as the active virtual machine 30) (see Table 3).

Figure 0005872433
Figure 0005872433

処理部100の初期配置先選択部101は、仮想マシン配置情報112(表1参照)、物理サーバリソース上限閾値情報111(表2参照)および仮想マシン必要リソース量情報113(表3参照)を参照して、現用系の仮想マシン30および予備系の仮想マシン30の初期配置先の物理サーバ20を選択する。現用系の仮想マシン30それぞれの初期配置先の物理サーバ20を選択する際には、初期配置先選択部101は、仮想マシン配置情報112(表1参照)を参照して、予備系の仮想マシン30が配置されていない物理サーバ20群の中から(つまり、現用系の仮想マシン30用の物理サーバ20群の中から)初期配置先の物理サーバ20を選択する。また、予備系の仮想マシン30それぞれの初期配置先の物理サーバ20を選択する際には、初期配置先選択部101は、現用系の仮想マシン30が配置されていない物理サーバ20群の中から(つまり、予備系の仮想マシン30用の物理サーバ20群の中から)初期配置先の物理サーバ20を選択する。なお、ここでの、予備系の仮想マシン30の初期配置先の物理サーバ20の選択は以下のようにして行われる。   The initial placement destination selection unit 101 of the processing unit 100 refers to virtual machine placement information 112 (see Table 1), physical server resource upper limit threshold information 111 (see Table 2), and virtual machine required resource amount information 113 (see Table 3). Then, the physical server 20 that is the initial placement destination of the active virtual machine 30 and the standby virtual machine 30 is selected. When selecting the initial placement destination physical server 20 of each of the active virtual machines 30, the initial placement destination selection unit 101 refers to the virtual machine placement information 112 (see Table 1) and refers to the standby virtual machine. The physical server 20 that is the initial placement destination is selected from among the physical server 20 group in which 30 is not placed (that is, from the physical server group 20 for the active virtual machine 30). In addition, when selecting the initial placement destination physical server 20 of each of the standby virtual machines 30, the initial placement destination selection unit 101 selects the physical server 20 group in which the active virtual machine 30 is not placed. The physical server 20 of the initial placement destination is selected (that is, from the physical server group 20 for the standby virtual machine 30). Here, the selection of the physical server 20 as the initial placement destination of the standby virtual machine 30 is performed as follows.

すなわち、初期配置先選択部101は、仮想マシン配置情報112(表1参照)および仮想マシン必要リソース量情報113(表3参照)を参照して、配置予定のすべての予備系の仮想マシン30の待機時必要リソース量の合計値を計算する。そして、初期配置先選択部101は、仮想マシン配置情報112(表1参照)および物理サーバリソース上限閾値情報111(表2参照)を参照して、空き物理サーバの中から、当該物理サーバ20のリソース量の上限閾値の合計値が、前記した待機時必要リソース量の合計値以上となる物理サーバ20群を選択する。この選択した物理サーバ群21が、予備系の仮想マシン30の配置先候補の物理サーバ20群となる。次に、初期配置先選択部101は、仮想マシン必要リソース量情報113(表3参照)および仮想マシン配置情報112(表1参照)を参照して、配置対象の予備系の仮想マシン30のうち、待機時必要リソース量の多い予備系の仮想マシン30から順に、配置先の物理サーバ20を選択する。ここでの配置先の物理サーバ20の選択は、配置先候補の物理サーバ20群の中から、前記した配置先物理サーバ決定基準を満たす物理サーバ20を選択することにより行われる。初期配置先選択部101の詳細は後記する。   That is, the initial placement destination selection unit 101 refers to the virtual machine placement information 112 (see Table 1) and the virtual machine required resource amount information 113 (see Table 3), and sets up all the standby virtual machines 30 to be placed. Calculate the total amount of resources required during standby. Then, the initial placement destination selection unit 101 refers to the virtual machine placement information 112 (see Table 1) and the physical server resource upper limit threshold information 111 (see Table 2), and selects the physical server 20 from among the free physical servers. The physical server 20 group in which the total value of the upper limit thresholds of the resource amount is equal to or greater than the total value of the required amount of standby resources is selected. The selected physical server group 21 becomes the physical server 20 group that is the placement destination candidate of the standby virtual machine 30. Next, the initial placement destination selection unit 101 refers to the virtual machine required resource amount information 113 (see Table 3) and the virtual machine placement information 112 (see Table 1), among the spare virtual machines 30 to be placed. Then, the physical server 20 at the placement destination is selected in order from the standby virtual machine 30 having a large amount of resources required for standby. The placement destination physical server 20 is selected by selecting a physical server 20 that satisfies the placement destination physical server determination criteria from the group of placement destination candidate physical servers 20. Details of the initial placement destination selection unit 101 will be described later.

仮想マシン配置実行部102は、通信部120経由で仮想マシン30の物理サーバ20への配置を実行する。この仮想マシン配置実行部102は、初期配置先選択部101により選択された初期配置先の物理サーバ20へ仮想マシン30を配置したり、その後の仮想マシン30や物理サーバ20の故障により、仮想マシン30の移動(再配置)が必要になったときの仮想マシン30の再配置を行う。この仮想マシン配置実行部102の詳細は後記する。   The virtual machine placement execution unit 102 executes placement of the virtual machine 30 on the physical server 20 via the communication unit 120. The virtual machine placement execution unit 102 places the virtual machine 30 on the physical server 20 that is the initial placement destination selected by the initial placement destination selection unit 101, or the virtual machine 30 or the physical server 20 fails due to a failure of the virtual machine 30 or the physical server 20 thereafter. The virtual machine 30 is rearranged when the movement (rearrangement) of 30 becomes necessary. Details of the virtual machine arrangement execution unit 102 will be described later.

仮想マシン構築部103は、仮想マシン30が故障した際に、通信部120経由で物理サーバ20上に現用系の仮想マシン30や予備系の仮想マシン30を再構築する。例えば、仮想マシン構築部103は、現用系の仮想マシン30が故障し、この現用系の仮想マシン30のペアとなる予備系の仮想マシン30が稼動するようになったとき、この稼働するようになった仮想マシン30(元予備系の仮想マシン30)のペアとなる予備系の仮想マシン30を、物理サーバ20上に新たに構築する。   The virtual machine construction unit 103 reconstructs the active virtual machine 30 or the standby virtual machine 30 on the physical server 20 via the communication unit 120 when the virtual machine 30 fails. For example, the virtual machine construction unit 103 is configured to operate when the active virtual machine 30 fails and the standby virtual machine 30 that is a pair of the active virtual machine 30 starts operating. A standby virtual machine 30 that is a pair of the virtual machine 30 (original standby virtual machine 30) is newly constructed on the physical server 20.

仮想マシン実行状態切替部104は、仮想マシン30や物理サーバ20の故障復旧後、通信部120経由で、稼働状態の仮想マシン30(元予備系の仮想マシン30)を待機状態に切り替える。   After the failure recovery of the virtual machine 30 or the physical server 20, the virtual machine execution state switching unit 104 switches the operating virtual machine 30 (original standby virtual machine 30) to a standby state via the communication unit 120.

<初期配置先選択>
次に、図5を用いて、図4の仮想マシン配置装置10の処理手順を説明する。まず、仮想マシン配置装置10による仮想マシン30の初期配置先の物理サーバ20の選択手順を説明する(適宜、図1参照)。なお、ここでは既に仮想マシン配置装置10の初期配置先選択部101が、現用系の仮想マシン30の初期配置先の物理サーバ20を選択済みであるものとする。
<Initial location selection>
Next, the processing procedure of the virtual machine placement apparatus 10 in FIG. 4 will be described with reference to FIG. First, the selection procedure of the physical server 20 that is the initial placement destination of the virtual machine 30 by the virtual machine placement device 10 will be described (see FIG. 1 as appropriate). Here, it is assumed that the initial placement destination selection unit 101 of the virtual machine placement apparatus 10 has already selected the initial placement destination physical server 20 of the active virtual machine 30.

まず、仮想マシン配置装置10は、予備系の仮想マシン30の待機時と稼働時に必要なリソース使用量(待機時必要リソース量および稼働時必要リソース量)の入力を受け付ける(S1)。入力されたリソース使用量は、仮想マシン必要リソース量情報113(表3参照)の予備系の仮想マシン30の待機時必要リソース量および稼働時必要リソース量として書き込まれる。   First, the virtual machine placement apparatus 10 accepts input of resource usage (standby required resource amount and operating required resource amount) required for standby virtual machine 30 during standby and during operation (S1). The input resource usage is written as the standby required resource amount and the operating required resource amount of the standby virtual machine 30 in the virtual machine required resource amount information 113 (see Table 3).

次に、初期配置先選択部101は、予備系の仮想マシン30の配置に必要な物理サーバ台数を仮決定する(S2)。すなわち、まず、初期配置先選択部101は、仮想マシン必要リソース量情報113(表3参照)を参照して、配置対象のすべての予備系の仮想マシンの待機時必要リソース量の合計値を計算する。そして、物理サーバリソース上限閾値情報111(表2参照)を参照して、この計算した合計値分の待機時必要リソース量以上のリソース量(上限閾値)を確保するための物理サーバ20の台数を仮決定する。例えば、初期配置先選択部101は、以下の式(1)により、予備系の仮想マシン30の配置に必要な物理サーバ台数を仮決定する。そして、初期配置先選択部101は、仮想マシン配置情報112(表1参照)を参照して、空き物理サーバの中から、仮決定した台数の物理サーバ20群を選択する。この物理サーバ20群を配置先候補の物理サーバ20群とする。   Next, the initial placement destination selection unit 101 provisionally determines the number of physical servers necessary for placement of the standby virtual machine 30 (S2). That is, first, the initial placement destination selection unit 101 refers to the virtual machine required resource amount information 113 (see Table 3) and calculates a total value of standby required resource amounts of all the standby virtual machines to be placed. To do. Then, referring to the physical server resource upper limit threshold information 111 (see Table 2), the number of physical servers 20 for securing a resource amount (upper limit threshold) equal to or greater than the standby required resource amount for the calculated total value is obtained. Make a provisional decision. For example, the initial placement destination selection unit 101 provisionally determines the number of physical servers necessary for placement of the standby virtual machine 30 by the following equation (1). Then, the initial placement destination selection unit 101 refers to the virtual machine placement information 112 (see Table 1) and selects the tentatively determined number of physical servers 20 from the free physical servers. This physical server group 20 is set as a physical server group 20 as a placement destination candidate.

物理サーバ台数=すべての予備系の仮想マシン30の待機時必要リソース量の合計値分のリソース量(上限閾値)を保有する物理サーバ20群の台数×a…式(1)
ただし、aは、正の数とする。
Number of physical servers = the number of physical servers 20 having a resource amount (upper threshold) corresponding to the total of the standby required resource amounts of all the standby virtual machines 30 × a (1)
However, a is a positive number.

その後、仮想マシン配置装置10の初期配置先選択部101は、配置予定の予備系の仮想マシン30が存在すれば(S3のYes)、仮想マシン必要リソース量情報113(表3参照)を参照して、配置予定の予備系の仮想マシン30のうち、待機時に必要なリソース量(待機時必要リソース量)の大きい順に予備系の仮想マシン30から1つ選択する(S4)。そして、初期配置先選択部101は、仮想マシン配置情報112(表1参照)、物理サーバリソース上限閾値情報111(表2参照)および仮想マシン必要リソース量情報113(表3参照)を参照して、配置先候補の物理サーバ20群の中に、配置先物理サーバ決定基準を満たす物理サーバ20が存在するか否かを判断する(S5)。ここで、配置先物理サーバ決定基準を満たす物理サーバ20が存在する場合(S5のYes)、仮想マシン配置実行部102は、S4で選択した配置予定の予備系の仮想マシン30を該当物理サーバ20へ配置し(S6)、S3へ戻る。一方、配置先物理サーバ決定基準を満たす物理サーバ20が存在しない場合(S5のNo)、仮想マシン配置情報112(表1参照)を参照して、配置先候補の物理サーバ20(空き物理サーバ)を追加し(S7)、S5へ戻る。そして、S3において配置予定の予備系の仮想マシン30についてすべて配置が完了すると(S3のNo)、処理を終了する。   Thereafter, the initial placement destination selection unit 101 of the virtual machine placement apparatus 10 refers to the virtual machine required resource amount information 113 (see Table 3) if there is a standby virtual machine 30 to be placed (Yes in S3). Then, one of the standby virtual machines 30 to be placed is selected from the standby virtual machines 30 in descending order of the amount of resources required during standby (the amount of resources required during standby) (S4). The initial placement destination selection unit 101 refers to the virtual machine placement information 112 (see Table 1), physical server resource upper limit threshold information 111 (see Table 2), and virtual machine required resource amount information 113 (see Table 3). Then, it is determined whether there is a physical server 20 that satisfies the placement destination physical server determination criteria in the placement destination candidate physical server 20 group (S5). If there is a physical server 20 that satisfies the placement destination physical server determination criteria (Yes in S5), the virtual machine placement execution unit 102 selects the standby virtual machine 30 to be placed selected in S4 as the physical server 20. (S6) and return to S3. On the other hand, when there is no physical server 20 that satisfies the placement destination physical server determination criteria (No in S5), the placement destination candidate physical server 20 (free physical server) is referred to by referring to the virtual machine placement information 112 (see Table 1). Is added (S7), and the process returns to S5. When the placement of all the standby virtual machines 30 scheduled to be placed in S3 is completed (No in S3), the process is terminated.

なお、S5で用いる配置先物理サーバ決定基準は、以下の(1)〜(4)の条件からなる。
(1)配置対象の予備系の仮想マシン30を含め、当該物理サーバ20上の予備系の仮想マシン30の数が所定の閾値以下であること(前記した(a)に相当する条件)。
(2)配置対象の予備系の仮想マシン30を含め、当該物理サーバ20上の予備系の仮想マシン30の待機時必要リソース量の合計値が、当該物理サーバ20のリソース量(使用リソース量)の上限閾値以下であること(前記した(b)に相当する条件)。
(3)配置対象の予備系の仮想マシン30を含め、当該物理サーバ20上の予備系の仮想マシン30のうち、稼動時必要リソース量の大きいものから順に選択した所定数Nの予備系の仮想マシン30の稼動時必要リソース量の合計値が、当該物理サーバ20の使用リソース量の上限閾値以下であること(前記した(c)に相当する条件)。
(4)前記した(1)〜(3)の条件を満たす物理サーバ20のうち、当該物理サーバ20に配置済みの予備系の仮想マシン30のペアとなる現用系の仮想マシン30の配置先の物理サーバ20と、配置対象の予備系の仮想マシン30のペアとなる現用系の仮想マシン30の配置先の物理サーバ20との一致数が最も少ない物理サーバ20であること(前記した(d)に相当する条件)。
なお、配置先物理サーバ決定基準として(1)〜(3)の条件を用い、(4)の条件を用いないようにしてもよい。
The placement destination physical server determination criterion used in S5 is composed of the following conditions (1) to (4).
(1) The number of backup virtual machines 30 on the physical server 20 including the backup virtual machines 30 to be arranged is equal to or less than a predetermined threshold (conditions corresponding to the above (a)).
(2) The total value of the standby necessary resources of the standby virtual machine 30 on the physical server 20 including the standby virtual machine 30 to be arranged is the resource amount (used resource amount) of the physical server 20 (The condition corresponding to (b) described above).
(3) A predetermined number N of standby virtual machines selected in descending order of the amount of resources required during operation among the standby virtual machines 30 on the physical server 20 including the standby virtual machines 30 to be arranged. The total value of the required resource amount during operation of the machine 30 is equal to or less than the upper limit threshold value of the used resource amount of the physical server 20 (condition corresponding to the above (c)).
(4) Of the physical servers 20 that satisfy the conditions (1) to (3) described above, the placement destination of the active virtual machine 30 that forms a pair with the standby virtual machine 30 that has already been placed on the physical server 20 The physical server 20 is the physical server 20 having the smallest number of matches between the physical server 20 and the physical server 20 that is the placement destination of the active virtual machine 30 that is a pair of the standby virtual machine 30 to be placed (described above (d)). Condition).
Note that the conditions (1) to (3) may be used as the placement destination physical server determination criteria, and the condition (4) may not be used.

初期配置先選択部101が以上の手順により予備系の仮想マシン30の配置先の物理サーバ20を選択すると、仮想マシン配置実行部102は、各予備系の仮想マシン30を選択した物理サーバ20へ配置する。   When the initial placement destination selection unit 101 selects the physical server 20 that is the placement destination of the standby virtual machine 30 by the above procedure, the virtual machine placement execution unit 102 moves to the physical server 20 that has selected each standby virtual machine 30. Deploy.

初期配置先選択部101は、予備系の仮想マシン30の配置先として以上の条件を満たす物理サーバ20を選択することで、システムの可用性を高めつつ、物理サーバ20のリソース使用効率を向上させることができる。   The initial placement destination selection unit 101 selects the physical server 20 that satisfies the above conditions as the placement destination of the standby virtual machine 30, thereby improving the resource usage efficiency of the physical server 20 while increasing the system availability. Can do.

<再構築>
次に、このような仮想マシン配置装置10が仮想マシン30の初期配置を行った後、システムの故障が発生した場合の仮想マシンの冗長構成の再構築手順について、図6および図7を用いて説明する(適宜、図4参照)。
<Reconstruction>
Next, a procedure for rebuilding a redundant configuration of a virtual machine when a system failure occurs after the virtual machine placement apparatus 10 performs the initial placement of the virtual machine 30 will be described with reference to FIGS. 6 and 7. This will be described (see FIG. 4 as appropriate).

図4の仮想マシン配置装置10においてシステムの故障が発生したことを検出すると(S11)、仮想マシン配置装置10は、この故障が現用系の仮想マシン30のみの故障か否かを判断する(S12)。ここで、仮想マシン配置装置10が、現用系の仮想マシン30のみの故障であると判断したとき(S12のYes)、S13へ進む。一方、現用系の仮想マシン30の故障のみではないと判断したとき、すなわち、予備系の仮想マシン30の故障もあると判断したき(S12のNo)、図7のS16へ進む。S16以降の処理については後記する。   When it is detected that a system failure has occurred in the virtual machine placement device 10 of FIG. 4 (S11), the virtual machine placement device 10 determines whether this failure is a failure of only the active virtual machine 30 (S12). ). When the virtual machine placement apparatus 10 determines that the failure is only in the active virtual machine 30 (Yes in S12), the process proceeds to S13. On the other hand, when it is determined that there is not only a failure in the active virtual machine 30, that is, when it is determined that there is also a failure in the standby virtual machine 30 (No in S12), the process proceeds to S16 in FIG. The processing after S16 will be described later.

S13において、仮想マシン配置装置10の仮想マシン配置実行部102は、仮想マシン配置情報112(表1参照)を参照して、予備系の仮想マシン30の物理サーバ20(予備系の仮想マシン30用の物理サーバ20)でリソース競合が発生しているか否かを判断し、リソース競合が発生していると判断したとき(S13のYes)、S14へ進む。   In S13, the virtual machine placement execution unit 102 of the virtual machine placement device 10 refers to the virtual machine placement information 112 (see Table 1) and refers to the physical server 20 of the standby virtual machine 30 (for the standby virtual machine 30). The physical server 20) determines whether or not resource contention has occurred. When it is determined that resource contention has occurred (Yes in S13), the process proceeds to S14.

なお、S13においてリソース競合が発生しているか否かは、当該物理サーバ20における使用リソース量が当該物理サーバ20の上限閾値を超えるか否かにより判断される。すなわち、当該物理サーバ20における使用リソース量が当該物理サーバ20の上限閾値(物理サーバリソース上限閾値情報111参照)を超えるとき、仮想マシン配置実行部102は、リソース競合が発生すると判断する。一方、当該物理サーバ20における使用リソース量が当該物理サーバ20の上限閾値以下であるとき、仮想マシン配置実行部102は、リソース競合は発生しないと判断する。なお、この物理サーバ20の使用リソース量は、各仮想マシン30の待機時必要リソース量および稼働時必要リソース量(仮想マシン必要リソース量情報113参照)および仮想マシン配置情報112から算出する。   Note that whether or not resource contention has occurred in S13 is determined by whether or not the amount of resources used in the physical server 20 exceeds the upper limit threshold of the physical server 20. That is, when the amount of resources used in the physical server 20 exceeds the upper limit threshold of the physical server 20 (see the physical server resource upper limit threshold information 111), the virtual machine arrangement execution unit 102 determines that resource contention occurs. On the other hand, when the used resource amount in the physical server 20 is equal to or less than the upper limit threshold of the physical server 20, the virtual machine arrangement execution unit 102 determines that no resource conflict occurs. The used resource amount of the physical server 20 is calculated from the standby required resource amount and the operating required resource amount (see virtual machine required resource amount information 113) and the virtual machine arrangement information 112 of each virtual machine 30.

S14において、仮想マシン配置実行部102は、仮想マシン配置情報112(表1参照)および仮想マシン必要リソース量情報(表3参照)を参照して、稼動状態となる予備系の仮想マシン30のうち稼動時必要リソース量の大きい順に、予備系の仮想マシン30をリソース競合が発生しなくなるまで、つまり、当該物理サーバ20における使用リソース量が当該物理サーバ20の上限閾値以下となるまで、他の空き物理サーバへ一時的に退避させる。その後、S21へ進む。   In S <b> 14, the virtual machine placement execution unit 102 refers to the virtual machine placement information 112 (see Table 1) and the virtual machine required resource amount information (see Table 3), and the virtual machine placement execution unit 102 In order of increasing required resource amount at the time of operation, other free space is used until resource contention does not occur in the standby virtual machine 30, that is, until the used resource amount in the physical server 20 becomes equal to or less than the upper limit threshold of the physical server 20. Temporarily save to physical server. Then, it progresses to S21.

一方、S13において、仮想マシン配置実行部102が、当該物理サーバ20でリソース競合は発生していないと判断したとき(S13のNo)、仮想マシン配置実行部102は、稼動状態の予備系の仮想マシン30を現在の物理サーバ20上で稼動させ続ける(S15)。その後、S21へ進む。S21については後記する。   On the other hand, in S13, when the virtual machine arrangement execution unit 102 determines that no resource contention has occurred in the physical server 20 (No in S13), the virtual machine arrangement execution unit 102 determines that the active standby virtual The machine 30 is continuously operated on the current physical server 20 (S15). Then, it progresses to S21. S21 will be described later.

S21において、システムの故障が現用系の仮想マシン30の配置される物理サーバ20の故障によるものであると判明したとき(S21のYes)、仮想マシン配置実行部102は、仮想マシン配置情報112(表1参照)を参照して、稼動状態の予備系の仮想マシン30をすべて空き物理サーバへ移動し、新現用系(現用系の仮想マシン30)として稼動させる。なお、ここでの稼動状態の予備系の仮想マシン30とは、S14で空き物理サーバへ一時的に退避させた稼動状態の予備系の仮想マシン30、または、S15で予備系の仮想マシン30用の物理サーバ20で一時的に稼動している予備系の仮想マシン30である。つまり、一時的に退避用の物理サーバ20で稼動していた予備系の仮想マシン30も、予備系の仮想マシン30用の物理サーバ20で稼動していた予備系の仮想マシン30も、空き物理サーバ(現用系の仮想マシン30用の物理サーバ20)へ移動して、現用系の仮想マシン30として稼動させる。また、仮想マシン構築部103は、新予備系(つまり、新たに現用系の仮想マシン30となった仮想マシン30のペアとなる予備系の仮想マシン30)を元の予備系の仮想マシン30の配置物理サーバ(つまり元の予備系の仮想マシン30が配置されていた物理サーバ20)で新規構築する(S22)。これにより仮想マシン30の冗長構成が復旧される。なお、予備系の仮想マシン30の移動が行われたときや、予備系の仮想マシン30が稼動状態となり現用系の仮想マシン30に切り替わったとき、前記した仮想マシン配置情報112(表1参照)の情報もそれにあわせて書き換えられる。   When it is determined in S21 that the system failure is due to a failure of the physical server 20 in which the active virtual machine 30 is placed (Yes in S21), the virtual machine placement execution unit 102 sends the virtual machine placement information 112 ( Referring to Table 1), all of the active standby virtual machines 30 are moved to the free physical server and are operated as the new active system (active virtual machine 30). Here, the standby virtual machine 30 in the operating state is for the standby virtual machine 30 in the operating state temporarily saved in an empty physical server in S14 or for the standby virtual machine 30 in S15. This is a standby virtual machine 30 temporarily operating on the physical server 20. That is, both the standby virtual machine 30 temporarily operating on the physical server 20 for evacuation and the standby virtual machine 30 operating on the physical server 20 for the standby virtual machine 30 are free physical. Move to the server (physical server 20 for the active virtual machine 30) and operate as the active virtual machine 30. In addition, the virtual machine construction unit 103 uses the new standby system (that is, the standby virtual machine 30 that becomes a pair of the virtual machine 30 that newly becomes the active virtual machine 30) of the original standby virtual machine 30. A new construction is performed on the placement physical server (that is, the physical server 20 on which the original standby virtual machine 30 was placed) (S22). Thereby, the redundant configuration of the virtual machine 30 is restored. Note that when the standby virtual machine 30 is moved or when the standby virtual machine 30 becomes active and switches to the active virtual machine 30, the virtual machine arrangement information 112 described above (see Table 1). This information is rewritten accordingly.

一方、S21において、システムの故障が現用系の仮想マシン30の配置される物理サーバ20の故障によるものではないと判明したとき(S21のNo)、例えば、現用系の仮想マシン30のアプリケーションの障害等によるものであると判明したとき、仮想マシン配置実行部102は、稼動状態の予備系の仮想マシン30を、故障した現用系の仮想マシン30の配置物理サーバへ移動し、新現用系(現用系の仮想マシン30)として稼動させる。また、仮想マシン構築部103は、新予備系の仮想マシン30を元の予備系の仮想マシン30の配置物理サーバで新規構築する。これにより仮想マシン30の冗長構成が復旧される。   On the other hand, when it is determined in S21 that the system failure is not due to a failure of the physical server 20 in which the active virtual machine 30 is placed (No in S21), for example, an application failure in the active virtual machine 30 When the virtual machine placement execution unit 102 determines that the failure is caused by the virtual machine placement execution unit 102, the virtual machine placement execution unit 102 moves the active standby virtual machine 30 to the placement physical server of the failed active virtual machine 30, and the new working system (working It is operated as a virtual machine 30) of the system. In addition, the virtual machine construction unit 103 newly constructs a new standby virtual machine 30 by using the placement physical server of the original standby virtual machine 30. Thereby, the redundant configuration of the virtual machine 30 is restored.

このように仮想マシン配置装置10は、システムの故障により、予備系の仮想マシン30が現用系の仮想マシン30として稼動するようになったとき、この仮想マシン30(新たな現用系の仮想マシン30)を現用系の仮想マシン30用の物理サーバ20上に配置する。また、この新たな予備系の仮想マシン30のペアとなる予備系の仮想マシン30については、予備系の仮想マシン30用の物理サーバ20上に再構築する。これにより、システムの故障が発生した後も、現用系の仮想マシン30については、現用系の仮想マシン30用の物理サーバ20に集約して配置され、予備系の仮想マシン30については、予備系の仮想マシン30用の物理サーバ20に集約して配置されることになる。   As described above, when the standby virtual machine 30 comes to operate as the active virtual machine 30 due to a system failure, the virtual machine placement apparatus 10 becomes a virtual machine 30 (new active virtual machine 30). ) On the physical server 20 for the active virtual machine 30. Further, the standby virtual machine 30 that is a pair of the new standby virtual machine 30 is reconstructed on the physical server 20 for the standby virtual machine 30. As a result, even after a system failure occurs, the active virtual machine 30 is centrally arranged on the physical server 20 for the active virtual machine 30, and the standby virtual machine 30 is Are collectively arranged on the physical server 20 for the virtual machine 30.

次に、図7を用いて、仮想マシン配置装置10が、システムの故障は現用系の仮想マシン30のみの故障ではないと判断したとき(図6のS12のNo)の処理を説明する(適宜、図1参照)。仮想マシン配置装置10が、システムの故障は予備系の仮想マシン30の故障のみであると判断した場合において(図6のS12のNo→図7のS16のYes)、システムの故障が予備系の仮想マシン30の物理サーバ20の故障によるものであると判断したとき(S24のYes)、仮想マシン構築部103は、仮想マシン配置情報112(表1参照)を参照して、この故障した予備系の仮想マシンの代わりとなる予備系の仮想マシンを、いずれかの空き物理サーバで新規構築する(S25)。一方、システムの故障が予備系の仮想マシン30の物理サーバ20の故障によるものではないと判断したとき(S24のNo)、仮想マシン構築部103は、仮想マシン配置情報112(表1参照)を参照して、この故障した予備系の仮想マシン30の代わりとなる予備系の仮想マシン30を、元の予備系の仮想マシン30の配置物理サーバで新規構築する(S26)。また、仮想マシン配置装置10が、システムの故障は現用系の仮想マシン30と予備系の仮想マシン30の両方の故障によるものと判断したとき(S16のNo)、仮想マシン構築部103は、物理サーバ20上に現用系および予備系の仮想マシン30を新規構築する(S27)。これにより仮想マシン30の冗長構成が復旧される。   Next, with reference to FIG. 7, processing when the virtual machine placement apparatus 10 determines that the failure of the system is not the failure of only the active virtual machine 30 (No in S12 of FIG. 6) will be described (as appropriate). FIG. 1). When the virtual machine placement apparatus 10 determines that the system failure is only the failure of the standby virtual machine 30 (No in S12 in FIG. 6 → Yes in S16 in FIG. 7), the system failure is the standby system. When it is determined that the failure is caused by a failure of the physical server 20 of the virtual machine 30 (Yes in S24), the virtual machine construction unit 103 refers to the virtual machine arrangement information 112 (see Table 1) and refers to the failed standby system. A spare virtual machine that replaces the virtual machine is newly constructed on any free physical server (S25). On the other hand, when determining that the system failure is not due to the failure of the physical server 20 of the standby virtual machine 30 (No in S24), the virtual machine construction unit 103 uses the virtual machine arrangement information 112 (see Table 1). Referring to this, a spare virtual machine 30 that replaces the failed spare virtual machine 30 is newly constructed on the physical server where the original spare virtual machine 30 is placed (S26). When the virtual machine placement apparatus 10 determines that the system failure is caused by the failure of both the active virtual machine 30 and the standby virtual machine 30 (No in S16), the virtual machine construction unit 103 The active and standby virtual machines 30 are newly constructed on the server 20 (S27). Thereby, the redundant configuration of the virtual machine 30 is restored.

このように、システムの故障が発生した後も、仮想マシン配置装置10は、現用系の仮想マシン30については、現用系の仮想マシン30用の物理サーバ20上に配置し、予備系の仮想マシン30については、予備系の仮想マシン30用の物理サーバ20上に配置するようにするので、システムの可用性を高めることができる。   As described above, even after a system failure occurs, the virtual machine placement apparatus 10 places the active virtual machine 30 on the physical server 20 for the active virtual machine 30 and sets it as a standby virtual machine. Since 30 is arranged on the physical server 20 for the standby virtual machine 30, the availability of the system can be increased.

なお、図4の仮想マシン配置装置10の記憶部110は、現用系の仮想マシン30および予備系の仮想マシン30からなるシステム(仮想マシン30のペア)ごとに、現用系の仮想マシン30の故障により、予備系の仮想マシンへ30の切り替えが行われる確率である故障率を示した故障率情報114をさらに記憶していてもよい。そして、初期配置先選択部101は、予備系の仮想マシン30の配置先の物理サーバ20を選択する際、配置先物理サーバ決定基準の(1)の条件に代えて、この故障率情報114に示される各システムの故障率を参照して、配置先の物理サーバ20を選択する。すなわち、初期配置先選択部101は、配置対象の予備系の仮想マシン30を含め、配置先候補の物理サーバ20群のうち、当該物理サーバ20上の予備系の仮想マシン30のシステムの故障率の合計値が所定の閾値以下であるような物理サーバ20を配置先の物理サーバ20として選択するようにしてもよい。   The storage unit 110 of the virtual machine placement apparatus 10 in FIG. 4 has a failure of the active virtual machine 30 for each system (a pair of virtual machines 30) including the active virtual machine 30 and the standby virtual machine 30. Thus, failure rate information 114 indicating a failure rate that is a probability of switching to the standby virtual machine 30 may be further stored. When the initial placement destination selection unit 101 selects the physical server 20 that is the placement destination of the standby virtual machine 30, the initial placement destination selection unit 101 uses the failure rate information 114 instead of the condition (1) of the placement destination physical server determination criterion. The physical server 20 at the placement destination is selected with reference to the failure rate of each system shown. That is, the initial placement destination selection unit 101 includes the failure rate of the system of the standby virtual machine 30 on the physical server 20 in the placement destination candidate physical server 20 group including the standby virtual machine 30 to be placed. A physical server 20 whose total value is less than or equal to a predetermined threshold value may be selected as the physical server 20 at the placement destination.

このようにすることで、仮想マシン配置装置10は、システムの故障率をもとに予備系の仮想マシン30の配置先の物理サーバ20を選択することになるので、複数の現用系の仮想マシン30の故障により、同じ物理サーバ20上に配置される予備系の仮想マシン30が同時に稼動状態となり、物理サーバ20の負荷が増大してしまうことを抑制できる。   By doing so, the virtual machine placement apparatus 10 selects the physical server 20 that is the placement destination of the standby virtual machine 30 based on the failure rate of the system, and thus a plurality of active virtual machines. It is possible to prevent the standby virtual machine 30 arranged on the same physical server 20 from operating simultaneously due to the failure of 30 and increasing the load on the physical server 20.

10 仮想マシン配置装置
20 物理サーバ
21 物理サーバ群
30 仮想マシン
31 記憶装置
40 ネットワーク
50 仮想マシン実行システム
100 処理部
101 初期配置先選択部
102 仮想マシン配置実行部
103 仮想マシン構築部
104 仮想マシン実行状態切替部
110 記憶部
111 物理サーバリソース上限閾値情報
112 仮想マシン配置情報
113 仮想マシン必要リソース量情報
114 故障率情報
120 通信部
DESCRIPTION OF SYMBOLS 10 Virtual machine arrangement | positioning apparatus 20 Physical server 21 Physical server group 30 Virtual machine 31 Storage apparatus 40 Network 50 Virtual machine execution system 100 Processing part 101 Initial arrangement destination selection part 102 Virtual machine arrangement | positioning execution part 103 Virtual machine construction part 104 Virtual machine execution state Switching unit 110 Storage unit 111 Physical server resource upper limit threshold information 112 Virtual machine arrangement information 113 Virtual machine required resource amount information 114 Failure rate information 120 Communication unit

Claims (9)

現用系の仮想マシンと予備系の仮想マシンとのペアからなるシステムにおいて前記仮想マシンそれぞれの配置先の物理サーバを選択する仮想マシン配置装置であって、
前記物理サーバの識別情報ごとに、当該物理サーバに配置される仮想マシンの識別情報、当該仮想マシンが現用系の仮想マシンか予備系の仮想マシンかを示す情報および前記システムにおいて当該仮想マシンのペアとなる仮想マシンの識別情報を示した仮想マシン配置情報と、前記物理サーバそれぞれの使用リソース量の上限閾値を示した物理サーバリソース上限閾値情報と、前記予備系の仮想マシンごとに、当該予備系の仮想マシンの待機時必要リソース量および稼動時必要リソース量を示した仮想マシン必要リソース量情報と、を記憶する記憶部と、
前記現用系の仮想マシンおよび前記予備系の仮想マシンの初期配置先の物理サーバを選択する初期配置先選択部とを備え、
前記初期配置先選択部は、
前記現用系の仮想マシンそれぞれの初期配置先の物理サーバを選択する際、前記仮想マシン配置情報を参照して、前記予備系の仮想マシンが配置されていない物理サーバの中から前記現用系の仮想マシンの初期配置先の物理サーバを選択し、
前記予備系の仮想マシンそれぞれの初期配置先の物理サーバを選択する際、前記仮想マシン配置情報、前記仮想マシン必要リソース量情報および前記物理サーバリソース上限閾値情報を参照して、配置対象のすべての前記予備系の仮想マシンの前記待機時必要リソース量の合計値を計算し、前記使用リソース量の上限閾値の合計値が、前記計算した合計値分の待機時必要リソース量以上となる台数の物理サーバ群を、前記予備系の仮想マシンの配置先候補の物理サーバ群として選択し、
前記仮想マシン配置情報および前記仮想マシン必要リソース量情報を参照して、前記配置対象の予備系の仮想マシンのうち、前記待機時必要リソース量の大きい予備系の仮想マシンから順に1つずつ選択し、前記選択した配置先候補の物理サーバ群の中から、以下の(1)〜(3)の条件をすべて満たす前記物理サーバを前記予備系の仮想マシンの配置先の物理サーバとして選択することを特徴とする仮想マシン配置装置。
(1)前記選択した配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンの数が所定の閾値以下であること、
(2)前記選択した配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンの待機時必要リソース量の合計値が、当該物理サーバの使用リソース量の上限閾値以下であること、
(3)前記選択した配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンのうち、前記稼動時必要リソース量の大きいものから順に選択した所定数Nの予備系の仮想マシンの稼動時必要リソース量の合計値が、当該物理サーバの使用リソース量の上限閾値以下であること
A virtual machine placement device that selects a physical server to which each virtual machine is placed in a system comprising a pair of a working virtual machine and a standby virtual machine,
For each identification information of the physical server, identification information of a virtual machine arranged in the physical server, information indicating whether the virtual machine is an active virtual machine or a standby virtual machine, and a pair of the virtual machines in the system Virtual machine placement information indicating the identification information of the virtual machine to be used, physical server resource upper limit threshold information indicating the upper limit threshold of the amount of resource used by each physical server, and for each standby virtual machine, the spare system A storage unit that stores virtual machine required resource amount information indicating the required resource amount during standby and the required resource amount during operation of the virtual machine;
An initial placement destination selection unit that selects a physical server that is an initial placement destination of the active virtual machine and the standby virtual machine;
The initial placement destination selection unit
When selecting an initial placement destination physical server for each of the active virtual machines, the virtual machine placement information is referred to, and the active virtual machine is selected from among the physical servers on which the standby virtual machine is not placed. Select the physical server where the machine is initially placed,
When selecting the initial placement destination physical server for each of the standby virtual machines, refer to the virtual machine placement information, the virtual machine required resource amount information, and the physical server resource upper limit threshold information, The total value of the standby required resource amount of the standby virtual machine is calculated, and the total number of physical resources of which the total threshold value of the used resource amount is equal to or greater than the standby required resource amount for the calculated total value Select a server group as a physical server group as a placement destination candidate of the standby virtual machine,
With reference to the virtual machine arrangement information and the virtual machine required resource amount information, one of the standby virtual machines to be arranged is selected one by one in order from the standby virtual machine with the larger standby required resource amount. Selecting the physical server that satisfies all of the following conditions (1) to (3) from the selected physical server group of the placement destination candidates as a physical server that is the placement destination of the standby virtual machine: A virtual machine placement device.
(1) The number of the standby virtual machines on the physical server including the standby virtual machine of the selected placement target is equal to or less than a predetermined threshold;
(2) The upper limit threshold value of the amount of resources used by the physical server is the total value of the standby required resource amounts of the standby virtual machine on the physical server, including the selected standby virtual machine to be placed That
(3) A predetermined number N of spares selected in descending order of the amount of resources required during operation among the spare virtual machines on the physical server, including the selected spare virtual machine to be placed The total value of the required resources during operation of the host virtual machine must be less than or equal to the upper limit threshold for the amount of resources used by the physical server
前記初期配置先選択部は、
前記(1)〜(3)の条件をすべて満たす前記物理サーバがない場合、新たな空き物理サーバを前記配置先候補の物理サーバ群に追加して、再度、前記(1)〜(3)の条件を満たす前記物理サーバを選択することを特徴とする請求項1に記載の仮想マシン配置装置。
The initial placement destination selection unit
If there is no physical server that satisfies all the conditions (1) to (3), a new free physical server is added to the placement destination candidate physical server group, and the above (1) to (3) are performed again. The virtual machine placement apparatus according to claim 1, wherein the physical server that satisfies a condition is selected.
前記初期配置先選択部は、
前記選択した配置先候補の物理サーバ群の中から、前記予備系の仮想マシンの配置先の物理サーバを選択するとき、前記(1)〜(3)の条件をすべて満たす前記物理サーバのうち、当該物理サーバに配置済みの予備系の仮想マシンのペアとなる現用系の仮想マシンの配置先の物理サーバと、前記選択した配置対象の予備系の仮想マシンのペアとなる現用系の仮想マシンの配置先の物理サーバとの一致数が最も少ない物理サーバを選択することを特徴とする請求項1または請求項2に記載の仮想マシン配置装置。
The initial placement destination selection unit
Among the physical servers that satisfy all of the conditions (1) to (3) when selecting a physical server that is the placement destination of the standby virtual machine from the selected placement destination candidate physical server group, The physical server that is the placement destination of the active virtual machine that is a pair of the standby virtual machine that has already been placed on the physical server and the active virtual machine that is the pair of the selected standby virtual machine that is the placement target The virtual machine placement apparatus according to claim 1 or 2, wherein the physical server having the smallest number of matches with the placement destination physical server is selected.
前記記憶部は、さらに、
前記現用系の仮想マシンおよび予備系の仮想マシンからなるペアごとに、前記現用系の仮想マシンの故障により前記予備系の仮想マシンへの切り替えが行われる確率である故障率を示した故障率情報を記憶し、
前記初期配置先選択部は、
前記選択した予備系の仮想マシンの配置先の物理サーバを選択する際、前記(1)の条件に代えて、以下の条件を用いることを特徴とする請求項1ないし請求項3のいずれか1項に記載の仮想マシン配置装置。
前記故障率情報を参照して、前記配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンのペアの故障率の合計値が所定の閾値以下であること
The storage unit further includes:
Failure rate information indicating a failure rate, which is a probability of switching to the standby virtual machine due to a failure of the active virtual machine for each pair of the active virtual machine and the standby virtual machine Remember
The initial placement destination selection unit
4. The method according to claim 1, wherein when the physical server of the selected standby virtual machine is selected, the following condition is used instead of the condition (1). The virtual machine arrangement device according to item.
With reference to the failure rate information, the total failure rate of the spare virtual machine pair on the physical server including the spare virtual machine to be arranged is equal to or less than a predetermined threshold value.
前記仮想マシン配置装置は、さらに、
前記仮想マシンの前記物理サーバへの配置を実行する仮想マシン配置実行部を備え、
前記現用系の仮想マシンに故障が発生した場合において、
前記仮想マシン配置実行部が、
前記仮想マシン配置情報および仮想マシン必要リソース量情報を参照して、前記予備系の仮想マシンの配置される第1の物理サーバにおいて前記予備系の仮想マシンが稼動することにより、前記第1の物理サーバの使用リソース量が前記第1の物理サーバの上限閾値を超えると判断したとき、前記稼動状態となる予備系の仮想マシンのうち前記稼動時必要リソース量の大きい予備系の仮想マシンから順に、前記第1の物理サーバにおける使用リソース量が前記第1の物理サーバの上限閾値以下となるまで、空き物理サーバである第2の物理サーバのいずれかへ移動し、稼動させることを特徴とする請求項1ないし請求項4のいずれか1項に記載の仮想マシン配置装置。
The virtual machine placement device further includes:
A virtual machine placement execution unit that executes placement of the virtual machine on the physical server;
When a failure occurs in the active virtual machine,
The virtual machine placement execution unit
With reference to the virtual machine arrangement information and virtual machine required resource amount information, the first physical server is operated by the standby virtual machine on the first physical server on which the standby virtual machine is arranged. When it is determined that the used resource amount of the server exceeds the upper limit threshold value of the first physical server, the standby virtual machine having the large required resource amount during operation is sequentially selected from the standby virtual machines that are in the operating state. The system moves to one of the second physical servers that are free physical servers and operates until the amount of used resources in the first physical server becomes equal to or less than the upper limit threshold of the first physical server. The virtual machine placement device according to any one of claims 1 to 4.
前記仮想マシン配置装置は、さらに、
新たな前記予備系の仮想マシンの構築を行う仮想マシン構築部を備え、
前記現用系の仮想マシンの故障が前記物理サーバの故障によるものであると判明したとき、
前記仮想マシン配置実行部は、さらに、
前記仮想マシン配置情報を参照して、前記第1の物理サーバで稼動している前記予備系の仮想マシンを前記第2の物理サーバのいずれかへ移動し、前記移動した予備系の仮想マシンを現用系の仮想マシンとして稼動させ、
前記仮想マシン構築部は、
前記仮想マシン配置情報を参照して、前記現用系として稼動させる仮想マシンのペアとなる予備系の仮想マシンを、前記第1の物理サーバ上に構築することを特徴とする請求項5に記載の仮想マシン配置装置。
The virtual machine placement device further includes:
A virtual machine construction unit for constructing a new virtual machine for the standby system,
When it is determined that the failure of the active virtual machine is due to the failure of the physical server,
The virtual machine placement execution unit further includes:
Referring to the virtual machine arrangement information, the standby virtual machine running on the first physical server is moved to one of the second physical servers, and the moved standby virtual machine is moved Run as a working virtual machine,
The virtual machine construction unit
The virtual machine of the spare system used as the pair of the virtual machine operated as the active system with reference to the virtual machine arrangement information is constructed on the first physical server. Virtual machine placement device.
前記現用系の仮想マシンの故障が前記物理サーバの故障によるものではないと判明したとき、
前記仮想マシン配置実行部は、さらに、
前記仮想マシン配置情報を参照して、前記第1の物理サーバで稼動している前記予備系の仮想マシンを、前記故障した現用系の仮想マシンが配置される物理サーバへ移動し、前記移動した予備系の仮想マシンを現用系の仮想マシンとして稼動させ、
前記仮想マシン構築部は、さらに、
前記現用系として稼動させる仮想マシンのペアとなる予備系の仮想マシンを、前記第1の物理サーバ上に構築することを特徴とする請求項6に記載の仮想マシン配置装置。
When it is determined that the failure of the active virtual machine is not due to the failure of the physical server,
The virtual machine placement execution unit further includes:
Referring to the virtual machine placement information, the standby virtual machine operating on the first physical server is moved to the physical server on which the failed active virtual machine is placed, and the moved Run the standby virtual machine as the active virtual machine,
The virtual machine construction unit further includes:
The virtual machine placement apparatus according to claim 6, wherein a standby virtual machine that is a pair of virtual machines to be operated as the active system is constructed on the first physical server.
前記予備系の仮想マシンが前記物理サーバの故障により故障したとき、
前記仮想マシン構築部は、さらに、
前記仮想マシン配置情報を参照して、前記故障した予備系の仮想マシンの代替となる前記予備系の仮想マシンを、前記第2の物理サーバのいずれかに構築し、
前記予備系の仮想マシンの故障が前記物理サーバの故障ではないとき、
前記仮想マシン構築部は、さらに、
前記仮想マシン配置情報を参照して、前記故障した予備系の仮想マシンの代替となる前記予備系の仮想マシンを、前記第1の物理サーバ上に構築することを特徴とする請求項7に記載の仮想マシン配置装置。
When the standby virtual machine fails due to a failure of the physical server,
The virtual machine construction unit further includes:
With reference to the virtual machine arrangement information, construct the standby virtual machine as a substitute for the failed standby virtual machine in any of the second physical servers,
When the failure of the standby virtual machine is not the failure of the physical server,
The virtual machine construction unit further includes:
8. The virtual machine placement information is configured on the first physical server by referring to the virtual machine arrangement information, and constructing the spare virtual machine as a substitute for the failed standby virtual machine on the first physical server. Virtual machine placement device.
現用系の仮想マシンと予備系の仮想マシンとのペアからなるシステムにおいて前記仮想マシンそれぞれの配置先の物理サーバを選択する仮想マシン配置方法であって、
前記物理サーバの識別情報ごとに、当該物理サーバに配置される仮想マシンの識別情報、当該仮想マシンが現用系の仮想マシンか予備系の仮想マシンかを示す情報および前記システムにおいて当該仮想マシンのペアとなる仮想マシンの識別情報を示した仮想マシン配置情報と、前記物理サーバそれぞれの使用リソース量の上限閾値を示した物理サーバリソース上限閾値情報と、前記予備系の仮想マシンごとに、当該予備系の仮想マシンの待機時必要リソース量および稼動時必要リソース量を示した仮想マシン必要リソース量情報と、を記憶する記憶部を備える仮想マシン配置装置が、
前記現用系の仮想マシンそれぞれの初期配置先の物理サーバを選択する際、前記仮想マシン配置情報を参照して、前記予備系の仮想マシンが配置されていない物理サーバの中から前記現用系の仮想マシンの初期配置先の物理サーバを選択するステップと、
前記予備系の仮想マシンそれぞれの初期配置先の物理サーバを選択する際、前記仮想マシン配置情報、前記仮想マシン必要リソース量情報および前記物理サーバリソース上限閾値情報を参照して、配置対象のすべての前記予備系の仮想マシンの前記待機時必要リソース量の合計値を計算するステップと、
前記使用リソース量の上限閾値の合計値が、前記計算した合計値分の待機時必要リソース量以上となる台数の物理サーバ群を、前記予備系の仮想マシンの配置先候補の物理サーバ群として選択するステップと、
前記仮想マシン配置情報および前記仮想マシン必要リソース量情報を参照して、前記配置対象の予備系の仮想マシンのうち、前記待機時必要リソース量の大きい予備系の仮想マシンから順に1つずつ選択するステップと、
前記選択した配置先候補の物理サーバ群の中から、以下の(1)〜(3)の条件をすべて満たす前記物理サーバを前記予備系の仮想マシンの配置先の物理サーバとして選択するステップとを実行することを特徴とする仮想マシン配置方法。
(1)前記選択した配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンの数が所定の閾値以下であること、
(2)前記選択した配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンの待機時必要リソース量の合計値が、当該物理サーバの使用リソース量の上限閾値以下であること、
(3)前記選択した配置対象の前記予備系の仮想マシンを含め、当該物理サーバ上の前記予備系の仮想マシンのうち、前記稼動時必要リソース量の大きいものから順に選択した所定数Nの予備系の仮想マシンの稼動時必要リソース量の合計値が、当該物理サーバの使用リソース量の上限閾値以下であること
A virtual machine placement method for selecting a physical server of a placement destination of each of the virtual machines in a system consisting of a pair of a working virtual machine and a standby virtual machine,
For each identification information of the physical server, identification information of a virtual machine arranged in the physical server, information indicating whether the virtual machine is an active virtual machine or a standby virtual machine, and a pair of the virtual machines in the system Virtual machine placement information indicating the identification information of the virtual machine to be used, physical server resource upper limit threshold information indicating the upper limit threshold of the amount of resource used by each physical server, and for each standby virtual machine, the spare system A virtual machine placement apparatus comprising a storage unit for storing virtual machine required resource amount information indicating the required resource amount during standby and the required resource amount during operation of the virtual machine,
When selecting an initial placement destination physical server for each of the active virtual machines, the virtual machine placement information is referred to, and the active virtual machine is selected from among the physical servers on which the standby virtual machine is not placed. Selecting a physical server where the machine is initially placed;
When selecting the initial placement destination physical server for each of the standby virtual machines, refer to the virtual machine placement information, the virtual machine required resource amount information, and the physical server resource upper limit threshold information, Calculating a total value of the standby required resource amount of the standby virtual machine;
Select the number of physical server groups in which the total value of the upper limit thresholds of the used resource amount is equal to or greater than the standby required resource amount for the calculated total value as the physical server group as the placement destination candidate of the standby virtual machine And steps to
With reference to the virtual machine arrangement information and the virtual machine required resource amount information, one of the standby virtual machines to be arranged is selected one by one in order from the standby virtual machine having the largest required amount of standby resources. Steps,
Selecting the physical server that satisfies all of the following conditions (1) to (3) as a physical server to which the standby virtual machine is to be placed from the selected physical server group that is the placement destination candidate: A virtual machine arrangement method characterized by executing.
(1) The number of the standby virtual machines on the physical server including the standby virtual machine of the selected placement target is equal to or less than a predetermined threshold;
(2) The upper limit threshold value of the amount of resources used by the physical server is the total value of the standby required resource amounts of the standby virtual machine on the physical server, including the selected standby virtual machine to be placed That
(3) A predetermined number N of spares selected in descending order of the amount of resources required during operation among the spare virtual machines on the physical server, including the selected spare virtual machine to be placed The total value of the required resources during operation of the host virtual machine must be less than or equal to the upper limit threshold for the amount of resources used by the physical server
JP2012222119A 2012-10-04 2012-10-04 Virtual machine placement apparatus and virtual machine placement method Expired - Fee Related JP5872433B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012222119A JP5872433B2 (en) 2012-10-04 2012-10-04 Virtual machine placement apparatus and virtual machine placement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012222119A JP5872433B2 (en) 2012-10-04 2012-10-04 Virtual machine placement apparatus and virtual machine placement method

Publications (2)

Publication Number Publication Date
JP2014075027A JP2014075027A (en) 2014-04-24
JP5872433B2 true JP5872433B2 (en) 2016-03-01

Family

ID=50749146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012222119A Expired - Fee Related JP5872433B2 (en) 2012-10-04 2012-10-04 Virtual machine placement apparatus and virtual machine placement method

Country Status (1)

Country Link
JP (1) JP5872433B2 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6191686B2 (en) * 2013-03-21 2017-09-06 富士通株式会社 Information processing apparatus, resource allocation method, and program
JP2016053841A (en) * 2014-09-03 2016-04-14 日本電信電話株式会社 Power source state control device and program
JP6472312B2 (en) * 2015-04-15 2019-02-20 株式会社Nttドコモ Functional part assignment apparatus and functional part assignment method
JP6984119B2 (en) * 2016-11-15 2021-12-17 沖電気工業株式会社 Monitoring equipment, monitoring programs, and monitoring methods
JP6791834B2 (en) 2017-11-30 2020-11-25 株式会社日立製作所 Storage system and control software placement method
JP2019139533A (en) * 2018-02-13 2019-08-22 日本電信電話株式会社 Arrangement configuration device and arrangement configuration method
JP2019174875A (en) 2018-03-26 2019-10-10 株式会社日立製作所 Storage system and storage control method
JP6714037B2 (en) 2018-04-26 2020-06-24 株式会社日立製作所 Storage system and cluster configuration control method
JP6974281B2 (en) 2018-09-21 2021-12-01 株式会社日立製作所 Storage system and storage control method
JP7128419B2 (en) * 2019-02-14 2022-08-31 日本電信電話株式会社 Redundant operation system and its method
JP7122332B2 (en) * 2020-02-26 2022-08-19 株式会社日立製作所 Information processing system and method
WO2023157128A1 (en) * 2022-02-16 2023-08-24 日本電信電話株式会社 Resource planning device, resource planning method, and resource planning program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000222376A (en) * 1999-01-29 2000-08-11 Toshiba Corp Computer system and method for operating the same
JP5035011B2 (en) * 2008-02-22 2012-09-26 日本電気株式会社 Virtual server management apparatus and virtual server management method

Also Published As

Publication number Publication date
JP2014075027A (en) 2014-04-24

Similar Documents

Publication Publication Date Title
JP5872433B2 (en) Virtual machine placement apparatus and virtual machine placement method
JP7014729B2 (en) How and equipment to expand a high availability server cluster
CN108780386B (en) Data storage method, device and system
JP5035011B2 (en) Virtual server management apparatus and virtual server management method
CN105357294B (en) A kind of method and cluster management node of storage data
US8880931B2 (en) Method, distributed system and computer program for failure recovery
US20180046489A1 (en) Storage medium, method, and device
JP5855724B1 (en) Virtual device management apparatus, virtual device management method, and virtual device management program
JP5078347B2 (en) Method for failing over (repairing) a failed node of a computer system having a plurality of nodes
CN106201561B (en) The upgrade method and equipment of distributed caching cluster
JP2009129409A (en) Failure recovery method, computer, cluster system, management computer, and failure recovery program
CN111290699A (en) Data migration method, device and system
CN104580381A (en) Method for performing job task in multi-node network
CN112732168B (en) Method, apparatus and computer program product for managing a storage system
CN105827678A (en) High-availability framework based communication method and node
JP4796086B2 (en) Cluster system and method for selecting master node in the same system
CN106293509A (en) Date storage method and system
JP2017049772A (en) Transfer control program, transfer control apparatus, and transfer control method
JP4812848B2 (en) Clustering server system and data transfer method
JP2005250840A (en) Information processing apparatus for fault-tolerant system
JP2012150657A (en) Computer system
CN115378800A (en) Distributed fault-tolerant system, method, apparatus, device and medium without server architecture
US8984522B2 (en) Relay apparatus and relay management apparatus
JP6277069B2 (en) Virtual device management apparatus, virtual device management method, and virtual device management program
CN111901448B (en) CTDB virtual IP balance distribution method for cluster node fault scene

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20140502

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140528

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151130

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160105

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160113

R150 Certificate of patent or registration of utility model

Ref document number: 5872433

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees