JP2013003982A - Load distribution system, load distribution device and server device - Google Patents
Load distribution system, load distribution device and server device Download PDFInfo
- Publication number
- JP2013003982A JP2013003982A JP2011136765A JP2011136765A JP2013003982A JP 2013003982 A JP2013003982 A JP 2013003982A JP 2011136765 A JP2011136765 A JP 2011136765A JP 2011136765 A JP2011136765 A JP 2011136765A JP 2013003982 A JP2013003982 A JP 2013003982A
- Authority
- JP
- Japan
- Prior art keywords
- virtual machine
- physical server
- server
- load
- physical
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Abstract
Description
本発明は、クライアントから要求された処理を物理サーバ上に構築された複数の仮想マシンで分担して行う負荷分散システムに関する。 The present invention relates to a load distribution system in which processing requested from a client is shared by a plurality of virtual machines constructed on a physical server.
近年、1台の物理サーバで複数の仮想的なサーバ(仮想マシン)を運用する仮想化サーバ技術が普及してきている。また、仮想化サーバ技術の普及により、より柔軟なシステム構成を作れるようになった。一つの例として、稼働中のシステムを止めずに短時間で仮想マシンを他の物理サーバへ移動させるライブマイグレーション技術が、メンテナンスや負荷分散のために使われている。例えば、メンテナンス対象の物理サーバ上の仮想マシンをライブマイグレーションによって他の物理サーバに移動させておけば、システムを止めずにハードウェアのメンテナンスが可能となる。また、特許文献1には物理資源に余裕が無い物理サーバで稼動している高負荷な仮想マシンを、物理資源に余裕のある他の物理サーバにライブマイグレーションさせ、所望の性能が得られるよう適切な資源を割り当てる技術が記載されている。この技術により、システム全体としての資源利用の最適化(効率的な資源利用)が実現される。 In recent years, virtualization server technology that operates a plurality of virtual servers (virtual machines) with one physical server has become widespread. Also, with the spread of virtualization server technology, a more flexible system configuration can be created. As an example, live migration technology that moves a virtual machine to another physical server in a short time without stopping the running system is used for maintenance and load distribution. For example, if a virtual machine on a physical server to be maintained is moved to another physical server by live migration, hardware maintenance can be performed without stopping the system. Patent Document 1 describes that a high-load virtual machine running on a physical server with no physical resources can be live-migrated to another physical server with sufficient physical resources to obtain the desired performance. Techniques for allocating resources are described. This technology realizes optimization of resource utilization (efficient resource utilization) for the entire system.
一方、サーバの負荷上昇はクライアントからの膨大な処理リクエストがシステムに入力されて発生することもある。このため、入力された処理リクエストを分散させるための負荷分散装置をシステム内に設置して各サーバの処理負荷を抑える(平均化する)手法も広く知られている。しかし、この手法と特許文献1などで示した手法を単に組み合わせると、高負荷の仮想マシンを他の物理サーバ上に移動させた場合、負荷分散装置は振り分け先の物理サーバ上の仮想マシンが移動したことを認識しないので、仮想マシンの移動が完了した後も引き続きクライアント端末からの処理リクエストを同じ振り分け先(物理サーバ)へ振り分けようとする。すなわち、ライブマイグレーションを実施すると、負荷分散装置による処理リクエストの振り分けが正常に行われなくなるという問題があった。 On the other hand, an increase in server load may occur when an enormous processing request from a client is input to the system. For this reason, there is also widely known a method of setting (loading) the processing load of each server by installing a load distribution device for distributing input processing requests in the system. However, when this method is simply combined with the method described in Patent Document 1, when a high-load virtual machine is moved to another physical server, the load balancer moves the virtual machine on the distribution-destination physical server. Therefore, after the movement of the virtual machine is completed, the processing request from the client terminal is continuously distributed to the same distribution destination (physical server). That is, when live migration is performed, there is a problem that processing requests are not normally distributed by the load balancer.
本発明は、上記に鑑みてなされたものであって、仮想化システムにおける物理サーバの各種状態変化(高負荷、メンテナンス)によって仮想マシンの配置が動的に変化した場合にもクライアントからの処理リクエストを正常に振り分けることが可能な負荷分散システム、負荷分散装置およびサーバ装置を得ることを目的とする。 The present invention has been made in view of the above, and processing requests from clients even when the arrangement of virtual machines dynamically changes due to various state changes (high load, maintenance) of a physical server in a virtualization system. An object of the present invention is to obtain a load distribution system, a load distribution device, and a server device that can normally distribute the server.
上述した課題を解決し、目的を達成するために、本発明は、仮想マシンを動作させることが可能な物理サーバを複数備えるとともに、クライアント端末からの処理リクエストを物理サーバに振り分ける負荷分散装置を備える負荷分散システムであって、前記物理サーバは、自サーバ上で稼動している仮想マシンを他の物理サーバへ移動させる機能を有し、仮想マシンを他の物理サーバへ移動させる場合には移動先の物理サーバの情報を前記負荷分散装置へ送信し、前記負荷分散装置は、前記処理リクエストの振り分け先決定処理で使用する情報が登録されたテーブルを保持し、仮想マシンを稼動させる物理サーバに変更が生じた場合、物理サーバから取得した移動先の物理サーバの情報に基づいて前記テーブルを更新することを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention includes a plurality of physical servers capable of operating a virtual machine and a load balancer that distributes processing requests from client terminals to the physical servers. In the load balancing system, the physical server has a function of moving a virtual machine running on the server to another physical server, and when moving the virtual machine to another physical server, the destination The physical server information is sent to the load balancer, and the load balancer stores a table in which information used in the processing request distribution destination determination process is registered, and changes the physical server to operate the virtual machine If this occurs, the table is updated based on the information of the physical server of the movement destination acquired from the physical server.
本発明によれば、仮想マシンが稼動する物理サーバが動的に変化しても、負荷分散装置は自動的にこの変化に追随しながら振り分け先を変更するため、クライアントからの処理リクエストを正常かつ柔軟に振り分けることができる、という効果を奏する。 According to the present invention, even if the physical server on which the virtual machine operates dynamically changes, the load balancer automatically changes the distribution destination while following this change. There is an effect that it can be distributed flexibly.
以下に、本発明にかかる負荷分散システムの実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 Hereinafter, embodiments of a load distribution system according to the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.
実施の形態1.
(負荷分散システムの全体構成)
まず、負荷分散システムの全体構成について説明する。図1は、本発明にかかる負荷分散システムの構成例を示す図である。図示したように、負荷分散システムは、クライアント端末301からのリクエストを振り分ける負荷分散装置1と、負荷分散装置1により振り分けられたリクエストを処理する物理サーバ11〜15とを備え、負荷分散装置1および各物理サーバはルータ200を介して接続されている。また、負荷分散措置1とクライアント端末301はネットワーク300を介して接続されている。
Embodiment 1 FIG.
(Overall configuration of load balancing system)
First, the overall configuration of the load distribution system will be described. FIG. 1 is a diagram showing a configuration example of a load distribution system according to the present invention. As illustrated, the load distribution system includes a load distribution apparatus 1 that distributes requests from the
(物理サーバの構成)
次に、物理サーバ11〜15の構成について説明する。各物理サーバの基本構成は同一であるため、ここでは、物理サーバ12および14の構成について説明する。図2は、物理サーバの構成例を示す図である。物理サーバ12は、内部で稼動する仮想マシン22と、仮想マシン22の動作を制御する仮想マシン制御部32と、仮想マシン制御部32の動作を管理する管理部72とを備える。また、仮想マシン制御部32は、各仮想マシン22を動作させるのに必要なリソースプール42と、仮想マシン22のリソースを制御するためのリソース制御部52と、リソースの状態変化を定期的に監視するリソース監視部62とにより構成されている。物理サーバ14は、物理サーバ12が備えている仮想マシン制御部32と同様の仮想マシン制御部34、および管理部72と同様の管理部74を備える。物理サーバ14にも仮想マシン22と同様の仮想マシンを構築することが可能であるが、図2では仮想マシンが構築されていない状態の物理サーバ14を示している。
(Physical server configuration)
Next, the configuration of the
また、図2において、物理サーバ12で稼動している仮想マシン22は、管理部72からの指示によって他の物理サーバへ無停止で移動することができる。管理部72からの指示のきっかけとしては、例えば管理者から明示的に他の物理サーバへ移動させる、または物理サーバで稼動している負荷の高い仮想マシンを、負荷の低い物理サーバへ移動させる等があげられる。図2において仮想マシン22を物理サーバ14へ移動させる場合、管理部72は、リソース制御部52に対して、仮想マシン22を物理サーバ14へ移動させるよう通知する。リソース制御部52は、管理部72から通知を受けると、移動先となる物理サーバ14のリソース制御部54に仮想マシン22の移動を通知し、リソースプール42にある仮想マシン22のメモリを物理サーバ14のリソースプール44へコピーしていき、コピーが完了すると物理サーバ12で稼動していた仮想マシン22の動作を停止する。また、物理サーバ14において、仮想マシン22のコピーが完了後、遅延無く仮想マシン22を起動することで、仮想マシン22の移動が完了する。
In FIG. 2, the virtual machine 22 running on the
なお、図2では、説明の簡単化のため、物理サーバ12および14において単一の仮想マシン22のみが稼動している場合の例を示したが、各物理サーバにおいては複数の仮想マシンを稼動させることも可能である。
2 shows an example in which only a single virtual machine 22 is operating on the
(負荷分散装置の構成)
次に、負荷分散装置1の構成について説明する。図3は、負荷分散装置1の構成例を示す図である。負荷分散装置1は、クライアント端末301からネットワーク300経由で受信する処理要求メッセージ(リクエスト)の振り分けを行うパケット振分部101と、処理要求メッセージの振り分けに必要な規則を管理する振り分けテーブル103と、各物理サーバや仮想マシンの状態変化を検出する状態管理部102とを備える。
(Configuration of load balancer)
Next, the configuration of the load distribution apparatus 1 will be described. FIG. 3 is a diagram illustrating a configuration example of the load distribution apparatus 1. The load distribution apparatus 1 includes a
ここで、振り分けテーブル103の詳細について説明する。振り分けテーブル103は、例えば、図4〜図6に示したような複数種類のテーブル、すなわち、振り分け管理テーブル(図4)とサービス振り分けテーブル(図5,図6)とを含んで構成されている。振り分け管理テーブルは、クライアント端末301から受け取った処理要求メッセージの種類とサービス振り分けテーブルの対応関係を示す。なお、同じサービスを要求する処理要求メッセージを同一種類として扱う。サービス振り分けテーブルは、処理要求メッセージの種類ごとに、その処理要求メッセージをどのような配分で、処理可能な複数の物理サーバへ振り分けるかを示す。図5に示したサービス振り分けテーブル103−2は、サービスAを要求する処理要求メッセージを振り分ける際に使用するテーブル、図6に示したサービス振り分けテーブル103−3は、サービスBを要求する処理要求メッセージを振り分ける際に使用するテーブルである。各サービス振り分けテーブルに示した「重み」とは、テーブルに示した各物理サーバに対してどのような配分で処理要求メッセージを振り分けるかを示す情報である。
Here, details of the distribution table 103 will be described. The distribution table 103 includes, for example, a plurality of types of tables as shown in FIGS. 4 to 6, that is, a distribution management table (FIG. 4) and a service distribution table (FIGS. 5 and 6). . The distribution management table indicates the correspondence between the type of processing request message received from the
負荷分散装置1のパケット振分部101は、例えば、サービスAを要求する処理要求メッセージを受信した場合、まず、振り分け管理テーブル103−1(図4)を確認し、受信した処理要求メッセージの振り分け処理でサービス振り分けテーブル103−2(図5)を使用することを把握する。そして、サービス振り分けテーブル103−2および過去に受信した同一メッセージ(サービスAを要求する処理要求メッセージ)の振り分け実績に基づいて、物理サーバ11,12,13に振り分けられた処理要求メッセージの数の比が「1:1:2」となるように、処理要求メッセージを振り分ける。パケット振分部101により振り分けられた処理要求メッセージを受信した物理サーバにおいては、仮想マシンが、受信した処理要求メッセージの内容に応じた処理を実施する。
For example, when receiving a processing request message requesting service A, the
(負荷分散システムの動作説明)
次に、実施の形態1の負荷分散システムにおける特徴的な動作、具体的には、ある物理サーバで稼働中している仮想マシンを他の物理サーバに移動させる場合の動作について、図7を用いて説明する。なお、図7は、実施の形態1の負荷分散システムにおけるマイグレーション制御手順の一例を示す図である。本実施の形態では、物理サーバ12で稼動している仮想マシン22を物理サーバ14に移動させる場合の手順について説明する。
(Explanation of operation of load balancing system)
Next, a characteristic operation in the load distribution system according to the first embodiment, specifically, an operation in the case of moving a virtual machine running on a physical server to another physical server will be described with reference to FIG. I will explain. FIG. 7 is a diagram illustrating an example of a migration control procedure in the load distribution system according to the first embodiment. In the present embodiment, a procedure for moving the virtual machine 22 running on the
本実施の形態の負荷分散システムにおいて、物理サーバ12の管理部72は、仮想マシン22の物理サーバ14への移動指示を外部から受けた場合や、自サーバの処理負荷が高い状態であることを検出し仮想マシン22を物理サーバ14へ移動させることに決定した場合、リソース制御部52に対してマイグレートの実行を指示するとともに、マイグレート先の物理サーバを通知する(ステップS11,S12)。指示を受けたリソース制御部52は、リソース監視部62に対して、マイグレート先の物理サーバが物理サーバ14であることを通知してマイグレート実行を指示する(ステップS13)。指示を受けたリソース監視部62は、負荷分散装置1の状態管理部102に対して、マイグレート先の物理サーバが物理サーバ14であることを通知してマイグレート実行を通知する(ステップS14)。また、リソース制御部52は、上記ステップS13を実行後、仮想マシン22の物理サーバ14への移行動作を実施する(ステップS15)。
In the load distribution system according to the present embodiment, the
状態管理部102は、物理サーバ12で稼働中の仮想マシン22が物理サーバ14に移動すること把握すると、一旦移動元の物理サーバ12と移動先の物理サーバ14を記憶する(ステップS16)。負荷分散装置1は、仮想マシン22の移動が完了するまでは、物理サーバ12への処理要求メッセージ振り分けを継続する。そして、仮想マシン22の物理サーバ12から物理サーバ14への移動が完了すると、物理サーバ12のリソース制御部52はリソース監視部62に対してマイグレートの終了を通知する(ステップS17)。リソース監視部62はマイグレートが終了した旨の通知を受けると、負荷分散装置1の状態管理部102に対してマイグレートの終了を通知する(ステップS18)。状態管理部102は、マイグレートの終了通知を受けると、振り分けテーブル103に含まれているサービス振り分けテーブルのうち、振り分け先として移動元の物理サーバ12が登録されているサービス振り分けテーブルを更新する(ステップS19)。すなわち、振り分け先が「物理サーバ12」となっている部分を移動先(マイグレート先)の物理サーバを示す「物理サーバ14」に更新する。この結果、図5に示したサービス振り分けテーブル103−2は図8に示した内容のものに変更され、以降、クライアント端末301からの処理要求メッセージ(この例ではサービスAを要求する処理要求メッセージ)は、物理サーバ12ではなく物理サーバ14に振り分けられるようになる。
When grasping that the virtual machine 22 running on the
なお、上記のステップS16において、状態管理部102は、振り分け先をマイグレート先の物理サーバに変更したサービス振り分けテーブルを新たに作成しておき、ステップS19では、ステップS16で新たに作成しておいたテーブルとそれまで使用していたテーブルを差し替えるようにしてもよい。これにより、マイグレート終了の通知を受けた後、遅延無くサービス振り分けテーブルを更新することができ、処理要求メッセージをマイグレート先の物理サーバに確実に振り分けることができる。
In step S16, the
また、図7に示した制御手順では、仮想マシンの移行動作(ステップS15)を実行する前にマイグレート先のサーバ情報を負荷分散装置1の状態管理部102へ通知することとしたが、振り分けテーブル103内の各サービス振り分けテーブルに登録されている情報量が少なく、上記ステップS19におけるテーブル更新の所要時間が十分に小さい場合には、マイグレート終了を通知する際にマイグレート先の物理サーバも併せて通知するようにしてもよい。この場合、上記ステップS13〜S16が不要となり処理負荷を低減できる。
In the control procedure shown in FIG. 7, the server information of the migration destination is notified to the
このように、本実施の形態の負荷分散システムでは、仮想マシンをある物理サーバから他の物理サーバへ移動させる場合、移動元の物理サーバが、移動先の物理サーバの情報を負荷分散装置に対して通知し、負荷分散装置は、移動元の物理サーバからの通知内容に従い、サービス振り分けテーブルを更新し、仮想マシンの移動が完了した後には更新後のサービス振り分けテーブルを使用して処理要求メッセージを振り分けることとした。これにより、物理サーバの状態変化(高負荷,メンテナンスなど)によって仮想マシンの配置(仮想マシンが稼動する物理サーバ)が動的に変化しても、負荷分散装置は自動的にこの変化に追随しながら振り分け先を変更するため、クライアントからの処理要求メッセージ(処理リクエスト)を正常かつ柔軟に振り分けることができる。 As described above, in the load balancing system of this embodiment, when a virtual machine is moved from one physical server to another physical server, the source physical server sends the information of the destination physical server to the load balancer. The load balancer updates the service distribution table according to the notification content from the migration source physical server. After the migration of the virtual machine is completed, the load distribution device uses the updated service distribution table to send a processing request message. It was decided to distribute. As a result, even if the virtual machine placement (physical server on which the virtual machine runs) changes dynamically due to changes in the physical server state (high load, maintenance, etc.), the load balancer automatically follows this change. However, since the distribution destination is changed, the processing request message (processing request) from the client can be distributed normally and flexibly.
実施の形態2.
実施の形態2の負荷分散システムについて説明する。なお、システムおよび各装置の構成、負荷分散装置1が保持している各種振り分けテーブルの内容は実施の形態1と同様(図1〜図6参照)であるものとして説明を行う。本実施の形態では、実施の形態1と共通の部分については説明を省略する。
Embodiment 2. FIG.
A load distribution system according to the second embodiment will be described. The configuration of the system and each device, and the contents of various sort tables held by the load distribution device 1 are described as being the same as in the first embodiment (see FIGS. 1 to 6). In the present embodiment, description of portions common to the first embodiment is omitted.
本実施の形態の負荷分散システムにおいては、図9に示した手順でマイグレーション制御を行う。なお、図9において、図7に示したマイグレーション制御手順と同じ処理には同じステップ番号を付している。そのため、図7と同じステップ番号を付した処理については説明を省略する。 In the load distribution system of this embodiment, migration control is performed according to the procedure shown in FIG. In FIG. 9, the same steps as those in the migration control procedure shown in FIG. Therefore, the description of the processing given the same step number as in FIG. 7 is omitted.
本実施の形態のマイグレーション制御において、物理サーバ12のリソース監視部62は、ステップS13でマイグレート先の物理サーバが通知されると、状態管理部102が保持している全てのサービス振り分けテーブルを取得する(ステップS21,S22)。そして、取得したサービス振り分けテーブルをマイグレート先の物理サーバの情報に基づいて更新する。具体的には、取得したサービス振り分けテーブルのうち、振り分け先として自物理サーバ(移動元の物理サーバ12)が登録されているサービス振り分けテーブルについて、振り分け先が「物理サーバ12」となっている部分を、移動先の物理サーバを示す「物理サーバ14」に更新する。
In the migration control of this embodiment, the
その後、ステップS17でマイグレートの終了通知を受けると、上記更新後のサービス振り分けテーブルをマイグレート後の振り分けテーブルとして状態管理部102へ送信し(ステップS23)。
Thereafter, upon receiving a migration end notification in step S17, the updated service distribution table is transmitted to the
ステップS23で送信されたテーブルを受信した状態管理部102は、受信したテーブルを振り分けテーブル103に上書きして振り分けテーブル103(より詳細にはサービス振り分けテーブル103−2)を更新する(ステップS24)。
The
このように、本実施の形態の負荷分散システムでは、仮想マシンをある物理サーバから他の物理サーバへ移動させる場合、移動元の物理サーバは、負荷分散装置が保持しているサービス振り分けテーブルを取得し、取得したテーブルを移動先の物理サーバの情報に基づいて更新し、仮想マシンの移動が完了した後に、更新後のテーブルを分散負荷装置へ送信し、この更新後のテーブルを使用して処理要求メッセージを振り分けさせることとした。これにより、実施の形態1と同様に、物理サーバの状態変化によって仮想マシンの配置が動的に変化しても、負荷分散装置は自動的にこの変化に追随しながら振り分け先を変更するため、クライアントからの処理要求メッセージを正常かつ柔軟に振り分けることができる。 As described above, in the load balancing system of this embodiment, when a virtual machine is moved from one physical server to another physical server, the source physical server acquires the service distribution table held by the load balancer. The updated table is updated based on the information of the physical server that is the migration destination, and after the migration of the virtual machine is completed, the updated table is sent to the distributed load device and processed using this updated table. Request messages are distributed. Thus, as in the first embodiment, even if the placement of the virtual machine dynamically changes due to a change in the state of the physical server, the load balancer automatically changes the distribution destination while following this change. Processing request messages from clients can be distributed normally and flexibly.
実施の形態3.
実施の形態3の負荷分散システムについて説明する。なお、システムおよび各装置の構成、負荷分散装置1が保持している各種振り分けテーブルの内容は実施の形態1,2と同様(図1〜図6参照)であるものとして説明を行う。本実施の形態では、実施の形態1,2と共通の部分については説明を省略する。
Embodiment 3 FIG.
A load distribution system according to the third embodiment will be described. The configuration of the system and each device, and the contents of various sort tables held by the load distribution device 1 are described as being the same as in the first and second embodiments (see FIGS. 1 to 6). In the present embodiment, description of portions common to the first and second embodiments is omitted.
本実施の形態では、移動元の物理サーバが負荷分散装置1に対して仮想マシン移行を直接通知できない場合の仮想マシン移行動作について説明する。 In the present embodiment, a virtual machine migration operation when the migration source physical server cannot directly notify the load balancing apparatus 1 of virtual machine migration will be described.
図10は、実施の形態3の負荷分散システムにおいて仮想マシンを物理サーバ間で移動させる動作の一例を示す図である。図10では、フェイルオーバにより仮想マシンを移動させる場合の制御手順を示している。 FIG. 10 is a diagram illustrating an example of an operation of moving a virtual machine between physical servers in the load distribution system according to the third embodiment. FIG. 10 shows a control procedure for moving a virtual machine by failover.
仮想マシン22が稼働中の物理サーバ12(移動元の物理サーバ)において、障害や明示的なサービス停止などが発生した場合、リソース監視部62はこの状態変化を検出し、移行先の物理サーバ14に対して、フェイルオーバ発生メッセージ81(稼動していた仮想マシンを他の物理サーバへ移動させるためのメッセージ)を通知する(ステップS31,S32)。
When a failure or an explicit service stop occurs in the physical server 12 (migration source physical server) in which the virtual machine 22 is operating, the
図11は、フェイルオーバメッセージの構成例を示す図であり、図示したように、フェイルオーバ発生メッセージ81には、「送信元」,「発生元」,「停止するサービス」,「停止する仮想マシン」の情報が含まれる。「送信元」はメッセージ送信元の物理サーバを示す。「発生元」は、障害など、フェイルオーバ発生メッセージ81を送信する要因となる現象が発生した物理サーバを示す。「停止するサービス」は、「発生元」の物理サーバで停止するサービスを示す。「停止する仮想マシン」は、「発生元」の物理サーバ上で動作していた仮想マシンのうち、動作を停止する仮想マシンを示す。 FIG. 11 is a diagram showing a configuration example of the failover message. As shown in the figure, the failover occurrence message 81 includes “source”, “source”, “service to be stopped”, and “virtual machine to be stopped”. Contains information. “Sender” indicates the physical server of the message sender. “Occurrence source” indicates a physical server in which a phenomenon that causes a failover occurrence message 81 such as a failure has occurred. The “service to be stopped” indicates a service to be stopped on the “source” physical server. The “virtual machine to be stopped” indicates a virtual machine whose operation is to be stopped among the virtual machines that have been operating on the “source” physical server.
上記ステップS32でリソース監視部62が送信するフェイルオーバメッセージにおいて、送信元および発生元には物理サーバ12の情報が設定され、停止するサービスには物理サーバ12で停止するサービス名またはポート番号の情報が設定される。また、停止する仮想マシンには仮想マシン12の情報が設定される。なお、リソース監視部62は、仮想マシンで障害が発生した場合には、この仮想マシンで処理していた全てのサービス名(またはポート番号)を「停止するサービス」に設定する。仮想マシンで処理していた一部のサービスを停止する場合は、停止するサービス名(またはポート番号)を「停止サービス」に設定する。
In the failover message transmitted by the
物理サーバ14のリソース監視部64は、上記ステップS32で送信されたフェイルオーバ発生メッセージ81を受信すると、「停止する仮想マシン」を確認し、停止する仮想マシンが仮想マシン22であることを把握する。そして、仮想マシン22を起動するよう、リソース制御部54に通知する。その後、リソース制御部54によって仮想マシン22が起動されると(ステップS33)、リソース監視部64は、ステップS32で受信したフェイルオーバ発生メッセージ81の「送信元」を自物理サーバ(物理サーバ14)の情報に書き換えた上、負荷分散装置1の状態管理部102へ送信する(ステップS34)。
When the
状態管理部102は、リソース監視部64からフェイルオーバ発生メッセージ81を受信すると、図12に示す手順で振り分けテーブル103内のサービス振り分けテーブル(図5,図6など参照)を更新する(ステップS35)。
When the
ステップS35におけるサービス振り分けテーブル更新動作について、図12を用いて説明する。 The service distribution table update operation in step S35 will be described with reference to FIG.
フェイルオーバ発生メッセージ81を受信した場合、状態管理部102は、まず、受信したフェイルオーバ発生メッセージ81の内容に基づいて、振り分けテーブル103において更新の必要なサービス振り分けテーブルを特定する(ステップS41)。具体的には、「停止サービス」が示すサービスに対応するサービス振り分けテーブルを更新の必要なものと把握する。次に、特定したサービス振り分けテーブルの「振り分け先」に障害が発生した物理サーバがあるかどうか、すなわち、「発生元」が示す物理サーバがサービス振り分けテーブルの「振り分け先」に登録されているかどうかを確認する(ステップS42)。そして、「発生元」が示す物理サーバがサービス振り分けテーブルの「振り分け先」に登録されている場合(ステップS43:Yes)、「振り分け先」をフェイルオーバ先の物理サーバ、すなわち、フェイルオーバ発生メッセージ81の「送信元」が示す物理サーバに変更する(ステップS44)。本実施の形態では、上記ステップS41で特定した振り分けテーブルの「振り分け先」が「物理サーバ12」となっている部分を「物理サーバ14」に変更する。
When the failover occurrence message 81 is received, the
この結果、図5に示したサービス振り分けテーブル103−2は図8に示した内容のものに変更され、以降、クライアント端末301からの処理要求メッセージ(サービスAを要求する処理要求メッセージ)は、物理サーバ12ではなく物理サーバ14に振り分けられるようになる。
As a result, the service distribution table 103-2 shown in FIG. 5 is changed to the content shown in FIG. 8, and the processing request message (processing request message requesting the service A) from the
このように、本実施の形態の負荷分散システムにおいて、物理サーバに障害が発生した場合やサービス提供が停止された場合、それを検出したリソース監視部は、フェイルオーバ発生メッセージを他の物理サーバ(リソース監視部)へ送信し、フェイルオーバ発生メッセージを受信した他のサーバでは、メッセージ送信元の物理サーバで稼動していた仮想マシンを起動するとともに、フェイルオーバ発生メッセージを負荷分散装置に転送することとした。また、転送されたフェイルオーバ発生メッセージを受信した負荷分散装置は、メッセージの内容に基づいて、保持しているサービス振り分けテーブルを更新することとした。これにより、実施の形態1や2と同様に、物理サーバの状態変化によって仮想マシンの配置が動的に変化しても、負荷分散装置は自動的にこの変化に追随しながら振り分け先を変更するため、クライアントからの処理要求メッセージを正常かつ柔軟に振り分けることができる。 As described above, in the load balancing system according to the present embodiment, when a failure occurs in a physical server or when service provision is stopped, the resource monitoring unit that detects the failure sends a failover occurrence message to another physical server (resource The other server that has transmitted the failover occurrence message to the monitoring unit and started the virtual machine that was running on the physical server that sent the message, and forwarded the failover occurrence message to the load balancer. Further, the load balancer that has received the transferred failover occurrence message updates the service distribution table that is held based on the content of the message. As a result, as in the first and second embodiments, even if the placement of the virtual machine changes dynamically due to a change in the state of the physical server, the load balancer automatically changes the distribution destination while following this change. Therefore, processing request messages from clients can be distributed normally and flexibly.
以上のように、本発明にかかる負荷分散システムは、物理サーバ上に構築された複数の仮想マシンを使用し、クライアントからの要求に応じた処理を分散して行う場合に有用である。 As described above, the load distribution system according to the present invention is useful when a plurality of virtual machines constructed on a physical server are used and processing according to requests from clients is distributed.
1 負荷分散装置
11,12,13,14,15 物理サーバ
22 仮想マシン
32,34 仮想マシン制御部
42,44 リソースプール
52,54 リソース制御部
62,64 リソース監視部
72,74 管理部
81 フェイルオーバ発生メッセージ
101 パケット振分部
102 状態管理部
103 振り分けテーブル
103−1 振り分け管理テーブル
103−2,103−3 サービス振り分けテーブル
200 ルータ
300 ネットワーク
301 クライアント端末
1
Claims (5)
前記物理サーバは、自サーバ上で稼動している仮想マシンを他の物理サーバへ移動させる機能を有し、仮想マシンを他の物理サーバへ移動させる場合には移動先の物理サーバの情報を前記負荷分散装置へ送信し、
前記負荷分散装置は、前記処理リクエストの振り分け先決定処理で使用する情報が登録されたテーブルを保持し、仮想マシンを稼動させる物理サーバに変更が生じた場合、物理サーバから取得した移動先の物理サーバの情報に基づいて前記テーブルを更新する
ことを特徴とする負荷分散システム。 A load distribution system including a plurality of physical servers capable of operating a virtual machine and a load distribution device that distributes processing requests from client terminals to physical servers,
The physical server has a function of moving a virtual machine running on its own server to another physical server. When moving a virtual machine to another physical server, information on the destination physical server is stored in the physical server. Sent to the load balancer,
The load balancer holds a table in which information used in the processing request distribution destination determination process is registered, and when a change occurs in a physical server that operates a virtual machine, A load balancing system, wherein the table is updated based on server information.
前記負荷分散装置は、前記処理リクエストの振り分け先決定処理で使用する情報が登録されたテーブルを保持し、
前記物理サーバは、自サーバ上で稼動している仮想マシンを他の物理サーバへ移動させる機能を有し、仮想マシンを他の物理サーバへ移動させる場合、前記負荷分散装置から前記テーブルを取得し、さらに、当該テーブルを前記他の物理サーバの情報に基づいて更新し、当該更新後のテーブルを前記負荷分散装置へ送信するとともに、当該更新後のテーブルを使用して前記処理リクエストの振り分け先を決定するよう指示する
ことを特徴とする負荷分散システム。 A load distribution system including a plurality of physical servers capable of operating a virtual machine and a load distribution device that distributes processing requests from client terminals to physical servers,
The load balancer holds a table in which information used in the processing request distribution destination determination process is registered,
The physical server has a function of moving a virtual machine running on its own server to another physical server. When moving a virtual machine to another physical server, the physical server acquires the table from the load balancer. Further, the table is updated based on the information of the other physical server, the updated table is transmitted to the load balancer, and the distribution destination of the processing request is determined using the updated table. A load balancing system characterized by instructing to make a decision.
前記負荷分散装置は、前記メッセージを受信した場合、当該メッセージに含まれる情報に基づいて前記テーブルを更新する
ことを特徴とする請求項1または2に記載の負荷分散システム。 If the physical server migrates a virtual machine that was running on another physical server to its own server due to a failover, the information about services provided by the virtual machine, information about the local server, and migration of the virtual machine Send a message containing the information of the original physical server to the load balancer,
The load distribution system according to claim 1, wherein, when the message is received, the load distribution device updates the table based on information included in the message.
前記処理リクエストの振り分け先決定処理で使用する情報が登録されたテーブルを保持し、仮想マシンを稼動させる物理サーバに変更が生じた場合、変更内容に関する情報を、変更前に仮想マシンを稼動させていた物理サーバから取得し、さらに、当該取得した情報に基づいて前記テーブルを更新する
ことを特徴とする負荷分散装置。 A load balancer that can operate a virtual machine and can move a virtual machine on its own device to another device, and distributes processing requests from client terminals to the physical server The load distribution apparatus of a load distribution system comprising:
If there is a change in the physical server that operates the virtual machine, the table that contains the information used in the processing request distribution destination determination process is retained, and the virtual machine is operated before the change. A load balancer that is obtained from a physical server and further updates the table based on the obtained information.
仮想マシンを他のサーバ装置へ移動させる場合、前記負荷分散装置から前記テーブルを取得し、さらに、当該テーブルを前記他のサーバ装置の情報に基づいて更新し、当該更新後のテーブルを前記負荷分散装置へ送信するとともに、当該更新後のテーブルを使用して前記処理リクエストの振り分け先を決定するよう指示する
ことを特徴とするサーバ装置。 A plurality of server devices capable of operating a virtual machine and a load distribution device that distributes a processing request from a client terminal to the server device, the server device being a virtual machine running on its own device A server device having a function of moving to a server device, wherein the load distribution device is a server device of a load distribution system holding a table in which information used in the processing request distribution destination determination process is registered,
When moving a virtual machine to another server device, the table is acquired from the load balancer, and the table is updated based on the information of the other server device, and the updated table is the load balancer. A server apparatus characterized by transmitting to the apparatus and instructing to determine a distribution destination of the processing request using the updated table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011136765A JP2013003982A (en) | 2011-06-20 | 2011-06-20 | Load distribution system, load distribution device and server device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011136765A JP2013003982A (en) | 2011-06-20 | 2011-06-20 | Load distribution system, load distribution device and server device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013003982A true JP2013003982A (en) | 2013-01-07 |
Family
ID=47672465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011136765A Withdrawn JP2013003982A (en) | 2011-06-20 | 2011-06-20 | Load distribution system, load distribution device and server device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013003982A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015095710A (en) * | 2013-11-11 | 2015-05-18 | 株式会社Nttドコモ | Base station device and decoding method |
US9633040B2 (en) | 2014-02-04 | 2017-04-25 | Samsung Electronics Co., Ltd. | Distributed processing system including a name node and a plurality of data nodes, and method of operating the same |
-
2011
- 2011-06-20 JP JP2011136765A patent/JP2013003982A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015095710A (en) * | 2013-11-11 | 2015-05-18 | 株式会社Nttドコモ | Base station device and decoding method |
US9633040B2 (en) | 2014-02-04 | 2017-04-25 | Samsung Electronics Co., Ltd. | Distributed processing system including a name node and a plurality of data nodes, and method of operating the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10171567B2 (en) | Load balancing computer device, system, and method | |
JP6487401B2 (en) | System and method for active-passive routing and control of traffic in a traffic director environment | |
US11388123B2 (en) | Method and system for providing resiliency in interaction servicing across data centers | |
US10129152B2 (en) | Setting method, server device and service chain system | |
US11477160B2 (en) | Systems and methods to operate devices with domain name system (DNS) caches | |
US20240048484A1 (en) | Route updating method and user cluster | |
He et al. | How flexible is dynamic SDN control plane? | |
US9760370B2 (en) | Load balancing using predictable state partitioning | |
Lee et al. | High-performance software load balancer for cloud-native architecture | |
CN113709220B (en) | High-availability implementation method and system of virtual load equalizer and electronic equipment | |
JP2013003982A (en) | Load distribution system, load distribution device and server device | |
WO2023207189A1 (en) | Load balancing method and system, computer storage medium, and electronic device | |
KR20160025926A (en) | Apparatus and method for balancing load to virtual application server | |
CN112217735A (en) | Information synchronization method and load balancing system | |
US10791088B1 (en) | Methods for disaggregating subscribers via DHCP address translation and devices thereof | |
US11153195B1 (en) | Packet processing service configuration change propagation management | |
US11272014B2 (en) | Systems and methods for reducing connection setup latency | |
JP6572184B2 (en) | Packet transfer system and packet transfer method | |
US9019964B2 (en) | Methods and systems for routing application traffic | |
US11960407B1 (en) | Cache purging in a distributed networked system | |
WO2020063251A1 (en) | Communication method and related device | |
CN109731345B (en) | Voice processing method and device, electronic equipment and storage medium | |
US11044174B2 (en) | Systems and methods for disabling services in a cluster | |
WO2022161501A1 (en) | Method for processing multiple data flows, and related system | |
JP5872669B2 (en) | Server device group and network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20140902 |