JP5433219B2 - Cluster system - Google Patents
Cluster system Download PDFInfo
- Publication number
- JP5433219B2 JP5433219B2 JP2008302116A JP2008302116A JP5433219B2 JP 5433219 B2 JP5433219 B2 JP 5433219B2 JP 2008302116 A JP2008302116 A JP 2008302116A JP 2008302116 A JP2008302116 A JP 2008302116A JP 5433219 B2 JP5433219 B2 JP 5433219B2
- Authority
- JP
- Japan
- Prior art keywords
- computer
- response
- execution unit
- program
- communication processing
- 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
Links
- 230000004044 response Effects 0.000 claims description 89
- 238000004891 communication Methods 0.000 claims description 64
- 230000006870 function Effects 0.000 description 26
- 238000000034 method Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 1
Images
Landscapes
- Hardware Redundancy (AREA)
Description
本発明は、第1のコンピュータと第2のコンピュータとを有するクラスタシステムに関する。 The present invention relates to a cluster system having a first computer and a second computer.
現在、第1のコンピュータと第2のコンピュータとを有するとともに、仮想インターネットプロトコル(IP)プログラムが実装された通信処理装置を有するクラスタシステムが使用されている。クラスタシステムでは、第1のコンピュータにも第2のコンピュータにも実質上同一のプログラムが実装されており、2個のコンピュータのうちの一方が使用されていて、他方が待機している。使用されているコンピュータを現用系のコンピュータといい、待機しているコンピュータを予備系のコンピュータという。 Currently, a cluster system having a first computer and a second computer and a communication processing device in which a virtual Internet Protocol (IP) program is installed is used. In the cluster system, substantially the same program is installed in both the first computer and the second computer, one of the two computers is used, and the other is waiting. The computer in use is called the active computer, and the computer on standby is called the standby computer.
クラスタシステムには、現用系のコンピュータに電源異常又はメモリエラー等のハードウェアに関する障害が発生した場合のその障害を検出するためのハートビート(死活監視)機能が実装されている。ハートビート機能により障害が検出された場合、その機能により、使用されているコンピュータが現用系のコンピュータから予備系のコンピュータに切り替えられる。これにより、クラスタシステムの全体の稼働率の向上と安全性とが図られる。 The cluster system is equipped with a heartbeat (life monitoring) function for detecting a failure related to hardware such as a power failure or a memory error in an active computer. When a failure is detected by the heartbeat function, the computer used is switched from the active computer to the standby computer by the function. As a result, the overall operating rate and safety of the cluster system can be improved.
なお、本願に関し、出願人は先行技術文献に関する情報を持たない。 In addition, regarding the present application, the applicant does not have information on prior art documents.
ところで、第1のコンピュータ及び第2のコンピュータに実装されるプログラムにクラスタシステムに実装されているハートビート機能を組み込んで現用系のコンピュータと予備系のコンピュータとの系切替処理を実現しようとする場合、以下に示す問題が生じる。 By the way, when the heartbeat function implemented in the cluster system is incorporated into the program implemented in the first computer and the second computer, the system switching process between the active computer and the standby computer is to be realized. The following problems arise.
すなわち、クラスタシステムがA社により製造されており、B社によって製造されたプログラムにハートビート機能を組み込む場合、クラスタシステムへのアクセスが制限されたり、B社のプログラムへの影響を避けることを要求されることがある。つまり、クラスタシステムの製造会社と第1のコンピュータ及び第2のコンピュータに実装されるプログラムの製造会社とが異なる場合、そのプログラムにハートビート機能を組み込むことは困難であり、又は有効な手段ではない。 In other words, when the cluster system is manufactured by company A and the heartbeat function is incorporated into the program manufactured by company B, access to the cluster system must be restricted or the influence on the program of company B must be avoided. May be. In other words, if the cluster system manufacturer is different from the manufacturer of the program installed in the first computer and the second computer, it is difficult or not effective to incorporate the heartbeat function into the program. .
また、第1のコンピュータ及び第2のコンピュータに実装されるプログラムにハートビート機能を組み込んで系切替処理を実現しようとする場合、クラスタシステムに実装されているハートビート機能を製造会社毎に解析し、理解しなければならない。かつ、ハートビート機能を上記プログラムに組み込む方法を検討しなければならない。クラスタシステムによっては、第1のコンピュータ及び第2のコンピュータに実装されるプログラムにハートビート機能を組み込む際に多くの工数がかかるという問題がある。 In addition, when the heartbeat function is incorporated into the program installed in the first computer and the second computer to realize the system switching process, the heartbeat function implemented in the cluster system is analyzed for each manufacturing company. Must understand. And we must consider how to incorporate the heartbeat function into the program. Depending on the cluster system, there is a problem that it takes a lot of man-hours to incorporate a heartbeat function into a program implemented in the first computer and the second computer.
本発明は、上記課題を考慮し、ハートビート機能によらない簡易な手段により、現用系のデータ処理手段と予備系のデータ処理手段との系切替処理を行なうクラスタシステムを提供することを目的とする。 In view of the above problems, an object of the present invention is to provide a cluster system that performs a system switching process between an active data processing unit and a standby data processing unit by a simple unit that does not depend on the heartbeat function. To do.
上記課題を解決し上記目的を達成するために、本発明のクラスタシステムは、データを処理する機能及び電文を送受信する機能をそれぞれ有する第1及び第2のデータ処理手段と、前記第1及び前記第2のデータ処理手段からそれぞれ送信された電文の少なくとも一方に対する応答を前記第1及び前記第2のデータ処理手段のいずれか一方にのみ送信する通信処理手段とを備え、前記第1及び前記第2のデータ処理手段が、それぞれ、前記応答を受信した場合に自らを現用系であると判断し、前記応答を受信しなかった場合に自らを予備系であると判断する。 In order to solve the above problems and achieve the above object, the cluster system of the present invention includes first and second data processing means each having a function of processing data and a function of transmitting and receiving telegrams, Communication processing means for transmitting a response to at least one of the messages transmitted from the second data processing means to only one of the first and second data processing means, and the first and the second Each of the two data processing means determines that it is an active system when it receives the response, and determines that it is a standby system when it does not receive the response.
このように、本発明のクラスタシステムでは、前記第1及び前記第2のデータ処理手段が、それぞれ、前記応答を受信した場合に自らを現用系であると判断し、前記応答を受信しなかった場合に自らを予備系であると判断する。すなわち、本発明のクラスタシステムでは、従来のクラスタシステムに実装されているハートビート機能によらない簡易な手段により、現用系のデータ処理手段と予備系のデータ処理手段との系切替処理を行なうことができる。 As described above, in the cluster system of the present invention, when the first and second data processing means respectively receive the response, they determine themselves as active systems and do not receive the response. If it is determined that it is a backup system. That is, in the cluster system of the present invention, the system switching process between the active data processing means and the standby data processing means is performed by a simple means that does not depend on the heartbeat function implemented in the conventional cluster system. Can do.
本発明は、ハートビート機能によらない簡易な手段により、現用系のデータ処理手段と予備系のデータ処理手段との系切替処理を行なうクラスタシステムを提供することができる。 The present invention can provide a cluster system that performs a system switching process between the active data processing means and the standby data processing means by simple means that do not depend on the heartbeat function.
以下に、本発明を実施するための最良の形態を図面を参照して説明する。 The best mode for carrying out the present invention will be described below with reference to the drawings.
(構成)
先ず、本実施の形態のクラスタシステム1の構成を説明する。
(Constitution)
First, the configuration of the cluster system 1 of the present embodiment will be described.
図1は、本実施の形態のクラスタシステム1の構成図である。クラスタシステム1は、第1のコンピュータ11と、第2のコンピュータ12と、通信処理装置13とを有する。第1のコンピュータ11と通信処理装置13とは、Local Area Network(LAN)14により接続されており、第2のコンピュータ12と通信処理装置13とはLAN15により接続されている。
FIG. 1 is a configuration diagram of a cluster system 1 according to the present embodiment. The cluster system 1 includes a
第1のコンピュータ11及び第2のコンピュータ12は、データを処理する装置であり、通信処理装置13は、第1のコンピュータ11及び第2のコンピュータ12と通信する装置である。
The
第1のコンピュータ11は、第1のプログラムAが格納される第1の記憶部101と、第1のプログラムAを実行する第1の実行部102とを有する。
The
第1の記憶部101は、ハードディスクドライブや半導体メモリ等により実現される。第1のプログラムAは、第1の電文を通信処理装置13へ定期的に送信させることを第1の実行部102に実行させるとともに、第1のコンピュータ11が使用されている(つまり現用系の)コンピュータであるか否かを第1の実行部102に判断させるプログラムである。
The
第1の実行部102は、第1の電文を通信処理装置13へ定期的に送信するとともに、通信処理装置13からの情報を受信する機能を有し、更に、第1のコンピュータ11が現用系のコンピュータであるか否かを判断する。第1の実行部102は、Central Processing Unit(CPU)等により実現される。
The
第2のコンピュータ12は、第2のプログラムBが格納される第2の記憶部201と、第2のプログラムBを実行する第2の実行部202とを有する。
The
第2の記憶部201は、ハードディスクドライブや半導体メモリ等により実現される。第2のプログラムBは、第1のプログラムAと同様のプログラムであって、第2の電文を通信処理装置13へ定期的に送信させることを第2の実行部202に実行させるとともに、第2のコンピュータ12が現用系のコンピュータであるか否かを第2の実行部202に判断させるプログラムである。
The
第2の実行部202は、第2の電文を通信処理装置13へ定期的に送信するとともに、通信処理装置13からの情報を受信する機能を有し、更に、第2のコンピュータ12が現用系のコンピュータであるか否かを判断する。第2の実行部202はCPU等により実現される。
The
通信処理装置13は、クラスタシステム1に割り当てられたIPアドレス(以下、「仮想IPアドレス」という。)を有する装置であって、第1のコンピュータ11からの第1の電文と第2のコンピュータ12からの第2の電文とを受信する。仮想IPアドレスは、物理的インターフェースに通常割り当てられるIPアドレスとは異なる。通信処理装置13は、第1のコンピュータ11が現用系のコンピュータである場合、第1の電文に対する第1の応答と第2の電文に対する第2の応答とを第1のコンピュータ11の第1の実行部102にのみ送信する。第2のコンピュータ12が現用系のコンピュータである場合、通信処理装置13は、第1の応答及び第2の応答を第2の実行部202にのみ送信する。
The
なお、第1の実行部102は、通信処理装置13から第1の応答及び第2の応答を受信した場合、第1のコンピュータ11が現用系のコンピュータであると判断し、第1の電文を通信処理装置13へ送信してから所定の期間が経過しても第1の応答及び第2の応答を受信しなかった場合、第1のコンピュータ11が待機している予備のコンピュータであると判断する。
When the
同様に、第2の実行部202は、通信処理装置13から第1の応答及び第2の応答を受信した場合、第2のコンピュータ12が現用系のコンピュータであると判断し、第2の電文を通信処理装置13へ送信してから所定の期間が経過しても第1の応答及び第2の応答を受信しなかった場合、第2のコンピュータ12が待機している予備のコンピュータであると判断する。
Similarly, when the
また、図1には、クラスタシステム1と接続されている第3のコンピュータ2も示されている。クラスタシステム1と第3のコンピュータ2とはLAN3により接続されている。第3のコンピュータ2から見た場合、クラスタシステム1は、仮想IPアドレスが割り当てられた1個の機器として理解される。クラスタシステム1と通信する場合、第3のコンピュータ2は、LAN3を通してクラスタシステム1の通信処理装置13にアクセスするのみである。
FIG. 1 also shows a third computer 2 connected to the cluster system 1. The cluster system 1 and the third computer 2 are connected by a LAN 3. When viewed from the third computer 2, the cluster system 1 is understood as one device to which a virtual IP address is assigned. When communicating with the cluster system 1, the third computer 2 only accesses the
(フローチャートを用いた動作の説明)
次に、本実施の形態のクラスタシステム1の動作を説明する。
(Description of operation using flowchart)
Next, the operation of the cluster system 1 of the present embodiment will be described.
動作を説明する前に以下のことを前提とする。すなわち、クラスタシステム1の内部では、第1のコンピュータ11と第2のコンピュータ12とのうちの一方が使用されている現用系のコンピュータであり、他方が待機している予備系のコンピュータである。現用系のコンピュータと通信処理装置13とがリンクしており、予備系のコンピュータと通信処理装置13とはリンクされていない。
Before explaining the operation, it is assumed that: That is, inside the cluster system 1, one of the
そのため、現用系のコンピュータが第1のコンピュータ11である場合、LAN14を通して通信処理装置13と第1のコンピュータ11とが通信し、LAN3を通して第1のコンピュータ11と第3のコンピュータ2とが通信する。通信処理装置13と第2のコンピュータ12とは通信せず、第2のコンピュータ12と第3のコンピュータ2とは通信しない。
Therefore, when the active computer is the
他方、現用系のコンピュータが第2のコンピュータ12である場合、LAN15を通して通信処理装置13と第2のコンピュータ12とが通信し、LAN3を通して第2のコンピュータ12と第3のコンピュータ2とが通信する。通信処理装置13と第1のコンピュータ11とは通信せず、第1のコンピュータ11と第3のコンピュータ2とは通信しない。
On the other hand, when the active computer is the
次に、第1のコンピュータ11と第2のコンピュータ12とのうちのいずれが現用系のコンピュータであるのかを判断するクラスタシステム1の動作を説明する。つまり、2個のコンピュータのいずれが現用系のコンピュータであるのかを判断するための第1のプログラムAに基づく第1の実行部102の動作と、それと同じ目的を有する第2のプログラムBに基づく第2の実行部202の動作とを説明する。
Next, the operation of the cluster system 1 for determining which of the
第1の実行部102の動作と第2の実行部202の動作とは実質上同一であるので、図2を用いてそれらを説明する。図2は、第1の実行部102の動作と第2の実行部202の動作とを示すフローチャートである。
Since the operation of the
第1の実行部102は、受信ポートを開設するとともに、第1の電文を通信処理装置13に送信し(S1)、第2の実行部202は、受信ポートを開設するとともに、第2の電文を通信処理装置13に送信する(S1)。通信処理装置13は、第1のコンピュータ11の第1の実行部102からの第1の電文を受信するとともに、第2のコンピュータ12の第2の実行部202からの第2の電文を受信する。そして、通信処理装置13は、第1の電文に対する第1の応答と、第2の電文に対する第2の応答とを現用系のコンピュータのみに送信する。仮に、現用系のコンピュータが第1のコンピュータ11である場合、通信処理装置13は、第1の応答と第2の応答とを第1のコンピュータ11の受信ポートのみに送信する。
The
第1の実行部102は、通信処理装置13からの第1の応答と第2の応答とを受信したか否かを判断する(S2)。第1の応答と第2の応答とを受信した場合(S2でYes)、第1の実行部102は、自らが設けられている第1のコンピュータ11が現用系のコンピュータであると判断する(S3)。そして、第1の実行部102の動作はステップS6へ移行する。同様に、第2の実行部202は、通信処理装置13からの第1の応答と第2の応答とを受信したか否かを判断する(S2)。そして、第2の実行部202は、第1の応答と第2の応答とを受信した場合(S2でYes)、第2のコンピュータ12が現用系のコンピュータであると判断し(S3)、第2の実行部202の動作はステップS6へ移行する。
The
他方、第1の実行部102は、第1の応答も第2の応答も受信しなかった場合(S2でNo)、第1の電文を通信処理装置13に送信してから所定の期間内にそれらを受信しなかったかどうかを判断する(S4)。所定の期間内に第1の応答及び第2の応答を受信しなかった場合(S4でYes)。第1の実行部102は、自らが設けられている第1のコンピュータ11が予備系のコンピュータであると判断し(S5)、第1の実行部102の動作はステップS6へ移行する。
On the other hand, if neither the first response nor the second response is received (No in S2), the
同様に、第2の実行部202は、第1の応答も第2の応答も受信しなかった場合(S2でNo)、第2の電文を通信処理装置13に送信してから所定の期間内にそれらを受信しなかったかどうかを判断する(S4)。所定の期間内に第1の応答及び第2の応答を受信しなかった場合(S4でYes)。第2の実行部202は、自らが設けられている第2のコンピュータ12が予備系のコンピュータであると判断し(S5)、第2の実行部202の動作はステップS6へ移行する。
Similarly, if neither the first response nor the second response is received (No in S2), the
なお、第1のコンピュータ11の第1の記憶部101に第1のプログラムAとは異なるプログラムCが記憶されていた場合、第1の実行部102は、第1のコンピュータ11が現用系のコンピュータであると判断したとき(S3)、プログラムCの実行を開始する、又はプログラムCを有効化する。他方、第1のコンピュータ11が予備系のコンピュータであると判断した場合(S5)、第1の実行部102は、プログラムCの実行を停止する、又はプログラムCを無効化する。
When the
同様に、第2のコンピュータ12の第2の記憶部201に第2のプログラムBとは異なるプログラムDが記憶されていた場合、第2の実行部202は、第2のコンピュータ12が現用系のコンピュータであると判断したとき(S3)、プログラムDの実行を開始する、又はプログラムDを有効化する。他方、第2のコンピュータ12が予備系のコンピュータであると判断した場合(S5)、第2の実行部202は、プログラムDの実行を停止する、又はプログラムDを無効化する。
Similarly, when the
ステップS6では、第1の実行部102及び第2の実行部202は、ユーザによって停止を指示されたか否かを判断し、停止が指示された場合(S6でYes)、動作を終了する。他方、停止が指示されなければ(S6でNo)、動作はステップS1に移行する。
In step S6, the
(シーケンス図を用いた動作の説明)
以上に説明した動作を、シーケンス図を用いて別の視点で説明する。
(Explanation of operation using sequence diagram)
The operation described above will be described from another viewpoint using a sequence diagram.
図3及び図4は、クラスタシステム1の動作を示すシーケンス図である。なお、図3はその動作の前半部を示し、図4はその動作の後半部を示す。また、説明の便宜上、動作の開始時では、第1のコンピュータ11が現用系のコンピュータであると仮定する。更に、第1の記憶部101にプログラムCが記憶されており、第2の記憶部201にプログラムDが記憶されていることを想定する。初めに図3のシーケンス図を用いてクラスタシステム1の動作を説明する。
3 and 4 are sequence diagrams showing the operation of the cluster system 1. 3 shows the first half of the operation, and FIG. 4 shows the second half of the operation. For convenience of explanation, it is assumed that the
先ず、第1の実行部102は第1の電文を通信処理装置13に送信し(S11)、第2の実行部202は第2の電文を通信処理装置13に送信する(S12)。通信処理装置13は、第1の電文及び第2の電文を受信し(S11,S12)、第1のコンピュータ11が現用系のコンピュータであるので、第1の電文に対する第1の応答を第1のコンピュータ11のみに送信するとともに(S13)、第2の電文に対する第2の応答を第1のコンピュータ11のみに送信する(S14)。
First, the
第1のコンピュータ11の第1の実行部102は、通信処理装置13からの第1の応答と第2の応答とを受信すると(S13,S14)、自らが設けられている第1のコンピュータ11が現用系のコンピュータであると判断する(S15)。そして、第1の実行部102は、プログラムCの実行を開始する、又はプログラムCを有効化する(S16)。
When the
ステップS11の内容が実行されてから所定の第1の期間が経過した後、第1の実行部102は第1の電文を通信処理装置13に送信し(S17)、ステップS12の内容が実行されてから所定の第1の期間が経過した後、第2の実行部202は第2の電文を通信処理装置13に送信する(S18)。通信処理装置13は、第1の電文及び第2の電文を受信し(S17,S18)、現用系のコンピュータがまだ第1のコンピュータ11であるので、第1の電文に対する第1の応答を第1のコンピュータ11のみに送信するとともに(S19)、第2の電文に対する第2の応答を第1のコンピュータ11のみに送信する(S20)。
After a predetermined first period has elapsed since the execution of step S11, the
第1のコンピュータ11の第1の実行部102は、通信処理装置13からの第1の応答と第2の応答とを受信し(S19,S20)、自らが設けられている第1のコンピュータ11が現用系のコンピュータであると判断し(S21)、プログラムCの実行を開始する、又はプログラムCを有効化する(S22)。
The
ステップS12の内容が実行されてから所定の第1の期間より長い所定の第2の期間が経過しても、第2のコンピュータ12の第2の実行部202は第1の応答及び第2の応答を受信していない。そのため、ステップS12の内容が実行されてから所定の第2の期間が経過したとき、第2の実行部202は、第2のコンピュータ12が予備系のコンピュータであると判断し(S23)、プログラムDの実行を停止する、又はプログラムDを無効化する(S24)。
Even if a predetermined second period longer than the predetermined first period has elapsed since the execution of step S12, the
第3のコンピュータ2は、制御電文をクラスタシステム1に送信する(S25)。クラスタシステム1では、通信処理装置13が第3のコンピュータ2からの制御電文を受信する(S25)。第1のコンピュータ11が現用系のコンピュータであるので、通信処理装置13は、制御電文を第1のコンピュータ11の第1の実行部102に送信し(S26)、それにより、第1の実行部102は、プログラムCを利用して制御電文に対応する処理を実行する。
The third computer 2 transmits a control message to the cluster system 1 (S25). In the cluster system 1, the
ここで、第1のコンピュータ11に電源異常又はメモリエラー等のハードウェアに関する障害が発生し、現用系のコンピュータが第1のコンピュータ11から第2のコンピュータ12に切り替えられたと仮定する。その場合、通信処理装置13と第1のコンピュータ11とのリンクは切断され、通信処理装置13と第2のコンピュータ12とが接続される。以下のクラスタシステム1の動作を図4を用いて説明する。
Here, it is assumed that a hardware failure such as a power failure or a memory error has occurred in the
第1の実行部102は第1の電文を通信処理装置13に送信し(S27)、第2の実行部202は第2の電文を通信処理装置13に送信する(S28)。通信処理装置13は、第1の電文及び第2の電文を受信し(S27,S28)、第2のコンピュータ11が現用系のコンピュータであるので、第1の電文に対する第1の応答を第2のコンピュータ12のみに送信するとともに(S29)、第2の電文に対する第2の応答を第2のコンピュータ12のみに送信する(S30)。
The
第2のコンピュータ12の第2の実行部202は、通信処理装置13からの第1の応答と第2の応答とを受信すると(S29,S30)、自らが設けられている第2のコンピュータ12が現用系のコンピュータであると判断する(S31)。そして、第2の実行部202は、プログラムDの実行を開始する、又はプログラムDを有効化する(S32)。
When the
ステップS27の内容が実行されてから所定の第1の期間が経過した後、第1の実行部102は第1の電文を通信処理装置13に送信し(S33)、ステップS28の内容が実行されてから所定の第2の期間が経過した後、第2の実行部202は第2の電文を通信処理装置13に送信する(S34)。通信処理装置13は、第1の電文及び第2の電文を受信し(S33,S34)、現用系のコンピュータが第2のコンピュータ12であるので、第1の電文に対する第1の応答を第2のコンピュータ12のみに送信するとともに(S35)、第2の電文に対する第2の応答を第2のコンピュータ12のみに送信する(S36)。
After a predetermined first period has elapsed since the execution of step S27, the
ステップS27の内容が実行されてから所定の第2の期間が経過しても、第1のコンピュータ11の第1の実行部102は、第1の応答及び第2の応答を受信していない。そのため、ステップS27の内容が実行されてから所定の第2の期間が経過したとき、第1の実行部102は、第1のコンピュータ11が予備系のコンピュータであると判断し(S37)、プログラムCの実行を停止する、又はプログラムCを無効化する(S38)。
Even if a predetermined second period has elapsed since the execution of step S27, the
第2のコンピュータ12の第2の実行部202は、通信処理装置13からの第1の応答と第2の応答とを受信すると(S35,S36)、自らが設けられている第2のコンピュータ11が現用系のコンピュータであると判断し(S39)、プログラムDの実行を開始する、又はプログラムDを有効化する(S40)。
When the
第3のコンピュータ2は、制御電文をクラスタシステム1に送信する(S41)。クラスタシステム1では、通信処理装置13が第3のコンピュータ2からの制御電文を受信する(S41)。第2のコンピュータ12が現用系のコンピュータであるので、通信処理装置13は、制御電文を第2のコンピュータ12の第2の実行部202に送信し(S42)、それにより、第2の実行部202は、プログラムDを利用して制御電文に対応する処理を実行する。
The third computer 2 transmits a control message to the cluster system 1 (S41). In the cluster system 1, the
その後は、上述した動作が繰り返される。 Thereafter, the above-described operation is repeated.
上述したように、本実施の形態のクラスタシステム1では、第1のコンピュータ11の第1の実行部102は、第1の電文を定期的に通信処理装置13に送信し、第2のコンピュータ12の第2の実行部202は、第2の電文を定期的に通信処理装置13に送信する。そして、第1の実行部102は、第1の電文を送信した後に第1の応答及び第2の応答を受信すると、自らが設けられている第1のコンピュータ11が現用系のコンピュータであると判断する。他方、第1の電文を送信してから所定の期間が経過しても第1の応答及び第2の応答を受信しなければ、第1の実行部102は、自らが設けられている第1のコンピュータ11は予備系のコンピュータであると判断する。
As described above, in the cluster system 1 of the present embodiment, the
同様に、第2のコンピュータ12の第2の実行部202は、第2の電文を送信した後に第1の応答及び第2の応答を受信すると、自らが設けられている第2のコンピュータ12が現用系のコンピュータであると判断する。他方、第2の電文を送信してから所定の期間が経過しても第1の応答及び第2の応答を受信しなければ、第2の実行部202は、自らが設けられている第2のコンピュータ12は予備系のコンピュータであると判断する。
Similarly, when the
このように、本実施の形態のクラスタシステム1では、従来のクラスタシステムに実装されているハートビート機能によらない簡易な手段により、現用系のコンピュータと予備系のコンピュータとの系切替処理を行なうことができる。これにより、クラスタシステム1の製造会社と第1のプログラムA及び第2のプログラムBの製造会社とが異なっても、クラスタシステム1に実装されているハートビート機能を使用することなく、現用系のコンピュータと予備系のコンピュータとの系切替判断を行なうことができる。すなわち、系切替処理を可能にするためのクラスタシステム1に施す工数(手段)及びコストを従来よりも少なくすることができる。 As described above, in the cluster system 1 of the present embodiment, the system switching process between the active computer and the standby computer is performed by a simple means that does not depend on the heartbeat function implemented in the conventional cluster system. be able to. As a result, even if the manufacturing company of the cluster system 1 is different from the manufacturing company of the first program A and the second program B, the active system can be used without using the heartbeat function implemented in the cluster system 1. It is possible to make a system switching determination between the computer and the standby computer. That is, the number of steps (means) and cost applied to the cluster system 1 for enabling the system switching process can be reduced as compared with the prior art.
更にいうと、クラスタシステム1に実装されているハートビート機能を使用しないので、その機能と独立して第1のプログラムA及び第2のプログラムBを第1のコンピュータ11及び第2のコンピュータ12それぞれに組み込むことができる。つまり、他のクラスタシステムへ与える影響を少なくすることができる。また、クラスタシステム1で用意されている機能を使用しないため、別のクラスタシステムへの対応をより簡単に行なうことができる。更に、系切替処理に使用されるアルゴリズムが簡単なため、比較的簡易なプログラムにおいても、機能の追加を簡単に行なうことができ、機能の追加に伴なうコストを抑えることができる。
Furthermore, since the heartbeat function implemented in the cluster system 1 is not used, the first program A and the second program B are respectively transferred to the
なお、上述した実施の形態では、第1の実行部102は、第1の応答及び第2の応答を受信した場合、自らが設けられている第1のコンピュータ11が現用系のコンピュータであると判断する。しかしながら、第1の実行部102は、第1の応答と第2の応答とのうちの一方を受信した場合、自らが設けられている第1のコンピュータ11が現用系のコンピュータであると判断してもよい。例えば、第2のコンピュータ12に障害が発生すると、第1の実行部102は、第1の応答を受信することはできるが、第2の応答を受信することができないからである。
In the above-described embodiment, when the
同様に、第2の実行部202は、第1の応答及び第2の応答を受信した場合、自らが設けられている第2のコンピュータ12が現用系のコンピュータであると判断する。しかしながら、第2の実行部202は、第1の応答と第2の応答とのうちの一方を受信した場合、自らが設けられている第2のコンピュータ12が現用系のコンピュータであると判断してもよい。例えば、第1のコンピュータ11に障害が発生すると、第2の実行部202は、第2の応答を受信することはできるが、第1の応答を受信することができないからである。
Similarly, when the
また、上述した実施の形態では、第1のコンピュータ11は、本発明のクラスタシステムの第1のデータ処理手段の一例であり、第2のコンピュータ12は、本発明のクラスタシステムの第2のデータ処理手段の一例である。また、通信処理装置13は、本発明のクラスタシステムの通信処理手段の一例である。
In the embodiment described above, the
更に、上述した説明から明らかなように、本発明のクラスタシステムの第1及び第2のデータ処理手段の機能は、その機能の内容を有するプログラムがCPU等の実行手段によって実行されることにより実現されてもよい。 Further, as is apparent from the above description, the functions of the first and second data processing means of the cluster system of the present invention are realized by executing a program having the contents of the functions by an execution means such as a CPU. May be.
1 クラスタシステム
11 第1のコンピュータ
12 第2のコンピュータ
13 通信処理装置
101 第1の記憶部
102 第1の実行部
201 第2の記憶部
202 第2の実行部
A 第1のプログラム
B 第2のプログラム
DESCRIPTION OF SYMBOLS 1
Claims (2)
前記第1及び前記第2のデータ処理手段は、それぞれ、前記第1及び前記第2のデータ処理手段からそれぞれ定期的に送信された電文の少なくとも一方に対する応答を受信した場合に自らを現用系として判断しデータを処理する機能を実行し、前記第1及び前記第2のデータ処理手段からそれぞれ定期的に送信された電文の少なくとも一方に対する応答を受信しなかった場合に自ら予備系であると判断する
ことを特徴とするクラスタシステム。 A first data processing unit having a function of processing data and a function of transmitting / receiving a telegram, a second data processing unit having a function of processing data and a function of transmitting / receiving a telegram, and the first and second Communication processing means for transmitting a response to at least one of the messages periodically transmitted from the data processing means to only one of the first and second data processing means,
When the first and second data processing means respectively receive a response to at least one of the telegrams periodically transmitted from the first and second data processing means , the first and second data processing means respectively set themselves as the active system. Determine and execute the function of processing data, and determine that it is a standby system when it does not receive a response to at least one of the messages transmitted periodically from each of the first and second data processing means A cluster system characterized by
前記第1及び前記第2のデータ処理手段は、それぞれ、前記両方の応答を受信した場合に自らを現用系として判断しデータを処理する機能を実行し、前記両方の応答を受信しなかった場合に自ら予備系であると判断するWhen each of the first and second data processing means receives the both responses, the first and second data processing means perform a function of processing data by determining itself as an active system, and when both responses are not received. To determine that it is a standby system
ことを特徴とする請求項1に記載のクラスタシステム。The cluster system according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008302116A JP5433219B2 (en) | 2008-11-27 | 2008-11-27 | Cluster system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008302116A JP5433219B2 (en) | 2008-11-27 | 2008-11-27 | Cluster system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010128741A JP2010128741A (en) | 2010-06-10 |
JP5433219B2 true JP5433219B2 (en) | 2014-03-05 |
Family
ID=42329096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008302116A Expired - Fee Related JP5433219B2 (en) | 2008-11-27 | 2008-11-27 | Cluster system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5433219B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5625506B2 (en) | 2010-06-04 | 2014-11-19 | ソニー株式会社 | Operation terminal device, electronic device, and electronic device system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2732688B2 (en) * | 1989-12-01 | 1998-03-30 | 富士通株式会社 | Management host switching control method |
-
2008
- 2008-11-27 JP JP2008302116A patent/JP5433219B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2010128741A (en) | 2010-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10715411B1 (en) | Altering networking switch priority responsive to compute node fitness | |
US10693813B1 (en) | Enabling and disabling links of a networking switch responsive to compute node fitness | |
US7898937B2 (en) | Voting to establish a new network master device after a network failover | |
EP3070881B1 (en) | Link health check method and device | |
US7783794B2 (en) | Remote USB access method | |
JP6183931B2 (en) | Cluster system, server apparatus, cluster system management method, and program | |
WO2013117081A1 (en) | Service information processing method, apparatus and system for external device and virtual device | |
JP2004171370A (en) | Address control system and method between client/server in redundant constitution | |
JP2008172592A (en) | Cluster system, computer and its abnormality detection method | |
JP4964666B2 (en) | Computer, program and method for switching redundant communication paths | |
US8527669B2 (en) | Communication apparatus and method for communicating with an external device through USB interface using a high-speed or low-speed communication mode | |
US20060098581A1 (en) | Method and apparatus for conveying link state information in a network | |
JP5625605B2 (en) | OS operation state confirmation system, device to be confirmed, OS operation state confirmation device, OS operation state confirmation method, and program | |
CN113722003A (en) | Method, device and equipment for adjusting working mode of PHY chip | |
JP5433219B2 (en) | Cluster system | |
WO2016154921A1 (en) | Data transmission method and device for data service | |
JP5112138B2 (en) | Session management method, storage device, and computer system | |
JP2011203941A (en) | Information processing apparatus, monitoring method and monitoring program | |
JP6134720B2 (en) | Connection method | |
JP2007334668A (en) | Memory dumping method, cluster system, node constituting the system, and program | |
JP4572138B2 (en) | Server apparatus, server system, and system switching method in server system | |
JP4863984B2 (en) | Monitoring processing program, method and apparatus | |
JP2016206898A (en) | Information processing device, fault detection method, and computer program | |
JP7120678B1 (en) | Communication processing device, communication processing system, failure notification method and failure notification program | |
JP2004213412A (en) | Duplex controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20111118 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20120523 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20120523 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130920 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20131001 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20131022 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20131203 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131209 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5433219 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
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 |
|
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 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |