JPH07319834A - Load distribution system in distributed on-line system - Google Patents

Load distribution system in distributed on-line system

Info

Publication number
JPH07319834A
JPH07319834A JP11621294A JP11621294A JPH07319834A JP H07319834 A JPH07319834 A JP H07319834A JP 11621294 A JP11621294 A JP 11621294A JP 11621294 A JP11621294 A JP 11621294A JP H07319834 A JPH07319834 A JP H07319834A
Authority
JP
Japan
Prior art keywords
request
processing
schedule
computers
computer
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
JP11621294A
Other languages
Japanese (ja)
Inventor
Tadashi Hashimoto
忠士 橋本
Motoaki Iwasaki
元昭 岩崎
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP11621294A priority Critical patent/JPH07319834A/en
Publication of JPH07319834A publication Critical patent/JPH07319834A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To efficiently distribute processing requests as loads and to make system operation flexible in a distributed on-line system connecting plural computers through a network and providing the same service from plural computers thereby executing load distribution. CONSTITUTION:In the distributed on-line system connecting plural computers through the network, respective request scheduling computers 11, 12 are provided with queues 31, 32 for receiving request processing, schedule processors 41 to 46 for scheduling processing requests from the queues 31, 32 and a schedule process management table 51, 52 and request processing computers 13 to 15 are provided with request processing processes 61 to 66.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数計算機で同じサー
ビスを提供する分散オンラインシステムに係り、特にそ
の負荷分散方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed online system that provides the same service with a plurality of computers, and more particularly to a load distribution system for the distributed online system.

【0002】[0002]

【従来の技術】従来のオンラインシステムにおいて、複
数計算機間で負荷分散を行なった場合、処理要求に対す
る応答時間を測定し、最も応答時間が短いところへ処理
要求を行なっていた。なお、オンラインシステムにおけ
る複数計算機間での負荷分散方式は「UNIX環境のビ
ジネスシステム構築に向けて−RDBMSとTPモニタ
の徹底ガイド」(日経BP社1993年7月30日発
行)の168ページで述べられている。
2. Description of the Related Art In a conventional online system, when load distribution is performed among a plurality of computers, the response time to a processing request is measured and the processing request is issued to the place where the response time is shortest. The load balancing method between multiple computers in the online system is described on page 168 of "To Build a Business System in UNIX Environment-A Complete Guide to RDBMS and TP Monitors" (Nikkei BP, published July 30, 1993). Has been.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術は、個々
の計算機の処理時間のバラつきについて考慮されておら
ず、ある処理要求に対する処理時間がかかってしまう
と、ほかの計算機で処理が可能な場合においても、すで
に同じ計算機にスケジュールされたほかの要求は処理さ
れず不効率となる、という問題点があった。本発明の1
つの目的は、複数計算機間で負荷分散を行なう場合に、
より効率のよい負荷分散を行なう事にある。
The above-mentioned prior art does not consider variations in the processing time of individual computers, and if the processing time for a certain processing request takes a long time, the processing may be performed by another computer. However, there is a problem that other requests already scheduled to the same computer are not processed and become inefficient. 1 of the present invention
One purpose is to balance the load among multiple computers.
There is a more efficient load distribution.

【0004】また、上記従来技術では要求処理用計算機
の一部をオンライン業務から外し、バッチ業務を行ない
たい場合に外部からの要求を遮断する手段が無かった。
本発明の1つの目的は、上記要求処理用計算機の一部を
オンライン業務から外し、にバッチ業務を行なわせる
等、柔軟なシステム運用を可能とする事である。
Further, in the above-mentioned conventional technique, there is no means for cutting off a request from the outside when a part of the request processing computer is removed from the online work and the batch work is desired.
One object of the present invention is to enable a flexible system operation, such as removing a part of the request processing computer from online business and performing batch business.

【0005】[0005]

【課題を解決するための手段】本発明の第1の目的は、
複数計算機間で負荷分散を行なう場合、処理要求のキュ
ーイングとスケジュールを行なう要求スケジュール用計
算機と、要求の処理を行なう要求処理用計算機に分離し
て行う事で達せられる。
The first object of the present invention is to:
When the load is distributed among a plurality of computers, it can be achieved by separating into a request scheduling computer for queuing and scheduling processing requests and a request processing computer for processing the requests.

【0006】本発明の第2のの目的は上記スケジュール
プロセスの機能を停止、および再開始するコマンドを備
える事で達せられる。
The second object of the present invention is achieved by providing a command for stopping and restarting the function of the above schedule process.

【0007】[0007]

【作用】本発明においては、複数計算機間で負荷分散を
行なう場合には、処理要求のキューイングとスケジュー
ルを行なう要求スケジュール用計算機と、要求の処理を
行なう要求処理用計算機とに分離し、スケジュールプロ
セスから、要求処理プロセスに対し処理要求をスケジュ
ールする。これにより、キューイングされた処理要求を
効率的に処理する事ができる。また、スケジュールプロ
セスのスケジューリングを停止、再開始するコマンドを
備える。これにより、オンライン処理を行なっている計
算機の一部の計算機に対するスケジューリングを停止し
バッチ業務を行なう等、柔軟なシステム運用が可能とな
る。
According to the present invention, when load distribution is performed among a plurality of computers, a request schedule computer for queuing and scheduling processing requests and a request processing computer for processing requests are separated and scheduled. A process schedules a processing request for a request processing process. As a result, the queued processing request can be efficiently processed. It also has commands to stop and restart the scheduling of the scheduling process. As a result, flexible system operation is possible, such as stopping the scheduling of some of the computers performing online processing and performing batch jobs.

【0008】[0008]

【実施例】以下、本発明の一実施例を図面により説明す
る。図1は本発明を適用する分散処理システムの構成例
を示すブロック図である。本実施例では、計算機11,
12,13,14,15がネットワーク10に接続され
ている。そして計算機11,12は要求スケジュール用
計算機であり、外部と接続された通信回線21,22
と、該通信回線からの処理要求を受け付けるためのキュ
ー31,32と、該キューより処理要求をスケジュール
するスケジュールプロセス41〜46と、スケジュール
プロセス管理テーブル51,52が存在する。計算機1
3,14,15は要求処理計算機であり、要求処理用プ
ロセス61〜66が存在する。図1においては通信回線
21よりキュー31へキューイングした処理要求を、ス
ケジュールプロセス41,42,43がそれぞれ要求処
理プロセス61,63,65へスケジュールしており、
通信回線22よりキュー32へキューイングした処理要
求を、スケジュールプロセス44,45,46がそれぞ
れ要求処理プロセス62,64,66へスケジュールし
ている様子を示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of a distributed processing system to which the present invention is applied. In this embodiment, the computer 11,
12, 13, 14, and 15 are connected to the network 10. The computers 11 and 12 are computers for request schedules, and communication lines 21 and 22 connected to the outside.
There are queues 31 and 32 for receiving processing requests from the communication lines, schedule processes 41 to 46 for scheduling processing requests from the queues, and schedule process management tables 51 and 52. Calculator 1
Request processing computers 3, 14 and 15 are provided with request processing processes 61 to 66. In FIG. 1, processing requests queued in the queue 31 from the communication line 21 are scheduled by the schedule processes 41, 42, and 43 to the request processing processes 61, 63, and 65, respectively.
The processing requests queued in the queue 32 from the communication line 22 are shown to be scheduled by the schedule processes 44, 45, 46 to the request processing processes 62, 64, 66, respectively.

【0009】図2は、図1におけるスケジュールプロセ
ス管理テーブルの構成例を示す図である。スケジュール
プロセス対応に当該スケジュールプロセスのプロセスI
D71と、処理要求をスケジュールする計算機名72
と、処理要求の送信先プロセスのアドレス73と、スケ
ジュール状態74と、処理要求がキューイングされるキ
ューのキューID75からなる。スケジュール状態はコ
マンドによって書き換えられ、当該スケジュールプロセ
スがスケジュール停止中には”0”、スケジュール中の
場合には”1”、プロセスの停止要求時には”2”とす
る。
FIG. 2 is a diagram showing a configuration example of the schedule process management table in FIG. Process I of the schedule process to support the schedule process
D71 and computer name 72 for scheduling the processing request
The process request transmission destination process address 73, the schedule status 74, and the queue ID of the queue in which the process request is queued. The schedule state is rewritten by a command and is set to "0" when the schedule process is stopped, "1" when the schedule process is scheduled, and "2" when a process stop request is issued.

