JP5872433B2 - Virtual machine placement apparatus and virtual machine placement method - Google Patents
Virtual machine placement apparatus and virtual machine placement method Download PDFInfo
- 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
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).
仮想化マシンを用いたシステムにおいて冗長構成を組む場合、現用系の仮想マシンと予備系の仮想マシンをそれぞれ適切な物理サーバに配置し、高可用性を確保する必要がある。また、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.
以下、図面を参照しながら、本発明の実施の形態(本実施の形態)について説明する。まず、本実施の形態の仮想マシン実行システム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
記憶装置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
仮想マシン配置装置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
物理サーバ20は、仮想マシン配置装置10によって配置された仮想マシン30を実行する。例えば、図1では、物理サーバ20aは、配置された仮想マシンA(30a)および仮想マシンC(30c)を実行し、物理サーバ20bは、配置された仮想マシンB(30b)、仮想マシンD(30d)、仮想マシンE(30e)を実行する。また、物理サーバ20mは、仮想マシン30が配置されていない、空き物理サーバである。
The
次に、図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
さらに、仮想マシン配置装置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
(A) The number of standby
(B) The total required amount of standby resources of the virtual machine 30 (standby virtual machine 30) in the
(C) It is possible to operate up to N
(D) The standby
ここでは、予備系の仮想マシン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
このような場合に、予備系の仮想マシン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
以上のようにして、仮想マシン配置装置10が仮想マシン30の初期配置先の物理サーバ20の選択を行うことで、できるだけ多くの予備系の仮想マシン30を物理サーバ20上に配置しつつ、システムの可用性を高めることができる。
As described above, the virtual
なお、各物理サーバ20に予備系の仮想マシン30および現用系の仮想マシン30の初期配置が行われた後、いずれかの仮想マシン30の故障が発生した場合には、仮想マシン配置装置10は、仮想マシン30の移動を行い、稼働状態になった予備系の仮想マシン30(現用系の仮想マシン30)と予備系の仮想マシン30とを極力同じ物理サーバ20上に配置しないようにする。このときの処理手順の詳細は後記する。
In addition, after the initial placement of the standby
次に、図4を用いて仮想マシン配置装置10の構成例を説明する(適宜、図1参照)。仮想マシン配置装置10は、処理部100、記憶部110および通信部120を備える。通信部120は、通信インタフェースであり、図1のネットワーク40を介して物理サーバ20や記憶装置31と情報を送受信する。
Next, a configuration example of the virtual
処理部100は、初期配置先選択部101、仮想マシン配置実行部102、仮想マシン構築部103および仮想マシン実行状態切替部104を備える。処理部100は、図示しないCPU(Central Processing Unit)およびメインメモリによって構成され、処理部100の各部は、記憶部110に記憶されているアプリケーションプログラムをメインメモリに展開して具現化される。
The processing unit 100 includes an initial placement
記憶部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
仮想マシン配置情報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
物理サーバリソース上限閾値情報111は、物理サーバ20それぞれの使用リソース量の上限閾値を示した情報である(表2参照)。
The physical server resource upper
仮想マシン必要リソース量情報113は、予備系の仮想マシン30ごとに、当該予備系の仮想マシン30に必要な待機時必要リソース量、および、当該予備系の仮想マシン30が稼働したとき(つまり、現用系の仮想マシン30として稼働するとき)に必要な稼動時必要リソース量を示した情報である(表3参照)。
The virtual machine required
処理部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
すなわち、初期配置先選択部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
仮想マシン配置実行部102は、通信部120経由で仮想マシン30の物理サーバ20への配置を実行する。この仮想マシン配置実行部102は、初期配置先選択部101により選択された初期配置先の物理サーバ20へ仮想マシン30を配置したり、その後の仮想マシン30や物理サーバ20の故障により、仮想マシン30の移動(再配置)が必要になったときの仮想マシン30の再配置を行う。この仮想マシン配置実行部102の詳細は後記する。
The virtual machine
仮想マシン構築部103は、仮想マシン30が故障した際に、通信部120経由で物理サーバ20上に現用系の仮想マシン30や予備系の仮想マシン30を再構築する。例えば、仮想マシン構築部103は、現用系の仮想マシン30が故障し、この現用系の仮想マシン30のペアとなる予備系の仮想マシン30が稼動するようになったとき、この稼働するようになった仮想マシン30(元予備系の仮想マシン30)のペアとなる予備系の仮想マシン30を、物理サーバ20上に新たに構築する。
The virtual
仮想マシン実行状態切替部104は、仮想マシン30や物理サーバ20の故障復旧後、通信部120経由で、稼働状態の仮想マシン30(元予備系の仮想マシン30)を待機状態に切り替える。
After the failure recovery of the
<初期配置先選択>
次に、図5を用いて、図4の仮想マシン配置装置10の処理手順を説明する。まず、仮想マシン配置装置10による仮想マシン30の初期配置先の物理サーバ20の選択手順を説明する(適宜、図1参照)。なお、ここでは既に仮想マシン配置装置10の初期配置先選択部101が、現用系の仮想マシン30の初期配置先の物理サーバ20を選択済みであるものとする。
<Initial location selection>
Next, the processing procedure of the virtual
まず、仮想マシン配置装置10は、予備系の仮想マシン30の待機時と稼働時に必要なリソース使用量(待機時必要リソース量および稼働時必要リソース量)の入力を受け付ける(S1)。入力されたリソース使用量は、仮想マシン必要リソース量情報113(表3参照)の予備系の仮想マシン30の待機時必要リソース量および稼働時必要リソース量として書き込まれる。
First, the virtual
次に、初期配置先選択部101は、予備系の仮想マシン30の配置に必要な物理サーバ台数を仮決定する(S2)。すなわち、まず、初期配置先選択部101は、仮想マシン必要リソース量情報113(表3参照)を参照して、配置対象のすべての予備系の仮想マシンの待機時必要リソース量の合計値を計算する。そして、物理サーバリソース上限閾値情報111(表2参照)を参照して、この計算した合計値分の待機時必要リソース量以上のリソース量(上限閾値)を確保するための物理サーバ20の台数を仮決定する。例えば、初期配置先選択部101は、以下の式(1)により、予備系の仮想マシン30の配置に必要な物理サーバ台数を仮決定する。そして、初期配置先選択部101は、仮想マシン配置情報112(表1参照)を参照して、空き物理サーバの中から、仮決定した台数の物理サーバ20群を選択する。この物理サーバ20群を配置先候補の物理サーバ20群とする。
Next, the initial placement
物理サーバ台数=すべての予備系の仮想マシン30の待機時必要リソース量の合計値分のリソース量(上限閾値)を保有する物理サーバ20群の台数×a…式(1)
ただし、aは、正の数とする。
Number of physical servers = the number of
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
なお、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
(2) The total value of the standby necessary resources of the standby
(3) A predetermined number N of standby virtual machines selected in descending order of the amount of resources required during operation among the standby
(4) Of the
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
初期配置先選択部101は、予備系の仮想マシン30の配置先として以上の条件を満たす物理サーバ20を選択することで、システムの可用性を高めつつ、物理サーバ20のリソース使用効率を向上させることができる。
The initial placement
<再構築>
次に、このような仮想マシン配置装置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
図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
S13において、仮想マシン配置装置10の仮想マシン配置実行部102は、仮想マシン配置情報112(表1参照)を参照して、予備系の仮想マシン30の物理サーバ20(予備系の仮想マシン30用の物理サーバ20)でリソース競合が発生しているか否かを判断し、リソース競合が発生していると判断したとき(S13のYes)、S14へ進む。
In S13, the virtual machine
なお、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
S14において、仮想マシン配置実行部102は、仮想マシン配置情報112(表1参照)および仮想マシン必要リソース量情報(表3参照)を参照して、稼動状態となる予備系の仮想マシン30のうち稼動時必要リソース量の大きい順に、予備系の仮想マシン30をリソース競合が発生しなくなるまで、つまり、当該物理サーバ20における使用リソース量が当該物理サーバ20の上限閾値以下となるまで、他の空き物理サーバへ一時的に退避させる。その後、S21へ進む。
In S <b> 14, the virtual machine
一方、S13において、仮想マシン配置実行部102が、当該物理サーバ20でリソース競合は発生していないと判断したとき(S13のNo)、仮想マシン配置実行部102は、稼動状態の予備系の仮想マシン30を現在の物理サーバ20上で稼動させ続ける(S15)。その後、S21へ進む。S21については後記する。
On the other hand, in S13, when the virtual machine
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
一方、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
このように仮想マシン配置装置10は、システムの故障により、予備系の仮想マシン30が現用系の仮想マシン30として稼動するようになったとき、この仮想マシン30(新たな現用系の仮想マシン30)を現用系の仮想マシン30用の物理サーバ20上に配置する。また、この新たな予備系の仮想マシン30のペアとなる予備系の仮想マシン30については、予備系の仮想マシン30用の物理サーバ20上に再構築する。これにより、システムの故障が発生した後も、現用系の仮想マシン30については、現用系の仮想マシン30用の物理サーバ20に集約して配置され、予備系の仮想マシン30については、予備系の仮想マシン30用の物理サーバ20に集約して配置されることになる。
As described above, when the standby
次に、図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
このように、システムの故障が発生した後も、仮想マシン配置装置10は、現用系の仮想マシン30については、現用系の仮想マシン30用の物理サーバ20上に配置し、予備系の仮想マシン30については、予備系の仮想マシン30用の物理サーバ20上に配置するようにするので、システムの可用性を高めることができる。
As described above, even after a system failure occurs, the virtual
なお、図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
このようにすることで、仮想マシン配置装置10は、システムの故障率をもとに予備系の仮想マシン30の配置先の物理サーバ20を選択することになるので、複数の現用系の仮想マシン30の故障により、同じ物理サーバ20上に配置される予備系の仮想マシン30が同時に稼動状態となり、物理サーバ20の負荷が増大してしまうことを抑制できる。
By doing so, the virtual
10 仮想マシン配置装置
20 物理サーバ
21 物理サーバ群
30 仮想マシン
31 記憶装置
40 ネットワーク
50 仮想マシン実行システム
100 処理部
101 初期配置先選択部
102 仮想マシン配置実行部
103 仮想マシン構築部
104 仮想マシン実行状態切替部
110 記憶部
111 物理サーバリソース上限閾値情報
112 仮想マシン配置情報
113 仮想マシン必要リソース量情報
114 故障率情報
120 通信部
DESCRIPTION OF
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
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)
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)
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 |
-
2012
- 2012-10-04 JP JP2012222119A patent/JP5872433B2/en not_active Expired - Fee Related
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 |