JPH103458A - Load balancing method for database management system - Google Patents

Load balancing method for database management system

Info

Publication number
JPH103458A
JPH103458A JP8154097A JP15409796A JPH103458A JP H103458 A JPH103458 A JP H103458A JP 8154097 A JP8154097 A JP 8154097A JP 15409796 A JP15409796 A JP 15409796A JP H103458 A JPH103458 A JP H103458A
Authority
JP
Japan
Prior art keywords
processing
processing device
database management
management system
load
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.)
Granted
Application number
JP8154097A
Other languages
Japanese (ja)
Other versions
JP3712791B2 (en
Inventor
Junichi Nomoto
純一 野元
Koji Kimura
耕治 木村
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 JP15409796A priority Critical patent/JP3712791B2/en
Publication of JPH103458A publication Critical patent/JPH103458A/en
Application granted granted Critical
Publication of JP3712791B2 publication Critical patent/JP3712791B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Multi Processors (AREA)

Abstract

(57)【要約】 【課題】 各処理装置1,2,3にそれぞれデータベー
ス14,24,34が接続され、それぞれデータベース
管理システム11,21,31によってデータベース管
理を行うシステムにおいて、データベースの検索に続く
表の結合処理を未処理分の負荷の大きさに基づいて負荷
分散する。 【解決手段】 処理行数カウンタ12,22,32は、
結合処理の処理行数に応じて更新される未処理分の累積
処理行数を保持する。表xと表yの検索処理を終えた
後、データベース管理システム11は結合処理を行う処
理装置を割り当てるに当り、結合処理に伴うネットワー
ク10のデータ転送の負荷を削減するように処理装置を
選択する。2つの処理装置のネットワーク負荷が同等で
あるとき、処理行数カウンタ12,22,32の値に基
づいて負荷の少ない処理装置を選択する。
[PROBLEMS] To search databases in a system in which databases 14, 24, and 34 are connected to processing devices 1, 2, and 3, respectively, and perform database management by database management systems 11, 21, and 31, respectively. The following table join processing is load-balanced based on the size of the unprocessed load. SOLUTION: The processing line number counters 12, 22, 32 include:
The accumulated number of unprocessed lines updated according to the number of processed lines of the combining process is held. After the search processing of the tables x and y is completed, the database management system 11 selects a processing device so as to reduce the data transfer load of the network 10 due to the combining process when allocating the processing device to perform the combining process. . When the network loads of the two processing devices are equal, a processing device with a small load is selected based on the values of the processing line number counters 12, 22, and 32.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データベース管理
システムの負荷分散方法に係わり、特に複数の情報処理
装置がネットワークを介して相互に接続されるシステム
において情報処理装置の負荷を分散させる方法に関す
る。
The present invention relates to a load distribution method for a database management system, and more particularly to a method for distributing the load of an information processing device in a system in which a plurality of information processing devices are interconnected via a network.

【0002】[0002]

【従来の技術】複数の処理装置がネットワークを介して
相互に接続されるシステムにおいて、各処理装置のCP
U利用率を計測しCPU利用率に応じて負荷を分散させ
る方法が行われている。すなわちこの方法は、新しいジ
ョブや処理をいずれかの処理装置に割り当てる時点でC
PU利用率が最も低い処理装置を選択することによって
処理装置の負荷を分散させるものである。しかしこの方
法は、一時点のCPU利用率に基づいて処理装置にかか
っている負荷の大きさを推測するものであり、必ずしも
各処理装置が実際に保持している負荷の大きさを反映し
ているとは言えない。
2. Description of the Related Art In a system in which a plurality of processing devices are connected to each other via a network, a CP of each processing device is used.
A method of measuring U utilization and distributing the load according to the CPU utilization has been performed. In other words, this method uses the C at the time of assigning a new job or process to any processing device.
The load on the processing device is distributed by selecting the processing device with the lowest PU utilization. However, in this method, the magnitude of the load applied to the processing devices is estimated based on the CPU utilization at a point in time, and the method necessarily reflects the magnitude of the load actually held by each processing device. I can't say that.

【0003】なおこの種の技術として関連するものに
は、例えば特開平4−129399号公報や特開平5−
151177号公報などがある。
[0003] Related to this kind of technology are, for example, JP-A-4-129399 and JP-A-5-1993.
No. 151177.

【0004】[0004]

【発明が解決しようとする課題】CPU利用率は必ずし
も処理装置が将来消化すべき負荷の大きさを反映するも
のではないので、CPU利用率に従って負荷分散制御を
行うと、正しく負荷分散ができず、1つの処理装置に処
理が集中してしまう場合があった。
Since the CPU utilization does not necessarily reflect the magnitude of the load that the processing unit must digest in the future, if the load distribution control is performed according to the CPU utilization, the load cannot be correctly distributed. In some cases, processing is concentrated on one processing device.

【0005】本発明の目的は、データベース管理システ
ムにおいて未処理分の負荷の大きさに応じて負荷の分散
制御を行い、上記問題を解決することにある。
An object of the present invention is to solve the above problem by performing load distribution control in a database management system in accordance with the size of the unprocessed load.

【0006】[0006]

【課題を解決するための手段】本発明は、各処理装置に
少なくとも1つの表から構成されるデータベースが接続
され、並列してデータベースの検索を行うシステムにお
いて、各処理装置では検索結果の表の結合処理を行うと
きの処理行数に応じて未処理分の処理件数を示す累積処
理行数を常時更新し、2つの処理装置に関する結合処理
に伴って発生するネットワークの負荷が同等である場合
に累積処理行数の少ない処理装置に結合処理を割り当て
る負荷分散方法を特徴とする。処理装置の負荷を示す指
標として結合処理の処理行数を採用する理由は、結合処
理の処理行数からこの処理にかかるCPU時間を予測で
き、処理装置が保持する負荷の大きさをほぼ把握できる
ためである。
According to the present invention, there is provided a system in which a database composed of at least one table is connected to each processing device and the database is searched in parallel. The cumulative number of processed lines indicating the number of unprocessed processes is constantly updated according to the number of processed lines at the time of performing the combining process, and when the network load generated by the combining process for the two processing devices is equal. The present invention is characterized by a load distribution method of allocating a combining process to a processing device having a small number of accumulated processing rows. The reason for adopting the number of processing lines of the combining process as an index indicating the load of the processing device is that the CPU time required for this processing can be predicted from the number of processing lines of the combining process, and the magnitude of the load held by the processing device can be almost grasped. That's why.

【0007】[0007]

【発明の実施の形態】以下、本発明の一実施形態につい
て図面を用いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings.

【0008】図1は、本実施形態の並列計算機システム
の構成図である。並列計算機システムは、複数の処理装
置1,2,3とこれらの処理装置を相互に接続するネッ
トワーク10から構成される。各処理装置1,2,3
は、それぞれデータベース14,24,34を接続す
る。これらのデータベースは、リレーショナル・データ
ベースであり、データベース14は表Aと表B、データ
ベース24は表Cと表D、データベース34は表Eから
構成される。データベース管理システム11,21,3
1は、それぞれデータベース14,24,34を管理す
るプログラムであり、それぞれ検索結果を結合するとき
の未処理分の累積処理行数を保持する処理行数カウンタ
12,22,32を有する。UAP(ユーザ・アプリケ
ーション・プログラム)13,23,33は、それぞれ
データベース管理システム11,21,31へデータベ
ースの検索要求を発行するプログラムである。データベ
ース管理テーブル15は、データベースを構成する表の
名称とその表を所有する処理装置との対応を格納するテ
ーブルであり、処理装置1に接続される記憶装置上に格
納される。図示していないが、データベース管理テーブ
ル15は処理装置2及び3にもそれぞれ接続される。
FIG. 1 is a configuration diagram of a parallel computer system according to the present embodiment. The parallel computer system includes a plurality of processing devices 1, 2, 3, and a network 10 interconnecting these processing devices. Each processing device 1, 2, 3
Connect the databases 14, 24, 34 respectively. These databases are relational databases. The database 14 is composed of tables A and B, the database 24 is composed of tables C and D, and the database 34 is composed of table E. Database management system 11, 21, 3
Numeral 1 is a program for managing the databases 14, 24, and 34, respectively, and has processing line number counters 12, 22, and 32 for storing the cumulative number of processing lines for unprocessed data when combining search results. UAPs (user application programs) 13, 23, and 33 are programs that issue database search requests to the database management systems 11, 21, and 31, respectively. The database management table 15 is a table that stores the correspondence between the names of the tables that make up the database and the processing devices that own the tables, and is stored on a storage device connected to the processing device 1. Although not shown, the database management table 15 is also connected to the processing devices 2 and 3, respectively.

【0009】UAP13から表xと表yを検索した後に
表の結合を行うSQLが発行されたとき、データベース
管理システム11はデータベース管理テーブル15を参
照して表x及び表yを所有する処理装置の番号を求め、
各表を有する処理装置のデータベース管理システムへ検
索要求を発行する。各データベース管理システムはそれ
ぞれ表x及び表yを検索し、検索処理が終了したときヒ
ットした検索行数xn及びynをデータベース管理システ
ム11に報告する。データベース管理システム11は、
検索結果及び結合結果のネットワーク10を介するデー
タ転送量を削減するように表x又は表yを所有する処理
装置のいずれか一方に表の結合処理要求を発行する。結
合処理要求を受けた処理装置のデータベース管理システ
ムは、他方の表を所有する処理装置のデータベース管理
システムへ検索結果を要求し、検索結果を受けたとき処
理行数カウンタ12,22又は32に結合処理の処理行
数を加算してから結合処理を行う。結合処理が終了した
とき、処理行数カウンタから結合処理行数を減算した
後、データベース管理システム11へ結合結果を送信
し、データベース管理システム11がUAP13に結合
結果を渡す。表x又は表yを所有する処理装置のいずれ
を選択しても処理装置間転送が同等になるとき、データ
ベース管理システム11は表x及び表yを有する各処理
装置の処理行数カウンタの処理行数を比較し、負荷の少
ない処理装置のデータベース管理システムへ表の結合要
求を発行する。
[0009] When the UAP 13 retrieves the table x and the table y and issues an SQL that joins the tables, the database management system 11 refers to the database management table 15 to execute the processing of the processing device that owns the tables x and y. Find the number,
A search request is issued to the database management system of the processing device having each table. Each database management system searches each table x and table y, reports the search row number x n and y n hit when the search process has been completed in the database management system 11. The database management system 11
A table join processing request is issued to one of the processing apparatuses having the table x or the table y so as to reduce the data transfer amount of the search result and the join result via the network 10. The database management system of the processing device that has received the join processing request requests the search result from the database management system of the processing device that owns the other table, and when receiving the search result, combines the search result with the processing row number counter 12, 22, or 32. The combining process is performed after the number of processing lines is added. When the combining processing is completed, the number of combined processing rows is subtracted from the number of processed rows counter, and then the combining result is transmitted to the database management system 11, and the database management system 11 passes the combining result to the UAP 13. When the transfer between the processing devices becomes equivalent irrespective of which of the processing devices owning the table x or the table y is selected, the database management system 11 sets the processing line of the processing line number counter of each processing device having the table x and the table y. The numbers are compared, and a table join request is issued to the database management system of the processing device with a small load.

【0010】図2は、データベース管理テーブル15の
データ形式を示す図である。データベース管理テーブル
15は、表の識別子とその表を有する処理装置の番号と
の対応を保持する。
FIG. 2 is a diagram showing a data format of the database management table 15. The database management table 15 holds correspondence between table identifiers and numbers of processing apparatuses having the tables.

【0011】図3は、UAP13から表xと表yを検索
した後に表の結合を行うSQLが発行された後のデータ
ベース管理システム11の処理の流れを示すフローチャ
ートである。ただしステップ41,43及び45は、ネ
ットワーク10を介する処理装置のデータ転送及び他の
データベース管理システムの処理を伴う場合がある。デ
ータベース管理システム11は、データベース管理テー
ブル15を参照して表xと表yを所有する処理装置の番
号を求め、検索処理を実行する(ステップ41)。すな
わち表xと表yを所有する処理装置のデータベース管理
システムへそれぞれトランザクションIDと表x又は表
yを指定して検索要求を送信する。処理装置1が表xと
表yのいずれか一方又は両方を所有するのであれば、デ
ータベース管理システム11中の検索処理プログラムへ
検索要求を発行するだけである。検索処理が終了したと
き、データベース管理システム11は同一のトランザク
ションID、検索の結果ヒットした行数xn,yn及び処
理行数カウンタの値を受け取る。次にデータベース管理
システム11は、表xと表yが同一処理装置であれば
(ステップ42YES)、表xのある処理装置による結
合処理を行う(ステップ43)。表xと表yを所有する
処理装置が異なるとき(ステップ42NO)、表xと表
yのヒットした検索行数を比較する(ステップ44)。
表xの検索行数が大きければ(xn>yn)、表xのある
処理装置による結合処理を行う(ステップ43)。表y
の検索行数が大きければ(xn<yn)、表yのある処理
装置による結合処理を行う(ステップ45)。表xの検
索行数と表yの検索行数が等しいとき(xn=yn)、U
AP13と表xが同一処理装置にあれば(ステップ46
YES)、表xのある処理装置による結合処理を行う
(ステップ43)。UAP13と表xのある処理装置が
異なり(ステップ46NO)、UAP13と表yが同一
処理装置にあれば(ステップ47YES)、表yのある
処理装置による結合処理を行う(ステップ45)。UA
P13,表x及び表yが別々の処理装置にあれば(ステ
ップ47NO)、データベース管理システム11は、表
xを有する処理装置の処理行数p(x)mと表yを有す
る処理装置の処理行数p(y)mとを比較する(ステッ
プ48)。処理行数p(x)mの方が小さいか等しけれ
ば(p(x)m≦p(y)m)、表xのある処理装置によ
る結合処理を行う(ステップ43)。処理行数p(y)
mの方が小さければ(p(x)m>p(y)m)、表yの
ある処理装置による結合処理を行う(ステップ45)。
FIG. 3 is a flow chart showing the flow of the processing of the database management system 11 after the SQL for performing the joining of the tables after the tables x and y are searched from the UAP 13 is issued. However, steps 41, 43, and 45 may involve data transfer of the processing device via the network 10 and processing of another database management system. The database management system 11 refers to the database management table 15 to obtain the numbers of the processing devices that own the tables x and y, and executes a search process (step 41). That is, a search request is transmitted to the database management system of the processing device that owns the table x and the table y, specifying the transaction ID and the table x or the table y, respectively. If the processing device 1 owns one or both of the table x and the table y, it only issues a search request to the search processing program in the database management system 11. When the search process is completed, the database management system 11 are the same transaction ID, the number of rows x n which is hit as a result of the search, receives the value of y n and processing line number counter. Next, if the table x and the table y are the same processing device (YES in step 42), the database management system 11 performs a joining process by a processing device having the table x (step 43). When the processing devices that own the table x and the table y are different (step 42 NO), the number of search rows that hit the table x and the table y is compared (step 44).
If the number of rows to be searched for in the table x is large (x n > y n ), a combining process is performed by a certain processing device in the table x (step 43). Table y
If the number of search rows is large (x n <y n ), the combining process is performed by a processor having a table y (step 45). When the number of search rows in table x is equal to the number of search rows in table y (x n = y n ), U
If the AP 13 and the table x are in the same processing device (step 46)
YES), a combining process is performed by a processing device having a table x (step 43). If the UAP 13 is different from the processing device having the table x (NO in step 46), and if the UAP 13 and the table y are in the same processing device (YES in step 47), the combining device is processed by the processing device having the table y (step 45). UA
If P13, table x, and table y are in different processing devices (step 47 NO), the database management system 11 processes the number of rows p (x) m of the processing device having table x and the processing of the processing device having table y. The number of rows p (y) m is compared (step 48). If the number of processed rows p (x) m is smaller or equal (p (x) m ≤ p (y) m ), a combining process is performed by a processing device having a table x (step 43). Number of processed rows p (y)
If m is smaller (p (x) m > p (y) m ), a combining process is performed by a processing device having a table y (step 45).

【0012】図4は、ステップ43及びステップ45の
結合処理をさらに展開して示すフローチャートである。
UAP13のある処理装置1のデータベース管理システ
ム11は、一方の表を有し結合処理を行う処理装置へ検
索時のトランザクションIDと表x,表yを指定して結
合処理要求を送信する(ステップ51)。結合処理を行
う処理装置は、この結合処理要求を受信したとき(ステ
ップ52)、他方の表を有する処理装置へ検索時のトラ
ンザクションIDを指定して検索結果要求を送信する
(ステップ53)。他方の表を有する処理装置は、この
検索結果要求を受信すると(ステップ54)、結合処理
を行う処理装置へトランザクションIDを指定して検索
結果とヒットした検索行数を送信する(ステップ5
5)。結合処理を行う処理装置は、この検索結果を受信
すると(ステップ56)、処理行数カウンタに結合処理
の処理行数を加算することによって処理行数カウンタを
更新し(ステップ57)、表xと表yの検索結果につい
て結合処理を行う(ステップ58)。結合処理が終了す
ると、処理行数カウンタから結合処理の処理行数を減算
することによって処理行数カウンタを更新する(ステッ
プ59)。次に結合処理を行う処理装置は、処理装置1
へ結合処理要求時のトランザクションIDを指定して結
合結果を送信する(ステップ60)。データベース管理
システム11はこの結合結果を受信し(ステップ6
1)、UAP13へ渡す(ステップ62)。UAP13
のある処理装置1と結合処理を行う処理装置とが同一処
理装置であれば、同一処理装置の処理はデータベース管
理システム11内の処理となり、ネットワーク10を介
する結合処理要求と結合結果の転送はない。また結合処
理を行う処理装置と他方の表を有する処理装置とが同一
処理装置であれば、同一処理装置の処理は同一データベ
ース管理システム内の処理となり、ネットワーク10を
介する検索結果要求と検索結果の転送はない。なお図4
の例では結合処理の処理行数をヒットした検索行数xn
とynの和としたが、他にxnとynの積のようにxnとy
nの関数で表現できるものであればよい。
FIG. 4 is a flow chart showing the processing of combining steps 43 and 45 further developed.
The database management system 11 of the processing apparatus 1 having the UAP 13 transmits a join processing request to the processing apparatus having one table and performing the join processing by specifying the transaction ID at the time of search and the tables x and y (step 51). ). When the processing device that performs the combining process receives the request for the combining process (step 52), it specifies the transaction ID at the time of the search and transmits a search result request to the processing device having the other table (step 53). When the processing device having the other table receives this search result request (step 54), it specifies the transaction ID and transmits the search result and the number of search rows that have been hit to the processing device that performs the combining process (step 5).
5). Upon receiving the search result (step 56), the processing device that performs the combining process updates the processing row number counter by adding the number of processing rows of the combining process to the processing row number counter (step 57). A joining process is performed on the search result of the table y (step 58). When the combining processing is completed, the processing row number counter is updated by subtracting the number of processing rows of the combining processing from the number of processing row counters (step 59). Next, the processing device that performs the combining process is the processing device 1
A transaction result is transmitted by designating the transaction ID at the time of the request for the coupling process (step 60). The database management system 11 receives this connection result (step 6).
1) Pass it to the UAP 13 (step 62). UAP13
If a certain processing device 1 and a processing device that performs a connection process are the same processing device, the processing of the same processing device becomes a process in the database management system 11, and there is no transfer of a connection processing request and a connection result via the network 10. . If the processing device performing the combining process and the processing device having the other table are the same processing device, the processing of the same processing device is a process in the same database management system, and the search result request and the search result No transfer. FIG. 4
In the example, the number of search rows that hit the number of rows processed by the join process x n
And y n , but other than x n and y n such as the product of x n and y n
Anything that can be expressed by the function of n may be used.

