JP2008077324A - Server-client system - Google Patents

Server-client system Download PDF

Info

Publication number
JP2008077324A
JP2008077324A JP2006254588A JP2006254588A JP2008077324A JP 2008077324 A JP2008077324 A JP 2008077324A JP 2006254588 A JP2006254588 A JP 2006254588A JP 2006254588 A JP2006254588 A JP 2006254588A JP 2008077324 A JP2008077324 A JP 2008077324A
Authority
JP
Japan
Prior art keywords
client
server
status
status notification
state notification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2006254588A
Other languages
Japanese (ja)
Inventor
Shigemi Saito
茂実 斎藤
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2006254588A priority Critical patent/JP2008077324A/en
Publication of JP2008077324A publication Critical patent/JP2008077324A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem of some systems being unable to provide a state notification to a server for a long period even while a client is operating normally. <P>SOLUTION: Prior to starting a process during which it is impossible to provide a state notification to a server, a client notifies the server that a state notification will become impossible and the expected time required to resume the state notification. The server receives this, and even if there is no state notification from the client, the server does not determine it to be the failure of the client during the time that the state notification is declared impossible. If there is still no state notification after the expected time received from the client has elapsed, the server determines it to be failure of the client. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、サーバ・クライアントシステムに関するものである。
特に、クライアントはサーバへ定期的に状態通知を行い、サーバは受信した状態通知の解析による異常検知、ならびに、一定時間状態通知が途絶えたことによるクライアントのダウン検知の、2つの監視手段を有するサーバ・クライアントシステムに関するものである。
The present invention relates to a server / client system.
In particular, the client periodically notifies the server of the status, and the server has two monitoring means: an abnormality detection by analyzing the received status notification and a client down detection due to the status notification being interrupted for a certain period of time. -It relates to the client system.

従来、サーバによるクライアントの異常検知手段としては、Watch DogとHeart Beatの2つの方式があった。   Conventionally, there are two methods for detecting client anomalies using the server: Watch Dog and Heart Beat.

Watch Dogとは、サーバからクライアントに対して、定期的に動作確認のための通信を行い、そのレスポンスを解析することで異常を検知する手法である。   Watch Dog is a method for detecting abnormalities by periodically performing communication for operation check from the server to the client and analyzing the response.

Heart Beatとは、逆にクライアントからサーバに定期的に状態通知を行い、サーバはその状態通知を解析することで異常を検知する手法である。   On the contrary, Heart Beat is a method in which a status notification is periodically sent from the client to the server, and the server detects the abnormality by analyzing the status notification.

サーバ・クライアントの監視手段において、異常が繰り返し発生した場合、クライアントはサーバに対し繰り返し異常発生を通知し、繰り返し異常状態から回復するまで状態通知を停止することで、通信トラフィックを低減する(特許文献1参照)。
開平10−269481号公報
In the server / client monitoring means, when an abnormality occurs repeatedly, the client repeatedly notifies the server of the occurrence of the abnormality, and stops communication until the client recovers from the abnormal state repeatedly, thereby reducing communication traffic (Patent Document) 1).
Kaihei 10-269481

本発明は、Heart Beatに関するものである。
Heart Beatにおいて、クライアントから一定時間状態通知がなかった場合、サーバはクライアントが異常な状態に陥っていると判断する。
The present invention relates to Heart Beat.
In Heart Beat, if there is no status notification from the client for a certain period of time, the server determines that the client is in an abnormal state.

しかし、システムによっては、クライアントが正常に動作しつつも長期間、サーバに対して状態通知ができない状態になることがあり得る。   However, depending on the system, there is a possibility that the client cannot operate normally for a long time while the client operates normally.

例としては、クライアントプロセスや機器自体の計画された再起動、高負荷プロセスによる処理の占有、などが挙げられる。   Examples include planned restarts of client processes and devices themselves, occupation of processing by high-load processes, and the like.

このような場合でも、サーバは、クライアントからの状態通知がないことから、クライアントの状態を異常と判断してしまう。   Even in such a case, since there is no status notification from the client, the server determines that the status of the client is abnormal.

そのため、本来は不要である復旧処理を実行したり、管理者宛に異常を通知したりしてしまう。   For this reason, recovery processing that is originally unnecessary is executed, or an abnormality is notified to the administrator.

この問題を解決するため、クライアントはサーバに対して状態通知不能になる処理を開始する前に、サーバに対して状態通知不能になる旨と、状態通知再開までの予測時間を通知する。   In order to solve this problem, the client notifies the server that the status notification is disabled and the estimated time until the status notification is restarted before starting the processing that disables the status notification to the server.