【0010】図3は、図1におけるスケジュールプロセ
スの処理要求送信処理を示すフローチャートである。本
実施例では当該スケジュールプロセスのスケジュール状
態が”2”なら(1001)、直ちにプロセスを終了す
る。スケジュール状態が”0”なら(1002)、1秒
ウエイトし、(1004)はじめから処理をやり直す。
スケジュール状態が”1”なら(1002)でかつ、キ
ューに処理要求があるなら(1003)、キューから処
理要求を取り出し(1005)、スケジュールプロセス
管理テーブルの送信先アドレスが示す要求処理プロセス
へ処理要求を送信し(1006)、要求処理プロセスの
処理結果を受信し(1007)、処理結果を処理要求元
へ送信する(1008)。キューに処理要求が無い場合
(1003)、1秒ウエイトし(1004)、はじめか
ら処理をやり直す。
FIG. 3 is a flowchart showing the processing request transmission processing of the schedule process in FIG. In this embodiment, if the schedule state of the schedule process is "2" (1001), the process is immediately terminated. If the schedule state is "0" (1002), wait for 1 second, and (1004) process is restarted from the beginning.
If the schedule status is "1" (1002) and there is a processing request in the queue (1003), the processing request is extracted from the queue (1005), and the processing request is sent to the request processing process indicated by the destination address of the schedule process management table. Is transmitted (1006), the processing result of the request processing process is received (1007), and the processing result is transmitted to the processing request source (1008). If there is no processing request in the queue (1003), wait for 1 second (1004), and then perform processing again from the beginning.

【0011】図4は、図1における要求処理プロセスの
要求処理の動作を示すフローチャートである。本実施例
では処理要求を受信すると(2001)、その要求を処
理し(2002)、処理結果を送信する(2003)。
FIG. 4 is a flow chart showing the operation of the request processing of the request processing process in FIG. In this embodiment, when a processing request is received (2001), the request is processed (2002) and the processing result is transmitted (2003).

【0012】図5は、図1におけるスケジュールプロセ
スのスケジュールを停止するコマンドの動作を示すフロ
ーチャートである。本実施例ではコマンドにスケジュー
ルを停止する計算機名と、キューIDを指定する。コマ
ンドは指定された計算機名と、キューIDを持つスケジ
ュールプロセス管理テーブルのエントリをサーチし(3
001)、スケジュール状態を”0”にする(300
2)。なお、本発明は図1に示したシステム構成に限ら
れるものではなく、図1と異る数の計算機、プロセス、
キューを含むシステム等に適用可能である。
FIG. 5 is a flow chart showing the operation of the command for stopping the schedule of the schedule process in FIG. In this embodiment, the computer name for stopping the schedule and the queue ID are specified in the command. The command searches for an entry in the schedule process management table that has the specified computer name and queue ID (3
001) and set the schedule status to "0" (300
2). Note that the present invention is not limited to the system configuration shown in FIG. 1, and the number of computers, processes,
It is applicable to a system including a queue.

【0013】[0013]

【発明の効果】本発明によれば、複数計算機間で負荷分
散を行なう分散オンラインシステムにおいて、効率的な
負荷分散が可能となる。また、システム運用に柔軟性を
持たせる事が可能である。
According to the present invention, it is possible to efficiently distribute the load in a distributed online system that distributes the load among a plurality of computers. It is also possible to give flexibility to system operation.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明を適用する分散処理システムの構成例を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration example of a distributed processing system to which the present invention is applied.

【図2】図1における処理要求スケジュールプロセス管
理テーブルの構成例を示す図である。
FIG. 2 is a diagram showing a configuration example of a process request schedule process management table in FIG.

【図3】図1におけるスケジュールプロセスの処理要求
送信処理を示すフローチャートである。
FIG. 3 is a flowchart showing a process request transmission process of the schedule process in FIG.

【図4】図1における要求処理プロセスの動作を示すフ
ローチャートである。
FIG. 4 is a flowchart showing the operation of the request processing process in FIG.

【図5】図1におけるスケジュールプロセスのスケジュ
ールを停止するコマンドの動作を示すフローチャートで
ある。
5 is a flowchart showing an operation of a command for stopping the schedule of the schedule process in FIG.

【符号の説明】[Explanation of symbols]