【0013】上記実施形態によれば、検索処理は検索対
象の表を管理するデータベース管理システムのみが実行
できるから、データベース管理システム11はそれぞれ
の表を管理する処理装置へ検索要求を発行する。表xと
表yが同一処理装置にあれば(ステップ42YES)、
検索結果の送信のためのネットワーク10の負荷がかか
らないから、表x及び表yのある同一処理装置で結合処
理を行えばよい。表xと表yを所有する処理装置が異な
るとき(ステップ42NO)、ヒットした検索行数xn
とynのうち検索行数の多い方の処理装置で結合処理を
行うので、検索結果の転送のためにネットワーク10に
かかる負荷が少ない。検索行数xn,ynが同じ場合(x
n=yn)には、UAPと一方の表が同一処理装置にある
ような処理装置で結合処理を行うので、結合結果の転送
のためにネットワーク10の負荷がかからない。なお一
般に検索結果のデータ量に比べて結合結果のデータ量が
小さいとみなしている。検索行数xn,ynが等しく、U
AP,表x,表yがそれぞれ別の処理装置にある場合
(ステップ47NO)には、表xのある処理装置で結合
処理を行っても表yのある処理装置で結合処理を行って
もネットワーク10の負荷は同じであるので、データベ
ース管理システム11は、表xを有する処理装置の処理
行数カウンタの内容と表yを有する処理装置の処理行数
カウンタの内容を比較して、いずれか累積負荷の小さい
方の処理装置へ結合処理要求を発行する。結合処理を行
う処理装置の負荷は、結合処理の処理行数に応じて増加
するものとみなし得る。
According to the above embodiment, since only the database management system that manages the table to be searched can execute the search processing, the database management system 11 issues a search request to the processing device that manages each table. If table x and table y are in the same processing device (step 42 YES),
Since the load on the network 10 for transmitting the search result is not applied, the combining processing may be performed by the same processing device having the tables x and y. When the processing device that owns the table x and the table y are different (step 42 NO), the number x n of search rows that have been hit is obtained.
And since the binding processing by the processing device with the larger number of search lines of y n, load on the network 10 is small because of the search result transfer. When the number of search rows x n and y n are the same (x
In n = y n ), the connection processing is performed by a processing device in which the UAP and one of the tables are in the same processing device, so that the load on the network 10 is not applied to transfer the connection result. Generally, it is considered that the data amount of the combination result is smaller than the data amount of the search result. The number of searched rows x n and y n are equal and U
If the AP, the table x, and the table y are in different processing devices (NO in step 47), the network may be processed by the processing device having the table x or by the processing device having the table y. Since the load of the processing device 10 is the same, the database management system 11 compares the contents of the processing line number counter of the processing device having the table x with the contents of the processing line number counter of the processing device having the table y. A connection processing request is issued to the processing device with the smaller load. It can be considered that the load on the processing device that performs the combining process increases in accordance with the number of rows processed in the combining process.

