JP2006139578A - Load distribution system, server system, and method therefor - Google Patents

Load distribution system, server system, and method therefor Download PDF

Info

Publication number
JP2006139578A
JP2006139578A JP2004329210A JP2004329210A JP2006139578A JP 2006139578 A JP2006139578 A JP 2006139578A JP 2004329210 A JP2004329210 A JP 2004329210A JP 2004329210 A JP2004329210 A JP 2004329210A JP 2006139578 A JP2006139578 A JP 2006139578A
Authority
JP
Japan
Prior art keywords
server
transaction
destination
load distribution
time
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
Application number
JP2004329210A
Other languages
Japanese (ja)
Inventor
Takao Kishi
高夫 岸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2004329210A priority Critical patent/JP2006139578A/en
Publication of JP2006139578A publication Critical patent/JP2006139578A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a scale-out type server system having a load distribution function capable of instantaneously responding to increase and decrease of transactions and a money charge function thereof. <P>SOLUTION: Each server forming a server group 2 is maintained in a state for processing transactions, and a load distribution system 1 is connected with a front end of the server group 2. The load distribution system 1 has a function (server status management section 7) for receiving instructions whether or not each server is set to be a transmission destination of the transactions, and a function (load distribution section 6) for transmitting a transaction to the server which is a transmission destination of the transaction. The load distribution system 1 transmits the transaction transmitted from a client 3 to the server group 2 side. The load distribution system 1 also comprises a server usage time measuring section 8 and a server money charge section 9, and executes meter-rate based money charge processing by totalling the amount of time specified for a transmission destination of the transaction. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、サーバシステムの負荷分散を行う負荷分散装置、サーバシステム及び方法に関し、特に、システム全体のパフォーマンスを向上させるために、スケールアウト(Scale out)を行う負荷分散装置、サーバシステム及び方法に関する。   The present invention relates to a load distribution apparatus, a server system, and a method for performing load distribution of a server system, and more particularly to a load distribution apparatus, a server system, and a method for performing scale out in order to improve the performance of the entire system. .

従来、複数台のサーバからなるサーバシステムにおけるトランザクションの処理能力を改善するための方策として、サーバシステムのフロントエンドに負荷分散装置を置き、負荷の軽い状態にあるサーバに対し優先的にトランザクションを送信し、処理を行わせる技術が知られている。   Conventionally, as a measure to improve the transaction processing capacity in a server system consisting of multiple servers, a load balancer has been placed on the front end of the server system, and transactions are sent preferentially to servers under light load. However, a technique for performing processing is known.

例えば、特開2003−296289号公報では、トランザクションを受け付け、処理するサーバ内にCPU使用時間を測定する手段を設け、測定結果を負荷分散装置がネットワークを介して入手し、その測定結果をもとにサーバの負荷状況の軽いサーバを決定し、該決定されたサーバに優先的にトランザクションが送信する方法が紹介されている。   For example, in Japanese Patent Application Laid-Open No. 2003-296289, a means for measuring CPU usage time is provided in a server that accepts and processes a transaction, the load balancer obtains the measurement result via a network, and based on the measurement result. A method of determining a server with a light server load state and transmitting a transaction preferentially to the determined server is introduced.

しかしながら、同公報に示されたようなシステム構成では、トランザクションの量に応じてシステムの全体処理能力を向上させることは難しく、用意したサーバの処理能力の総和を超えるトランザクションが送信される場合には、対応できないという課題がある。   However, in the system configuration shown in the publication, it is difficult to improve the overall processing capacity of the system according to the amount of transactions, and when a transaction exceeding the total processing capacity of the prepared servers is transmitted. , There is a problem that can not be addressed.

そこで、注目する処理に関するサーバの数を増減することで、負荷の分散を行い、システム全体のパフォーマンスを向上させることができるようにしたスケールアウト型の負荷分散機能を備えたサーバシステムも知られている。例えば、特開2002−259354号公報には、特定のコンテンツへの配信要求の数に応じて、該コンテンツを配信するサーバの数を増減する方法が紹介されている。
特開2003−296289号公報 特開2002−259354号公報
Therefore, a server system equipped with a scale-out type load balancing function that can improve the overall system performance by distributing the load by increasing or decreasing the number of servers related to the processing of interest is also known. Yes. For example, Japanese Patent Application Laid-Open No. 2002-259354 introduces a method of increasing or decreasing the number of servers that distribute content according to the number of distribution requests to specific content.
JP 2003-296289 A JP 2002-259354 A

しかしながら上記した従来のスケールアウト型の負荷分散機能を備えたサーバシステムでは、処理すべきトランザクション量が急激に増加し、負荷分散先のサーバ数を増加させて、速やかにシステム全体の処理能力を改善させたい場合の応答性に欠け、システム全体の処理能力を瞬時に適正化できないという問題点があった。例えば、サーバ数の増操作の場合、サーバの電源ON操作やサービス変更操作から、実際にサーバがトランザクションを処理可能な状態に到達するまでの時間と、負荷分散装置がサーバの状態変更を認識するまでの時間を要するのが現状である。同様に、トランザクション数が減少したことによるサーバ数の減操作の場合にも、負荷分散装置がサーバの状態変更を認識するまでに多くの時間を要してしまい、システム全体の処理能力を瞬時に適正化できないという問題点があった。   However, in the server system equipped with the conventional scale-out type load balancing function described above, the amount of transactions to be processed increases rapidly, increasing the number of load distribution destination servers, and quickly improving the processing capacity of the entire system. There is a problem that the responsiveness in the case of wanting to be made is lacking and the processing capacity of the entire system cannot be instantly optimized. For example, in the case of an operation for increasing the number of servers, the time from when the server is turned on or when the service is changed until the server actually reaches a state where it can process a transaction, and the load balancer recognizes the change in the server state. The current situation is that it takes a long time. Similarly, even when the number of servers is reduced due to a decrease in the number of transactions, it takes a long time for the load balancer to recognize a change in the server status, and the processing capacity of the entire system is instantaneously determined. There was a problem that it could not be optimized.

