JP2010122818A - Computer system and computer - Google Patents
Computer system and computer Download PDFInfo
- Publication number
- JP2010122818A JP2010122818A JP2008294725A JP2008294725A JP2010122818A JP 2010122818 A JP2010122818 A JP 2010122818A JP 2008294725 A JP2008294725 A JP 2008294725A JP 2008294725 A JP2008294725 A JP 2008294725A JP 2010122818 A JP2010122818 A JP 2010122818A
- Authority
- JP
- Japan
- Prior art keywords
- command
- node
- load
- time
- computer system
- 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 computer system, and more particularly to a computer system configured to distribute commands from one node to another node.
複数のノード(例えば、コンピュータ)からなる分散処理システムでは、1つの業務を複数のノード上で処理するために、あるノードから別のノードに対してコマンドを送信して実行するような制御が行われることがある。このようなコンピュータシステムは、例えば、特開平11−328127号公報(特許文献1)に開示されている。 In a distributed processing system including a plurality of nodes (for example, computers), in order to process one task on a plurality of nodes, control is performed such that a command is transmitted from one node to another node and executed. May be. Such a computer system is disclosed in, for example, Japanese Patent Application Laid-Open No. 11-328127 (Patent Document 1).
特許文献1の分散処理システムでは、マネージャマシンからエージェントマシンにコマンドが送られて業務が実行される。このとき、業務の内容によっては、複数のノードに同時にコマンドを配信したり、複数のノードから任意のノードを選択して配信したりするなどのコマンド要求も発生し得る。このような要求に応えるために、特許文献1の分散処理システムでは、マネージャマシンから複数のエージェントマシンに対するコマンド送信、実行を簡単に行うための特別な工夫がなされている。 In the distributed processing system of Patent Document 1, a command is sent from a manager machine to an agent machine to execute a task. At this time, depending on the contents of the business, a command request such as distributing a command to a plurality of nodes at the same time or selecting and distributing an arbitrary node from the plurality of nodes may occur. In order to meet such a demand, the distributed processing system of Patent Document 1 has a special device for easily performing command transmission and execution from a manager machine to a plurality of agent machines.
しかし、あるノードから別のノードにコマンドを送信する分散処理システムでは、業務処理の集中により一時的に高負荷状態になっているノードにコマンドを配信する結果、そのノードの資源を圧迫して業務遅延を引き起こしてしまうという問題が発生し得る。 However, in a distributed processing system that sends a command from one node to another, the command is distributed to a node that is temporarily in a high load state due to the concentration of business processing. The problem of causing delays can occur.
負荷の集中の問題を解決するための一つの手法は、コマンド配信先の選択の優先順位を、適宜に切り換える手法である。このような手法は、例えば、特開平6−119282号公報(特許文献2)に開示されている。 One method for solving the problem of load concentration is a method of appropriately switching the priority of command distribution destination selection. Such a technique is disclosed in, for example, Japanese Patent Laid-Open No. 6-119282 (Patent Document 2).
負荷の集中の問題を解決するための他の一つの手法は、コマンド配信先の負荷を検出し、その検出結果に応じてコマンド配信先を決定する手法である。このような手法は、例えば、特開平11−250023号公報(特許文献3)に開示されている。この文献に開示された分散処理システムでは、各処理装置が自身の負荷レベルを測定して処理分配機に送信する。各処理装置は、各時刻において処理分配機に負荷レベルを通知するか否かを、負荷レベルの値と、前回に負荷レベルを通知してからの経過時間に応じて決定する。一方、処理分配機は、過去に送られてきた負荷レベルと、その時点からの経過時間を利用することにより、現在の各処理装置の負荷レベルを範囲を持って推定する。処理分配機は、この推定値に応じて負荷分散の処理を行う。各ノードにおいて負荷を検出する手法については、他にも、特開平11−143838号公報(特許文献4)、特開2002−7144号公報(特許文献5)にも開示されている。 Another method for solving the load concentration problem is a method of detecting the load of the command distribution destination and determining the command distribution destination according to the detection result. Such a method is disclosed in, for example, Japanese Patent Laid-Open No. 11-250023 (Patent Document 3). In the distributed processing system disclosed in this document, each processing apparatus measures its own load level and transmits it to the processing distributor. Each processing apparatus determines whether or not to notify the processing distributor of the load level at each time according to the value of the load level and the elapsed time since the previous notification of the load level. On the other hand, the processing distributor estimates the current load level of each processing apparatus with a range by using the load level sent in the past and the elapsed time from that point. The processing distributor performs load distribution processing according to the estimated value. Other methods for detecting the load at each node are also disclosed in JP-A-11-143838 (Patent Document 4) and JP-A-2002-7144 (Patent Document 5).
しかしながら、コマンドを実行するノード自身が負荷を検出する構成では、負荷検出のための負荷が各ノードにかかるため、コマンドを実行する各ノードの業務を圧迫するという問題がある。
したがって、本発明の目的は、コマンド配信先ノードの負荷を軽減しながら、コマンド配信先への負荷の集中を防ぎ、これにより、最適な負荷分散を行うことができるコンピュータシステムを提供することにある。 Accordingly, an object of the present invention is to provide a computer system capable of reducing the load on a command distribution destination node while preventing concentration of the load on the command distribution destination and thereby performing optimum load distribution. .
本発明のコンピュータシステムは、コマンドを配信するための第1ノードと、前記コマンドを受け取って実行する第2ノードとを備えている。当該コンピュータシステムでは、前記第2ノードが自己の負荷を測定する動作を行わずに前記第1ノードが前記第2ノードの負荷を検出する。前記第1ノードは、前記検出された負荷に応じて前記コマンドの前記第2ノードへの配信を制御するように構成されている。 The computer system of the present invention includes a first node for distributing a command and a second node for receiving and executing the command. In the computer system, the first node detects the load of the second node without the second node performing an operation of measuring its own load. The first node is configured to control delivery of the command to the second node according to the detected load.
本発明によれば、コマンド配信先ノードの負荷を軽減しながら、コマンド配信先への負荷の集中を防ぎ、これにより、最適な負荷分散を行うことができるコンピュータシステムが提供される。 According to the present invention, it is possible to provide a computer system capable of reducing the load on a command distribution destination node while preventing the load from being concentrated on the command distribution destination and thereby performing optimal load distribution.
(第1の実施形態)
図1を参照すると、第1の実施形態のコンピュータシステムは、コマンド配信元ノード1と、コマンド配信先ノード2と、コマンド配信元ノード1とコマンド配信先ノード2を接続するネットワーク3とを含む。図1では、3つのコマンド配信先ノード2が図示されており、必要がある場合、符号2A、2B、2Cによって参照されて区別される。コマンド配信元ノード1は、コマンドをコマンド配信先ノード2に配信し、コマンド配信先ノード2に所望の処理をさせる。配信されるコマンドとしては、例えば、ファイル操作コマンド(ファイル初期化や削除など)や、データ収集・照会コマンド、バッチ処理の開始や動作変更を指示するコマンドなどが挙げられる。コマンド配信元ノード1には、端末11が接続されており、ユーザは、端末11を操作することによって所望のコマンドをコマンド配信先ノード2に配信する動作をコマンド配信元ノード1に実行させることができる。
(First embodiment)
Referring to FIG. 1, the computer system of the first embodiment includes a command distribution source node 1, a command
図2は、コマンド配信元ノード1と、コマンド配信先ノード2の構成の例を示すブロック図である。コマンド配信元ノード1は、アプリケーションプログラム12と、コマンド受付手段13と、コマンドキュー15と、キュー管理手段16と、負荷評価手段17と、コマンド配信手段18とを備えている。図1には、コマンドキュー15が1つしか図示されていないが、実際には、コマンドキュー15は、コマンド配信先ノード2ごとに用意される。即ち、3つのコマンド配信先ノード2が存在する場合には、3つのコマンドキュー15がコマンド配信元ノード1に用意される。コマンド受付手段13と、コマンドキュー15と、キュー管理手段16と、負荷評価手段17と、コマンド配信手段18は、ソフトウェア、ハードウェア、及びこれらの組み合わせのいずれの形態でコマンド配信元ノード1に実装されてもよい。
FIG. 2 is a block diagram illustrating an example of the configuration of the command distribution source node 1 and the command
加えて、コマンド配信元ノード1の記憶装置には、コマンド属性情報ファイル14と、実行結果リスト19とが用意される。コマンド属性情報ファイル14とは、コマンドごとにその動作属性などをあらかじめ定義しておくための情報(即ち、コマンド属性情報)を格納するファイルである。また、実行結果リスト19には、当該コマンド配信元ノード1からの指示に応答してコマンド配信先ノード2により実行されたコマンドの実行時刻や実行結果が記録される。
In addition, a command
コマンド配信先ノード2は、複数存在することができ、それぞれ少なくともコマンド実行手段21と、コマンド処理プログラム22とを備えている。コマンド配信先ノード2は、コマンド処理プログラム22以外の業務処理を実行することもできるように構成されてもよい。また、コマンド実行手段21は、ソフトウェア、ハードウェア、及びこれらの組み合わせのいずれの形態でコマンド配信元ノード1に実装されてもよい。
There can be a plurality of command
コマンド配信元ノード1及びコマンド配信先ノード2は、概略的には、下記のように動作する:
コマンド配信元ノード1のコマンド受付手段13は、端末11またはアプリケーションプログラム12からコマンドテキストとその宛先情報などを含むコマンド配信要求を受け取ると、該コマンド配信要求の宛先情報またはコマンド属性情報ファイル14の対応するコマンド属性情報に基づいてコマンド配信先ノード2を決定し、当該コマンド配信先ノード2に対応するコマンドキュー15にコマンド配信要求を登録する。
The command distribution source node 1 and the command
When the command receiving means 13 of the command distribution source node 1 receives a command distribution request including a command text and its destination information from the
キュー管理手段16は、コマンドキュー15を監視し、コマンドキュー15にコマンド配信要求が登録されるとそれを1件ずつ取り出して、負荷評価手段17によりコマンド配信先ノード2の負荷状況を調べ、その結果負荷が高いと判断された場合には所定時間待ち合わせた後に、負荷が高いと判断されなかった場合には即時に、コマンド配信手段18を起動してコマンド配信先ノード2へのコマンド配信を行う。
The queue management means 16 monitors the
負荷評価手段17は、実行結果リスト19を参照して、現在時刻から所定時間前までの間に当該コマンド配信先ノード2に配信し実行されたすべてのコマンドについて実際のコマンド実行時間と当該コマンドの標準実行時間の情報を取得し、実際のコマンド実行時間が標準実行時間を所定以上に超過している場合には負荷が高いと判断する。
The load evaluation means 17 refers to the
コマンド配信手段18は、コマンド配信要求に含まれるコマンドテキストをコマンド配信先ノード2に配信するとともに、実行結果リスト19にコマンド配信要求またはコマンド属性情報に示された当該コマンドの標準実行時間、およびコマンド配信時刻を記録する。さらに、コマンド配信先ノード2からコマンドの実行結果を受け取り、受け取った実行結果および受け取った時刻を実行結果リスト19に登録するとともに、コマンド配信要求で実行結果の返却が指示されていた場合は実行結果を端末11またはアプリケーションプログラム12に返却する。
The command distribution means 18 distributes the command text included in the command distribution request to the command
コマンド実行手段21は、コマンド配信手段18によって配信されたコマンドを受け取り、該当するコマンド処理プログラム22を実行する。コマンド実行が終了すると、コマンド実行手段21は実行結果をコマンド配信手段18に返却する。
The
次に、図2〜図4を参照して本実施形態のコンピュータシステムの動作について詳細に説明する。
図3は、図2の実行結果リスト19の構造例および実行結果リスト19への記録例を示したものである。実行結果リスト19はコマンド配信先ノード2ごとに用意されており、コマンド名31の項目と、コマンドの標準的な実行時間である標準実行時間32の項目と、コマンドの実行開始時刻である開始時刻33の項目と、コマンドの実行終了時刻である終了時刻34の項目と、実行結果35の項目とを含む。一つのコマンドに実行結果リスト19の一つのエントリーが割り当てられ、各エントリーには、これらの項目の情報が記述される。図3において、符号41〜47は、各エントリーを示している。
Next, the operation of the computer system of this embodiment will be described in detail with reference to FIGS.
FIG. 3 shows an example of the structure of the
一方、図4は、端末11またはアプリケーションプログラム12から出されるコマンド配信要求の構造の例を示したものである。コマンド配信要求は、1つ以上のコマンド配信先ノード2を直接的または間接的に示す宛先情報51と、コマンド配信先ノード2の負荷が高い場合に待ち合わせを行う(「待ち合わせ可」)か、エラーを返却する(「エラー」)か、負荷状況に関わらず強制的に実行する(「強制実行」)かを示す動作属性52と、コマンドの標準実行時間を示す標準実行時間53と、コマンドの実行結果の返却が必要か否かを示す結果返却方法情報54と、コマンド名およびコマンドの実行条件などを指定したコマンドパラメータを含むコマンドテキスト55とを含む。ただし、宛先情報51と動作属性52と標準実行時間53と結果返却方法情報54とは、あらかじめコマンド名ごとに定義してコマンド属性情報ファイル14に登録することができ、コマンド属性情報ファイル14に登録されている項目についてはコマンド配信要求では省略することができる。
On the other hand, FIG. 4 shows an example of the structure of a command distribution request issued from the
コマンド受付手段13は、端末11またはアプリケーションプログラム12からコマンド配信要求を受け取ると、コマンド配信要求の宛先情報51と動作属性52と標準実行時間53と結果返却方法情報54の一部またはすべての項目が省略されている場合に、コマンドテキスト55内のコマンド名に対応するコマンド属性情報のうち省略された項目の情報をコマンド属性情報ファイル14から取得して、コマンド配信要求の該当する項目に設定する。次に、コマンド受付手段13は、宛先情報51に基づいてコマンド配信先ノード2を決定する。さらに、コマンド配信要求の動作属性52が「待ち合わせ可」の場合に、コマンド受付手段13は当該コマンド配信先ノード2に対応するコマンドキュー15にコマンド配信要求を登録する。また、動作属性52が「エラー」の場合には、コマンド受付手段13は負荷評価手段17によりコマンド配信先ノード2の負荷状況を調べ、負荷が高い場合には端末11またはアプリケーションプログラム12にエラーを返却し、そうでない場合にはコマンド配信手段18を起動し、コマンド配信手段18にコマンド配信要求を受け渡す。また、動作属性52が「強制実行」の場合には、コマンド受付手段13は無条件でコマンド配信手段18を起動し、コマンド配信手段18にコマンド配信要求を受け渡す。
When receiving a command distribution request from the terminal 11 or the
キュー管理手段16は、コマンドキュー15を監視し、コマンドキュー15にコマンド配信要求が登録されると、これを取り出して負荷評価手段17によりコマンド配信先ノード2の負荷状況を調べる。調べた結果、負荷が高いと判断された場合には、キュー管理手段16は、所定時間の待ち合わせを行った後にコマンド配信手段18を起動して前記コマンド配信手段18にコマンド配信要求を受け渡す。一方、負荷状況を調べた結果、負荷が高いと判断されなかった場合には、キュー管理手段16は、即時にコマンド配信手段18を起動して、コマンド配信手段18にコマンド配信要求を受け渡す。なお、コマンドキュー15に同時に複数のコマンド配信要求が登録されていた場合には、キュー管理手段16は登録順序の古いものから順に1件ずつ取り出して前述の処理を行い、コマンド配信手段18を起動したら次のコマンド配信要求を取り出す。
The queue management means 16 monitors the
負荷評価手段17は、コマンド配信先ノード2の負荷状況を調べる機能を有している。本実施形態では、コマンド配信先ノード2の負荷状況は、当該コマンド配信先ノード2に配信し各コマンドの実行に実際に要した時間であるコマンド実行時間に基づいて判断される。より具体的には、本実施形態では、負荷評価手段17は、下記のようにして各コマンド配信先ノード2の負荷の状況を調べる。負荷評価手段17は、実行結果リスト19を参照して、現在時刻から所定時間前までの間に当該コマンド配信先ノード2に配信し実行された各コマンドについてコマンドの実際のコマンド実行時間と標準実行時間32を取得する。ここで、コマンド実行時間は、コマンドの実行の開始時刻33と終了時刻34とから算出される。更に、負荷評価手段17は、実際のコマンド実行時間が標準実行時間32を所定以上に超過している場合には負荷が高いと判断する。
The
コマンド配信手段18はコマンド配信要求を受け取ると、そのコマンドテキスト55をコマンド配信先ノード2に配信するとともに、実行結果リスト19に新しいエントリーを作成し、作成したエントリーのコマンド名31にコマンドテキスト55から取り出したコマンド名を、標準実行時間32にコマンド配信要求の標準実行時間53を、また、開始時刻33にコマンド配信時刻を記録する。コマンド配信先ノード2では、コマンド実行手段21がコマンドを受け取り、該当するコマンド処理プログラム22を実行する。コマンド実行が終了すると、コマンド実行手段21はコマンドの実行結果をコマンド配信手段18に返却する。コマンド配信手段18は実行結果リスト19の終了時刻34として実行結果を受け取った時刻を記録し、実行結果リスト19の実行結果35として返却された実行結果の内容を記録するとともに、コマンド配信要求の結果返却方法情報54で実行結果の返却が指示されていた場合は返却された実行結果を端末11またはアプリケーションプログラム12に返却する。なお、コマンド配信先ノード2においてコマンド実行手段21がコマンドを受け付けた時刻が開始時刻33として実行結果リスト19に記録され、また、コマンド処理プログラム22が終了してコマンド配信手段18に実行結果を返却するときの時刻が終了時刻34として実行結果リスト19に記録されてもよい。この場合、コマンド実行手段21は、コマンド終了時にコマンド配信手段18に対し、コマンドの実行結果に加えてコマンド実行手段21がコマンドを受け付けた時刻と、コマンド処理プログラム22が終了してコマンド配信手段18に実行結果を返却するときの時刻を返答する。コマンド配信手段18は、これら返答された時刻をそれぞれ開始時刻33と終了時刻34として記録する。
Upon receiving the command distribution request, the command distribution means 18 distributes the
コマンドを配信する動作は、コマンド配信要求に記述された動作属性52の内容によって異なる。以下では、動作属性52の内容に依存したコマンド配信動作について詳細に説明する。
The operation for distributing the command differs depending on the content of the
(1)動作属性が「待ち合わせ可」である場合:
例えば、コマンド配信元ノード1のコマンド受付手段13が、アプリケーションプログラム12から宛先情報51がコマンド配信先ノード2Aであり、動作属性52が「待ち合わせ可」であるコマンド配信要求を受け取った場合、コマンド受付手段13は、コマンド配信先ノード2Aに対応するコマンドキュー15にコマンド配信要求を登録する。このとき、コマンド配信要求に標準実行時間53と結果返却方法情報54が指定されていなかった場合は、コマンド属性情報ファイル14から該当の情報を取得してコマンド配信要求に設定しておく。
(1) When the operation attribute is “waiting”:
For example, when the command receiving means 13 of the command distribution source node 1 receives a command distribution request from the
キュー管理手段16は、コマンド配信先ノード2Aのコマンドキュー15から前記コマンド配信要求を取り出すと、負荷評価手段17を呼び出す。負荷評価手段17は、コマンド配信先ノード2Aに対応する実行結果リスト19を参照し、図5の動作にしたがってコマンド配信先ノード2Aの負荷の評価を行う。
When the
より具体的には、図5に示されているように、負荷評価手段17が、現在時刻からあらかじめ定義された検証時間を差し引いて基準時刻を求め(S01)、実行結果リスト19の最新のエントリー(図3ではエントリー47)から、基準時刻までのエントリーを順次参照していく(S02〜S05)。個々のエントリーについては、まず、実行結果リスト19の開始時刻33と基準時刻(例えば10:05:00)を比較し、基準時刻の方が開始時刻よりも時間軸上で後になったら、実行結果リスト19の参照を終了する(S03のNO)。そうでない場合は、終了時刻34から開始時刻33を引いてコマンド実行時間を求め、さらにこのコマンド実行時間を標準実行時間32と比較することにより超過時間(実行時間のうち標準実行時間32を超える部分の時間)を求める(S04)。実行結果リスト19内の対象エントリーの参照が終了したら、超過時間の総和とあらかじめ定義された基準値とを比較する(S08)。超過時間の総和の方が大きい場合には高負荷フラグにONを設定し(S09)、そうでない場合には高負荷フラグにOFFを設定して(S10)、キュー管理手段16に高負荷フラグを返却する。
More specifically, as shown in FIG. 5, the
次に、負荷評価手段17から返却された高負荷フラグがONだった場合、キュー管理手段16は、所定時間分の待ち合わせを行い、待ち合わせ終了後にコマンド配信手段18を起動してコマンド配信手段18にコマンド配信要求を受け渡す。また、負荷評価手段17から返却された高負荷フラグがOFFだった場合、キュー管理手段16は、即時にコマンド配信手段18を起動してコマンド配信手段18にコマンド配信要求を受け渡す。
Next, when the high load flag returned from the
コマンド配信先ノード2Aの負荷の評価が、コマンド配信元ノード1に設けられた負荷評価手段17によって行われることに留意されたい。コマンド配信先ノード2Aは、自身の負荷を測定する動作を行わない。これは、コマンド配信先ノード2Aに余計な負荷をかけないためである。負荷を測定する動作は、それ自体がコマンド配信先ノード2Aに負荷をかける。そこで、本実施形態のコンピュータシステムでは、コマンド配信元ノード1に設けられた負荷評価手段17によって負荷が評価され、コマンド配信先ノード2Aの負荷が軽減されている。
Note that the load evaluation of the command
コマンド配信要求を受け取ると、コマンド配信手段18は、コマンド配信要求に含まれるコマンドテキスト55をコマンド配信先ノード2Aに配信するとともに、コマンド配信先ノード2Aに対応する実行結果リスト19に新しいエントリーを作成して、コマンド名31にコマンド配信要求のコマンドテキスト55から取り出したコマンド名を設定し、標準実行時間32に、コマンド配信要求の標準実行時間53を設定し、開始時刻33にコマンド配信時刻を記録する。コマンド配信先ノード2Aでは、コマンド実行手段21がコマンドテキスト55を受け取り、該当するコマンド処理プログラム22を実行する。コマンド実行が終了すると、コマンド実行手段21はコマンドの実行結果をコマンド配信手段18に返却する。コマンド配信手段18は、実行結果リスト19の当該コマンド配信時に作成したエントリーの終了時刻34に実行結果を受け取った時刻を記録し、実行結果リスト19の実行結果35に返却された実行結果の内容を記録する。さらに、コマンド配信要求の結果返却方法情報54で実行結果の返却が指示されていた場合は、返却された実行結果をアプリケーションプログラム12に返却する。
Upon receiving the command distribution request, the command distribution means 18 distributes the
(2)動作属性が「エラー」である場合:
次に、例えば、コマンド配信元ノード1のコマンド受付手段13がアプリケーションプログラム12から、宛先情報51がコマンド配信先ノード2A、動作属性52が「エラー」であるコマンド配信要求を受け取った場合の動作について説明する。コマンド受付手段13は、コマンド配信要求の項目のうち省略されているものについてコマンド属性情報ファイル14から値を取得、設定した後に、負荷評価手段17を呼び出してコマンド配信先ノード2Aの負荷状況を調べる。負荷評価手段17の動作は、動作属性52が「待ち合わせ可」の場合の例と同様である。負荷評価手段17から返却された高負荷フラグがONだった場合、コマンド受付手段13はアプリケーションプログラム12にエラーを返却する。また、負荷評価手段17から返却された高負荷フラグがOFFだった場合は、コマンド受付手段13はコマンド配信手段18を起動してコマンド配信手段18にコマンド配信要求を受け渡す。コマンド配信手段18は、前記動作属性52が「待ち合わせ可」の場合の例と同様にコマンド配信先ノード2Aへのコマンド配信および実行結果リスト19への記録を行う。
(2) When the operation attribute is “error”:
Next, for example, the operation when the command receiving means 13 of the command distribution source node 1 receives from the application program 12 a command distribution request in which the
(3)動作属性が「強制実行」である場合:
次に、例えば、コマンド配信元ノード1のコマンド受付手段13がアプリケーションプログラム12より、宛先情報51がコマンド配信先ノード2A、動作属性52が「強制実行」のコマンド配信要求を受け取った場合の動作について説明する。コマンド受付手段13は、コマンド配信要求の項目のうち省略されているものについてコマンド属性情報ファイル14から値を取得、設定した後、無条件でコマンド配信手段18を起動してコマンド配信手段18にコマンド配信要求を受け渡す。コマンド配信手段18は、前記動作属性52が「待ち合わせ可」の場合の例と同様にコマンド配信先ノード2Aへのコマンド配信および実行結果リスト19への記録を行う。
(3) When the operation attribute is “forced execution”:
Next, for example, when the command receiving means 13 of the command distribution source node 1 receives a command distribution request from the
本実施形態のコンピュータシステムには、下記の2つの利点がある。第1の利点は、業務処理の集中により一時的に高負荷状態になっているコマンド配信先ノード2に対してコマンドを配信するような場合、該当のノードの資源を圧迫せずに業務処理を向上させることができることである。この利点は、負荷の検出および待ち合わせをコマンド配信元ノード1で行うことにより、余計な負荷をコマンド配信先ノード2に発生しないようにコンピュータシステムが構成されていることによるものである。
The computer system of this embodiment has the following two advantages. The first advantage is that when a command is distributed to the command
第2の利点は、動作属性としてコマンド配信先ノードの負荷状況に関わらず強制的に実行する、および、負荷が高い場合には待ち合わせを行わずにエラーを返却したりするという選択を用意しているので、コマンドの性質に応じた動作が可能となっていることである。さらに、これらの動作属性のコマンドが実行された場合にもその実行結果を実行結果リスト19に記録しているので、実行結果リスト19による負荷状況の判定をより正確に行うことができる。
The second advantage is that the operation attributes are forcibly executed regardless of the load status of the command distribution destination node, and an error is returned without waiting if the load is high. Therefore, the operation according to the nature of the command is possible. Furthermore, even when these operation attribute commands are executed, the execution results are recorded in the
(第2の実施形態)
図6は、本発明の第2の実施形態のコンピュータシステムの構成を示すブロック図である。第2の実施形態のコンピュータシステムの構成は、概ね、第1の実施形態のコンピュータシステムと同様である。相違点は、コマンド配信元ノード1に標準実行時間算定手段20が追加されていることにある。標準実行時間算定手段20は、各コマンド名のコマンドの過去の実際の実行時間に基づいて、各コマンド名のそれぞれについて標準実行時間を算定し、コマンド属性情報ファイル14に登録する機能を有している。
(Second Embodiment)
FIG. 6 is a block diagram showing a configuration of a computer system according to the second embodiment of this invention. The configuration of the computer system of the second embodiment is generally the same as that of the computer system of the first embodiment. The difference is that a standard execution time calculation means 20 is added to the command distribution source node 1. The standard execution time calculation means 20 has a function of calculating the standard execution time for each command name based on the past actual execution time of the command of each command name and registering it in the command
標準実行時間算定手段20による標準実行時間の算定を可能にするために、第2の実施形態では、実行結果リスト19の構造が第1の実施形態と異なっている。図7は、第2の実施形態における実行結果リスト19の構造の例である。図7を参照すると、実行結果リスト19は、コマンド名31の項目と、標準実行時間32の項目と、開始時刻33の項目と、終了時刻34の項目と、実行結果35の項目に加え、フラグ36を含んでいる。フラグ36は、いずれのコマンドの開始時刻33及び終了時刻34を標準実行時間算定手段20による標準実行時間の算定に使用するかを指定するために使用される。後述されるように、フラグ36がONであるコマンドは、標準実行時間の算定には使用されない。
In order to enable the standard execution time calculation means 20 to calculate the standard execution time, the structure of the
以下では、第2の実施形態のコンピュータシステムの動作について説明する。コマンド受付手段13、キュー管理手段16、コマンド配信手段18およびコマンド実行手段21の動作は、第1の実施形態(図1)と同様である。したがって、以下では、負荷評価手段17および標準実行時間算定手段20の動作について説明する。
Below, operation | movement of the computer system of 2nd Embodiment is demonstrated. The operations of the
負荷評価手段17は、コマンド受付手段13またはキュー管理手段16から呼び出されると、各コマンド配信先ノード2の負荷を評価する。具体的には、負荷評価手段17は、実行結果リスト19を参照して、現在時刻から所定時間前までの間に当該コマンド配信先ノード2に配信し実行されたすべてのコマンドについて、コマンドの実際のコマンド実行時間と標準実行時間32を取得する。コマンド実行時間は、各コマンドの実行の開始時刻33と終了時刻34から算出される。更に負荷評価手段17は、コマンド実行時間と標準実行時間32との比較により超過時間を求める。現在時刻から所定時間前までの間に当該コマンド配信先ノード2に配信し実行されたすべてのコマンドについて超過時間を算出すると、負荷評価手段17は、算出された超過時間の総和とあらかじめ定義された基準値とを比較し、超過時間の総和の方が大きい場合には当該コマンド配信先ノード2の負荷が高いと判断する。
When called from the command receiving means 13 or the queue management means 16, the load evaluation means 17 evaluates the load of each command
コマンド配信先ノード2の負荷が高いと判断した場合、負荷評価手段17は、現在時刻から所定時間前までの間に当該コマンド配信先ノード2に配信し実行されたすべてのコマンドのフラグ36をONにするとともに、高負荷フラグをONにしてコマンド受付手段13またはキュー管理手段16に返却する。結果として、当該コマンド配信先ノード2の負荷が高い状態でコマンドが処理されると、そのコマンドに対応するフラグ36がONに設定され、標準実行時間の算定から排除されることになる。
When determining that the load of the command
一方、コマンド配信先ノード2の負荷が高くないと判断した場合、負荷評価手段17は、高負荷フラグにOFFを設定して、キュー管理手段16に高負荷フラグを返却する。
On the other hand, when determining that the load of the command
標準実行時間算定手段20は、利用者からの指示やあらかじめ定められたタイミングで起動されると、特定のコマンドまたはすべてのコマンドについて標準実行時間を算定する。詳細には、標準実行時間算定手段20は、算定の対象のコマンドについて実行結果リスト19から実際のコマンド実行時間を取得する。コマンド実行時間は、コマンドの実行の開始時刻33と終了時刻34から算出される。更に、標準実行時間算定手段20は、実際のコマンド実行時間に基づいて当該コマンドの標準実行時間を算定し、算定した標準実行時間をコマンド属性情報ファイル14に登録する。ただし、実行結果リスト19のフラグ36にONが設定されているコマンド、および、実際の実行時間が実行結果リスト19の標準実行時間32を所定の算定基準値以上に超過しているコマンドについては標準実行時間の算定には使用されない。
The standard execution time calculation means 20 calculates a standard execution time for a specific command or all commands when activated by an instruction from a user or at a predetermined timing. Specifically, the standard execution time calculation means 20 acquires the actual command execution time from the
このように、本実施形態では、標準実行時間算定手段20によって標準実行時間が算出され、コマンド属性情報ファイル14に登録される。このような構成では、実際のコマンド実行時間に即して算出された標準実行時間に基づいて各コマンド配信先ノード2の負荷が評価されるため、各コマンド配信先ノード2の負荷をより適正に評価することができる。このとき、コマンド配信先ノード2の負荷が高い状態で実行されたコマンドが標準実行時間の算定から排除されることにより、標準実行時間を適正に算定することができる。
Thus, in this embodiment, the standard execution time is calculated by the standard execution time calculation means 20 and registered in the command
1:コマンド配信元ノード
2、2A〜2C:コマンド配信先ノード
3:ネットワーク
11:端末
12:アプリケーションプログラム
13:コマンド受付手段
14:コマンド属性情報ファイル
15:コマンドキュー
16:キュー管理手段
17:負荷評価手段
18:コマンド配信手段
19:実行結果リスト
20:標準実行時間算定手段
21:コマンド実行手段
22:コマンド処理プログラム
31:コマンド名
32:標準実行時間
33:開始時刻
34:終了時刻
35:実行結果
36:フラグ
41〜47:エントリー
51:宛先情報
52:動作属性
53:標準実行時間
54:結果返却方法情報
55:コマンドテキスト
1: Command
Claims (8)
前記コマンドを受け取って実行する第2ノード
とを備え、
前記第2ノードが自己の負荷を測定する動作を行わずに前記第1ノードが前記第2ノードの負荷を検出し、
前記第1ノードが、前記検出された負荷に応じて前記コマンドの前記第2ノードへの配信を制御するように構成された
コンピュータシステム。 A first node for delivering commands;
A second node that receives and executes the command;
The first node detects the load of the second node without the second node performing an operation of measuring its own load;
A computer system, wherein the first node is configured to control delivery of the command to the second node in accordance with the detected load.
前記第1ノードは、過去に前記第2ノードにおいて前記コマンドを実行するために実際に要したコマンド実行時間を算出し、前記コマンド実行時間に基づいて前記第2ノードの負荷を検出するように構成された
コンピュータシステム。 The computer system according to claim 1,
The first node is configured to calculate a command execution time actually required to execute the command in the past in the second node and detect a load of the second node based on the command execution time. Computer system.
前記第2ノードは、前記コマンドを受け取って実行した後、実行結果を前記第1ノードに返却するように構成されており、
前記第1ノードは、前記実行結果を前記第2ノードから受け取った時刻から前記コマンド実行時間を算出する
コンピュータシステム。 A computer system according to claim 2,
The second node is configured to return an execution result to the first node after receiving and executing the command;
The computer system, wherein the first node calculates the command execution time from a time when the execution result is received from the second node.
前記第2ノードは、前記コマンドを受け取って実行した後、実行結果を前記第1ノードに返却するように構成されており、
前記実行結果には、前記第2ノードが前記実行結果を前記第1ノードに返却する返却時刻が記述され、
前記第1ノードは、前記実行結果に記述されている前期返却時刻から前記コマンド実行時間を算出する
コンピュータシステム。 A computer system according to claim 2,
The second node is configured to return an execution result to the first node after receiving and executing the command;
In the execution result, a return time at which the second node returns the execution result to the first node is described.
The computer system, wherein the first node calculates the command execution time from a previous return time described in the execution result.
前記第1ノードは、前記コマンド実行時間のうちの所定の標準時間時間を超過する部分である超過時間に基づいて、前記第2ノードの負荷を検出するように構成された
コンピュータシステム。 A computer system according to any one of claims 2 to 4,
The computer system is configured to detect a load of the second node based on an excess time that is a portion of the command execution time that exceeds a predetermined standard time.
前記コマンドのそれぞれには動作属性が設定され、
前記第1ノードが、前記コマンドのそれぞれの前記動作属性に基づいて、前記第2ノードの負荷に応じて前記コマンドの送信を待ち合わせる動作、前記第2ノードの負荷に応じて前記コマンドの操作を取りやめる動作、及び検出された前記第2ノードの負荷に無関係に前記コマンドを前記第2ノードに送る動作を選択して行うように構成された
コンピュータシステム。 A computer system according to any one of claims 1 to 4,
Each of the commands has an operation attribute set,
Based on the operation attribute of each of the commands, the first node waits for transmission of the command according to the load of the second node, and cancels the operation of the command according to the load of the second node A computer system configured to selectively perform an operation and an operation of sending the command to the second node regardless of the detected load of the second node.
前記コマンド配信先ノードの負荷を検出する負荷検出手段
とを備え、
前記配信手段は、前記検出された負荷に応じて前記コマンドの前記第2ノードへの配信を制御するように構成され、
前記負荷検出手段は、コマンド配信先ノードが自己の負荷を測定した結果を用いずに前記コマンド配信先ノードの前記負荷を検出する
コンピュータ。 A delivery means for delivering a command to a command delivery destination node;
Load detecting means for detecting the load of the command delivery destination node,
The delivery means is configured to control delivery of the command to the second node according to the detected load,
The load detection means is a computer that detects the load of the command distribution destination node without using a result of the command distribution destination node measuring its own load.
前記負荷検出手段は、過去に前記コマンド配信先ノードにおいて前記コマンドを実行するために実際に要したコマンド実行時間を算出し、前記コマンド実行時間に基づいて前記第2ノードの負荷を検出するように構成された
コンピュータシステム。 The computer according to claim 7,
The load detection means calculates a command execution time actually required to execute the command in the command distribution destination node in the past, and detects the load of the second node based on the command execution time. Configured computer system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008294725A JP2010122818A (en) | 2008-11-18 | 2008-11-18 | Computer system and computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008294725A JP2010122818A (en) | 2008-11-18 | 2008-11-18 | Computer system and computer |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010122818A true JP2010122818A (en) | 2010-06-03 |
Family
ID=42324118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008294725A Withdrawn JP2010122818A (en) | 2008-11-18 | 2008-11-18 | Computer system and computer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010122818A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2390952A2 (en) | 2010-05-28 | 2011-11-30 | Sony Corporation | Solar power-generating equipment |
WO2015001850A1 (en) * | 2013-07-03 | 2015-01-08 | 日本電気株式会社 | Task allocation determination device, control method, and program |
JPWO2013030908A1 (en) * | 2011-08-26 | 2015-03-23 | 富士通株式会社 | Scheduling system, data processing system, and scheduling method |
-
2008
- 2008-11-18 JP JP2008294725A patent/JP2010122818A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2390952A2 (en) | 2010-05-28 | 2011-11-30 | Sony Corporation | Solar power-generating equipment |
JPWO2013030908A1 (en) * | 2011-08-26 | 2015-03-23 | 富士通株式会社 | Scheduling system, data processing system, and scheduling method |
WO2015001850A1 (en) * | 2013-07-03 | 2015-01-08 | 日本電気株式会社 | Task allocation determination device, control method, and program |
JPWO2015001850A1 (en) * | 2013-07-03 | 2017-02-23 | 日本電気株式会社 | Task assignment determination device, control method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10776152B2 (en) | Concurrent execution of a computer software application along multiple decision paths | |
US8023408B2 (en) | Dynamically changing message priority or message sequence number | |
JP2005062927A (en) | Load control method and device, and processing program therefor | |
JP2019008417A (en) | Information processing apparatus, memory control method and memory control program | |
US9104486B2 (en) | Apparatuses, systems, and methods for distributed workload serialization | |
CN108111499B (en) | Business processing performance optimization method and device, electronic equipment and storage medium | |
JP2017532531A5 (en) | ||
US9736226B2 (en) | Rule distribution server, event processing system and method, and program | |
US9609068B2 (en) | Session management system, session management apparatus, and non-transitory computer readable medium | |
JP5050878B2 (en) | Monitoring device, monitoring system, monitoring method and program | |
CN107688489B (en) | Method and system for scheduling tasks | |
JP2010122818A (en) | Computer system and computer | |
US8275889B2 (en) | Clone-managed session affinity | |
CN107025129B (en) | Data processing method and device | |
US9317354B2 (en) | Dynamically determining an external systems management application to report system errors | |
US20150106422A1 (en) | System and method for server selection using competitive evaluation | |
US20170180465A1 (en) | Method, information processing apparatuses and non-transitory computer-readable storage medium | |
CN109729062B (en) | Online method of encryption server and proxy server | |
US9270742B2 (en) | Computer system and control method of computer system | |
CN113256107A (en) | Distribution task merging method and device, storage medium and electronic equipment | |
US10896076B2 (en) | Information processing system and control method for executing a process based on a message acquired from a queue | |
JP2008226177A (en) | Distributed processing program, system and method | |
JPH11110360A (en) | Method and system for distributing transaction and storage medium for transaction distributing processing | |
US8688767B2 (en) | Distributed processing system, distributed operation method and computer program | |
US20180011734A1 (en) | Job scheduler test program, job scheduler test method, and information processing apparatus |
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: 20120207 |