【0014】なお上記実施形態では、UAPはいずれか
の処理装置内に所在したが、UAPが処理装置1,2,
3とは別にネットワーク10に接続されたクライアント
装置内にあってもよい。このとき処理装置1,2及び3
は、データベースを管理するサーバとして機能する。ク
ライアントからネットワーク10を介して処理装置1,
2又は3へSQLが発行されると、これを受けた処理装
置のデータベース管理システムは、関連する処理装置と
共同して図3及び図4に示す上記処理を行った後、ネッ
トワーク10を介して結合結果をクライアントへ送信す
る。
In the above embodiment, the UAP is located in any one of the processing devices.
3 may be in a client device connected to the network 10. At this time, the processing devices 1, 2, and 3
Functions as a server that manages a database. Processing devices 1 via a network 10 from a client
When the SQL is issued to 2 or 3, the database management system of the processing device that has received the SQL performs the above-described processing shown in FIGS. Send the join result to the client.

【0015】[0015]

【発明の効果】本発明によれば、結合処理の累積処理行
数を常時更新することによって各処理装置が保持する未
処理分の負荷の大きさを予測できるため、この処理行数
に基づいて結合処理の処理装置への割当をすれば、従来
問題であった負荷の集中を防ぐことができる。
According to the present invention, it is possible to predict the magnitude of the unprocessed load held by each processing device by constantly updating the cumulative number of processing lines of the combining process. By allocating the combination processing to the processing devices, it is possible to prevent the concentration of the load, which has been a problem in the related art.

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