また、この種のスケールアウト型の負荷分散機能を備えたサーバシステムでは、サーバの数が増減するとともに、パフォーマンスも改善されるため、実際に使用した資源に見合った合理的な課金方法は確立されていない。   In addition, in a server system equipped with this type of scale-out load balancing function, the number of servers increases and decreases, and the performance is improved. Therefore, a reasonable billing method that matches the resources actually used is established. Not.

本発明は、上記した事情に鑑みてなされたものであって、その目的とするところは、スケールアウト型の負荷分散機能を備えたサーバシステムに好適に用いることのできる、応答性に優れた負荷分散装置、これを含んだサーバシステム及び負荷分散方法を提供することにある。   The present invention has been made in view of the above-described circumstances, and its object is to provide a load with excellent responsiveness that can be suitably used for a server system having a scale-out type load distribution function. A distribution apparatus, a server system including the distribution apparatus, and a load distribution method are provided.

更に、本発明は、使用した資源に見合った合理的な料金算定を行いうる負荷分散装置、これを含んだサーバシステム及びこの負荷分散装置を用いて実施できる課金方法を提供することも目的とする。   It is another object of the present invention to provide a load balancer capable of performing a reasonable charge calculation corresponding to the resource used, a server system including the load balancer, and a billing method that can be implemented using the load balancer. .

本発明の第1の視点による負荷分散装置は、複数のサーバ群のフロントエンドに位置し、クライアントからのトランザクションを分散して送信する装置であって、サーバ状態管理部と、負荷分散部とを備えている。前記サーバ状態管理部は、前記サーバ毎にトランザクションの送信先とするか否かを管理する。前記負荷分散部は、トランザクション送信先とされたサーバに対してトランザクションを送信する。   A load distribution apparatus according to a first aspect of the present invention is an apparatus that is located at the front end of a plurality of server groups and that distributes and transmits transactions from clients, and includes a server state management unit and a load distribution unit. I have. The server state management unit manages whether or not each server is a transaction transmission destination. The load distribution unit transmits a transaction to a server that is a transaction transmission destination.

また、本発明の第2の視点による負荷分散装置は、サーバ使用時間計測部と、サーバ課金部を備えて、課金処理機能を提供する。前記サーバ使用時間計測部は、トランザクション送信先とされた時間をサーバ毎に測定し、前記サーバ課金部は、前記サーバ使用時間測定手段から出力されるサーバ使用時間データによる課金処理を行って請求額を出力する。   The load distribution apparatus according to the second aspect of the present invention includes a server usage time measurement unit and a server billing unit, and provides a billing processing function. The server usage time measurement unit measures the time set as a transaction transmission destination for each server, and the server billing unit performs billing processing based on server usage time data output from the server usage time measurement unit and charges Is output.

本発明によれば、サーバシステム全体の処理能力を瞬時に適正化することができる。その理由は、負荷分散先のサーバ数を増減するスケールアウトの実現に際し、サーバをトランザクション処理可能状態に保ったまま、トランザクション送信先とするサーバ数を増減し、これに基づいて、トランザクションを送信する構成を採用したことにある。   According to the present invention, it is possible to instantaneously optimize the processing capability of the entire server system. The reason for this is that when implementing scale-out to increase or decrease the number of load distribution destination servers, the number of servers that are the transaction destinations is increased or decreased while keeping the servers in a transaction processable state, and transactions are transmitted based on this. The configuration is adopted.

本発明によれば、負荷分散先のサーバ数を増減するタイプのサーバシステムに好適に適用される合理的な課金体系を構築することができる。その理由は、上記トランザクション送信先となった時間に着目し、これに基づく従量制の課金処理を可能とする構成を採用したことにある。   According to the present invention, it is possible to construct a rational billing system that is suitably applied to a server system that increases or decreases the number of load distribution destination servers. The reason for this is that paying attention to the time at which the transaction is sent and adopting a configuration that enables pay-per-use billing processing based on this time.

続いて、本発明の好ましい実施の形態について図面を参照して詳細に説明する。図1は、本発明の一実施の形態の全体構成を表したブロック図である。図1を参照すると、本実施の形態の負荷分散装置1は、スケールアウト型の負荷分散を行うためのサーバ群2と多数のクライアント3とにネットワーク4、5で接続される。また、負荷分散装置1は、少なくとも、負荷分散部6、サーバ状態管理部7、サーバ使用時間計測部8、サーバ課金部9を含んで構成されている。これらは、負荷分散装置1を構成するコンピュータのハードウェア資源及びハードウェア資源を駆動するプログラムによって構成される。   Subsequently, a preferred embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention. Referring to FIG. 1, a load distribution apparatus 1 according to the present embodiment is connected to a server group 2 and a large number of clients 3 for performing scale-out type load distribution via networks 4 and 5. The load distribution apparatus 1 includes at least a load distribution unit 6, a server state management unit 7, a server usage time measurement unit 8, and a server billing unit 9. These are configured by the hardware resources of the computer constituting the load balancer 1 and a program that drives the hardware resources.

