JPH06348666A

Program execution load distribution method in computer system

Abstract

(57) By assigning a method automatically to another computer of low load, and performing it for every class, at the time of execution of an application program, the summary purpose book invention distributes load, and eliminates the method assigned at the time of an end from another computer. Composition Two or more computers are connected through the communication medium 20. When a method is performed during execution of the application program 22 on OS2110 of a certain computer 211, the load sharing means 23, If the class to which the method belongs is not assigned to all the computer, either, the computer of low load will be searched, the class will be assigned, and all the methods belonging to the class of will be transmitted. And -- about the method which belongs to the class concerned when the class to which the method to perform belongs is assigned to other computers, it is execution -- being concerned -- others -- a computer is requested and the class to which the method belongs performs by a self-computer about the method which belongs to a quota たら当 this class at a self-computer. If the application program 22 is completed, the load sharing means 23 will eliminate all the methods belonging to the class assigned to the other computers concerned from other computers.

Term

Term ended

Projected expiry passed 7 June 2013, 13.3 years ago.

  1. Priority and filed
  2. Published
  3. Projected expiry
  4. Today

5 claims: 3 independent, 2 dependent

  1. 1
    [Claims] 1. A method of distributing the load of executing a program executed by a specific computer to a plurality of computers including the specific computer in a computer system having two or more computers connected via a communication medium. And A step of providing a table in which a computer to which a processing unit, which is a unit of processing constituting the program, is assigned to the specific computer is registered in association with the assigned processing unit. A step in which the specific computer sequentially executes the processing unit, and When the specific computer executes the processing unit, a step of referring to the table to determine whether or not a computer to which the processing unit is assigned exists, and When it is determined that the computer to which the processing unit is assigned does not exist, the processing unit is assigned to one of the plurality of computers, and the assigned computer is associated with the assigned processing unit to the table. A step of registering and transferring the processing unit to the assigned computer from the specific computer and executing the process. If it is determined that there is a computer to which the processing unit is assigned, the step of causing the computer to execute the processing unit and When the specific computer finishes the execution of the program, all the processing units transferred from the specific computer to the other computer are deleted from the other computer, and the table is initialized. A program execution load distribution method in a computer system characterized by having. 【特許請求の範囲】 【請求項1】通信媒体を介して接続された2以上の計算機を有する計算機システムにおいて、特定の計算機で実行されるプログラムの実行の負荷を、前記特定の計算機を含む複数の計算機に分散させる方法であって、 前記特定の計算機に、前記プログラムを構成する処理の単位である処理単位を割り当てた計算機を、割り当てた処理単位に関連付けて登録するテ-ブルを設けるステップと、 前記特定の計算機が、前記処理単位を順次実行するステップと、 前記特定の計算機が前記処理単位を実行する際に、前記テ-ブルを参照して、当該処理単位が割り当てられた計算機が存在するか否かを判断するステップと、 処理単位が割り当てられた計算機が存在しないと判断された場合に、当該処理単位を前記複数の計算機の内の一の計算機に割り当て、割り当てた計算機を割り当てた処理単位に関連付けて前記テ-ブルに登録し、割り当てた計算機に当該処理単位を前記特定の計算機より転送して実行させるステップと、 処理単位が割り当てられた計算機が存在すると判断された場合には、当該計算機に当該処理単位を実行させるステップと、 前記特定の計算機が、前記プログラムの実行を終了した際に、前記特定の計算機より他の計算機に転送した処理単位をすべて、当該他の計算機より消去し、前記テ-ブルを初期化するステップとを有することを特徴とする計算機システムにおけるプログラム実行負荷分散方法。
  2. 3
    A method of distributing the load of executing a program executed by a specific computer to a plurality of computers including the specific computer in a computer system having two or more computers connected via a communication medium. And A step of providing a table in which a computer to which a class, which is a unit of a processing group constituting the program, is assigned to the specific computer is registered in association with the assigned processing unit. A step in which the specific computer sequentially executes a method that is a process belonging to the class. When the specific computer executes an arbitrary method, a step of referring to the table to determine whether or not there is a computer to which a class to which the arbitrary method belongs exists. When it is determined that there is no computer to which the class to which the arbitrary method belongs is determined, the class is assigned to one of the plurality of computers, and the assigned computer is associated with the assigned class. -The step of registering in the bull, transferring all the methods belonging to the class to the assigned computer from the specific computer, and executing the arbitrary method. If it is determined that there is a computer to which the class to which the arbitrary method belongs is determined, the step of causing the computer to execute the arbitrary method and When the specific computer finishes executing the program, all the methods transferred from the specific computer to another computer are deleted from the other computer, and the table is initialized. A program execution load distribution method in a computer system characterized by having. 【請求項3】通信媒体を介して接続された2以上の計算機を有する計算機システムにおいて、特定の計算機で実行されるプログラムの実行の負荷を、前記特定の計算機を含む複数の計算機に分散させる方法であって、 前記特定の計算機に、前記プログラムを構成する処理群の単位であるクラスを割り当てた計算機を、割り当てた処理単位に関連付けて登録するテ-ブルを設けるステップと、 前記特定の計算機が、前記クラスに属する処理であるメソッドを順次実行するステップと、 前記特定の計算機が任意の前記メソッドを実行する際に、前記テ-ブルを参照して、当該任意のメソッドの属するクラスが割り当てられた計算機が存在するか否かを判断するステップと、 前記任意のメソッドの属するクラスが割り当てられた計算機が存在しないと判断された場合に、当該クラスを前記複数の計算機の内の一の計算機に割り当て、割り当てた計算機を割り当てたクラスに関連付けて前記テ-ブルに登録し、割り当てた計算機に当該クラスに属する全てのメソッドを前記特定の計算機より転送し、前記任意のメソッドを実行させるステップと、 前記任意のメソッドの属するクラスが割り当てられた計算機が存在すると判断された場合には、当該計算機に前記任意のメソッドを実行させるステップと、 前記特定の計算機が、前記プログラムの実行を終了した際に、前記特定の計算機より他の計算機に転送したメソッドを、当該他の計算機より全て消去し、前記テ-ブルを初期化するステップとを有することを特徴とする計算機システムにおけるプログラム実行負荷分散方法。
  3. 5
    A computer system including a communication medium and a plurality of computers connected to each other via the communication medium. The calculator The storage unit that stores the methods of the program to be executed, the computer to which the class that is the unit of processing that constitutes the program to be executed is assigned, and the load amount of execution of all the methods belonging to the class are assigned to the assigned processing unit. The load management unit that associates and stores, the method that executes the method that executes the method requested to be executed, the method execution means that reports the load required to execute the method to the requester, and the request for execution are requested. A method proxy execution means that requests the method execution means to execute the method and relays the report of the load amount to the requester, and a method proxy execution means that executes the method requested to be executed by the method of another computer. The method execution request means for relaying the report of the load amount to the requester, the class storage means for storing the transferred method in the storage unit, and all the methods belonging to the class requested to be transferred are described above. A class transfer means that transfers from the storage unit to the class storage means of another computer, When processing an arbitrary method, the computer to which the class to which the arbitrary method belongs is checked from the stored contents of the load management unit, and the computer to which the class to which the arbitrary method belongs does not exist. In this case, the computer having the smallest cumulative load of executing the method stored in association with the load management unit is determined as the computer to which the class to which the arbitrary method belongs is determined, and the class transfer means is determined. The computer is requested to transfer the class to which the arbitrary method belongs, and when the class to which the arbitrary method belongs is assigned to the own computer, the method executing means is requested to execute the arbitrary method, and the arbitrary method is executed. When the class to which the method belongs is assigned to another computer, the method execution request means is requested to request the other computer to execute the arbitrary method, and the load management unit is informed of the load charge. According to the report, the execution selection means that stores the load amount required to execute the methods belonging to each class in the load management unit in association with the computer to which the class unit is assigned, and Class erasing means that erases the method belonging to the class requested to be erased from the storage unit and initializes the stored contents of the load management unit in response to the request, erasing the class requested to be erased, and the above. A class erasing requesting means that requests the initialization of the stored contents of the load management unit to the class erasing means of another computer, and a class erasing requesting means. When the execution of the program is completed, the class erasing means is requested to initialize the stored contents of the load management unit according to the stored contents of the load management unit, and the class erasing requesting means is used to erase the class. A computer system characterized by having a program termination means for requesting a request to a device class erasing means. 【請求項5】通信媒体と、当該通信媒体を介して互いに接続された複数の計算機を有する計算機システムであって、 前記計算機は、 実行するプログラムのメソッドを記憶した記憶部と、実行するプログラムを構成する処理の単位であるクラスを割り当てた計算機と、当該クラスに属する全てのメソッドの実行の負荷量とを、割り当てた処理単位に関連付けて記憶する負荷管理部と、実行を依頼されたメソッドを実行するメソッドを実行し、当該メソッドの実行に要した負荷量の報告を依頼元に行うメソッド実行手段と、実行の依頼を依頼されたメソッドの実行を前記メソッド実行手段に依頼し、前記負荷量の報告を依頼元に中継するメソッド代理実行手段と、実行の依頼を依頼されたメソッドの実行を他の計算機のメソッドの代理実行手段に依頼し、前記負荷量の報告を依頼元に中継するメソッド実行依頼手段と、転送されたメソッドを前記記憶部に記憶するクラス格納手段と、転送を依頼されたクラスに属する全てのメソッドを前記記憶部より他の計算機のクラス格納手段に転送するクラス転送手段と、 任意の前記メソッドを処理する際に、前記負荷管理部の記憶内容より、当該任意のメソッドの属するクラスが割り当てられた計算機をチェックし、前記任意のメソッドの属するクラスが割り当てられた計算機が存在しない場合に、前記負荷管理部に対応付けられて記憶されているメソッドの実行の負荷量の累積が最も小さい計算機を前記任意のメソッドの属するクラスを割り当てる計算機として決定し、前記クラス転送手段に決定した計算機に前記任意のメソッドの属するクラスの転送を依頼し、前記任意のメソッドの属するクラスが自計算機に割り当てられている場合に、前記メソッド実行手段に前記任意のメソッドの実行を依頼し、前記任意のメソッドの属するクラスが他計算機に割り当てられている場合に、当該他の計算機への前記任意のメソッドの実行の依頼を前記メソッド実行依頼手段に依頼し、前記負荷管理部に、前記負荷料の報告に応じて、それまでに各クラスに属するメソッドの実行に要した負荷量を、当該クラス単位を割り当てる計算機に対応付けて前記負荷管理部に記憶する実行選択手段と、 消去を依頼されたクラスに属するメソッドを前記記憶部より消去し、依頼に応じて前記負荷管理部の記憶内容を初期化するクラス消去手段と、消去の依頼を依頼されたクラスの消去と、前記負荷管理部の記憶内容の初期化を他の計算機の前記クラス消去手段に依頼するクラス消去依頼手段と、 前記プログラムの実行が終了した場合に、前記負荷管理部の記憶内容に応じて、クラス消去手段に前記負荷管理部の記憶内容の初期化を依頼し、前記クラス消去依頼手段にクラスの消去の他装置のクラス消去手段への依頼を依頼するプログラム終了手段とを有することを特徴とする計算機システム。