サーバはこれを受信し、状態通知不能と宣言された時間中は、クライアントからの状態通知がない場合においてもクライアントの異常とは判断しない。   The server receives this, and during the time declared that the status notification is impossible, even if there is no status notification from the client, it does not determine that the client is abnormal.

クライアントから受信した予測時間を経過しても、なお状態通知がない場合は、クライアントの異常と判定する。   If there is no status notification even after the estimated time received from the client has elapsed, it is determined that the client is abnormal.

本発明によって、クライアントからの状態通知が途絶えた理由をサーバが解釈できるようになり、異常検知の精度を高めることができる。   According to the present invention, the server can interpret the reason why the status notification from the client is interrupted, and the accuracy of abnormality detection can be improved.

(実施例1)
本発明の実施例として、デジタル複合機とその上で動作するアプリケーション(クライアント)とサーバから構成されるシステムをあげる。
(Example 1)
As an embodiment of the present invention, a system composed of a digital multi-function peripheral, an application (client) operating on the digital multi-function peripheral, and a server is given.

アプリケーションは、定期的にサーバに対してクライアントの状態を通知し、サーバは状態通知を一定間隔で受信することで、クライアントの状態を監視している。サーバは、クライアントの異常を検知すると、管理者に対してメールにて通知を行う。   The application regularly notifies the server of the client status, and the server receives the status notification at regular intervals to monitor the client status. When the server detects a client abnormality, it notifies the administrator by e-mail.

概アプリケーションは、デジタル複合機の外からHTTPを用いてアクセスし、デジタル複合機ならびにアプリケーション自身の状態確認、動作変更を指示することができる。   The general application can be accessed from outside the digital multi-function peripheral using HTTP, and can check the status of the digital multi-function peripheral and the application itself, and can instruct operation change.

デジタル複合機の特定の設定が変更された場合、設定を反映するために再起動が必要となる。この場合、アプリケーションが、自動的にデジタル複合機を再起動させる。アプリケーションは、再起動の前に、サーバに対してデジタル複合機を再起動させることと、再起動が完了し状態通知を再開するまでの予測時間を通知する。   When a specific setting of the digital multifunction peripheral is changed, a restart is required to reflect the setting. In this case, the application automatically restarts the digital multifunction peripheral. The application notifies the server of the digital multi-function peripheral before restarting, and notifies the estimated time until the restart is completed and the state notification is restarted.

図1は、本発明の実施例におけるシステムの全体の構成を説明するブロック図である。デジタル複合機100、101、Webブラウザを含む端末102、サーバ103、メールサーバ104がネットワーク105に接続されている。端末102は、この実施例ではデジタル複合機ならびにその上で動作するアプリケーションの状態確認ならびに設定変更を行うためのUIとして用いられる。また、メールサーバ104は、サーバにおける異常検知時の動作として、管理者にメール通知するために利用される。   FIG. 1 is a block diagram illustrating the overall configuration of a system according to an embodiment of the present invention. Digital multifunction peripherals 100 and 101, a terminal 102 including a Web browser, a server 103, and a mail server 104 are connected to a network 105. In this embodiment, the terminal 102 is used as a UI for checking the status and changing settings of the digital multi-function peripheral and the applications operating thereon. Further, the mail server 104 is used for notifying an administrator of an email as an operation when an abnormality is detected in the server.

図2は、本発明の実施例において、デジタル複合機が再起動する場合のシーケンス図である。図中の100〜103は、図1にも示したのシステムの構成要素であり、図1と同じ番号を振っている。   FIG. 2 is a sequence diagram when the digital multi-function peripheral is restarted in the embodiment of the present invention. In the figure, reference numerals 100 to 103 are components of the system shown in FIG. 1, and are assigned the same numbers as in FIG.

Webブラウザ102より、アプリケーションを介してデジタル複合機の設定変更が指示される(200)。デジタル複合機は、設定を変更し(201)、設定変更を反映するために再起動が必要であれば、再起動プロセスに入る。再起動プロセスにおいては、サーバに対して再起動を行うことと、再起動完了までの予測時間を通知する(202)。具体的には、図4に示すクライアント状態データを送信する。再起動を行うことの通知は、ステータスコード(401)にその旨を意味する値を設定することで行う。   The Web browser 102 issues an instruction to change the setting of the digital multifunction peripheral through an application (200). The digital multi-function peripheral changes the setting (201), and if a restart is necessary to reflect the setting change, the digital multi-function peripheral enters a restart process. In the restart process, the server is restarted and the estimated time until the restart is completed is notified (202). Specifically, the client status data shown in FIG. 4 is transmitted. Notification of restarting is performed by setting a value indicating that in the status code (401).