サーバ状態管理部7は、負荷分散部6、サーバ使用時間計測部8と接続される。システム管理者は、管理者端末等を利用して、サーバ状態管理部7に対し、サーバ群2に含まれるサーバについてトランザクションの受け付け可/不可の指示を与えるデータを入力する。なお、各サーバの指定は、後述するサーバIDによって行うことができる。そして、サーバ群2に含まれるサーバについてトランザクションの受け付け可/不可の指示についてのデータは、負荷分散部6、サーバ使用時間計測部8に送信される。   The server state management unit 7 is connected to the load distribution unit 6 and the server usage time measurement unit 8. The system administrator uses the administrator terminal or the like to input data that gives an instruction for accepting / not accepting transactions for the servers included in the server group 2 to the server state management unit 7. Each server can be designated by a server ID described later. Then, data about whether to accept or reject transactions for the servers included in the server group 2 is transmitted to the load distribution unit 6 and the server usage time measurement unit 8.

負荷分散部6は、少なくとも通信制御部10、11、トランザクションバッファ12、13、トランザクション送信先アドレス生成部14、サーバ状態管理テーブル15を含んで構成される。また、負荷分散部6は、通信制御部10、11を介してネットワーク4,5を含む外部のネットワークと接続可能となっている。   The load distribution unit 6 includes at least communication control units 10 and 11, transaction buffers 12 and 13, a transaction transmission destination address generation unit 14, and a server state management table 15. The load distribution unit 6 can be connected to an external network including the networks 4 and 5 via the communication control units 10 and 11.

図2は、負荷分散装置1の図示しない記憶装置に格納されるサーバ状態管理テーブル15の構成を説明するための図である。図2を参照すると、サーバ状態管理テーブル15は、少なくともサーバIDフィールド31、トランザクション送信対象フラグフィールド32、サーバのプライベートIPアドレスフィールド33を含んだエントリによって構成されている(RFUは、Reserved for Future Useの略である)。また、各エントリは、サーバ群2のサーバを特定するために与えられたサーバIDにより検索できるようになっている。   FIG. 2 is a diagram for explaining the configuration of the server state management table 15 stored in a storage device (not shown) of the load distribution apparatus 1. Referring to FIG. 2, the server state management table 15 includes entries including at least a server ID field 31, a transaction transmission target flag field 32, and a server private IP address field 33 (RFU is reserved for Future Use). Abbreviation). Each entry can be searched by a server ID given to specify a server of the server group 2.

再度図1を参照すると、サーバ使用時間計測部8は、少なくともタイマ16、サーバ使用時間管理テーブル更新部17、サーバ使用時間管理テーブル18を含んで構成され、サーバ課金部9、サーバ状態管理部7と接続されている。   Referring to FIG. 1 again, the server usage time measurement unit 8 includes at least a timer 16, a server usage time management table update unit 17, and a server usage time management table 18. The server billing unit 9, the server status management unit 7 Connected with.

図3は、負荷分散装置1の図示しない記憶装置に格納されるサーバ使用時間管理テーブル18の構成を説明するための図である。図3を参照すると、サーバ使用時間管理テーブル18は、少なくともサーバIDフィールド41、トランザクション送信対象フラグフィールド42、トランザクション送信先状態開始時刻フィールド43、トランザクション送信先状態終了時刻フィールド44、累積時間フィールド45を含んだエントリによって構成されている。また、各エントリは、サーバIDにより検索できるようになっている。   FIG. 3 is a diagram for explaining the configuration of the server usage time management table 18 stored in a storage device (not shown) of the load distribution apparatus 1. Referring to FIG. 3, the server usage time management table 18 includes at least a server ID field 41, a transaction transmission target flag field 42, a transaction transmission destination state start time field 43, a transaction transmission destination state end time field 44, and an accumulated time field 45. Consists of containing entries. Each entry can be searched by server ID.

再度図1を参照すると、サーバ課金部9は、少なくともサーバ課金管理テーブル19、サーバ課金管理テーブル更新部20、タイマ21、課金情報提供部22を含んで構成され、サーバ使用時間計測部8と接続されている。   Referring again to FIG. 1, the server billing unit 9 includes at least a server billing management table 19, a server billing management table update unit 20, a timer 21, and a billing information providing unit 22, and is connected to the server usage time measuring unit 8. Has been.

図4は、負荷分散装置1の図示しない記憶装置に格納されるサーバ課金管理テーブル19の構成を説明するための図である。図4を参照すると、サーバ課金管理テーブル19は、少なくともサーバIDフィールド51、日付フィールド52、累積時間フィールド53、累積料金フィールド54を含んだエントリによって構成されている。また、各エントリは、サーバIDにより検索できるようになっている。   FIG. 4 is a diagram for explaining the configuration of the server charging management table 19 stored in a storage device (not shown) of the load distribution apparatus 1. Referring to FIG. 4, the server billing management table 19 includes entries including at least a server ID field 51, a date field 52, an accumulated time field 53, and an accumulated fee field 54. Each entry can be searched by server ID.