【図1】実施形態の並列計算機システムの構成図であ
る。
FIG. 1 is a configuration diagram of a parallel computer system according to an embodiment.

【図2】実施形態のデータベース管理テーブル15のデ
ータ形式を示す図である。
FIG. 2 is a diagram illustrating a data format of a database management table 15 according to the embodiment.

【図3】実施形態の結合処理の負荷を分散させる処理の
流れを示すフローチャートである。
FIG. 3 is a flowchart illustrating a flow of a process of distributing a load of a combining process according to the embodiment.

【図4】図3の結合処理を展開して示すフローチャート
である。
FIG. 4 is a flowchart showing an expansion of the combining process of FIG. 3;

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

1,2,3:処理装置、11,21,31:データベー
ス管理システム、12,22,32:処理行数カウン
タ、14,24,34:データベース
1, 2, 3: processing device, 11, 21, 31: database management system, 12, 22, 32: processing row counter, 14, 24, 34: database

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の情報処理装置がネットワークを介し
て相互に接続され、各情報処理装置には少なくとも1つ
の表から構成されるデータベースが接続され、各情報処
理装置内のデータベース管理システムが接続されるデー
タベース内の表の検索処理を行うとともに該ネットワー
ク上のデータ転送量を削減するようにいずれかのデータ
ベース管理システムが検索結果の表の結合処理を行うシ
ステムの負荷分散方法において、 各情報処理装置では結合処理の処理行数に応じて未処理
分の累積処理行数を常時更新し、 2つの情報処理装置に関する該データ転送量が同等であ
る場合に該累積処理行数の少ない情報処理装置によって
該結合処理を行うことを特徴とするデータベース管理シ
ステムの負荷分散方法。
A plurality of information processing apparatuses are mutually connected via a network, a database composed of at least one table is connected to each information processing apparatus, and a database management system in each information processing apparatus is connected. A load balancing method for a system in which any database management system performs a process of joining tables of search results so as to perform a process of searching a table in a database to be searched and reduce a data transfer amount on the network. The apparatus always updates the cumulative number of unprocessed lines in accordance with the number of processed lines of the combining process, and when the data transfer amounts of the two information processing apparatuses are equal, the information processing apparatus with the smaller number of cumulative processed lines A load management method for a database management system, wherein
JP15409796A 1996-06-14 1996-06-14 Database management method and information processing apparatus therefor Expired - Fee Related JP3712791B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15409796A JP3712791B2 (en) 1996-06-14 1996-06-14 Database management method and information processing apparatus therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15409796A JP3712791B2 (en) 1996-06-14 1996-06-14 Database management method and information processing apparatus therefor