その後、デジタル複合機は再起動を行い(204)、再起動完了後、その旨をサーバに通知する(206)。この時、送信するクライアント状態データは、ステータスコード(401)として通常稼動を表す値を設定し、状態通知停止時間(402)は設定しない。   Thereafter, the digital multi-function peripheral restarts (204), and after the restart is completed, notifies the server (206). At this time, in the client status data to be transmitted, a value indicating normal operation is set as the status code (401), and the status notification stop time (402) is not set.

サーバは、クライアントからの状態通知を受信し、受信したデータを解析し、ステータスおよび状態通知停止時間を記録する(203)。その後、クライアント状態監視部は、202で記録した状態通知停止時間を用いて、クライアントの生存確認を行う(205)。やがて、クライアントから再起動完了の通知(206)を受信したら、クライアントのステータスおよび状態通知停止時間を更新する(207)。   The server receives the status notification from the client, analyzes the received data, and records the status and the status notification stop time (203). Thereafter, the client status monitoring unit performs the existence confirmation of the client using the status notification stop time recorded in 202 (205). When a restart completion notification (206) is received from the client, the client status and state notification stop time are updated (207).

図3は、本発明の実施例において、アプリケーションを介したデジタル複合機ならびにアプリケーション自身の状態表示・設定変更を行う際に、関連するデジタル複合機上のモジュールの構成図である。ここで図示したモジュールは、デジタル複合機内のモジュールの一部である。   FIG. 3 is a configuration diagram of modules on a digital multi-function peripheral related to the digital multi-function peripheral through an application and the status display / setting change of the application itself in the embodiment of the present invention. The module shown here is a part of the module in the digital multifunction peripheral.

ネットワークI/F(300)は、他の機器とのネットワークを介しての通信を制御するモジュールである。   The network I / F (300) is a module that controls communication with other devices via a network.

HTTP通信部(301)、SOAP通信部(302)は、それぞれネットワークI/Fが送受信したデータを、それぞれのプロトコルとして解析するためのモジュールである。   The HTTP communication unit (301) and the SOAP communication unit (302) are modules for analyzing data transmitted and received by the network I / F as respective protocols.

アプリケーション(303)は、定期的にサーバに対してクライアントの状態を通知する機能と、HTTPによるリクエストを受信し、デジタル複合機ならびにアプリケーション自身の状態表示、動作変更を行う機能を持つ。   The application (303) has a function of periodically notifying the server of the status of the client and a function of receiving an HTTP request, displaying the status of the digital multifunction peripheral and the application itself, and changing the operation.

HTTPリクエストは、ネットワークI/F(300)、HTTP通信部(301)を通して受信する。   The HTTP request is received through the network I / F (300) and the HTTP communication unit (301).

アプリケーションが、サーバに対して状態通知する際には、SOAP通信部(302)、HTTP通信部(301)、ネットワークI/F(303)を介して通信する。   When the application notifies the server of the status, it communicates via the SOAP communication unit (302), the HTTP communication unit (301), and the network I / F (303).

MIB I/F(304)は、MIBプロトコルを用いてデジタル複合機を制御するためのモジュールである。   The MIB I / F (304) is a module for controlling the digital multi-function peripheral using the MIB protocol.

OSサービス部(305)は、デジタル複合機の電源や、ファイルシステムなどを制御するモジュールである。   The OS service unit (305) is a module that controls the power supply, file system, and the like of the digital multi-function peripheral.

アプリケーションが、デジタル複合機を再起動する際には、MIB I/F(304)を介して、OSサービス部(305)にアクセスする。   When the application restarts the digital multifunction peripheral, the application accesses the OS service unit (305) via the MIB I / F (304).

図4は、本発明の実施例において、クライアントであるデジタル複合機から、サーバに対して通信するクライアント状態データの構造である。   FIG. 4 shows the structure of client status data communicated from the digital multifunction peripheral as a client to the server in the embodiment of the present invention.

クライアントID(400)は、クライアントごとに一意の識別子である。これは、クライアントが初めてサーバと通信する時点で、サーバより配布される。   The client ID (400) is a unique identifier for each client. This is distributed from the server when the client first communicates with the server.

ステータスコード(401)は、クライアントの状態を表した数字列である。   The status code (401) is a numeric string representing the state of the client.