続いて、上記した構成からなる負荷分散装置1の負荷分散部6、サーバ使用時間計測部8、サーバ課金部9の動作について、図面を参照して順次説明する。   Next, operations of the load distribution unit 6, the server usage time measurement unit 8, and the server billing unit 9 of the load distribution apparatus 1 having the above-described configuration will be sequentially described with reference to the drawings.

図5は、負荷分散部6の動作を説明するためのフローチャートである。以下、サーバ状態管理部7からの入力データにより、サーバ状態管理テーブル15のエントリのトランザクション送信対象フラグフィールド32に0又は1がセットされるものとして説明する。また、上記入力データによりセットされるトランザクション送信対象フラグが0である場合、そのサーバへはトランザクションが送信されないことを示し、反対にトランザクション送信対象フラグフィールド32が1である場合、そのサーバへはトランザクションが送信されることを示している。   FIG. 5 is a flowchart for explaining the operation of the load distribution unit 6. In the following description, it is assumed that 0 or 1 is set in the transaction transmission target flag field 32 of the entry of the server state management table 15 by the input data from the server state management unit 7. If the transaction transmission target flag set by the input data is 0, it indicates that the transaction is not transmitted to the server. Conversely, if the transaction transmission target flag field 32 is 1, the transaction is not transmitted to the server. Indicates that it will be sent.

図5を参照すると、まず、クライアント3側のトランザクションバッファ12よりトランザクションを受け取ると、負荷分散部6のトランザクション送信先アドレス生成部14は、当該トランザクションの送信先IPアドレスの一部をマスクする(ステップ102)。   Referring to FIG. 5, first, when a transaction is received from the transaction buffer 12 on the client 3 side, the transaction destination address generation unit 14 of the load distribution unit 6 masks a part of the destination IP address of the transaction (step 102).

続いて、負荷分散部6のトランザクション送信先アドレス生成部14は、サーバ状態管理テーブル15よりエントリを読み出し、トランザクション送信対象フラグフィールド32をチェックする(ステップ103)。ここで、トランザクション送信対象フラグが0の場合(ステップ104のYes)、当該エントリのサーバはトランザクション送信対象となっていないため、トランザクション送信先アドレス生成部14は、サーバ状態管理テーブル15より次のエントリを読み出す。   Subsequently, the transaction transmission destination address generation unit 14 of the load distribution unit 6 reads the entry from the server state management table 15 and checks the transaction transmission target flag field 32 (step 103). Here, when the transaction transmission target flag is 0 (Yes in step 104), the server of the entry is not a transaction transmission target, so the transaction transmission destination address generation unit 14 determines the next entry from the server state management table 15. Is read.

一方、上記ステップ104でトランザクション送信対象フラグが1の場合(ステップ104のNo)、当該エントリのサーバはトランザクション送信対象となっているため、トランザクション送信先アドレス生成部14は、ステップ102にてマスクされたトランザクションの送信先IPアドレスに対し、当該エントリのサーバのプライベートIPアドレスフィールド33の値をセットする(ステップ105)。   On the other hand, if the transaction transmission target flag is 1 in step 104 (No in step 104), the transaction destination address generation unit 14 is masked in step 102 because the server of the entry is a transaction transmission target. For the destination IP address of the transaction, the value of the private IP address field 33 of the server of the entry is set (step 105).

最後に、トランザクション送信先アドレス生成部14は、この生成された送信先IPアドレスとともにトランザクションをトランザクションバッファ13に送信する(ステップ106)。   Finally, the transaction transmission destination address generation unit 14 transmits a transaction to the transaction buffer 13 together with the generated transmission destination IP address (step 106).

図6は、サーバ使用時間計測部8の動作を説明するためのフローチャートである。後に詳述するように、サーバ状態管理部7からの入力データにより、サーバ使用時間管理テーブル18のエントリのトランザクション送信対象フラグフィールド42に0又は1がセットされる。そして、トランザクション送信対象フラグが0となった場合、トランザクション送信対象であった期間を計算すべく、トランザクション送信先状態終了時刻フィールド44、累積時間フィールド45が有効(更新可能)となる。反対に、上記入力データによりトランザクション送信対象フラグが1となった場合、トランザクション送信対象であった期間の始点を記録すべく、トランザクション送信先状態開始時刻フィールド43が有効(更新可能)となる。   FIG. 6 is a flowchart for explaining the operation of the server usage time measuring unit 8. As will be described in detail later, 0 or 1 is set in the transaction transmission target flag field 42 of the entry of the server usage time management table 18 according to the input data from the server state management unit 7. When the transaction transmission target flag becomes 0, the transaction transmission destination state end time field 44 and the accumulated time field 45 become valid (can be updated) in order to calculate the period of the transaction transmission target. On the other hand, when the transaction transmission target flag is set to 1 by the input data, the transaction transmission destination state start time field 43 becomes valid (can be updated) so as to record the start point of the period that was the transaction transmission target.

図6を参照すると、サーバ使用時間計測部8のサーバ使用時間管理テーブル更新部17は、通常サーバ状態管理部7又はタイマ16からの入力を監視している(ステップ122、123、124)。   Referring to FIG. 6, the server usage time management table update unit 17 of the server usage time measurement unit 8 monitors inputs from the normal server state management unit 7 or the timer 16 (steps 122, 123, and 124).

ステップ124にて、サーバ状態管理部7からの当該サーバをトランザクション送信先に指定との通知を受けると、サーバ使用時間管理テーブル更新部17は、サーバIDを用いて、サーバ使用時間管理テーブル18から該当エントリを読み出し(ステップ125)、トランザクション送信対象フラグフィールド42に1をセットし(ステップ126)、タイマ16から得た時刻データをトランザクション送信先状態開始時刻フィールド43にセットする(ステップ127)。次いで、サーバ使用時間管理テーブル更新部17は、更新されたエントリをサーバ使用時間管理テーブル18に書き戻す(ステップ128)。   In step 124, upon receiving a notification from the server state management unit 7 that the server is designated as the transaction transmission destination, the server usage time management table update unit 17 uses the server ID from the server usage time management table 18. The corresponding entry is read (step 125), 1 is set in the transaction transmission target flag field 42 (step 126), and the time data obtained from the timer 16 is set in the transaction transmission destination state start time field 43 (step 127). Next, the server usage time management table update unit 17 writes the updated entry back to the server usage time management table 18 (step 128).

一方、ステップ123にて、サーバ状態管理部7からの当該サーバをトランザクション送信先から外すとの通知を受けると、サーバ使用時間管理テーブル更新部17は、サーバIDを用いて、サーバ使用時間管理テーブル18から該当エントリを読み出し(ステップ129)、トランザクション送信対象フラグフィールド42に0をセットし(ステップ130)、タイマ16から得た時刻データをトランザクション送信先状態終了時刻フィールド44にセットする(ステップ131)。次いで、サーバ使用時間管理テーブル更新部17は、今回のトランザクション送信先となっていた時間を求めるべく、トランザクション送信先状態終了時刻とトランザクション送信先状態開始時刻フィールド43値の差分を計算し、累積時間フィールド45の値に加算する(ステップ132)。最後に、サーバ使用時間管理テーブル更新部17は、更新されたエントリをサーバ使用時間管理テーブル18に書き戻す(ステップ128)。   On the other hand, upon receiving a notification from the server status management unit 7 that the server is to be removed from the transaction transmission destination in step 123, the server usage time management table update unit 17 uses the server ID to generate a server usage time management table. 18 reads the corresponding entry (step 129), sets 0 in the transaction transmission target flag field 42 (step 130), and sets the time data obtained from the timer 16 in the transaction transmission destination state end time field 44 (step 131). . Next, the server usage time management table update unit 17 calculates the difference between the transaction transmission destination state end time and the value of the transaction transmission destination state start time field 43 to obtain the time that has been the current transaction transmission destination, and the accumulated time Add to the value of field 45 (step 132). Finally, the server usage time management table update unit 17 writes the updated entry back to the server usage time management table 18 (step 128).

更に、ステップ122にて、タイマ16から予め定めた集計期間の満了日時が到来したことを示す”基準時刻到達の信号”を受信すると、サーバ使用時間管理テーブル更新部17は、サーバ課金部9に課金のための基準時刻に到達した旨を通知し、サーバ使用時間管理テーブル18の全エントリ分のデータを読み出させる(ステップ133及び図7参照)。そして、サーバ使用時間管理テーブル更新部17は、サーバ使用時間管理テーブル18のエントリ中の「トランザクション送信先状態開始時刻フィールド43」に、新たな起算点として基準時刻をセットし(ステップ134)、累積時間フィールド45にゼロをセットする(ステップ135)。   In step 122, upon receiving a “reference time arrival signal” indicating that the expiration date and time of the predetermined counting period has arrived from the timer 16, the server usage time management table updating unit 17 sends the server charging unit 9 It is notified that the reference time for accounting has been reached, and the data for all entries in the server usage time management table 18 is read (see step 133 and FIG. 7). Then, the server usage time management table update unit 17 sets a reference time as a new starting point in the “transaction transmission destination state start time field 43” in the entry of the server usage time management table 18 (step 134), and accumulates it. Zero is set in the time field 45 (step 135).

図7は、サーバ課金部9の動作を説明するためのフローチャートである。図7を参照すると、サーバ課金部9のサーバ課金管理テーブル更新部20は、サーバ使用時間管理テーブル更新部17からの入力を監視している(ステップ142)。   FIG. 7 is a flowchart for explaining the operation of the server billing unit 9. Referring to FIG. 7, the server billing management table update unit 20 of the server billing unit 9 monitors the input from the server usage time management table update unit 17 (step 142).

ステップ142にて、サーバ使用時間管理テーブル更新部17から基準時刻に到達した旨の通知を受けると、サーバ課金管理テーブル更新部20は、サーバ使用時間計測部8内のサーバ使用時間管理テーブル18のエントリを1エントリずつ読み出す(ステップ143)。   When the server usage time management table update unit 17 receives a notification that the reference time has been reached from the server usage time management table update unit 17, the server billing management table update unit 20 stores the server usage time management table 18 in the server usage time measurement unit 8. The entries are read one by one (step 143).

サーバ課金管理テーブル更新部20は、読み出したエントリ毎に累積時間フィールド45の値に、例えば、所定の時間単価を乗ずる等して、料金計算を実施する(ステップ144)。   The server billing management table updating unit 20 performs charge calculation by multiplying the value of the accumulated time field 45 by, for example, a predetermined unit price for each read entry (step 144).

次いで、サーバ課金管理テーブル更新部20は、読み出したエントリ中のサーバIDフィールド41、累積時間フィールド45の値をエントリのサーバIDフィールド51、累積時間フィールド53にセットする(ステップ145、146)。   Next, the server billing management table updating unit 20 sets the values of the server ID field 41 and the accumulated time field 45 in the read entry in the server ID field 51 and the accumulated time field 53 of the entry (steps 145 and 146).

次いで、サーバ課金管理テーブル更新部20は、タイマ21から受ける日付データをエントリの日付フィールド52にセットする(ステップ147)。   Next, the server billing management table updating unit 20 sets the date data received from the timer 21 in the date field 52 of the entry (step 147).

更に、サーバ課金管理テーブル更新部20は、ステップ144にて料金計算をした結果をエントリの累積料金フィールド54にセットする(ステップ148)。   Further, the server billing management table updating unit 20 sets the result of the charge calculation in step 144 in the accumulated charge field 54 of the entry (step 148).

サーバ課金管理テーブル更新部20は、上記各ステップで生成したエントリをサーバ課金管理テーブル19に書き込む(ステップ149)。   The server billing management table update unit 20 writes the entry generated in each of the above steps into the server billing management table 19 (step 149).

サーバ課金管理テーブル更新部20は、上記の一連の処理を、すべてのサーバIDに対して実施する(ステップ143〜150)。   The server billing management table update unit 20 performs the above series of processing for all server IDs (steps 143 to 150).

このようにして得られたサーバ課金部9内にあるサーバ課金管理テーブル19のデータは、課金情報提供部22によって、サーバや課金計算期間の末日(基準時刻)を特定して、外部の課金端末等から閲覧・出力等が可能となる。   The data of the server billing management table 19 in the server billing unit 9 obtained in this way is specified by the billing information providing unit 22 at the last day (reference time) of the server and billing calculation period, and the external billing terminal It is possible to view and output from etc.

以上説明したように、本実施の形態のサーバシステムは、スケールアウトによってトランザクションの負荷分散を行うものであるが、負荷分散先のサーバ数をサーバ状態管理部7の通知によって瞬時に増減させることできるよう構成されている。従って、トランザクションの量やその他負荷の状況に応じてシステム全体の処理能力を柔軟かつ速やかに対応させることができるようになっている。また、この結果として、余分なマージン等を確保する必要も低減し、サーバシステムの運用コストも最適化される。   As described above, the server system according to the present embodiment performs transaction load distribution by scale-out, but the number of load distribution destination servers can be instantaneously increased or decreased by notification from the server state management unit 7. It is configured as follows. Therefore, the processing capacity of the entire system can be flexibly and promptly adapted according to the amount of transactions and other load conditions. As a result, it is also possible to reduce the need for securing an extra margin and the like, and to optimize the operating cost of the server system.

また、本実施の形態のサーバシステムでは、各サーバの負荷分散対象となった時間をサーバの使用時間と見做して、使用料金を計算することができるようになっている。従来のサーバへの接続時間、CPUの使用時間に基づいた課金では、スケールアウトによってトランザクションの負荷分散を行う場合に合理的な課金体系とはならないが、本実施の形態では、上述した負荷分散構成の特徴を利用して、合理的な従量制の料金を算出可能となっている。   Further, in the server system of the present embodiment, the usage fee can be calculated by regarding the time that is the load distribution target of each server as the usage time of the server. The conventional billing based on the connection time to the server and the usage time of the CPU does not provide a rational billing system when performing transaction load balancing by scale-out, but in the present embodiment, the load balancing configuration described above is used. This makes it possible to calculate reasonable pay-per-use charges.

また、本実施の形態のサーバシステムでは、各サーバがトランザクション送信先となった時間をサーバ単位で測定・保持し、上記した課金処理に利用しているが、これらの情報は、サーバシステムに対する運用計画の見直しや、将来の設備投資計画を検討する際に役立てることができる。   Further, in the server system of the present embodiment, the time when each server is a transaction destination is measured and held for each server and used for the above billing process. This can be useful when reviewing plans or considering future capital investment plans.

以上、本発明の実施の形態について説明したが、上記実施の形態は、説明が容易でありかつ、本発明を実施する上で好ましいと考えた一例を示したに過ぎないものである。例えば、上記した実施の形態では、タイマ16、21を2つのタイマを用意しているが、これらを一つのタイマで構成することも可能である。またクライアント3、負荷分散装置1及びサーバ群2を含む全体の構成も視覚的にわかり易い構成を例示したに過ぎず、各種の変形構成に適用可能であることはもちろんである。   Although the embodiments of the present invention have been described above, the above embodiments are merely examples that are easy to explain and that are considered preferable in practicing the present invention. For example, in the above-described embodiment, two timers 16 and 21 are prepared, but it is also possible to configure them with one timer. Also, the entire configuration including the client 3, the load balancer 1, and the server group 2 is merely an example of a configuration that is easy to understand visually, and can be applied to various modified configurations.

本発明の一実施の形態の全体構成を表したブロック図である。It is a block diagram showing the whole structure of one embodiment of this invention. 本発明の一実施の形態のサーバ状態管理テーブル15の構成を説明するための図である。It is a figure for demonstrating the structure of the server state management table 15 of one embodiment of this invention. 本発明の一実施の形態のサーバ使用時間管理テーブル18の構成を説明するための図である。It is a figure for demonstrating the structure of the server use time management table 18 of one embodiment of this invention. 本発明の一実施の形態のサーバ課金管理テーブル19の構成を説明するための図である。It is a figure for demonstrating the structure of the server charge management table 19 of one embodiment of this invention. 本発明の一実施の形態の負荷分散部6の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of the load distribution part 6 of one embodiment of this invention. 本発明の一実施の形態のサーバ使用時間計測部8の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of the server usage time measurement part 8 of one embodiment of this invention. 本発明の一実施の形態のサーバ課金部9の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of the server accounting part 9 of one embodiment of this invention.

符号の説明Explanation of symbols

1 負荷分散装置
2 サーバ群
3 クライアント
4、5 ネットワーク
6 負荷分散部
7 サーバ状態管理部
8 サーバ使用時間計測部
9 サーバ課金部
10、11 通信制御部
12、13 トランザクションバッファ
14 トランザクション送信先アドレス生成部
15 サーバ状態管理テーブル
16、21 タイマ
17 サーバ使用時間管理テーブル更新部
18 サーバ使用時間管理テーブル
19 サーバ課金管理テーブル
20 サーバ課金管理テーブル更新部
22 課金情報提供部
31、41、51 サーバIDフィールド
32、42 トランザクション送信対象フラグフィールド
33 サーバのプライベートIPアドレスフィールド
43 トランザクション送信先状態開始時刻フィールド
44 トランザクション送信先状態終了時刻フィールド
45、53 累積時間フィールド
52 日付フィールド
54 累積料金フィールド
DESCRIPTION OF SYMBOLS 1 Load distribution apparatus 2 Server group 3 Client 4, 5 Network 6 Load distribution part 7 Server state management part 8 Server use time measurement part 9 Server billing part 10, 11 Communication control part 12, 13 Transaction buffer 14 Transaction transmission destination address generation part DESCRIPTION OF SYMBOLS 15 Server state management table 16, 21 Timer 17 Server use time management table update part 18 Server use time management table 19 Server charge management table 20 Server charge management table update part 22 Charge information provision part 31, 41, 51 Server ID field 32, 42 Transaction transmission target flag field 33 Private IP address field of server 43 Transaction transmission destination state start time field 44 Transaction transmission destination state end time field 45, 5 3 Cumulative time field 52 Date field 54 Cumulative charge field

Claims (9)

各サーバがトランザクションを処理可能な状態にある複数のサーバ群のフロントエンドに位置し、クライアントからのトランザクションを分散して送信する負荷分散装置であって、
前記サーバ毎にトランザクションの送信先とするか否かを管理するサーバ状態管理部と、
トランザクション送信先とされたサーバに対してトランザクションを送信する負荷分散部と、を備えたこと、
を特徴とする負荷分散装置。
A load balancer that is located at the front end of a plurality of servers in a state where each server can process transactions, and that distributes and transmits transactions from clients,
A server state management unit for managing whether to send a transaction to each server;
A load distribution unit that transmits a transaction to a server that is a transaction destination,
A load balancer.
請求項1に記載の負荷分散装置において、更に、
トランザクション送信先とされた時間を前記サーバ毎に測定するサーバ使用時間計測部を備えたこと、
を特徴とする負荷分散装置。
The load distribution apparatus according to claim 1, further comprising:
A server usage time measurement unit that measures the time that is a transaction transmission destination for each server;
A load balancer.
請求項2に記載の負荷分散装置において、
前記サーバ使用時間計測部は、
少なくともサーバID、トランザクションの送信先であるか否か、トランザクションの送信先となった時間、トランザクションの送信先となった累計時間とを含むサーバ使用時間管理テーブルを備えて、
各サーバについて、所定期間におけるトランザクションの送信先とされた累計時間をそれぞれ測定すること、
を特徴とする負荷分散装置。
The load distribution apparatus according to claim 2,
The server usage time measurement unit
A server usage time management table including at least a server ID, whether or not a transaction destination, a time that is a transaction destination, and a cumulative time that is a transaction destination,
For each server, measure the cumulative time that was the destination of the transaction in a given period,
A load balancer.
請求項2又は3に記載の負荷分散装置において、
前記サーバ使用時間測定手段から出力されるサーバ使用時間データによる課金処理を行って請求額を出力するサーバ課金部を備えたこと、
を特徴とする負荷分散装置。
In the load distribution apparatus according to claim 2 or 3,
A server billing unit that performs billing processing based on server usage time data output from the server usage time measurement unit and outputs a billed amount;
A load balancer.
請求項4に記載の負荷分散装置において、
前記サーバ課金部は、
少なくともサーバID、トランザクションの送信先であるか否か、トランザクションの送信先となった時間、トランザクションの送信先となった累計時間と、累積料金情報とを含むサーバ課金情報管理テーブルを備えて、
前記各サーバについて、所定期間におけるトランザクションの送信先とされた時間に基づいた課金処理を実行すること、
を特徴とする負荷分散装置。
The load distribution apparatus according to claim 4, wherein
The server billing unit
A server billing information management table including at least a server ID, whether or not a transaction destination, a time that is a transaction destination, a cumulative time that is a transaction destination, and cumulative fee information,
For each of the servers, executing a billing process based on a time set as a transaction destination in a predetermined period;
A load balancer.
各サーバがトランザクションを処理可能な状態にある複数のサーバ群のフロントエンドに、請求項1乃至5いずれか一に記載の負荷分散装置を配置し、トランザクション送信先のサーバ数の増減によって負荷分散を行うサーバシステム。   The load distribution device according to any one of claims 1 to 5 is arranged at a front end of a plurality of server groups in which each server can process a transaction, and load distribution is performed by increasing or decreasing the number of servers to which transactions are transmitted. Server system to perform. サーバ群を構成する各サーバをトランザクションを処理可能な状態にしておき、
前記サーバ群のフロントエンドに位置する負荷分散装置が、
前記サーバ毎にトランザクションの送信先にするか否かの指示を受け付けるステップと、
前記トランザクションの送信先とされたサーバに対してトランザクションを送信するステップと、を繰り返して、トランザクションの送信先としたサーバ数の増減により処理能力の適正化を行うことを特徴とする負荷分散方法。
Leave each server in the server group in a state that can process transactions,
A load balancer located at the front end of the server group,
Receiving an instruction as to whether or not to be a transaction destination for each server;
And a step of transmitting a transaction to a server that is a destination of the transaction, and a processing method for optimizing the processing capacity by increasing or decreasing the number of servers that are the destination of the transaction.
サーバ群を構成する各サーバをトランザクションを処理可能な状態にしておき、
前記サーバ群のフロントエンドに位置する負荷分散装置が、
前記サーバ毎にトランザクションの送信先にするか否かの指示を受け付けるステップと、
前記トランザクションの送信先とされたサーバに対してトランザクションを送信するステップと、
トランザクションの送信先に指定された時間をサーバ毎に集計するステップと、を繰り返して、前記サーバ毎に集計した時間を、負荷分散型サーバシステムに含まれる各サーバの使用時間として出力すること、
を特徴とするサーバの使用時間の計測方法。
Leave each server in the server group in a state that can process transactions,
A load balancer located at the front end of the server group,
Receiving an instruction as to whether or not to be a transaction destination for each server;
Sending a transaction to a server that is the destination of the transaction;
Repeating the step of totaling the time designated as the transaction destination for each server, and outputting the time totaled for each server as the usage time of each server included in the load balancing server system,
Server usage time measurement method characterized by
サーバ群を構成する各サーバをトランザクションを処理可能な状態にしておき、
前記サーバ群のフロントエンドに位置する負荷分散装置が、
前記サーバ毎にトランザクションの送信先にするか否かの指示を受け付けるステップと、
前記トランザクションの送信先とされたサーバに対してトランザクションを送信するステップと、
トランザクションの送信先に指定された時間をサーバ毎に集計するステップと、を繰り返すとともに、
所定時間毎に前記集計した時間に基づいた従量制の課金処理を実行すること、
を特徴とする課金方法。
Leave each server in the server group in a state that can process transactions,
A load balancer located at the front end of the server group,
Receiving an instruction as to whether or not to be a transaction destination for each server;
Sending a transaction to a server that is the destination of the transaction;
Repeating the step of counting the time specified for the transaction destination for each server,
Performing pay-as-you-go billing processing based on the aggregated time every predetermined time;
A billing method characterized by the above.
JP2004329210A 2004-11-12 2004-11-12 Load distribution system, server system, and method therefor Pending JP2006139578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004329210A JP2006139578A (en) 2004-11-12 2004-11-12 Load distribution system, server system, and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004329210A JP2006139578A (en) 2004-11-12 2004-11-12 Load distribution system, server system, and method therefor