Publications (2)

Publication Number Publication Date
JPH103458A true JPH103458A (en) 1998-01-06
JP3712791B2 JP3712791B2 (en) 2005-11-02

Family

ID=15576855

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15409796A Expired - Fee Related JP3712791B2 (en) 1996-06-14 1996-06-14 Database management method and information processing apparatus therefor

Country Status (1)

Country Link
JP (1) JP3712791B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010271998A (en) * 2009-05-22 2010-12-02 Nippon Telegr & Teleph Corp <Ntt> Database management method, database apparatus, and program
WO2012063301A1 (en) * 2010-11-08 2012-05-18 株式会社日立製作所 Computer system, multitenant control method, and multitenant control program
JP2014211679A (en) * 2013-04-17 2014-11-13 株式会社東芝 Database system
JP2018010424A (en) * 2016-07-12 2018-01-18 株式会社東芝 Database system, data coupling method, integrating server, data coupling program, database system sharing method and database system sharing program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010271998A (en) * 2009-05-22 2010-12-02 Nippon Telegr & Teleph Corp <Ntt> Database management method, database apparatus, and program
WO2012063301A1 (en) * 2010-11-08 2012-05-18 株式会社日立製作所 Computer system, multitenant control method, and multitenant control program
JPWO2012063301A1 (en) * 2010-11-08 2014-05-12 株式会社日立製作所 Computer system, multi-tenant control method, and multi-tenant control program
JP2014211679A (en) * 2013-04-17 2014-11-13 株式会社東芝 Database system
JP2018010424A (en) * 2016-07-12 2018-01-18 株式会社東芝 Database system, data coupling method, integrating server, data coupling program, database system sharing method and database system sharing program