10…通信ネットワーク、 11…要求スケジュール用計算機、 12…要求スケジュール用計算機、 13…要求処理用計算機、 14…要求処理用計算機、 15…要求処理用計算機、 21…通信回線、 22…通信回線、 31…キュー、 32…キュー、 41…スケジュールプロセス、 42…スケジュールプロセス、 43…スケジュールプロセス、 44…スケジュールプロセス、 45…スケジュールプロセス、 46…スケジュールプロセス、 51…スケジュールプロセス管理テーブル、 52…スケジュールプロセス管理テーブル、 61…要求処理プロセス、 62…要求処理プロセス、 63…要求処理プロセス、 64…要求処理プロセス、 65…要求処理プロセス、 66…要求処理プロセス。 10 ... Communication network, 11 ... Request schedule computer, 12 ... Request schedule computer, 13 ... Request processing computer, 14 ... Request processing computer, 15 ... Request processing computer, 21 ... Communication line, 22 ... Communication line, 31 ... Queue, 32 ... Queue, 41 ... Schedule process, 42 ... Schedule process, 43 ... Schedule process, 44 ... Schedule process, 45 ... Schedule process, 46 ... Schedule process, 51 ... Schedule process management table, 52 ... Schedule process management Table, 61 ... Request processing process, 62 ... Request processing process, 63 ... Request processing process, 64 ... Request processing process, 65 ... Request processing process, 66 ... Request processing process.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数の計算機をネットワークで結合し、複
数の計算機で同じサービスを提供し、負荷分散を行なっ
ている分散オンラインシステムにおいて、データの処理
要求を受け付けるための1つ又は複数の要求スケジュー
ル用計算機と、受け付けた要求を処理するための1つ又
は複数の要求処理用計算機と、上記要求スケジュール用
計算機内に処理要求をキューイングするためのキュー
と、上記要求スケジュール用計算機内に上記要求処理用
計算機に対応するスケジュールプロセスと、上記スケジ
ュールプロセスの管理テーブルを供え、上記要求処理用
計算機内に上記スケジュールプロセスと対応した要求処
理プロセスを持ち、上記スケジュールプロセスが上記要
求処理プロセスに処理要求をスケジュールする事を特徴
とした分散オンラインシステムの負荷分散方式。
1. A distributed online system in which a plurality of computers are connected via a network, the same service is provided by the plurality of computers, and load distribution is performed, and one or a plurality of request schedules for accepting data processing requests. Computer, one or more request processing computers for processing the received requests, a queue for queuing processing requests in the request schedule computer, and the request in the request schedule computer Provide a schedule process corresponding to the processing computer and a management table of the schedule process, have a request processing process corresponding to the schedule process in the request processing computer, and the schedule process sends a processing request to the request processing process. Distributed online that features scheduling Load-balancing method of the system.
【請求項2】請求項1の負荷分散方式に加え、上記スケ
ジュールプロセスの機能をコマンドにより停止および再
開始できる事を特徴とした分散オンラインシステムの負
荷分散方式。
2. A load balancing method for a distributed online system, wherein in addition to the load balancing method according to claim 1, the function of the schedule process can be stopped and restarted by a command.
JP11621294A 1994-05-30 1994-05-30 Load distribution system in distributed on-line system Pending JPH07319834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11621294A JPH07319834A (en) 1994-05-30 1994-05-30 Load distribution system in distributed on-line system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11621294A JPH07319834A (en) 1994-05-30 1994-05-30 Load distribution system in distributed on-line system

Publications (1)

Publication Number Publication Date
JPH07319834A true JPH07319834A (en) 1995-12-08

Family

ID=14681618

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11621294A Pending JPH07319834A (en) 1994-05-30 1994-05-30 Load distribution system in distributed on-line system

Country Status (1)

Country Link
JP (1) JPH07319834A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10334064A (en) * 1997-05-27 1998-12-18 Shikoku Nippon Denki Software Kk Load distribution system
US7712103B2 (en) 2005-03-15 2010-05-04 Hitachi, Ltd. Method and system for managing load balancing in data processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10334064A (en) * 1997-05-27 1998-12-18 Shikoku Nippon Denki Software Kk Load distribution system
US7712103B2 (en) 2005-03-15 2010-05-04 Hitachi, Ltd. Method and system for managing load balancing in data processing system

Similar Documents

Publication Publication Date Title
JPH0844576A (en) Dynamic workload balancing
CA2194766A1 (en) Computer system having client-server architecture
JPH0820963B2 (en) Method for operating computer system and computer system
JP2741994B2 (en) Processing apparatus having job environment dynamic change function and processing method
EP1490781A2 (en) Most eligible server in a common work queue environment
CN109189581B (en) Job scheduling method and device
JPS61196326A (en) Priority processing system
CN113849295A (en) Model training method and device and computer readable storage medium
JPH07319834A (en) Load distribution system in distributed on-line system
JPH0749837A (en) Management system for batch job start-up from on-line terminal
JP2001282551A (en) Job processor and job processing method
JP3266641B2 (en) Control device and mail server
JP2006350474A (en) Real time processing system, processor, real time processing method and program
JPH11120147A (en) Load distributed control method
JP3569341B2 (en) Parallel computer system
JPH04149762A (en) Data control system
JPH09223031A (en) Program control method and device therefor
TH17652C3 (en) High performance computer resource management system
JPH06259362A (en) Multi-server control system
JPH0877029A (en) Processing request execution order control system based upon load rate
JPH05314070A (en) Message queue managing system
JPH06230982A (en) Transaction processing control system
JPH06195317A (en) Data processing system
JPH0476655A (en) Edition request scheduling system
JPH06110699A (en) Work execution order control method