JP3380197B2 - Monitoring target determining device and its recording medium - Google Patents

Monitoring target determining device and its recording medium

Info

Publication number
JP3380197B2
JP3380197B2 JP34141499A JP34141499A JP3380197B2 JP 3380197 B2 JP3380197 B2 JP 3380197B2 JP 34141499 A JP34141499 A JP 34141499A JP 34141499 A JP34141499 A JP 34141499A JP 3380197 B2 JP3380197 B2 JP 3380197B2
Authority
JP
Japan
Prior art keywords
server
computer
ranking
service
determination
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.)
Expired - Fee Related
Application number
JP34141499A
Other languages
Japanese (ja)
Other versions
JP2001155002A (en
Inventor
順也 大堀
直樹 石原
友美 津守
亨 長岡
Original Assignee
エヌ・ティ・ティ・コムウェア株式会社
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 エヌ・ティ・ティ・コムウェア株式会社 filed Critical エヌ・ティ・ティ・コムウェア株式会社
Priority to JP34141499A priority Critical patent/JP3380197B2/en
Publication of JP2001155002A publication Critical patent/JP2001155002A/en
Application granted granted Critical
Publication of JP3380197B2 publication Critical patent/JP3380197B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Multi Processors (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数のサーバによ
りサービスを提供するシステムにおいて、該複数のサー
バに各々搭載され、自装置を搭載したサーバが障害を監
視する対象となる監視対象サーバを決定する監視対象決
定装置およびその記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for providing a service by a plurality of servers, each server being mounted on the plurality of servers, and a server equipped with its own device determines a monitoring target server for failure monitoring. Monitoring target determination device and its recording medium.

【0002】[0002]

【従来の技術】サーバがネットワークを介してクライア
ントにサービスを提供するシステム(以下、サービス提
供システムという)において、サーバ側で障害が発生し
た場合でもクライアントに対するサービスを停止させた
くない場合、何らかの耐障害対策を施す必要がある。こ
の耐障害対策の一例としては、サービスを提供するプラ
イマリサーバにおいて発生する障害を監視し、障害が発
生した場合は、プライマリサーバに代わってサービスを
提供する待機系サーバを設ける方法がある。
2. Description of the Related Art In a system in which a server provides a service to a client via a network (hereinafter referred to as a service providing system), even if a failure occurs on the server side, if it is not desired to stop the service to the client, some fault tolerance is required. It is necessary to take measures. As an example of this fault tolerance measure, there is a method of monitoring a failure that occurs in a primary server that provides a service and providing a standby server that provides the service instead of the primary server when the failure occurs.

【0003】また、上述した耐障害対策をさらに強固に
する方法としては、上記待機系サーバで発生する障害を
監視する第2の待機系サーバを設ける方法がある。この
場合、例えばプライマリサーバで障害が発生したため
に、待機系サーバがサービスを提供している状態におい
て、さらに待機系サーバに障害が発生した場合、当該待
機系サーバに代わって、上記第2の待機系サーバがサー
ビスの提供を行う。このようにして、さらに第2の待機
系サーバを監視する第3の待機系サーバ、第3の待機系
サーバを監視する第4の待機系サーバ、というように待
機系サーバを順次追加して、リレー形式で各サーバの監
視を行うことで、より強固な耐障害対策を施すことがで
きる。
Further, as a method of further strengthening the above-mentioned fault tolerance measure, there is a method of providing a second standby system server for monitoring a failure occurring in the standby system server. In this case, for example, when a failure occurs in the standby server and the standby server further fails while the standby server is providing a service, the second standby server replaces the standby server. The system server provides the service. In this way, standby servers are sequentially added, such as a third standby server that monitors the second standby server, a fourth standby server that monitors the third standby server, and so on. By monitoring each server in a relay format, more robust fault-tolerant measures can be taken.

【0004】[0004]

【発明が解決しようとする課題】ところで、上述した耐
障害対策においては、人手によってどのサーバがどのサ
ーバを監視するのかを決定し、予め各サーバにどのサー
バを監視するのかを設定しておかなければならなかっ
た。また、例えば、プライマリサーバと1台の待機系サ
ーバとで構成されるサービス提供システムにおいて、上
記プライマリサーバと待機系サーバとの間に第2の待機
系サーバを新たに設置する場合、まず、あらかたに設置
する第2の待機系サーバに対し、監視対象をプライマリ
サーバとする設定を行い、さらに、既存の待機系サーバ
に対しては、監視対象のサーバをプライマリサーバから
上記第2の待機系サーバに変更するという作業を行う必
要があった。
In the fault tolerance measures described above, it is necessary to manually determine which server should monitor which server, and set each server in advance which server should be monitored. I had to do it. In addition, for example, in a service providing system including a primary server and one standby server, when a second standby server is newly installed between the primary server and the standby server, first, The second standby server installed in the server is set so that the monitoring target is the primary server, and for existing standby servers, the monitoring target server is changed from the primary server to the second standby server. It was necessary to change to.

【0005】このため、サービス提供システム内に多数
の待機系サーバを設置する場合や、多数の待機系サーバ
を擁する既存のサービス提供システムに、複数の待機系
サーバを追加する場合などは、上述した監視対象サーバ
の設定および変更作業に多くの手間と時間がかかってい
た。
Therefore, when a large number of standby system servers are installed in the service providing system, or when a plurality of standby system servers are added to an existing service providing system having a large number of standby system servers, etc. It took a lot of time and effort to set up and change the monitored server.

【0006】本発明は、上述した事情に鑑みてなされた
ものであり、複数のサーバが、リレー形式で各サーバの
監視を行う場合において、各サーバが各々監視対象とな
るサーバを自発的に決定することができる監視対象決定
装置およびその記録媒体を提供することを目的とする。
The present invention has been made in view of the above-mentioned circumstances, and when a plurality of servers monitor each server in a relay format, each server voluntarily determines each server to be monitored. It is an object of the present invention to provide a monitoring target determining device and a recording medium therefor.

【0007】[0007]

【課題を解決するための手段】請求項1に記載の発明
は、複数のサーバに各々搭載され、自装置を搭載したサ
ーバが障害を監視する対象となる監視対象サーバを決定
する監視対象決定装置において、前記複数のサーバに各
々搭載された複数の監視対象決定装置のうち、自装置を
搭載したサーバの順位を決定するための順位決定情報を
生成する生成手段と、自装置の起動時に、前記複数のサ
ーバ内に、クライアントに対するサービスを実行してい
るプライマリサーバが存在するか否かを判断する判断手
段と、前記判断手段によりプライマリサーバが存在する
と判断された場合、該プライマリサーバから自装置以外
の監視対象決定装置を搭載した各サーバの順位決定情報
を取得する取得手段と、前記生成手段により生成された
自装置を搭載したサーバの順位決定情報と、前記取得手
段により取得された各サーバの順位決定情報とに基づい
て、自装置を搭載したサーバの順位を決定する順位決定
手段と、前記順位決定手段によって決定された順位に従
って、全サーバの順位決定情報を記憶する記憶手段と、
前記順位決定手段によって決定された順位が自順位より
1つ上位の順位のサーバに対して自装置を搭載したサー
バの登録を要求する登録要求手段と、他のサーバからの
登録要求を受け、前記記憶手段に記憶されている前記順
位決定情報に前記登録要求があった他のサーバを登録す
ると共に、該登録を行った時点において自装置を搭載し
たサーバの順位より1つ上位の順位のサーバに対して、
前記登録要求があった他のサーバの登録を要求する更新
登録手段と、前記記憶手段の記憶内容に基づいて、自装
置を搭載したサーバの順位よりも1つ順位の高いサーバ
を監視対象サーバと決定する監視対象決定手段とを有す
ることを特徴としている。
According to a first aspect of the present invention, there is provided a monitoring target determining apparatus which is mounted on each of a plurality of servers and which determines a monitoring target server which is a target of failure monitoring by the server on which the own apparatus is mounted. In the above, among the plurality of monitoring target determination devices installed in each of the plurality of servers, a generation unit that generates order determination information for determining the order of the server in which the own device is installed; A determination unit that determines whether or not there is a primary server that is executing a service for a client in a plurality of servers, and if the determination unit determines that the primary server exists, the primary server excludes itself. Acquisition unit for acquiring the order determination information of each server equipped with the monitoring target determination device, and a server equipped with the own device generated by the generation unit. And Ba of rank determining information based was acquired and rank determining information for each server by the acquisition unit, a rank determining means for determining a ranking of the server equipped with its own device order determined by the order determination means Storage means for storing ranking determination information of all servers according to
The ranking determined by the ranking determining means is more than the own ranking.
A server that has its own device mounted on the server one rank higher
Registration request means for requesting registration of the
Upon receipt of the registration request, the order stored in the storage means
Register another server for which the registration request was made in the position determination information.
At the same time as the registration,
The server one rank higher than the rank of the server
Update requesting registration of another server for which the registration request was made
It is characterized by comprising a registration means and a monitoring target determination means for determining, as a monitoring target server, a server having a higher rank than that of the server on which the own device is mounted, based on the stored contents of the storage means.

【0008】請求項2に記載の発明は、請求項1に記載
の監視対象決定装置において、前記判断手段によりプラ
イマリサーバが存在しないと判断された場合、自装置を
搭載したサーバにサービスの実行を指示するサービス実
行指示手段と、自装置を搭載したサーバがサービスを実
行中に、サービスを実行している他のサーバが存在して
いた場合、該他のサーバに搭載された監視対象決定装置
内の記憶手段に記憶された順位決定情報を取得する順位
決定情報取得手段と、前記順位決定情報取得手段が取得
した順位決定情報のうち、前記サービスを実行している
他のサーバの順位決定情報と、自装置を搭載したサーバ
の順位決定情報とを比較する比較手段と、前記比較手段
による比較の結果、前記他のサーバよりも自装置を搭載
したサーバの方が順位が低かった場合、自装置を搭載し
たサーバに対してサービスを停止させるサービス停止手
段とを有することを特徴とする。
According to a second aspect of the present invention, there is provided a monitoring target determining apparatus according to the first aspect, wherein the determining means determines the plan.
If it is determined that the Imari server does not exist,
A service instance that instructs the installed server to execute the service.
The line instructing means and the server equipped with its own device implement the service.
In the line there are other servers running services
If so, the monitoring target determination device installed in the other server
Ranking for obtaining ranking determination information stored in the internal storage means
Acquired by the determination information acquisition means and the ranking determination information acquisition means
Among the determined ranking information, the service is being executed
Server that has own device and ordering information of other servers
Comparing means for comparing the ranking determination information of the
As a result of comparison, the own device is installed more than the other servers
If the server that did
Service stop service that stops the service for the specified server
It is characterized by having a step .

【0009】請求項3に記載の発明は、請求項1または
請求項2に記載の監視対象決定装置において、前記生成
手段が生成する順位決定情報は、自装置が起動した起動
時刻であって、該起動時刻が早いほど自装置を搭載した
サーバの全サーバ内における順位が高いことを特徴とす
る。
According to a third aspect of the present invention, in the monitoring target determination device according to the first or second aspect, the generation is performed.
The ranking determination information generated by the means is the activation started by the own device.
It is the time, and the earlier the starting time is, the more the own device is installed.
The server is characterized by a high ranking in all servers
It

【0010】請求項4に記載の発明は、複数のコンピュ
ータによって構成されるサービス提供システムの各コン
ピュータに搭載されるコンピュータ読み取り可能な記録
媒体であって、コンピュータに、自コンピュータの順位
を決定するための順位決定情報を生成する第1の手順
と、自コンピュータの起動時に、前記複数のコンピュー
タ内に、クライアントに対するサービスを実行している
プライマリコンピュータが存在するか否かを判断する第
2の手順と、前記判断する手順によりプライマリコンピ
ュータが存在すると判断された場合、該プライマリコン
ピュータから各コンピュータの順位決定情報を取得する
第3の手順と、前記第3の手順で取得された順位決定情
報と、前記第1の手順で生成された自コンピュータの順
位決定情報とに基づいて、自コンピュータの順位を決定
する第4の手順と、前記第4の手順によって決定された
自コンピュータの順位を含む各コンピュータの順位決定
情報を記憶手段に書き込む第5の手順と、前記記憶手段
内の順位決定情報に基づく順位が自順位より1つ上位の
順位のコンピュータに対して自コンピュータの順位の登
録を要求する第6の手順と、他のコンピュータからの登
録要求を受け、該登録要求があったコンピュータの順位
を前記記憶手段に登録すると共に、該登録を行った時点
において自順位より1つ上位の順位のコンピュータに対
して、新たに登録したコンピュータの登録を要求する第
7の手順と、前記記憶手段の記憶内容に基づいて、自装
置を搭載したコンピュータの順位よりも1つ順位の高い
コンピュータを監視対象コンピュータと決定する第8の
手順とを実行させるためのプログラムを記録したコンピ
ュータ読み取り可能な記録媒体である。
The invention according to claim 4 is a computer system comprising a plurality of computers.
Each component of the service provision system composed of
Computer readable records on computer
It is a medium, and the computer ranks itself.
First procedure for generating ranking determination information for determining
When the local computer starts, the
Service for clients is running
The first to determine if the primary computer exists
According to the procedure of 2 and the above-mentioned judgment procedure,
If it is determined that the computer exists, the primary computer
Get ranking information for each computer from the computer
The third procedure and the ranking determination information acquired in the third procedure.
Information and the order of the own computer generated in the first procedure
Determine the ranking of your computer based on the ranking information
A fourth step to do and determined by the fourth step
Determine the ranking of each computer, including the ranking of its own computer
Fifth procedure for writing information in storage means, and said storage means
The ranking based on the ranking decision information in the
The ranking of your computer is higher than the ranking computer.
The sixth step to request recording and registration from another computer
The rank of the computer that received the registration request and made the registration request
At the time of registering with the storage means
At the computer one rank higher than your rank in
And request the registration of the newly registered computer.
Based on the procedure of No. 7 and the stored contents of the storage means,
One rank higher than the rank of the computer equipped with
Eighth method of determining a computer as a monitored computer
A computer program that records the steps and programs for executing
It is a computer-readable recording medium.

【0011】[0011]

【0012】[0012]

【発明の実施の形態】以下、図面を参照して、本発明に
係る監視対象決定装置の一実施形態について説明する。
図1は、本実施形態における監視対象決定装置が適用さ
れるサービス提供システムの構成例を示すブロック図で
ある。この図において、1はサービス提供システムであ
り、ネットワーク2を介してクライアント3からの要求
に応じて所定のサービスを提供する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of a monitoring target determining apparatus according to the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration example of a service providing system to which the monitoring target determining device according to the present embodiment is applied. In this figure, reference numeral 1 is a service providing system, which provides a predetermined service in response to a request from a client 3 via a network 2.

【0013】サービス提供システム1は、複数のサーバ
10−1,10−2,……,10−nからなっている。
ここで、サーバ10−1,10−2,……,10−n
は、例えばネットワーク2を介して他のサーバまたはク
ライアントと通信を行うことができる通信機能を持った
パーソナルコンピュータまたはワークステーション等の
コンピュータである。これらサーバは、各々が起動する
時に監視対象となる他のサーバ(監視対象サーバ)を決
定し、その監視対象サーバがサービスを提供している時
に何らかの障害が発生した場合、その監視対象サーバに
代わってサービスを提供する。
The service providing system 1 comprises a plurality of servers 10-1, 10-2, ..., 10-n.
Here, the servers 10-1, 10-2, ..., 10-n
Is a computer such as a personal computer or a workstation having a communication function capable of communicating with other servers or clients via the network 2. Each of these servers determines the other server (monitored server) to be monitored when it starts up, and if any failure occurs while the monitored server is providing services, it replaces that monitored server. To provide services.

【0014】なお、サービスの提供は、予めインストー
ルされているサービスアプリケーションを実行すること
により行われる。また、上述した複数のサーバの内、サ
ービスを提供するサーバは1台のみであり、以下、この
サーバをプライマリサーバといい、それ以外のサーバは
待機系サーバという。図1においては、サーバ10−1
がプライマリサーバとなっており、サーバ10−2,…
…,10−nが待機系サーバとなっている。
The service is provided by executing a service application installed in advance. Further, among the above-mentioned plurality of servers, only one server provides the service. Hereinafter, this server is referred to as a primary server, and the other servers are referred to as standby servers. In FIG. 1, the server 10-1
Is the primary server, and servers 10-2, ...
..., 10-n are standby servers.

【0015】次に上述した各サーバの構成を図2に示
す。この図において、101は送受信部であり、LAN
2に接続され、サーバ内の各部が他のサーバまたはクラ
イアント3と通信を行う。なお、本実施形態では、サー
バ間およびサーバ−クライアント間の通信をTCP/I
Pプロトコルを用いて行っている。102は時計(生成
手段)であり、図示せぬ電池等により常に時刻を計時し
ている。なお、本実施形態では、従来の技術を用いて各
サーバが具備する時計102が全て同時刻を計時するよ
うに自動的に調整されているものとする。103はサー
ビス提供システム内の全サーバのIPアドレスと、各サ
ーバが起動した時刻とを対応付けて記憶しているテーブ
ル(記憶手段)である。
FIG. 2 shows the configuration of each server described above. In this figure, 101 is a transmission / reception unit, which is a LAN
2, each unit in the server communicates with another server or client 3. It should be noted that in the present embodiment, communication between the server and between the server and the client is performed by TCP / I.
The P protocol is used. Reference numeral 102 denotes a clock (generation means), which constantly keeps time with a battery or the like (not shown). In the present embodiment, it is assumed that all the clocks 102 included in each server are automatically adjusted to measure the same time using the conventional technique. Reference numeral 103 denotes a table (storage unit) that stores the IP addresses of all the servers in the service providing system and the times when the servers are activated in association with each other.

【0016】ここで、図3にテーブル103の内容を示
す。この図に示すように、各サーバのIPアドレスと起
動時刻は、起動時刻が早い順に記憶されている。また、
「順番」“0”のサーバがプライマリサーバであり、以
下、各サーバは、各々自サーバの1つ上の順位のサーバ
を監視することなる。
The contents of the table 103 are shown in FIG. As shown in this figure, the IP address and the activation time of each server are stored in the order of earlier activation time. Also,
The server of "order""0" is the primary server, and hereinafter, each server monitors the server one rank higher than its own server.

【0017】104は監視部であり、テーブル103の
内容に基づいて、監視対象サーバの決定、および、サー
ビスの実行/停止の決定等を行うと共に、決定した監視
対象サーバの監視を行う。105は処理部であり、監視
部104の指示に基づいて、予め自サーバにインストー
ルされているサービスアプリケーション(図示略)を実
行することにより、クライアント3に所定のサービスを
提供する。106は応答部であり、他のサーバから送信
されてきた各種通知(後述する)の内容に応じて、テー
ブル103の更新および他のサーバへの各種通知を行
う。
A monitoring unit 104 determines a monitoring target server, determines whether to execute or stop the service, and the like based on the contents of the table 103, and also monitors the determined monitoring target server. Reference numeral 105 denotes a processing unit, which provides a predetermined service to the client 3 by executing a service application (not shown) installed in the server in advance based on an instruction from the monitoring unit 104. A response unit 106 updates the table 103 and performs various notifications to other servers according to the contents of various notifications (described later) transmitted from other servers.

【0018】なお、図2において、送受信装置101、
タイマ102、テーブル103、監視部104(監視機
能を除く)、および、応答部106が監視対象決定装置
に相当する。また、以下、自監視対象決定装置を搭載し
たサーバを自サーバという。
In FIG. 2, the transmitting / receiving device 101,
The timer 102, the table 103, the monitoring unit 104 (excluding the monitoring function), and the response unit 106 correspond to the monitoring target determination device. Further, hereinafter, the server equipped with the self-monitoring target determining device is referred to as a self-server.

【0019】以下、図4〜図6に示すフローチャートを
参照して、上述したサーバの動作について説明する。こ
こで、図4および図5は、監視部104の動作を示すフ
ローチャート、図6は応答部106の動作を示すフロー
チャートである。
The operation of the above server will be described below with reference to the flow charts shown in FIGS. 4 and 5 are flowcharts showing the operation of the monitoring unit 104, and FIG. 6 is a flowchart showing the operation of the response unit 106.

【0020】まず、監視対象決定装置が起動されると、
監視部104は、時計102が計時している時刻を読み
取った後、図4のステップSa1へ進み、サーバ提供シ
ステム1内の全サーバに対して、プライマリサーバであ
るか否かの問い合わせを同報送信する。この同報送信
は、TCP/IPプロトコルのUDP(User DatagramP
rotocol)を用いて行われる。次に、ステップSa2へ
進み、ステップSa1で行った問い合わせに対し、他の
サーバから、自サーバはプライマリサーバであるとの応
答通知が返信されてくるか否かを判断する。ここで、ス
テップSa1およびSa2の処理は判断手段に相当す
る。
First, when the monitoring target determining device is activated,
After reading the time measured by the clock 102, the monitoring unit 104 proceeds to step Sa1 in FIG. 4 and broadcasts an inquiry to all the servers in the server providing system 1 as to whether or not the server is the primary server. Send. This broadcast transmission uses UDP (User DatagramP) of TCP / IP protocol.
rotocol). Next, the process proceeds to step Sa2, and it is determined whether or not a response notification that the own server is the primary server is returned from another server in response to the inquiry made in step Sa1. Here, the processing of steps Sa1 and Sa2 corresponds to the determination means.

【0021】そして、ステップSa2において、所定時
間内に上記応答通知が返信されてきた場合は、サービス
提供システム1内にプライマリサーバが存在していると
判断し、判断結果がYESとなってステップSa3へ進
む。一方、所定時間が経過しても上記応答通知が返信さ
れてこなかった場合は、サービス提供システム1内にプ
ライマリサーバが存在していないと判断し、判断結果が
NOとなり、図5のステップSa11へ進む。以下、サ
ービス提供システム1内にプライマリサーバが存在して
いた場合と、存在していなかった場合とに分けて説明す
る。
Then, in step Sa2, when the response notification is returned within the predetermined time, it is determined that the primary server exists in the service providing system 1, and the determination result is YES and step Sa3. Go to. On the other hand, if the response notification is not returned even after the lapse of the predetermined time, it is determined that the primary server does not exist in the service providing system 1, the determination result is NO, and the process proceeds to step Sa11 in FIG. move on. Hereinafter, the case where the primary server exists in the service providing system 1 and the case where the primary server does not exist will be described separately.

【0022】[プライマリサーバが存在していた場合]
ステップSa2で、サービス提供システム1内にプライ
マリサーバが存在すると判断された場合、判断結果がY
ESとなってステップSa3へ進み、プライマリサーバ
に対し、当該プライマリサーバのテーブル103内に記
憶されている内容の送信を要求するためのテーブル参照
通知を行う。ここで、プライマリサーバのIPアドレス
は、当該プライマリサーバから送信されてきた応答通知
内に含まれていた送信元IPアドレスから判断する。そ
して、ステップSa4へ進み、上記テーブル参照通知に
応じて返信されてきたテーブルの内容を受信し、テーブ
ル103に記憶する。ここで、ステップSa3およびS
a4の処理は取得手段に相当する。
[When the primary server exists]
When it is determined in step Sa2 that the primary server exists in the service providing system 1, the determination result is Y.
The ES becomes ES, and the process proceeds to step Sa3, and a table reference notification for requesting the transmission of the contents stored in the table 103 of the primary server is issued to the primary server. Here, the IP address of the primary server is determined from the source IP address included in the response notification transmitted from the primary server. Then, the process proceeds to step Sa4, and the contents of the table returned in response to the table reference notification are received and stored in the table 103. Here, steps Sa3 and S
The processing of a4 corresponds to the acquisition means.

【0023】次に、ステップSa5(順位決定手段)へ
進み、起動時に読み取った時計102の時刻と、ステッ
プSa4でテーブル103に記憶された各サーバの起動
時刻とを順次比較していく。次いで、各サーバの起動時
刻の中で、自サーバの起動時刻よりも早く、かつ、自サ
ーバの起動時刻との時間差が最も小さいサーバを検索す
る。そして、ステップSa4で記憶したテーブル103
の内容に対し、検索されたサーバの次の順位に、自サー
バのIPアドレスおよび起動時刻を追加する。この時、
上記検索されたサーバの次の順位以降に位置していたサ
ーバの順位を1つずつ繰り下げていく。
Next, the process proceeds to step Sa5 (rank determining means), and the time of the clock 102 read at startup is sequentially compared with the startup time of each server stored in the table 103 at step Sa4. Next, the server is searched for a server that is earlier than the start time of the server itself and has the smallest time difference from the start time of the server among the start times of the servers. Then, the table 103 stored in step Sa4
With respect to the contents of, the IP address and the start time of the own server are added to the next rank of the searched server. This time,
The rank of the server positioned after the rank next to the searched server is lowered one by one.

【0024】次にステップSa6(登録要求手段)へ進
み、検索されたサーバに対し、当該サーバのテーブル1
03内に、自サーバを登録するよう登録要求を行う。こ
の時、登録要求と共に自サーバの起動時刻も送信する。
Next, the process proceeds to step Sa6 (registration requesting means), and for the searched server, the table 1 of that server is displayed.
In 03, a registration request is made to register the own server. At this time, the start time of the server itself is also transmitted together with the registration request.

【0025】次にステップSa7へ進み、登録要求の送
信先のサーバ(以下、送信先サーバという)のテーブル
103内に、自サーバが登録されたか否かの判断を行
う。この判断は、当該送信先サーバから、登録完了通知
と登録失敗通知のいずれが返信されてくるかによって行
われる。なお、登録完了通知と登録失敗通知について
は、後述する応答部106の動作説明において説明す
る。そして、送信先サーバから応答失敗通知を受信した
場合は、監視対象サーバ内のテーブルに登録されなかっ
たと判断し、判断結果がNOとなってステップSa8へ
進む。ステップSa8に進むと、一定時間待機した後、
再度ステップSa3以降の処理を行う。
Next, in step Sa7, it is determined whether or not the own server is registered in the table 103 of the server to which the registration request is transmitted (hereinafter referred to as the transmission destination server). This determination is made based on which of the registration completion notification and the registration failure notification is returned from the transmission destination server. The registration completion notification and the registration failure notification will be described later in the description of the operation of the response unit 106. Then, when the response failure notification is received from the destination server, it is determined that the notification is not registered in the table in the monitored server, the determination result is NO, and the process proceeds to step Sa8. After proceeding to step Sa8, after waiting for a certain period of time,
The processing after step Sa3 is performed again.

【0026】一方、ステップSa7において、登録完了
通知を受信した場合は、送信先サーバ内のテーブルに自
サーバが登録されたと判断し、判断結果がYESとなっ
てステップSa9(監視対象決定手段)へ進む。ステッ
プSa9では、テーブル103を参照し、自サーバより
も1つ順位が上のサーバを監視対象サーバと決定し、そ
のサーバの監視を開始する。そして、ステップSa10
に進み、応答部106を起動した後、処理を終了する。
On the other hand, when the registration completion notice is received in step Sa7, it is determined that the server is registered in the table in the destination server, the determination result is YES, and the process proceeds to step Sa9 (monitoring target determining means). move on. In step Sa9, the table 103 is referred to, the server one rank higher than the own server is determined as the monitoring target server, and monitoring of that server is started. Then, step Sa10
After activating the response unit 106, the process ends.

【0027】[プライマリサーバが存在していなかった
場合]ステップSa2で、サービス提供システム1内に
プライマリサーバが存在しないと判断された場合、判断
結果がNOとなって図5のステップSa11へ進む。以
下、図5を参照してプライマリサーバが存在しないと判
断された場合の動作について説明する。
[If the primary server does not exist] If it is determined in step Sa2 that the primary server does not exist in the service providing system 1, the determination result is NO and the process proceeds to step Sa11 in FIG. Hereinafter, the operation when it is determined that the primary server does not exist will be described with reference to FIG.

【0028】まず、ステップSa11(サービス実行指
示手段)で、監視部104は、処理部105に対してサ
ービスアプリケーションを実行するよう指示する。これ
により、処理部105は予めインストールされていたサ
ービスアプリケーションを実行し、クライアント3に対
するサービスを開始する。次にステップSa12へ進ん
で応答部106を起動した後、ステップSa13へ進
み、予め設定された一定時間待機する。そして、一定時
間が経過するとステップSa14へ進み、ステップSa
1と同様の処理を行い、サーバ提供システム1内の全サ
ーバに対して、プライマリサーバであるか否かの問い合
わせを同報送信する。
First, in step Sa11 (service execution instruction means), the monitoring unit 104 instructs the processing unit 105 to execute a service application. As a result, the processing unit 105 executes the service application installed in advance and starts the service for the client 3. Next, after proceeding to step Sa12 and activating the response unit 106, proceeding to step Sa13 and waiting for a preset fixed time. Then, when a certain period of time has elapsed, the process proceeds to step Sa14 and step Sa
The same process as in 1 is performed, and an inquiry as to whether or not the server is the primary server is broadcasted to all the servers in the server providing system 1.

【0029】次に、ステップSa15へ進み、ステップ
Sa14で行った問い合わせに対し、ステップSa2と
同様、他のサーバから応答通知が返信されてくるか否か
を判断する。そして、所定時間が経過しても上記応答通
知が返信されてこなかった場合は、判断結果がNOとな
ってステップSa13へ戻り、一定時間待機した後、ス
テップSa14で再度プライマリサーバであるか否かの
問い合わせを同報送信する。以下、ステップSa14で
行った問い合わせに対して応答通知が返信されてくるま
で、ステップSa13〜Sa15の処理を繰り返し行
う。
Next, in step Sa15, it is determined whether or not a response notice is returned from another server in response to the inquiry made in step Sa14, as in step Sa2. Then, if the response notification is not returned even after the lapse of a predetermined time, the determination result is NO, the process returns to step Sa13, and after waiting for a certain time, whether or not the server is the primary server again in step Sa14. Will be sent as a broadcast. Hereinafter, the processing of steps Sa13 to Sa15 is repeated until a response notification is returned to the inquiry made in step Sa14.

【0030】一方、所定時間内に応答通知が返信されて
きた場合は、ステップSa15の判断結果がYESとな
って、ステップSa16へ進む。ステップSa16(順
位決定情報取得手段)では、上記応答通知を送信したプ
ライマリサーバに対してテーブル参照通知を行う。そし
て、ステップSa17へ進み、テーブルの内容を受信す
ると、ステップSa18において、上記プライマリサー
バの起動時刻と、自サーバの起動時刻とを比較する。
On the other hand, when the response notification is returned within the predetermined time, the determination result of step Sa15 is YES, and the process proceeds to step Sa16. In step Sa16 (rank determination information acquisition means), a table reference notification is sent to the primary server that sent the response notification. Then, the process proceeds to step Sa17, and when the contents of the table are received, the start time of the primary server is compared with the start time of its own server in step Sa18.

【0031】ここで、上記プライマリサーバの起動時刻
よりも自サーバの起動時刻の方が早かった場合、ステッ
プSa19へ進み、自サーバが正当なプライマリサーバ
であるとして、上記プライマリサーバに対して解散通知
を行い、その後ステップSa13へ戻る。なお、解散通
知については、後述する応答部106の動作説明におい
て説明する。
If the start time of the self server is earlier than the start time of the primary server, the process proceeds to step Sa19, where the self server is regarded as a legitimate primary server and a notice of dissolution is sent to the primary server. After that, the process returns to step Sa13. Note that the dissolution notification will be described in the operation description of the response unit 106 described later.

【0032】一方、ステップSa18において、上記プ
ライマリサーバの起動時刻よりも自サーバの起動時刻の
方が遅かった場合は、ステップSa20(サービス停止
手段)へ進み、処理部105に対してサービスアプリケ
ーションの実行停止を指示する。これにより、処理部1
05は、サービスアプリケーションの実行を終了する。
次にステップSa21へ進み、テーブル103の内容を
参照し、自サーバよりも1つ下位のサーバに対して解散
通知を行う。そして、解散通知を行った後、テーブル1
03の内容をクリアし、図4のステップSa1へ戻る。
On the other hand, in step Sa18, if the start time of the self server is later than the start time of the primary server, the process proceeds to step Sa20 (service stop means) to execute the service application to the processing unit 105. Instruct to stop. As a result, the processing unit 1
05 ends the execution of the service application.
Next, the process proceeds to step Sa21, the contents of the table 103 are referred to, and a dissolution notice is given to a server one lower than the own server. Then, after issuing the notice of dissolution, Table 1
The contents of 03 are cleared, and the process returns to step Sa1 in FIG.

【0033】さらに、ステップSa18において、上記
プライマリサーバの起動時刻と自サーバの起動時刻とが
同じ時刻であった場合は、ステップSa22へ進み、上
記プライマリサーバのIPアドレスの値と、自サーバの
IPアドレスの値とを比較する。そして、上記プライマ
リサーバのIPアドレスの値よりも自サーバのIPアド
レスの値の方が小さかった場合は、ステップSa19の
処理を行った後、ステップSa13へ戻る。また、上記
プライマリサーバのIPアドレスの値よりも自サーバの
IPアドレスの値の方が大きかった場合は、ステップS
a20,Sa21の処理を行った後、図4のステップS
a1へ戻る。
Furthermore, in step Sa18, if the start time of the primary server and the start time of the self server are the same, the process proceeds to step Sa22, and the value of the IP address of the primary server and the IP of the self server. Compare with the value of the address. When the value of the IP address of the self server is smaller than the value of the IP address of the primary server, the process of step Sa19 is performed, and then the process returns to step Sa13. If the value of the IP address of the server itself is larger than the value of the IP address of the primary server, step S
After performing a20 and Sa21, step S in FIG.
Return to a1.

【0034】このようにステップSa16〜Sa22の
処理を行うことによって、例えば、サービス提供システ
ム1内にプライマリサーバが存在していない状態におい
て、複数のサーバがほぼ同時に起動してしまった場合な
ど、複数のサーバがプライマリサーバとして、サービス
アプリケーションの実行を開始してしまった場合でも、
1台のみのサーバによりサービスを実行させることがで
きる。
By performing the processing of steps Sa16 to Sa22 in this way, a plurality of servers can be activated at the same time, for example, in the state where the primary server does not exist in the service providing system 1. Even if the server has started running the service application as the primary server,
The service can be executed by only one server.

【0035】次に、図6を参照して応答部106の動作
について説明する。まず、応答部106が監視部104
によって起動されると、ステップSb1へ進み、サービ
ス提供システム1内の他のサーバから何らかの通知を受
信するまで待機する。そして、ステップSb1で他のサ
ーバから通知を受信すると、ステップSb2へ進み、受
信した通知の内容および通知を行ったサーバのIPアド
レスを分析する。
Next, the operation of the response unit 106 will be described with reference to FIG. First, the response unit 106 makes the monitoring unit 104
When it is activated by, the process proceeds to step Sb1 and waits until any notification is received from another server in the service providing system 1. Then, when a notification is received from another server in step Sb1, the process proceeds to step Sb2, and the content of the received notification and the IP address of the server that has sent the notification are analyzed.

【0036】ここで、応答部106が受信する通知の種
類は、プライマリサーバであるか否かの問い合わせ、
登録要求、テーブル更新通知、テーブル参照通
知、解散通知の5種類であり、これら通知を常時開か
れているTCP/IPプロトコルのUDPポートを介し
て受信する。以下、各通知毎に分けて応答部106の動
作を説明する。
Here, the type of notification received by the response unit 106 is an inquiry as to whether or not it is a primary server,
There are five types of registration requests, table update notifications, table reference notifications, and dissolution notifications, and these notifications are received via the TCP / IP protocol UDP port that is always open. Hereinafter, the operation of the response unit 106 will be described separately for each notification.

【0037】プライマリサーバであるか否かの問い合
わせを受信した場合:他のサーバで、図4のステップS
a1または図5のステップSa14の処理が行われた結
果、自サーバに対してプライマリサーバであるか否かの
問い合わせが行われた場合、応答部106はステップS
b3へ進み、自サーバがプライマリサーバであるか否か
を判断する。ここで、応答部106は、テーブル103
を参照し、自サーバが「順番」“0”に登録されていれ
ば、自サーバはプライマリサーバであると判断し、「順
番」“0”以外に登録されていれば、自サーバはプライ
マリサーバでないと判断する。
When an inquiry as to whether or not it is the primary server is received: In another server, step S in FIG.
As a result of performing the processing of step a1 or step Sa14 of FIG. 5, when the inquiry as to whether or not the server is the primary server is made, the response unit 106 sets step S1.
The process proceeds to b3, and it is determined whether or not the own server is the primary server. Here, the response unit 106 uses the table 103.
If the server is registered as “order” “0”, it is determined that the server is the primary server. If it is registered as something other than “order” “0”, the server is the primary server. Determine not.

【0038】そして、自サーバがプライマリサーバであ
ると判断した場合は、判断結果がYESとなってステッ
プSb4へ進み、自サーバはプライマリサーバであるこ
とを示す情報を応答通知として、ステップSb2で分析
された当該問い合わせの送信元サーバへ返信する。そし
て、ステップSb1へ戻り、次に何らかの通知が送信さ
れてくるまで待機する。一方、ステップSb3で、自サ
ーバがプライマリサーバでないと判断した場合は、何も
処理を行わずステップSb1へ戻る。
When it is determined that the own server is the primary server, the determination result is YES and the process proceeds to step Sb4, and the own server analyzes the information indicating the primary server as a response notification in step Sb2. It is returned to the server that sent the inquiry. Then, the process returns to step Sb1 and waits until some notification is transmitted next. On the other hand, if it is determined in step Sb3 that the server is not the primary server, no processing is performed and the process returns to step Sb1.

【0039】なお、上述した処理は、クライアント3か
ら、サーバ提供システム1内の全サーバに対して、プラ
イマリサーバであるか否かの問い合わせが同報送信され
た場合にも行われる。これにより、クライアント3は応
答通知に付与されていたIPアドレスからプライマリサ
ーバを特定し、特定したプライマリサーバに対してサー
ビスを要求する。
The processing described above is also performed when the client 3 broadcasts an inquiry as to whether or not it is the primary server to all the servers in the server providing system 1. As a result, the client 3 identifies the primary server from the IP address given to the response notification and requests the service from the identified primary server.

【0040】登録要求を受信した場合:他のサーバ
で、図4のステップSa6の処理が行われた結果、自サ
ーバに対して登録要求がなされた場合、応答部106は
ステップSb5へ進み、現在、自サーバのテーブル10
3の内容を更新中であるか否かを判断する。ここで、自
サーバのテーブル103の内容を更新中であると判断し
た場合は、判断結果がYESとなり、ステップSb6へ
進み、当該登録要求を行ったサーバをテーブル103内
に登録できなかったことを示す情報を、登録失敗通知と
して、ステップSb2で分析された当該通知の送信元サ
ーバへ送信する。そして、ステップSb6の処理が終了
すると、ステップSb1へ戻り、次に何らかの通知が送
信されてくるまで待機する。
When a registration request is received: As a result of the processing of step Sa6 in FIG. 4 being performed by another server, if a registration request is made to the self server, the response unit 106 advances to step Sb5 and , Table 10 of own server
It is determined whether the contents of 3 are being updated. Here, when it is determined that the contents of the table 103 of the own server are being updated, the determination result is YES, the process proceeds to step Sb6, and the server that made the registration request cannot be registered in the table 103. The information shown is transmitted as a registration failure notification to the sender server of the notification analyzed in step Sb2. When the process of step Sb6 is completed, the process returns to step Sb1 and waits until some notification is transmitted next.

【0041】一方、ステップSb5で、自サーバのテー
ブル103の内容を更新中でないと判断した場合は、判
断結果がNOとなり、ステップSb7(登録手段)へ進
む。ステップSb7では、テーブル103内における自
サーバの次の順位に、登録要求と共に送信されてきた起
動時刻と、ステップSb2で分析されたIPアドレスを
登録する。また、当該登録を行う前に自サーバの順位以
降に位置していたサーバの順位を1つずつ繰り下げてい
く。
On the other hand, if it is determined in step Sb5 that the contents of the table 103 of the own server are not being updated, the determination result is NO, and the process proceeds to step Sb7 (registering means). In step Sb7, the activation time transmitted together with the registration request and the IP address analyzed in step Sb2 are registered in the next rank of the own server in the table 103. In addition, the rank of the server positioned after the rank of the own server before the registration is lowered one by one.

【0042】次にステップSb8へ進み、登録が行われ
たことを示す情報を、登録完了通知として、ステップS
b2で分析された当該登録要求の送信元サーバへ送信す
る。そして、ステップSb9へ進み、テーブル103の
内容を参照して、1つ上位のサーバに対し、登録要求と
共に送信されてきた起動時刻、および、ステップSb2
で分析されたIPアドレスを、テーブル更新通知と共に
送信する。以上の処理を終了すると、ステップSb1へ
戻り、次に何らかの通知が送信されてくるまで待機す
る。
Next, the process proceeds to step Sb8, and the information indicating that the registration has been performed is used as a registration completion notification, and the information is sent to step Sb8.
It is transmitted to the transmission source server of the registration request analyzed in b2. Then, the process proceeds to step Sb9, and with reference to the contents of the table 103, the activation time transmitted with the registration request to the server one level higher, and step Sb2.
The IP address analyzed in (1) is transmitted together with the table update notification. Upon completion of the above processing, the process returns to step Sb1 and waits until some notification is transmitted next.

【0043】テーブル更新通知を受信した場合:他の
サーバで、上述したステップSb9の処理が行われた結
果、自サーバに対してテーブル更新通知が送信されてき
た場合、応答部106はステップSb10へ進み、テー
ブル更新通知と共に送信されてきた起動時刻とIPアド
レスを、テーブル103内に追加する。すなわち、ま
ず、テーブル更新通知と共に送信されてきた起動時刻
と、テーブル103に記憶されている各起動時刻とを順
次比較していく。次に、テーブル103に記憶されてい
る各起動時刻のうち、テーブル更新通知と共に送信され
てきた起動時刻よりも早く、かつ、テーブル更新通知と
共に送信されてきた起動時刻との時間差が最も小さいサ
ーバを検索する。そして、検索されたサーバの1つ下位
の順位に、テーブル更新通知と共に送信されてきた起動
時刻とIPアドレスを追加する。また、また、この時、
上記検索されたサーバの次の順位以降に位置していたサ
ーバの順位を1つずつ繰り下げていく。
When the table update notification is received: When the table update notification is transmitted to the own server as a result of the process of step Sb9 being performed by the other server, the response unit 106 proceeds to step Sb10. Then, the boot time and the IP address transmitted together with the table update notification are added to the table 103. That is, first, the activation time transmitted together with the table update notification is sequentially compared with the activation times stored in the table 103. Next, among the respective start times stored in the table 103, the server which is earlier than the start time sent with the table update notification and has the smallest time difference from the start time sent with the table update notification is selected. Search for. Then, the start time and the IP address transmitted together with the table update notification are added to the next lower rank of the searched server. And again, at this time,
The rank of the server positioned after the rank next to the searched server is lowered one by one.

【0044】次にステップSb11に進み、更新後のテ
ーブル103を参照し、ステップSb3と同様の処理を
行うことによって、自サーバがプライマリサーバか否か
を判断する。そして、自サーバがプライマリサーバであ
ると判断した場合は、判断結果がYESとなってステッ
プSb12へ進み、テーブル103の内容を参照して、
1つ上位のサーバに対し、テーブル更新通知と共に送信
されてきた起動時刻とIPアドレスを、テーブル更新通
知と共に送信する。以上の処理を終了すると、ステップ
Sb1へ戻り、次に何らかの通知が送信されてくるまで
待機する。一方、ステップSb11において、自サーバ
がプライマリサーバでないと判断した場合は、何も処理
を行わずステップSb1へ戻る。
Next, in step Sb11, the updated table 103 is referenced, and the same process as in step Sb3 is performed to determine whether or not the own server is the primary server. Then, when it is determined that the own server is the primary server, the determination result is YES, the process proceeds to step Sb12, the contents of the table 103 are referenced, and
The activation time and the IP address transmitted together with the table update notification are transmitted together with the table update notification to the server one level above. Upon completion of the above processing, the process returns to step Sb1 and waits until some notification is transmitted next. On the other hand, if it is determined in step Sb11 that the own server is not the primary server, no processing is performed and the process returns to step Sb1.

【0045】テーブル参照通知を受信した場合:他の
サーバで、図4のステップSa3または図5のステップ
Sa16の処理が行われた結果、自サーバに対してテー
ブル参照通知が送信されてきた場合、応答部106はス
テップSb13へ進み、テーブル103の内容を読み取
って、その内容を、ステップSb2で分析された当該テ
ーブル参照通知の送信元サーバへ返信する。そして、ス
テップSb1へ戻り、次に何らかの通知が送信されてく
るまで待機する。
When the table reference notification is received: When the table reference notification is transmitted to the own server as a result of the processing of step Sa3 of FIG. 4 or step Sa16 of FIG. 5 being performed by another server, The response unit 106 proceeds to step Sb13, reads the content of the table 103, and returns the content to the transmission source server of the table reference notification analyzed in step Sb2. Then, the process returns to step Sb1 and waits until some notification is transmitted next.

【0046】解散通知を受信した場合:他のサーバ
で、図5のステップSa19またはSa21の処理が行
われた結果、自サーバに対して解散通知が送信されてき
た場合、応答部106はステップSb14へ進み、テー
ブル103を参照し、自サーバよりも下位のサーバがあ
るか否かを判断する。そして、自サーバよりも下位のサ
ーバがあった場合は、判断結果がYESとなってステッ
プSb15へ進み、1つ下位のサーバに対して解散通知
を送信した後ステップSb16へ進む。また、ステップ
Sb14において、自サーバよりも下位のサーバがなか
った場合は、判断結果がNOとなって直接ステップSb
16へ進む。
When the dissolution notice is received: When the dissolution notice is transmitted to the own server as a result of the processing of step Sa19 or Sa21 in FIG. 5 being performed by the other server, the response unit 106 proceeds to step Sb14. Going to step 103, referring to the table 103, it is determined whether or not there is a lower server than the own server. Then, if there is a server lower than the own server, the determination result is YES and the process proceeds to step Sb15, the dissolution notice is transmitted to the server one lower, and then the process proceeds to step Sb16. If there is no lower server than the own server in step Sb14, the determination result is NO and the process directly proceeds to step Sb14.
Proceed to 16.

【0047】ステップSb16へ進むと、応答部106
は、テーブル103の内容をクリア(消去)する。そし
て、ステップSb17へ進み、監視部104を起動した
後、応答部106の処理が終了する。
When the process proceeds to step Sb16, the response unit 106
Clears (erases) the contents of the table 103. Then, the process proceeds to step Sb17, the monitoring unit 104 is activated, and then the process of the response unit 106 ends.

【0048】なお、上述した実施形態では、サービス提
供システム内におけるサーバの順位を、各監視対象決定
装置の起動時刻に基づいて決定していたが、起動時刻の
代わりに、各サーバの性能(例えばCPUのMIPS値
等)の高低によって、サーバの順位を決定してもよい。
また、サービス提供システム内におけるサーバの順位
を、例えば各サーバのIPアドレスのように、各サーバ
が有する固有の情報であって、かつ、大小を決定できる
情報(もしくは例えば文字列のように、数値(文字コー
ド)に置き換えて大小を決定できるような情報)によっ
てのみ決定するようにしてもよい。
In the above-described embodiment, the order of the servers in the service providing system is determined based on the activation time of each monitoring target determining device. However, instead of the activation time, the performance of each server (for example, The rank of the server may be determined according to the level of CPU MIPS value, etc.).
In addition, the order of the servers in the service providing system is unique information that each server has, such as the IP address of each server, and information that can determine the size (or a numerical value such as a character string). Alternatively, it may be determined only by the information that can be determined by replacing (character code).

【0049】さらに、図2に示したサーバ10の機能を
実現するためのプログラムを、コンピュータ読み取り可
能な記録媒体に記録し、この記録媒体に記録されたプロ
グラムをコンピュータシステムに読み込ませ、実行する
ことにより、監視対象となるサーバを決定させるように
してもよい。
Furthermore, a program for realizing the functions of the server 10 shown in FIG. 2 is recorded in a computer-readable recording medium, and the program recorded in this recording medium is read into a computer system and executed. Thus, the server to be monitored may be determined.

【0050】ここで、上記「コンピュータシステム」と
は、OSや周辺機器等のハードウェアを含み、さらにW
WWシステムを利用している場合であれば、ホームペー
ジ提供環境(あるいは表示環境)も含むものとする。ま
た、「コンピュータ読み取り可能な記録媒体」とは、フ
ロッピーディスク、光磁気ディスク、ROM、CD−R
OM等の可搬媒体、コンピュータシステムに内蔵される
ハードディスク等の記憶装置のことをいう。さらに「コ
ンピュータ読み取り可能な記録媒体」とは、インターネ
ット等のネットワークや電話回線等の通信回線を介して
プログラムを送信する場合のサーバやクライアントとな
るコンピュータシステム内部の揮発性メモリのように、
一定時間プログラムを保持しているものも含むものとす
る。
Here, the "computer system" includes an OS and hardware such as peripheral devices, and further includes W
If the WW system is used, the homepage providing environment (or display environment) is also included. The "computer-readable recording medium" means a floppy disk, a magneto-optical disk, a ROM, a CD-R.
A portable medium such as an OM or a storage device such as a hard disk built in a computer system. Furthermore, the "computer-readable recording medium", as a volatile memory in a computer system serving as a server or a client in the case of transmitting a program via a communication line such as a network or a telephone line such as the Internet,
Those that hold the program for a certain period of time are also included.

【0051】また、上記プログラムは、前述した機能の
一部を実現するためのものであっても良く、さらに前述
した機能をコンピュータシステムに既に記録されている
プログラムとの組み合わせで実現できるものであっても
良い。
Further, the above-mentioned program may be one for realizing a part of the above-mentioned functions, and further, the above-mentioned functions can be realized in combination with a program already recorded in the computer system. May be.

【0052】[0052]

【発明の効果】以上説明したように、本発明によれば、
自装置の起動時に、他のサーバ内にプライマリサーバが
存在するか否かを判断し、プライマリサーバが存在する
と判断された場合、該プライマリサーバから自装置以外
の監視対象決定装置を搭載した各サーバの順位決定情報
を取得して、取得した順位決定情報と、自装置を搭載し
たサーバの順位決定情報とに基づいて、全サーバの順位
を決定し、自装置を搭載したサーバの順位よりも1つ順
位の高いサーバを監視対象サーバと決定するので、複数
のサーバが、リレー形式で各サーバの監視を行う場合に
おいて、各サーバが各々監視対象となるサーバを自発的
に決定することができる。
As described above, according to the present invention,
When the own device is started, it is determined whether or not a primary server exists in another server, and when it is determined that the primary server exists, each server equipped with a monitoring target determination device other than the own server from the primary server Of all the servers based on the acquired ranking decision information and the ranking decision information of the server on which the self-device is installed, and the ranking is set to be 1 more than the ranking of the server on which the self-equipment is installed. Since the server having the highest priority is determined as the monitoring target server, when a plurality of servers monitor each server in the relay format, each server can voluntarily determine the monitoring target server.

【0053】また、自装置の起動時に、他のサーバ内に
プライマリサーバが存在するか否かを判断し、プライマ
リサーバが存在しないと判断された場合は、自サーバに
サービスの実行を指示し、自装置を搭載したサーバがサ
ービスを実行中に、サービスを実行している他のサーバ
が存在していた場合、該他のサーバと自サーバとの順位
を比較して、他のサーバよりも自サーバの方が順位が低
かった場合、自サーバに対してサービスを停止させるの
で、複数のサーバによりサービスが提供されるのを回避
することができる。
Also, when the self-device is started, it is determined whether or not a primary server exists in another server. If it is determined that the primary server does not exist, the self-server is instructed to execute the service, If there is another server that is executing a service while the server equipped with its own device is executing the service, the order of the other server and the own server is compared, and When the server has a lower rank, the service is stopped for the server itself, so that the service can be prevented from being provided by a plurality of servers.

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

【図1】 本発明に係る監視対象決定装置が適用される
サービス提供システムの構成例を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration example of a service providing system to which a monitoring target determining device according to the present invention is applied.

【図2】 同監視対象決定装置を含むサーバの構成例を
示すブロック図である。
FIG. 2 is a block diagram showing a configuration example of a server including the monitoring target determination device.

【図3】 同監視対象決定装置内のテーブルの内容を説
明するための説明図である。
FIG. 3 is an explanatory diagram for explaining the contents of a table in the monitoring target determination device.

【図4】 同監視対象決定装置内の監視部の動作を示す
フローチャートである。
FIG. 4 is a flowchart showing an operation of a monitoring unit in the monitoring target determining device.

【図5】 同監視対象決定装置内の監視部の動作を示す
フローチャートである。
FIG. 5 is a flowchart showing an operation of a monitoring unit in the monitoring target determining device.

【図6】 同監視対象決定装置内の応答部の動作を示す
フローチャートである。
FIG. 6 is a flowchart showing an operation of a response unit in the monitoring target determining device.

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

1 サービス提供システム 2 LAN 3 クライアント 10−1,10−2,……,10−n サーバ 101 送受信部 102 時計 103 テーブル 104 監視部 105 処理部 106 応答部 1 Service providing system 2 LAN 3 clients 10-1, 10-2, ..., 10-n server 101 transmitter / receiver 102 clock 103 table 104 Monitor 105 processing unit 106 Response part

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI G06F 15/16 640 G06F 15/16 640J (72)発明者 津守 友美 東京都港区港南一丁目9番1号 エヌ・ ティ・ティ・コミュニケーションウェア 株式会社内 (72)発明者 長岡 亨 東京都港区港南一丁目9番1号 エヌ・ ティ・ティ・コミュニケーションウェア 株式会社内 (56)参考文献 特開 平10−173706(JP,A) 特開 平2−59955(JP,A) 特開 平7−121394(JP,A) 特開 平10−21202(JP,A) 特開2001−34592(JP,A) 特開2000−10949(JP,A) 特開 平11−65868(JP,A) 特開 平9−81409(JP,A) 特開 平8−329023(JP,A) 特開 平7−248933(JP,A) 特開 平7−219913(JP,A) 特開 平5−225161(JP,A) 特開 平5−143564(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 15/16 - 15/177 G06F 11/20 G06F 13/00 H04L 12/00 - 12/66 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 Identification symbol FI G06F 15/16 640 G06F 15/16 640J (72) Inventor Tomomi Tomomi 1-9-1, Konan, Minato-ku, Tokyo T. Communication Wear Co., Ltd. (72) Inventor Toru Nagaoka 1-9-1 Konan, Minato-ku, Tokyo NTT Communication Wear Co., Ltd. (56) References Japanese Patent Laid-Open No. 10-173706 (JP, A) JP-A-2-59955 (JP, A) JP-A-7-121394 (JP, A) JP-A-10-21202 (JP, A) JP-A-2001-34592 (JP, A) JP-A-2000-10949 (JP, A) JP 11-65868 (JP, A) JP 9-81409 (JP, A) JP 8-329023 (JP, A) JP 7-248933 (JP, A) Kaihei 7-219913 JP, A) JP flat 5-225161 (JP, A) JP flat 5-143564 (JP, A) (58 ) investigated the field (Int.Cl. 7, DB name) G06F 15/16 - 15/177 G06F 11/20 G06F 13/00 H04L 12/00-12/66

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のサーバに各々搭載され、自装置を
搭載したサーバが障害を監視する対象となる監視対象サ
ーバを決定する監視対象決定装置において、 前記複数のサーバに各々搭載された複数の監視対象決定
装置のうち、自装置を搭載したサーバの順位を決定する
ための順位決定情報を生成する生成手段と、 自装置の起動時に、前記複数のサーバ内に、クライアン
トに対するサービスを実行しているプライマリサーバが
存在するか否かを判断する判断手段と、 前記判断手段によりプライマリサーバが存在すると判断
された場合、該プライマリサーバから自装置以外の監視
対象決定装置を搭載した各サーバの順位決定情報を取得
する取得手段と、 前記生成手段により生成された自装置を搭載したサーバ
の順位決定情報と、前記取得手段により取得された各サ
ーバの順位決定情報とに基づいて、自装置を搭載した
ーバの順位を決定する順位決定手段と、 前記順位決定手段によって決定された順位に従って、全
サーバの順位決定情報を記憶する記憶手段と、前記順位決定手段によって決定された順位が自順位より
1つ上位の順位のサーバに対して自装置を搭載したサー
バの登録を要求する登録要求手段と、 他のサーバからの登録要求を受け、前記記憶手段に記憶
されている前記順位決定情報に前記登録要求があった他
のサーバを登録すると共に、該登録を行った時点におい
て自装置を搭載したサーバの順位より1つ上位の順位の
サーバに対して、前記登録要求があった他のサーバの登
録を要求する更新登録手段と、 前記記憶手段の記憶内容に基づいて、自装置を搭載した
サーバの順位よりも1つ順位の高いサーバを監視対象サ
ーバと決定する監視対象決定手段とを有することを特徴
とする監視対象決定装置。
1. A monitoring target determining apparatus which is mounted on each of a plurality of servers, wherein a server mounting an own device determines a monitoring target server to be a target of failure monitoring. Among the monitoring target determination devices, a generation unit that generates the ranking determination information for determining the ranking of the server on which the self-device is mounted; and a service for the client that is executed in the plurality of servers when the self-device is activated. Determination means for determining whether or not there is a primary server that exists, and when the determination means determines that a primary server exists, the order determination of each server equipped with a monitoring target determination device other than the own server from the primary server Acquisition means for acquiring information, ranking determination information of the server equipped with the own device generated by the generation means, and the acquisition means Based acquired in the rank determining information of each server Ri, a rank determining means for determining a service <br/> over server rank equipped with its own device according to order determined by the order determination unit, all servers storage means for storing the rank determining information, order determined by the order determination means from the own ranks
A server that has its own device mounted on the server one rank higher
And a registration request means for requesting registration of the server and a registration request from another server and stored in the storage means.
In addition to the registration request in the ranking determination information
Register the server of the
One rank higher than the rank of the server equipped with
Register the other server that made the registration request to the server.
An update registration means for requesting recording, and a monitoring target determining means for determining a server having a higher rank than the rank of the server mounting the own device as a monitoring target server based on the stored contents of the storage means. The monitoring target determination device characterized by.
【請求項2】 前記判断手段によりプライマリサーバが
存在しないと判断された場合、自装置を搭載したサーバ
にサービスの実行を指示するサービス実行指示手段と、 自装置を搭載したサーバがサービスを実行中に、サービ
スを実行している他のサーバが存在していた場合、該他
のサーバに搭載された監視対象決定装置内の記憶手段に
記憶された順位決定情報を取得する順位決定情報取得手
段と、 前記順位決定情報取得手段が取得した順位決定情報のう
ち、前記サービスを実行している他のサーバの順位決定
情報と、自装置を搭載したサーバの順位決定情報とを比
較する比較手段と、 前記比較手段による比較の結果、前記他のサーバよりも
自装置を搭載したサーバの方が順位が低かった場合、自
装置を搭載したサーバに対してサービスを停止させるサ
ービス停止手段とを有することを特徴とする請求項1に
記載の監視対象決定装置。
2. When the determination unit determines that the primary server does not exist, the service execution instruction unit that instructs the server including the own device to execute the service, and the server including the own device is executing the service. In the case where another server executing the service exists, a ranking determination information acquisition unit that acquires the ranking determination information stored in the storage unit in the monitoring target determination device mounted on the other server. Of the ranking decision information acquired by the ranking decision information obtaining means, ranking decision information of another server executing the service, and comparison means for comparing the ranking decision information of the server on which the own device is mounted, As a result of the comparison by the comparison means, if the server having its own device has a lower rank than the other server, the service is stopped for the server having its own device. The monitoring target determining apparatus according to claim 1, further comprising: a service stopping unit that causes the monitoring target determining unit.
【請求項3】 前記生成手段が生成する順位決定情報
は、自装置が起動した起動時刻であって、該起動時刻が
早いほど自装置を搭載したサーバの全サーバ内における
順位が高いことを特徴とする請求項1または請求項2
記載の監視対象決定装置。
3. The ranking determination information generated by the generation means is a start time at which the self-device is started, and the earlier the start time is, the higher the rank is in all the servers having the self-device. The monitoring target determination device according to claim 1 or 2 .
【請求項4】 複数のコンピュータによって構成される
サービス提供システムの各コンピュータに搭載されるコ
ンピュータ読み取り可能な記録媒体であって、 コンピュータに、 自コンピュータの 順位を決定するための順位決定情報を
生成する第1の手順と、自コンピュータの 起動時に、前記複数のコンピュータ
に、クライアントに対するサービスを実行しているプラ
イマリコンピュータが存在するか否かを判断する第2の
手順と、 前記判断する手順によりプライマリコンピュータが存在
すると判断された場合、該プライマリコンピュータから
コンピュータの順位決定情報を取得する第3の手順
と、 前記第3の手順で取得された順位決定情報と、前記第1
手順で生成された自コンピュータの順位決定情報とに
基づいて、自コンピュータの順位を決定する第4の手順
と、 前記第4の手順によって決定された自コンピュータの順
位を含む各コンピュータの順位決定情報を記憶手段に
き込む第5の手順と、前記記憶手段内の順位決定情報に基づく順位が自順位よ
り1つ上位の順位のコンピュータに対して自コンピュー
タの順位の登録を要求する第6の手順と、 他のコンピュータからの登録要求を受け、該登録要求が
あったコンピュータの順位を前記記憶手段に登録すると
共に、該登録を行った時点において自順位より1つ上位
の順位のコンピュータに対して、新たに登録したコンピ
ュータの登録を要求する第7の手順と、 前記記憶手段の記憶内容に基づいて、自装置を搭載した
コンピュータの順位よりも1つ順位の高いコンピュータ
を監視対象コンピュータと決定する第8の手順を実行
させるためのプログラムを記録したコンピュータ読み取
り可能な記録媒体。
4.Composed of multiple computers
The code installed in each computer of the service providing system
A computer-readable recording medium, On the computer Own computer The ranking information to determine the ranking
First to generateprocedureWhen,Own computer At startup, the multipleComputerWithin
Is running the service to the clientPlastic
Imari computerThe second to determine whether or not
procedureWhen, JudgmentprocedureByPrimary computerexist
If it is determined thatPrimary computerFrom
eachComputerThird to get the ranking information ofprocedure
When, The thirdprocedureIs acquired atOrderPosition determination information and the first
ofprocedureGenerated byComputerAnd ranking information
Based onComputerFourth to determine the ranking ofprocedure
When, The fourthprocedureSelf determined byComputer order
Including placeThe ranking information of each computer is stored in the memorybook
Fifth step to embedWhen,The ranking based on the ranking determination information in the storage means is the own ranking.
Compute one computer to the next higher computer
The sixth step of requesting registration of the data ranking, When a registration request is received from another computer,
If you register the rank of the existing computer in the storage means,
Both are one higher than their own ranking at the time of registration.
Computers newly ranked for
7th step of requesting computer registration, Based on the stored contents of the storage means, the own device is mounted.
One higher than the computer rankingComputer
To be monitoredComputerTo decideEighth procedureWhenRun
Recorded a program to letComputer read
Recordable media.
JP34141499A 1999-11-30 1999-11-30 Monitoring target determining device and its recording medium Expired - Fee Related JP3380197B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34141499A JP3380197B2 (en) 1999-11-30 1999-11-30 Monitoring target determining device and its recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34141499A JP3380197B2 (en) 1999-11-30 1999-11-30 Monitoring target determining device and its recording medium

Publications (2)

Publication Number Publication Date
JP2001155002A JP2001155002A (en) 2001-06-08
JP3380197B2 true JP3380197B2 (en) 2003-02-24

Family

ID=18345897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34141499A Expired - Fee Related JP3380197B2 (en) 1999-11-30 1999-11-30 Monitoring target determining device and its recording medium

Country Status (1)

Country Link
JP (1) JP3380197B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4548068B2 (en) * 2004-09-24 2010-09-22 富士ゼロックス株式会社 Printing system
JP5376246B2 (en) * 2010-01-14 2013-12-25 株式会社Jvcケンウッド Network system, server device, client device, server device identification method, identification information providing method, and server device list creation method
JP6367630B2 (en) * 2014-07-17 2018-08-01 Necネットワーク・センサ株式会社 Redundant system, redundant device and switching method thereof

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0740253B2 (en) * 1988-08-26 1995-05-01 富士電機株式会社 Operation monitoring method in multiprocessor system
JPH05143564A (en) * 1991-11-22 1993-06-11 Mitsubishi Electric Corp Computer system
JPH05225161A (en) * 1992-02-10 1993-09-03 Shikoku Nippon Denki Software Kk Network monitoring system
JPH07121394A (en) * 1993-10-26 1995-05-12 Fujitsu Ltd Multiplexer
JPH07219913A (en) * 1994-01-28 1995-08-18 Fujitsu Ltd Method for controlling multiprocessor system and device therefor
JP3203935B2 (en) * 1994-03-11 2001-09-04 日本電気株式会社 Hot standby system switching system
JPH08329023A (en) * 1995-05-30 1996-12-13 Shikoku Nippon Denki Software Kk Parallel electronic computer system
JP2888278B2 (en) * 1995-09-14 1999-05-10 日本電気株式会社 Mutual hot standby system standby system selection method
JPH1021202A (en) * 1996-07-01 1998-01-23 Meidensha Corp Network connection system of duplex computer
JPH10173706A (en) * 1996-12-10 1998-06-26 Fujitsu Ltd Method and device for repeating communication
JP3183227B2 (en) * 1997-08-26 2001-07-09 日本電気株式会社 Redundant startup method
JP2000010949A (en) * 1998-06-19 2000-01-14 Nec Corp Relay type decentralized health check control system and method
JP2001034592A (en) * 1999-05-14 2001-02-09 Mitsubishi Electric Corp System and method for network constitution management

Also Published As

Publication number Publication date
JP2001155002A (en) 2001-06-08

Similar Documents

Publication Publication Date Title
JP4481912B2 (en) Network device, network system, power saving control method and program for network device
JP4758362B2 (en) Relay device, program, and relay method
JP2003044509A5 (en)
JP2008165265A (en) Server device, network device, data providing place providing method, data providing place providing program and recording medium
JP3380197B2 (en) Monitoring target determining device and its recording medium
US20030001017A1 (en) Bar code reader
JP4810358B2 (en) Network device, network device control method, program, and storage medium
US20070249345A1 (en) Device, control method of the device, and program for causing computer to execute the control method
JP4632450B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD
JP2002217945A (en) Communication system, communication method and communication terminal and program storage media
JP2004246751A (en) Network identification method, computer device, computer program and recording medium
US20050198331A1 (en) Seamless system and recording medium, and computer system process continuing method
JPH11103320A (en) Mobile computer system, mobile computer managing device, mobile information managing device and communication control method
JP2005293110A (en) Monitoring device, method for managing it, network monitoring system, method for managing it, and program
JP2007249423A (en) Processing screen switching method in work processing system, work processing system, server therefor, and program
JP2006035456A (en) Image processor and its controlling method and program
JP2005242431A (en) Extended card, computer, data receiving system, data receiving method, and program
JP2002124951A (en) Communication terminal device, service providing system, service utilization method and memory medium
JP2004145707A (en) Network filing system, its control method, program for realizing control method, and storage medium
JP3826906B2 (en) Communication management device
JP4868728B2 (en) Information processing apparatus, information processing method, and program thereof
JP2004005577A (en) Information processing system and information processing apparatus
JP2001077845A (en) Communication terminal device and its control method
JP2005258616A (en) Communication system, communication method, communication program, and client apparatus
JP5225435B2 (en) Network device, network device control method, and program

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081213

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091213

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091213

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101213

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111213

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees