JP2001167074A - Load balancing processor - Google Patents
Load balancing processorInfo
- Publication number
- JP2001167074A JP2001167074A JP35203999A JP35203999A JP2001167074A JP 2001167074 A JP2001167074 A JP 2001167074A JP 35203999 A JP35203999 A JP 35203999A JP 35203999 A JP35203999 A JP 35203999A JP 2001167074 A JP2001167074 A JP 2001167074A
- Authority
- JP
- Japan
- Prior art keywords
- server
- load
- client
- information
- servers
- 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.)
- Pending
Links
Landscapes
- Multi Processors (AREA)
- Computer And Data Communications (AREA)
Abstract
(57)【要約】
【課題】サーバ間に生じる負荷の偏在あるいは過負荷を
未然に防止することにより、システム全体のスループッ
トおよび処理能力を向上する。
【解決手段】複数のクライアント1a、1bおよび複数
のサーバ2a、2bをネットワークを介して接続し、複
数のクライアントからの処理要求を複数のサーバで分散
処理するクライアント/サーバシステムにおける負荷分
散処理装置において、前記サーバはサーバ毎の負荷が略
同一である場合に負荷割当先を決定するための優先サー
バ割り当て情報を有し、前記クライアントは前記優先サ
ーバ割り当て情報に基づき接続先サーバを決定する。
(57) [Problem] To improve the throughput and processing capacity of the entire system by preventing uneven distribution or overload of a load generated between servers. A load distribution processing device in a client / server system in which a plurality of clients (1a, 1b) and a plurality of servers (2a, 2b) are connected via a network and processing requests from the plurality of clients are distributed among the plurality of servers. The server has priority server assignment information for determining a load assignment destination when the load of each server is substantially the same, and the client determines a connection destination server based on the priority server assignment information.
Description
【0001】[0001]
【発明の属する技術分野】本発明は負荷分散処理層値に
かかり、特に複数のクライアントからの処理要求を複数
のサーバ間で均等に分散処理する負荷分散処理装置に関
する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a load distribution processing layer value, and more particularly, to a load distribution processing apparatus which distributes processing requests from a plurality of clients equally among a plurality of servers.
【0002】[0002]
【従来の技術】多数のクライアントからの処理要求が同
時に発生すると、この処理を受け持つ通信サーバは過負
荷状態になるおそれがあり、この状態を未然に防止する
ことが重要である。特開平9−号106381公報に
は、サーバが負担している負荷が異なる場合において、
クライアントからの通信先をサーバが負担している負荷
に応じて振り分けることにより、サーバ間で負荷分散を
行うことが示されている。2. Description of the Related Art When processing requests from a large number of clients occur at the same time, there is a risk that a communication server responsible for this processing will be overloaded, and it is important to prevent this state beforehand. Japanese Unexamined Patent Publication No. Hei 9-106381 discloses that when the load on the server is different,
It shows that load distribution is performed between servers by allocating communication destinations from clients according to the load borne by the servers.
【0003】一方、サーバの負担する負荷が同一の場合
においては、クライアント側ではラウンドロビン方式ま
たはランダムに通信先のサーバに負荷を振り分けてお
り、サーバ間に均等に負荷を振り分ける配慮はなされて
いない。On the other hand, when the load imposed on the server is the same, the load is distributed to the server of the communication destination on the client side in a round robin manner or randomly, and no consideration is given to equally distributing the load among the servers. .
【0004】[0004]
【発明が解決しようとする課題】前記特開平9−106
381号公報に示される技術では、複数のクライアント
からサーバに対して同時に処理要求が発生する場合にお
いて、複数のサーバ間の負荷が同一の場合、あるいはク
ライアントの業務開始直後の場合には、クライアントは
通信先のサーバの選択をラウンドロビン方式あるいはラ
ンダムに行う。このため、負荷がある特定のサーバに偏
在することになり、サーバに対する要求を効率的に振り
分けることはできない。また、サーバ間で負荷が偏在す
ると、負荷分散のための通信処理およびCPU処理が増
加する。また、サーバ間の負荷情報は定期的に更新する
ことが必要であるが、更新期間が長すぎると、適切な負
荷分散が行われない状態が続くことになる。本発明は、
上記のような問題点を解決するもので、サーバ間の負荷
の偏在を未然に防止し、システム全体のスループットお
よび処理能力を向上する。SUMMARY OF THE INVENTION The above-mentioned Japanese Patent Application Laid-Open No. 9-106.
According to the technology disclosed in Japanese Patent Publication No. 381, when a processing request is issued from a plurality of clients to a server at the same time, if the load between the plurality of servers is the same, or if the client has just started a job, the client The server of the communication destination is selected in a round robin manner or randomly. For this reason, the load is unevenly distributed to a specific server, and the request to the server cannot be efficiently distributed. Further, if the load is unevenly distributed among the servers, communication processing and CPU processing for load distribution increase. Also, the load information between the servers needs to be updated periodically, but if the update period is too long, a state where appropriate load distribution is not performed continues. The present invention
An object of the present invention is to solve the above-described problems, thereby preventing uneven distribution of loads among servers, and improving the throughput and processing capacity of the entire system.
【0005】[0005]
【課題を解決するための手段】本発明は、上記の課題を
解決するために次のような手段を採用した。The present invention employs the following means in order to solve the above-mentioned problems.
【0006】複数のクライアントおよび複数のサーバを
ネットワークを介して接続し、複数のクライアントから
の処理要求を複数のサーバで分散処理するクライアント
/サーバシステムにおける負荷分散処理装置において、
前記サーバはサーバ毎の負荷が略同一である場合に負荷
割当先を決定するための優先サーバ割り当て情報を有
し、前記クライアントは前記優先サーバ割り当て情報に
基づき接続先サーバを決定することを特徴とする。[0006] In a load distribution processing apparatus in a client / server system in which a plurality of clients and a plurality of servers are connected via a network and processing requests from the plurality of clients are distributed and processed by the plurality of servers,
The server has priority server allocation information for determining a load allocation destination when the load of each server is substantially the same, and the client determines a connection destination server based on the priority server allocation information. I do.
【0007】また、複数のクライアントおよび複数のサ
ーバをネットワークを介して接続し、複数のクライアン
トからの処理要求を複数のサーバで分散処理する負荷制
御部を備えたクライアント/サーバシステムにおける負
荷分散処理装置において、前記負荷制御部は負荷情報蓄
積部を備え、該負荷情報蓄積部は各サーバの負荷レベル
情報および各クライアントに対して略均等に割り当てた
優先サーバ割り当て状態情報を蓄積し、前記負荷制御部
は前記負荷レベル情報および優先サーバ割り当て状態情
報に基づきサーバへの処理要求を割り当てることを特徴
とする。Further, a load distribution processing device in a client / server system having a load control unit for connecting a plurality of clients and a plurality of servers via a network and distributing processing requests from the plurality of clients to the plurality of servers. , The load control unit includes a load information storage unit, and the load information storage unit stores load level information of each server and priority server allocation state information substantially equally allocated to each client; Assigns a processing request to a server based on the load level information and the priority server allocation state information.
【0008】また、複数のクライアントおよび複数のサ
ーバをネットワークを介して接続し、複数のクライアン
トからの処理要求を複数のサーバで分散処理する負荷制
御部を備えたクライアント/サーバシステムにおける負
荷分散処理装置において、前記クライアントの負荷制御
部は負荷情報蓄積部を備え、該負荷情報蓄積部は各サー
バの負荷レベル情報および各クライアントに対して略均
等に割り当てた優先サーバ割り当て状態情報を前記サー
バの負荷情報蓄積部から取得し、前記クライアントの負
荷制御部は前記負荷レベル情報および優先サーバ割り当
て状態情報に基づきサーバへの処理要求を割り当てるこ
とを特徴とする。Further, a load distribution processing apparatus in a client / server system having a load control unit for connecting a plurality of clients and a plurality of servers via a network and distributing processing requests from the plurality of clients among the plurality of servers. , The load control unit of the client includes a load information storage unit, and the load information storage unit stores load level information of each server and priority server allocation state information that is almost equally allocated to each client. Acquired from a storage unit, the load control unit of the client allocates a processing request to a server based on the load level information and the priority server allocation state information.
【0009】[0009]
【発明の実施の形態】以下に本発明の実施形態を図1な
いし図9を用いて説明する。図1は本発明の実施形態に
かかるクライアント/サーバシステムを示す図である。
図において、1はクライアント、2はサーバ、3は複数
のクライアント1と複数のサーバ2を接続するネットワ
ークである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 is a diagram showing a client / server system according to an embodiment of the present invention.
In the figure, 1 is a client, 2 is a server, and 3 is a network connecting a plurality of clients 1 and a plurality of servers 2.
【0010】図2は本発明の実施形態にかかるクライア
ント/サーバシステムの詳細を示す図である。図におい
て1a、1bはクライアント、2a、2bはサーバであ
る。なお、本実施形態において、クライアント1bおよ
びサーバ2bは、それぞれクライアント1aおよびサー
バ2aと同じ機能を備え、その作用も同一または対称的
であるから、以後クライアント1aおよびサーバ2aで
代表して説明する。FIG. 2 is a diagram showing details of the client / server system according to the embodiment of the present invention. In the figure, 1a and 1b are clients, and 2a and 2b are servers. In the present embodiment, the client 1b and the server 2b have the same functions as the client 1a and the server 2a, respectively, and their functions are the same or symmetrical.
【0011】11aはサーバ2aとの通信を行う通信制
御部、12aはユーザ処理を行うアプリケーションプロ
グラム部、13aはサーバの負荷情報を格納する負荷情
報領域、14aは後述するサーバの負荷情報領域18a
を参照して、前記負荷情報領域13aの格納領域に格納
したサーバの負荷情報を更新あるいは参照する手段、お
よび負荷情報を参照して通信先サーバを選択する手段を
備えた負荷制御部である。Reference numeral 11a denotes a communication control unit for communicating with the server 2a; 12a, an application program unit for performing user processing; 13a, a load information area for storing server load information; 14a, a server load information area 18a to be described later;
, A means for updating or referring to the load information of the server stored in the storage area of the load information area 13a, and a means for selecting a communication destination server by referring to the load information.
【0012】15aはクライアント1aとの通信を行う
通信制御部、16aはサーバ処理を行うアプリケーショ
ンプログラム部、17aは負荷領域に格納したサーバの
負荷情報を一定間隔で他サーバに対して通知する通信手
段、およびサーバの負荷変更時に負荷分散の対象となる
他サーバに負荷情報を通知する通信手段を備えた負荷制
御部、18aはサーバの負荷情報を格納する負荷情報領
域である。Reference numeral 15a denotes a communication control unit for communicating with the client 1a; 16a, an application program unit for performing server processing; 17a, a communication means for notifying another server of load information of the server stored in the load area at regular intervals. , And a load control unit including communication means for notifying the load information to another server to be load-balanced when the load of the server is changed, and a load information area 18a for storing the load information of the server.
【0013】図3はサーバ2aに搭載した負荷制御部1
7aの動作フローを示す図である。まず、ステップ30
において、サーバ上のオンラインプログラムが開始され
ると、ステップ31において、オンラインプログラムが
開始したことを他のサーバに通知するとともに他のサー
バの動作情報および負荷情報を取得する。ステップ32
において、取得した他サーバの動作情報および負荷情報
をもとに自サーバ内の負荷情報領域に格納した負荷情報
を更新する。ステップ33において、一定時間が経過し
たか否かを判定する。一定時間が経過したならばステッ
プ34に進み、他サーバから負荷情報を取得して自サー
バ内の負荷情報領域に格納した負荷情報を更新する。ス
テップ35において、サーバ上のオンラインプログラム
の終了を判定する。オンラインプログラムの終了であれ
ば、ステップ36に進み、そうでなければステップ33
に進む。ステップ36において、他のサーバに対して自
サーバのプログラム終了の通知を行い、また、他サーバ
上の負荷情報を更新して処理を終了する。FIG. 3 shows a load control unit 1 mounted on the server 2a.
It is a figure showing the operation flow of 7a. First, step 30
In step 31, when the online program on the server is started, in step 31, the start of the online program is notified to another server, and the operation information and load information of the other server are acquired. Step 32
, The load information stored in the load information area of the own server is updated based on the acquired operation information and load information of the other server. In step 33, it is determined whether a predetermined time has elapsed. If the predetermined time has elapsed, the process proceeds to step 34, where the load information is acquired from another server, and the load information stored in the load information area in the own server is updated. In step 35, the end of the online program on the server is determined. If the online program ends, the process proceeds to step 36; otherwise, the process proceeds to step 33.
Proceed to. In step 36, the other server is notified of the end of the program of its own server, the load information on the other server is updated, and the process ends.
【0014】次に図4および図5を参照して、クライア
ントからサーバに対して要求電文が発生したときのサー
バの処理を説明する。図4は、クライアントからサーバ
に対して要求電文が発生したときのサーバの処理フロー
を示す図、図5はサーバの負荷情報領域に格納した負荷
情報を示す図である。図において、D61はアプリケー
ション名、D62は分散サーバ名、D63は負荷レベ
ル、D64は優先サーバ割り当て状態を示す。このよう
に、図2に示すサーバ2aの負荷情報領域18aには、
アプリケーションプログラム(AP1、AP2)毎に、
負荷を分散して稼働しているサーバ(サーバ1、サーバ
2)、各サーバ毎の負荷レベル(F1、F2)およびア
プリケーションプログラムの現在の優先サーバ割り当て
状態が格納されている。Next, with reference to FIG. 4 and FIG. 5, processing of the server when a request message is generated from the client to the server will be described. FIG. 4 is a diagram showing a processing flow of the server when a request message is generated from the client to the server, and FIG. 5 is a diagram showing load information stored in a load information area of the server. In the figure, D61 indicates an application name, D62 indicates a distributed server name, D63 indicates a load level, and D64 indicates a priority server assignment state. Thus, the load information area 18a of the server 2a shown in FIG.
For each application program (AP1, AP2)
The server (server 1 and server 2) operating with the load distributed, the load level (F1, F2) of each server, and the current priority server allocation state of the application program are stored.
【0015】まず、ステップ40において、サーバ2a
はクライアント1aが発信した電文を読み込む。ステッ
プ41において、クライアント1aが、サーバ毎の負荷
が同一である場合に優先して通信すべき通信先サーバを
示すサーバ優先サーバ割り当て状態情報を取得すること
を要求しているか否かを判定し、取得要求がある場合に
はステップ42に進み、そうでない場合にはステップ4
5に進む。ステップ42において、負荷制御部17aは
負荷情報領域18aからサーバ毎の負荷が同一である場
合に優先して通信すべき通信先サーバを示すサーバ情
報、すなわち優先サーバ割り当て状態情報を読み込み、
クライアントへの応答電文に付加する。ステップ43に
おいて、優先サーバ情報を更新して負荷情報領域18a
に書き込む。ステップ45において、前記電文を読み込
み、サーバ毎で負荷分散を行うための負荷情報取得要求
があるか否かを判定し、負荷情報取得要求がある場合に
はステップ46に進み、そうでない場合にはステップ4
8に進む。ステップ46において、負荷制御部17aは
負荷情報領域18aから負荷情報を読み込み、クライア
ントへの応答電文に付加する。ステップ48において、
クライアント1aが、サーバ2aのアプリケーションプ
ログラム部16aに対して処理を要求している場合に
は、クライアントからの電文をアプリケーションプログ
ラムに渡して処理を行った後、前記優先サーバ割り当て
状態情報および負荷情報とともに応答電文をクライアン
ト1aに送信する。First, in step 40, the server 2a
Reads a message transmitted by the client 1a. In step 41, it is determined whether or not the client 1a has requested to acquire server priority server assignment state information indicating a communication destination server to be preferentially communicated when the load of each server is the same, If there is an acquisition request, proceed to step 42; otherwise, proceed to step 4
Go to 5. In step 42, the load control unit 17a reads, from the load information area 18a, server information indicating a communication destination server to be preferentially communicated when the load of each server is the same, that is, priority server assignment state information,
Add to the response message to the client. In step 43, the priority server information is updated and the load information area 18a is updated.
Write to. In step 45, the message is read, and it is determined whether there is a load information acquisition request for performing load distribution for each server. If there is a load information acquisition request, the process proceeds to step 46; Step 4
Proceed to 8. In step 46, the load control unit 17a reads the load information from the load information area 18a and adds it to the response message to the client. In step 48,
When the client 1a requests processing to the application program unit 16a of the server 2a, the client 1a passes the message from the client to the application program to perform the processing, and then, together with the priority server allocation state information and the load information, The response message is transmitted to the client 1a.
【0016】このように、負荷分散制御部17aはアプ
リケーションプログラム毎の負荷レベル情報に基づき負
荷分散処理を行うことができる。また、アプリケーショ
ンプログラム毎ではなくて、サーバ毎の負荷レベル情報
に基づいて負荷分散処理を行うことができる。また、両
者の情報に基づいて負荷分散処理を行うことができる。As described above, the load distribution control unit 17a can perform the load distribution processing based on the load level information for each application program. In addition, load distribution processing can be performed based on load level information for each server, not for each application program. In addition, load distribution processing can be performed based on both pieces of information.
【0017】図6は、図4のステップ43の処理(優先
サーバ情報更新処理)の詳細を示す図である。まず、ス
テップ81において、クライアントから処理要求があっ
た場合、その要求が同一のクライアントからの第1回目
の要求であるか否かを判定する。同一のクライアントで
あるか否かはIPアドレス等で判断することができる。
要求が同一のクライアントからの第1回目の要求である
場合にはステップ82に進み、そうでない場合には優先
サーバ割り当て状態情報を更新することなく処理を終了
する。ステップ82において、自機は負荷分散するサー
バの最後のサーバであるか否かを判断し、最後のサーバ
であると判断した場合にはステップ83に進み、そうで
ない場合にはステップ84に進む。最後のサーバである
か否かは、例えば2台のサーバで負荷分散する本実施態
様の場合には図5に示す優先サーバ割り当て状態が最後
のサーバ(サーバ2)であるか否かで判断することがで
きる。FIG. 6 is a diagram showing details of the processing of step 43 (priority server information updating processing) in FIG. First, in step 81, when there is a processing request from a client, it is determined whether or not the request is the first request from the same client. Whether or not the clients are the same can be determined by an IP address or the like.
If the request is the first request from the same client, the process proceeds to step 82; otherwise, the process ends without updating the priority server assignment status information. In step 82, the own device determines whether or not it is the last server to be load-balanced. If it is determined that the server is the last server, the process proceeds to step 83; otherwise, the process proceeds to step 84. Whether or not the server is the last server is determined based on whether or not the priority server assignment state shown in FIG. 5 is the last server (server 2) in the case of the present embodiment in which the load is distributed among two servers. be able to.
【0018】ステップ83において、最初のサーバを優
先サーバとして割り当てる。またステップ84において
は次のサーバを優先サーバとして割り当てる。ステップ
85において、割り当てたサーバ情報に基づき優先サー
バ割り当て情報D64を更新する。In step 83, the first server is assigned as a priority server. In step 84, the next server is assigned as a priority server. In step 85, the priority server assignment information D64 is updated based on the assigned server information.
【0019】このような処理フローを行うことにより、
各クライアント毎に優先サーバを分散して割り当てるの
で、複数のサーバにかかる負荷を均等に分散することが
できる。By performing such a processing flow,
Since the priority servers are distributed and assigned to each client, the load on the plurality of servers can be evenly distributed.
【0020】次に図7および図8を参照して、クライア
ントからサーバに対して要求電文が発生したときのクラ
イアントの処理を説明する。図7は、クライアントから
サーバに対して要求電文が発生したときのクライアント
の処理フローを示す図、図8はクライアントの負荷情報
領域13aに格納した負荷情報を示す図である。図にお
いて、D71はアプリケーション名、D72は分散サー
バ名、D73は負荷レベル、D74は優先サーバ割り当
て状態を示す。負荷情報領域13aには、アプリケーシ
ョンプログラム(AP1、AP2)毎に、負荷を分散し
て稼働しているサーバ(サーバ1、サーバ2)、各サー
バ毎の負荷レベル(F1、F2)およびアプリケーショ
ンプログラムの現在の優先サーバ割り当て状態情報が格
納されている。Next, with reference to FIGS. 7 and 8, the processing of the client when a request message is generated from the client to the server will be described. FIG. 7 is a diagram illustrating a processing flow of the client when a request message is generated from the client to the server, and FIG. 8 is a diagram illustrating the load information stored in the load information area 13a of the client. In the figure, D71 indicates an application name, D72 indicates a distributed server name, D73 indicates a load level, and D74 indicates a priority server assignment state. In the load information area 13a, for each application program (AP1, AP2), a server (server 1, server 2) operating with a distributed load, a load level (F1, F2) for each server, and an application program The current priority server assignment status information is stored.
【0021】ステップ50において、クライアントのア
プリケーションプログラムを開始し、アプリケーション
プログラム部からサーバに対する処理要求を発信する。
ステップ51において、クライアントの通信制御部11
aは任意または指定されたサーバに対して優先サーバ情
報取得要求を1回だけ行い、優先サーバ情報を取得す
る。このときサーバの負荷情報を同時に取得してもよ
い。ステップ52において、取得した優先サーバ割り当
て状態情報および負荷情報を負荷情報領域13aに更新
して格納する。ステップ53において、サーバに対する
2回目以降の処理要求が発生すると、ステップ54にお
いて、取得した情報をもとにサーバ毎の負荷情報を取得
する。ステップ55において、サーバ毎の負荷が同一で
あるか否かを判定する。サーバ毎の負荷が同一である場
合にはステップ56に進み、そうでない場合にはステッ
プ57に進む。ステップ56において、優先サーバ割り
当て情報をもとに優先サーバに対して処理要求を行う。
また、ステップ57においては、負荷の低い低負荷サー
バに対して処理要求を行う。In step 50, the client application program is started, and a processing request is sent from the application program unit to the server.
In step 51, the communication control unit 11 of the client
“a” makes a single priority server information acquisition request to an arbitrary or designated server, and acquires priority server information. At this time, the load information of the server may be obtained at the same time. In step 52, the acquired priority server assignment status information and load information are updated and stored in the load information area 13a. In step 53, when a second or subsequent processing request is issued to the server, in step 54, load information for each server is acquired based on the acquired information. In step 55, it is determined whether the load of each server is the same. If the load on each server is the same, the process proceeds to step 56; otherwise, the process proceeds to step 57. In step 56, a processing request is made to the priority server based on the priority server assignment information.
In step 57, a processing request is made to a low-load server with a low load.
【0022】ステップ58において、前記ステップ53
で発信した処理要求に対する応答電文を受信する。受信
した応答電文にサーバ毎の負荷情報が付加されている場
合には該情報に基づき、負荷情報領域13aに格納した
負荷情報を更新する。ステップ59において、クライア
ントからサーバに対して次の要求があるか否かを判定す
る。処理要求がある場合にはステップ53に進み、そう
でない場合にはステップ61に進み処理を終了する。In step 58, step 53 is executed.
Receives a response message to the processing request sent in step 2. If load information for each server is added to the received response message, the load information stored in the load information area 13a is updated based on the information. In step 59, it is determined whether there is a next request from the client to the server. If there is a processing request, the process proceeds to step 53; otherwise, the process proceeds to step 61 and ends.
【0023】なお、前記サーバ毎の負荷が同一であるか
どうかを判定するステップにおける負荷レベルの判定方
法としては、単位時間当たりの処理件数や、処理待ち件
数や、CPU利用率等を用いることができる。また、サ
ーバ毎の負荷が同一であることの判定は、厳密に負荷レ
ベル計測して判定としてもよいが、判定レベルに幅を持
たせて同一と判定する範囲に幅を設けてもよい。As a method of determining the load level in the step of determining whether or not the load of each server is the same, the number of processings per unit time, the number of processing waits, the CPU utilization, and the like are used. it can. Further, the determination that the load of each server is the same may be made by strictly measuring the load level. Alternatively, the determination level may have a width and a width may be provided in a range where the determination is made that the load is the same.
【0024】このように、負荷制御部14aはアプリケ
ーションプログラム毎の負荷レベル情報に基づき負荷分
散処理を行うことができる。また、アプリケーションプ
ログラム毎ではなくて、サーバ毎の負荷レベル情報に基
づいて負荷分散処理を行うことができる。また、両者の
情報に基づいて負荷分散処理を行うことができる。ま
た、前記ステップ58における負荷情報の更新に際して
は、負荷レベル情報をD73を更新する。しかし優先サ
ーバ割り当て状態情報D74は負荷分散サーバD72の
稼動数に変更がない限りは更新する必要はない。As described above, the load control unit 14a can perform the load distribution processing based on the load level information for each application program. In addition, load distribution processing can be performed based on load level information for each server, not for each application program. In addition, load distribution processing can be performed based on both pieces of information. In updating the load information in step 58, the load level information is updated in D73. However, the priority server allocation status information D74 does not need to be updated unless the number of operating load distribution servers D72 is changed.
【0025】図9は本実施形態にかかるクライアント/
サーバシステムの負荷分散処理装置をインターネットバ
ンキングシステムに適用した例を示す図である。91は
クライアント、92はインターネットあるいはイントラ
ネット等の回路網、93はWWWサーバ、94は振り込
み業務等のアプリケーション処理を実行するAPサー
バ、95は顧客情報等を格納したDBサーバである。本
システムではインターネットを介して複数のクライアン
ト、WWWサーバおよびAPサーバが接続されている。FIG. 9 shows a client /
FIG. 1 is a diagram illustrating an example in which a load distribution processing device of a server system is applied to an Internet banking system. Reference numeral 91 denotes a client, 92 denotes a circuit network such as the Internet or an intranet, 93 denotes a WWW server, 94 denotes an AP server that executes application processing such as a transfer business, and 95 denotes a DB server that stores customer information and the like. In this system, a plurality of clients, a WWW server, and an AP server are connected via the Internet.
【0026】このようなシステムにおいては同時に多数
のクライアント91からの処理要求が発生する可能性が
高いため、効率的な負荷分散処理が求められる。特に多
数のクライアントからの処理要求を受けるWWWサーバ
および該WWWサーバから処理を振り分けられるAPサ
ーバには高い負荷が予想される。したがって、このよう
なシステムに前記クライアント/サーバシステムの負荷
分散処理装置を適用することにより、サーバ間に生じる
負荷の偏在あるいは過負荷を顕著に防止することができ
る。In such a system, there is a high possibility that processing requests from a large number of clients 91 occur at the same time, so that efficient load distribution processing is required. In particular, a heavy load is expected on a WWW server that receives processing requests from a large number of clients and an AP server that can distribute processing from the WWW server. Therefore, by applying the load distribution processing device of the client / server system to such a system, uneven distribution or overload of a load generated between servers can be significantly prevented.
【0027】以上説明したように、本実施形態によれ
ば、各クライアントはサーバ毎の負荷が同一の場合に
は、優先サーバ情報に基づいて通信先サーバを選択す
る。これにより、通信先サーバを任意に選択した場合に
生じる特定のサーバへの負荷集中を未然に防ぐことが可
能となる。また負荷の片寄りによるCPUやネットワー
クの効率劣化を防止することができ、システム全体のス
ループットおよび処理能力の向上を図ることができる。As described above, according to the present embodiment, when the load of each server is the same, each client selects a communication destination server based on the priority server information. As a result, it is possible to prevent load concentration on a specific server, which occurs when a communication destination server is arbitrarily selected. Further, it is possible to prevent the efficiency of the CPU and the network from being degraded due to the bias of the load, and to improve the throughput and the processing capacity of the entire system.
【0028】以上は、クライアントが、予め各サーバの
負荷情報を持たないことを前提に説明したが、これとは
反対に各クライアントが、予め優先サーバ割り当て情報
をD74を保持しておいてもよい。この場合には、図7
に示すクライアント側の処理フローにおいて、ステップ
51に示す優先サーバ情報取得要求、およびステップ5
2に示す優先サーバ情報更新処理は不要である。The above description has been made on the assumption that the client does not have the load information of each server in advance. On the contrary, each client may hold the priority server assignment information D74 in advance. . In this case, FIG.
In the processing flow on the client side shown in FIG.
The priority server information update processing shown in FIG. 2 is unnecessary.
【0029】[0029]
【発明の効果】以上説明したように本発明によれば、複
数のクライアントからの接続および処理要求が発生する
場合に、サーバ間に生じる負荷の偏在あるいは過負荷を
未然に防止するので、負荷を均等に振り分けることがで
き、システム全体のスループットおよび処理能力を向上
することができる。As described above, according to the present invention, when connection and processing requests are generated from a plurality of clients, uneven distribution or overload between servers is prevented beforehand, so that the load can be reduced. The distribution can be evenly performed, and the throughput and processing capacity of the entire system can be improved.
【図面の簡単な説明】[Brief description of the drawings]
【図1】本発明の実施形態にかかるクライアント/サー
バシステムを示す図である。FIG. 1 is a diagram showing a client / server system according to an embodiment of the present invention.
【図2】本実施形態にかかるクライアント/サーバシス
テムの詳細を示す図である。FIG. 2 is a diagram showing details of a client / server system according to the embodiment;
【図3】サーバに搭載した負荷制御部の動作フローを示
す図である。FIG. 3 is a diagram illustrating an operation flow of a load control unit mounted on a server.
【図4】サーバの処理フローを示す図である。FIG. 4 is a diagram showing a processing flow of a server.
【図5】サーバの負荷情報領域に格納した負荷情報を示
す図である。FIG. 5 is a diagram showing load information stored in a load information area of a server.
【図6】図4に示すステップ43の詳細を示す図であ
る。FIG. 6 is a diagram showing details of step 43 shown in FIG. 4;
【図7】クライアントの処理フローを示す図である。FIG. 7 is a diagram showing a processing flow of a client.
【図8】クライアントの負荷情報領域に格納した負荷情
報を示す図である。FIG. 8 is a diagram showing load information stored in a load information area of a client.
【図9】インターネットバンキングシステムに適用した
例を示す図である。FIG. 9 is a diagram showing an example applied to an Internet banking system.
1,1a,1b ,91 クライアント 2,2a,2b サーバ 11,11a,11b 通信制御部 12,12a,12b アプリケーションプログラム部 13,13a,13b 負荷情報領域 14,14a,14b 負荷制御部 15,15a,15b 通信制御部 16,16a,16b アプリケーションプログラム部 17,17a,17b 負荷制御部 18,18a,18b 負荷情報領域1 92 回路網 93 WWWサーバ 94 APサーバ 95 DBサーバ 1, 1a, 1b, 91 client 2, 2a, 2b server 11, 11a, 11b communication control unit 12, 12a, 12b application program unit 13, 13a, 13b load information area 14, 14a, 14b load control unit 15, 15a, 15b Communication control unit 16, 16a, 16b Application program unit 17, 17a, 17b Load control unit 18, 18a, 18b Load information area 1 92 Circuit network 93 WWW server 94 AP server 95 DB server
Claims (4)
をネットワークを介して接続し、複数のクライアントか
らの処理要求を複数のサーバで分散処理するクライアン
ト/サーバシステムにおける負荷分散処理装置におい
て、 前記サーバはサーバ毎の負荷が略同一である場合に負荷
割当先を決定するための優先サーバ割り当て情報を有
し、 前記クライアントは前記優先サーバ割り当て情報に基づ
き接続先サーバを決定することを特徴とする負荷分散処
理装置。1. A load distribution processing device in a client / server system in which a plurality of clients and a plurality of servers are connected via a network and processing requests from the plurality of clients are distributed and processed by the plurality of servers. Load distribution processing for determining priority server allocation information for determining a load allocation destination when each load is substantially the same, wherein the client determines a connection destination server based on the priority server allocation information. apparatus.
をネットワークを介して接続し、複数のクライアントか
らの処理要求を複数のサーバで分散処理する負荷制御部
を備えたクライアント/サーバシステムにおける負荷分
散処理装置において、 前記負荷制御部は負荷情報蓄積部を備え、該負荷情報蓄
積部は各サーバの負荷レベル情報および各クライアント
に対して略均等に割り当てた優先サーバ割り当て状態情
報を蓄積し、前記負荷制御部は前記負荷レベル情報およ
び優先サーバ割り当て状態情報に基づきサーバへの処理
要求を割り当てることを特徴とする負荷分散処理装置。2. A load distribution processing apparatus in a client / server system having a load control unit that connects a plurality of clients and a plurality of servers via a network and distributes processing requests from the plurality of clients to the plurality of servers. In the above, the load control unit includes a load information storage unit, and the load information storage unit stores load level information of each server and priority server allocation state information substantially equally allocated to each client, Wherein a processing request to a server is allocated based on the load level information and the priority server allocation state information.
をネットワークを介して接続し、複数のクライアントか
らの処理要求を複数のサーバで分散処理する負荷制御部
を備えたクライアント/サーバシステムにおける負荷分
散処理装置において、 前記クライアントの負荷制御部は負荷情報蓄積部を備
え、該負荷情報蓄積部は各サーバの負荷レベル情報およ
び各クライアントに対して略均等に割り当てた優先サー
バ割り当て状態情報を前記サーバの負荷情報蓄積部から
取得し、前記クライアントの負荷制御部は前記負荷レベ
ル情報および優先サーバ割り当て状態情報に基づきサー
バへの処理要求を割り当てることを特徴とする負荷分散
処理装置。3. A load distribution processing device in a client / server system having a load control unit that connects a plurality of clients and a plurality of servers via a network and distributes processing requests from the plurality of clients to the plurality of servers. In the above, the load control unit of the client includes a load information storage unit, and the load information storage unit stores load level information of each server and priority server allocation state information that is almost equally allocated to each client. A load distribution processing device obtained from a storage unit, wherein the load control unit of the client allocates a processing request to a server based on the load level information and the priority server allocation state information.
載において、前記サーバシステムはインターネットバン
キングシステムであることを特徴とする負荷分散処理装
置。4. The load distribution processing device according to claim 1, wherein the server system is an Internet banking system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP35203999A JP2001167074A (en) | 1999-12-10 | 1999-12-10 | Load balancing processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP35203999A JP2001167074A (en) | 1999-12-10 | 1999-12-10 | Load balancing processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001167074A true JP2001167074A (en) | 2001-06-22 |
Family
ID=18421371
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP35203999A Pending JP2001167074A (en) | 1999-12-10 | 1999-12-10 | Load balancing processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001167074A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006285316A (en) * | 2005-03-31 | 2006-10-19 | Hitachi Ltd | Server performance measurement method, server performance measurement system, and computer program used therefor |
| GB2434988A (en) * | 2006-02-09 | 2007-08-15 | Christopher Ala Lennan-Purnell | Respirator mask for nose |
| JP2010541380A (en) * | 2007-09-28 | 2010-12-24 | アルカテル−ルーセント ユーエスエー インコーポレーテッド | Method and apparatus for performing load balancing on a control plane of a mobile communication network |
| US8150710B2 (en) | 2002-02-08 | 2012-04-03 | Panasonic Corporation | Medical information system |
| JP2018521393A (en) * | 2015-05-26 | 2018-08-02 | アイデバイシーズ エルエルシー | System and method for server failover and load balancing |
| JP2023532218A (en) * | 2020-06-16 | 2023-07-27 | 中興通訊股▲ふん▼有限公司 | Resource management method, system, proxy server and computer program |
-
1999
- 1999-12-10 JP JP35203999A patent/JP2001167074A/en active Pending
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8150710B2 (en) | 2002-02-08 | 2012-04-03 | Panasonic Corporation | Medical information system |
| JP2006285316A (en) * | 2005-03-31 | 2006-10-19 | Hitachi Ltd | Server performance measurement method, server performance measurement system, and computer program used therefor |
| GB2434988A (en) * | 2006-02-09 | 2007-08-15 | Christopher Ala Lennan-Purnell | Respirator mask for nose |
| JP2010541380A (en) * | 2007-09-28 | 2010-12-24 | アルカテル−ルーセント ユーエスエー インコーポレーテッド | Method and apparatus for performing load balancing on a control plane of a mobile communication network |
| JP2018521393A (en) * | 2015-05-26 | 2018-08-02 | アイデバイシーズ エルエルシー | System and method for server failover and load balancing |
| US10819775B2 (en) | 2015-05-26 | 2020-10-27 | iDevices, LLC | Systems and methods for server failover and load balancing |
| US12143441B2 (en) | 2015-05-26 | 2024-11-12 | Hubbell Incorporated | Systems and methods for server failover and load balancing |
| JP2023532218A (en) * | 2020-06-16 | 2023-07-27 | 中興通訊股▲ふん▼有限公司 | Resource management method, system, proxy server and computer program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8266293B2 (en) | Method of load balancing edge-enabled applications in a content delivery network (CDN) | |
| US8468246B2 (en) | System and method for allocating resources in a distributed computing system | |
| KR100589831B1 (en) | Load balancing of servers in a cluster | |
| CN103067293B (en) | Method and system for multiplex and connection management of a load balancer | |
| JP4857374B2 (en) | Method for assigning tasks, data processing system, client data processing node and machine-readable storage medium | |
| JP4621087B2 (en) | System and method for operating load balancer for multiple instance applications | |
| US8103774B2 (en) | System and method for load-balancing in a resource infrastructure running application programs | |
| JP4984169B2 (en) | Load distribution program, load distribution method, load distribution apparatus, and system including the same | |
| JP5244717B2 (en) | Load allocation control method and load distribution system | |
| CN112202918B (en) | Load scheduling method, device, equipment and storage medium for long connection communication | |
| CN108933829A (en) | A kind of load-balancing method and device | |
| US20070150602A1 (en) | Distributed and Replicated Sessions on Computing Grids | |
| JP2005182641A (en) | Dynamic load balancing system and dynamic load balancing method | |
| US8275889B2 (en) | Clone-managed session affinity | |
| Vashistha et al. | Comparative study of load balancing algorithms | |
| JPH06332833A (en) | Server operation system | |
| JP2001167074A (en) | Load balancing processor | |
| JP2003281007A (en) | Dynamic configuration control device and dynamic configuration control method | |
| JPH10334058A (en) | On-line system and load dispersing system | |
| KR20130028554A (en) | Large capacity distributed processing apparatus using a message bus and the method thereof | |
| CN118785109B (en) | Short message resource allocation method and short message resource allocation system | |
| JPH10240697A (en) | Load balancing method based on session usage | |
| KR100654391B1 (en) | Cluster system comprising a method for controlling a cluster system and a computer readable recording medium for performing the control method | |
| JP2001084232A (en) | Client / server type server distributed arrangement method on network | |
| CN118784577A (en) | Login machine load balancing method, system, device, medium and product |