Publications (1)

Publication Number Publication Date
JP2006139578A true JP2006139578A (en) 2006-06-01

Family

ID=36620362

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004329210A Pending JP2006139578A (en) 2004-11-12 2004-11-12 Load distribution system, server system, and method therefor

Country Status (1)

Country Link
JP (1) JP2006139578A (en)

Similar Documents

Publication Publication Date Title
CN109218355B (en) Load balancing engine, client, distributed computing system and load balancing method
JP6126099B2 (en) Marketplace for timely event data distribution
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
US20160142477A1 (en) Connection control device, connection control system, and non-transitory computer readable medium
CN106815254B (en) Data processing method and device
JP7206698B2 (en) Providing device, processing system and communication method
US10621018B2 (en) Link optimization for callout request messages
US11294736B2 (en) Distributed processing system, distributed processing method, and recording medium
CN111625592A (en) Load balancing method and device for distributed database
CN114338695B (en) Leader election method, device, equipment and storage medium based on multiple copies
CN102200928A (en) Computation resource control apparatus, computation resource control method, and non-transitory computer-readable recording medium
JP2006139578A (en) Load distribution system, server system, and method therefor
CN112019406B (en) Flow monitoring method and device, electronic equipment and computer readable medium
JP2019160130A (en) Usage fee determining program, usage fee determining method, and information processing device
US10135718B2 (en) Service pack deployment in a method and system for providing answers to requests
JP7243155B2 (en) Provision device and processing system
Hwang et al. Proof of violation for response time auditing in cloud systems
JP7102952B2 (en) Data relay device and program
JP7235296B2 (en) SESSION MANAGEMENT METHOD, SESSION MANAGEMENT DEVICE, AND PROGRAM
US20220374951A1 (en) Charging for the use of resources in a distributed network
KR100802092B1 (en) Method and system for billing based on the client-server
JP4060807B2 (en) Content distribution management system, service management apparatus, content distribution management method, and program
US20160134722A1 (en) Automatic scaling of system for providing answers to requests
CN114116807A (en) Delay tolerance time interval updating method, device, electronic equipment and medium
CN115220903A (en) Resource management method, device, system, equipment and medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070802

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070814

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071011

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080422