状態通知停止時間(402)は、次の状態通知までの時間を秒単位で設定する。この項目は、通常は設定しない。この場合は、サーバ側でデフォルト値が入っているものとして扱われる。デジタル復号機を再起動する際などに、再起動完了までの予測時間を設定する。   The status notification stop time (402) sets the time until the next status notification in seconds. This item is not normally set. In this case, it is treated as a default value on the server side. When the digital decoder is restarted, etc., an estimated time until the restart is completed is set.

図5は、本発明の実施例において、サーバのクライアント状態データ受信部の基本的な処理フローである。   FIG. 5 is a basic processing flow of the client status data receiving unit of the server in the embodiment of the present invention.

この処理は、クライアントからの状態通知を受信するごとに、新たなスレッドとして実行される。   This process is executed as a new thread every time a status notification is received from the client.

500で、クライアントから受信したデータを解析する。クライアント状態データとして正常に解析できた場合は、501へ進む。   At 500, the data received from the client is analyzed. If the client status data can be normally analyzed, the process proceeds to 501.

501で、クライアント状態データに状態通知停止時間が含まれている場合には503へ、含まれない場合は502へ進む。   In 501, if the status notification stop time is included in the client status data, the process proceeds to 503, and if not included, the process proceeds to 502.

502では、状態通知停止時間として、規定の値を設定する。   In 502, a prescribed value is set as the status notification stop time.

503で、受信したクライアントに対応するクライアントIDの、状態通知受信時刻と、ステータスを記録する。また、状態通知停止時間を次回受信間隔として記録する。   In 503, the status notification reception time and status of the client ID corresponding to the received client are recorded. The status notification stop time is recorded as the next reception interval.

なお、上記で説明した動作フローは一例であり、上記の処理の流れに限定されるものではない。   The operation flow described above is an example and is not limited to the above processing flow.

図6は、本発明の実施例において、サーバのクライアント状態監視部の基本的な処理フローである。   FIG. 6 is a basic processing flow of the client state monitoring unit of the server in the embodiment of the present invention.

この処理は、一定時間ごとに、新たなスレッドとして実行される。   This process is executed as a new thread at regular intervals.

600〜604までの処理は、クライアントの数だけ繰り返される。   The processing from 600 to 604 is repeated by the number of clients.

600で、全てのクライアントに対して処理を行ったか判定する。全てのクライアントに対して処理を行った場合、終了する。そうでない場合は、未処理のクライアントを1つ選択し、601〜604の処理を実行する。   In 600, it is determined whether processing has been performed for all clients. When processing is performed for all clients, the process ends. If not, one unprocessed client is selected and processes 601 to 604 are executed.

601で、概クライアントについて記録されたステータスを確認する。ステータスが正常でない場合は、604へ進む。正常である場合は、602へ進む。   At 601, the status recorded for the client is checked. If the status is not normal, go to 604. If normal, proceed to 602.

602で、現在時刻を取得する。   At 602, the current time is obtained.

603で、クライアントの生存を確認する。記録された、概クライアントからのステータス受信時刻に次回受信間隔を加えた時刻を、現在時刻が過ぎているか調べる。そうである場合は、クライアントからの状態通知が途絶えているため、クライアントが生存していないと判断し、604へ進む。そうでなければ、クライアントは正常であると判断し、600へ戻る。   At 603, the existence of the client is confirmed. It is checked whether the current time has passed the recorded time obtained by adding the next reception interval to the status reception time from the general client. If so, since the status notification from the client is interrupted, it is determined that the client is not alive, and the process proceeds to 604. Otherwise, the client determines that it is normal and returns to 600.

604は、クライアントの異常を検出した際の処理である。ここでは、予め設定された管理者のメールアドレスに対して、異常を通知するものとする。   A process 604 is performed when a client abnormality is detected. Here, it is assumed that an abnormality is notified to a preset administrator's e-mail address.

なお、上記で説明した動作フローは一例であり、上記の処理の流れに限定されるものではない。   The operation flow described above is an example and is not limited to the above processing flow.

システムの構成。System configuration. デジタル複合機再起動時のシーケンス。Sequence when restarting the digital multi-function peripheral. デジタル複合機の構成(抜粋)。Digital MFP configuration (excerpt). クライアント状態データの構造。Client state data structure. サーバのクライアント状態データ受信部の基本的な処理フロー。The basic processing flow of the client status data receiver of the server. サーバのクライアント状態監視部の基本的な処理フロー。Basic processing flow of the client status monitoring unit of the server.

符号の説明Explanation of symbols

100〜101 デジタル複合機(クライアント)
102 Webブラウザ
103 サーバ
104 メールサーバ
200〜207 デジタル複合機再起動時の処理
300〜305 デジタル複合機のモジュール(抜粋)
400〜402 クライアント状態データの構成要素
500〜604 処理ステップ
100 to 100 Digital MFP (client)
102 Web browser
103 servers
104 mail server
200 to 207 Processing when restarting digital multi-function peripheral
300 to 305 Digital MFP module (excerpt)
400-402 Client status data components
500-604 processing steps

Claims (1)

クライアントからの定期的な状態通知によってクライアントの状態を監視する監視手段と、クライアントからの状態通知が途絶えたことでクライアントの動作が停止したと判断する生存確認手段を有するサーバと、
定期的にサーバに対して状態通知を行う状態通知手段を持つクライアントから構成される、
サーバ・クライアントシステムにおいて、
クライアントの有する上記状態通知手段は、状態通知を停止するにあたって状態通知を停止することと、その停止時間の予測値をサーバに通知することを特徴とし、
上記サーバの有する生存確認手段は、クライアントから状態通知の停止を受信後、受信した停止時間内はクライアントからの通知がなくともクライアントの動作が停止したと判断しないことを特徴とする、
サーバ・クライアントシステム。
A server having monitoring means for monitoring the client state by periodic status notification from the client, and a server having survival confirmation means for determining that the operation of the client has stopped due to the interruption of status notification from the client;
Consists of clients with status notification means that periodically notifies the server of status,
In the server / client system,
The status notification means of the client is characterized by stopping the status notification when stopping the status notification and notifying the server of the predicted value of the stop time,
The survival confirmation means of the server is characterized in that after receiving the status notification stop from the client, it does not determine that the operation of the client has stopped even if there is no notification from the client within the received stop time.
Server / client system.
JP2006254588A 2006-09-20 2006-09-20 Server-client system Withdrawn JP2008077324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006254588A JP2008077324A (en) 2006-09-20 2006-09-20 Server-client system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006254588A JP2008077324A (en) 2006-09-20 2006-09-20 Server-client system

Publications (1)

Publication Number Publication Date
JP2008077324A true JP2008077324A (en) 2008-04-03

Family

ID=39349324

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006254588A Withdrawn JP2008077324A (en) 2006-09-20 2006-09-20 Server-client system

Country Status (1)

Country Link
JP (1) JP2008077324A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014050976A (en) * 2012-09-05 2014-03-20 Canon Inc Job history management system, image forming apparatus, information processing apparatus, and control method therefor
US10757172B2 (en) 2018-09-19 2020-08-25 Canon Kabushiki Kaisha Management system and method
WO2023218910A1 (en) * 2022-05-13 2023-11-16 株式会社デンソー In-vehicle communication device and push server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014050976A (en) * 2012-09-05 2014-03-20 Canon Inc Job history management system, image forming apparatus, information processing apparatus, and control method therefor
US10757172B2 (en) 2018-09-19 2020-08-25 Canon Kabushiki Kaisha Management system and method
WO2023218910A1 (en) * 2022-05-13 2023-11-16 株式会社デンソー In-vehicle communication device and push server

Similar Documents

Publication Publication Date Title
WO2014161373A1 (en) System fault detection and processing method, device, and computer readable storage medium
JP5858144B2 (en) Information processing system, failure detection method, and information processing apparatus
US8943191B2 (en) Detection of an unresponsive application in a high availability system
JP2010257332A (en) Analyzer control system
CN105573777B (en) Method and device for controlling service in application
CN111143099A (en) BMC process monitoring method and device
JP2008077324A (en) Server-client system
WO2016101596A1 (en) Power fail safeguard method, device and system thereof
JP2002229870A (en) Server trouble monitoring system
US7418613B2 (en) Power supply control method, power supply control unit and information processing apparatus
JP6945416B2 (en) Power controller, control method, control program, and control system
JP7220997B2 (en) FACILITY MONITORING SYSTEM AND COMMUNICATION METHOD IN FACILITY MONITORING SYSTEM
JP4863984B2 (en) Monitoring processing program, method and apparatus
JP5268820B2 (en) Rewriting method for monitoring device program
JP2005018384A (en) Information processing system
JP2008225745A (en) Process control device, method, and program
JP2002169706A (en) Monitor system
CN117539679A (en) Interface maintenance method and device
JP2012104869A (en) Network system
JP2006171995A (en) Control computer
CN114172800B (en) KNX multi-gateway communication method, KNX multi-gateway communication device, KNX multi-gateway communication equipment and storage medium
TWI390398B (en) Method and system for monitoring and processing running status of a computer
JP2008059531A (en) Computer system failure notification method
JP2007055701A (en) Elevator microcomputer program management method
JP2009211279A (en) Handling data management server system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20091201