Also Published As

Publication number Publication date
JP3712791B2 (en) 2005-11-02

Similar Documents

Publication Publication Date Title
US8041685B2 (en) Method of changing system configuration in shared-nothing database management system
US4811207A (en) Join operation processing system in distributed data base management system
CN107545338B (en) Service data processing method and service data processing system
US5220655A (en) Distributed computer network for tracking the access path of a user
JP5536568B2 (en) Method, system, and program for aggregating and processing transactions
US5903887A (en) Method and apparatus for caching result sets from queries to a remote database in a heterogeneous database system
CN102197395A (en) Storage request management on the storage side
CN112419044A (en) Credit auditing method, equipment, electronic device and storage medium
US7246120B2 (en) Techniques for achieving higher availability of resources during reconfiguration of a cluster
CN112597173A (en) Distributed database cluster system peer-to-peer processing system and processing method
US6850957B2 (en) Information system and data access method
JP4021287B2 (en) Database search program, database search method and database search device
JPH103458A (en) Load balancing method for database management system
JPH05173990A (en) Data processing system
US7792274B2 (en) Techniques for performing multi-media call center functionality in a database management system
CN112860494A (en) Data center switching method and related equipment thereof
US20240054132A1 (en) Computer system and query processing method
CN107870924A (en) Inquire about the method and data query system of data
EP1213672A2 (en) Item allocation method, system and program for workflow system
CN117675847A (en) Data acquisition method, device and computer readable storage medium
US20050155037A1 (en) Systems and methods for providing a return value to an application program
CN108763315A (en) Data statistics management method and device
KR102571783B1 (en) Search processing system performing high-volume search processing and control method thereof
JPH01166230A (en) Data base allocation system for decentralized system
JPS63137356A (en) Distributed management method of resource information in computer network

Legal Events

Date Code Title Description
A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050818

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees