JP4812848B2 - Clustering server system and data transfer method - Google Patents

Clustering server system and data transfer method Download PDF

Info

Publication number
JP4812848B2
JP4812848B2 JP2009041077A JP2009041077A JP4812848B2 JP 4812848 B2 JP4812848 B2 JP 4812848B2 JP 2009041077 A JP2009041077 A JP 2009041077A JP 2009041077 A JP2009041077 A JP 2009041077A JP 4812848 B2 JP4812848 B2 JP 4812848B2
Authority
JP
Japan
Prior art keywords
data
update
server
transfer
transfer method
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.)
Active
Application number
JP2009041077A
Other languages
Japanese (ja)
Other versions
JP2010198204A (en
Inventor
康介 畠山
淳一 古賀
健 福元
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2009041077A priority Critical patent/JP4812848B2/en
Publication of JP2010198204A publication Critical patent/JP2010198204A/en
Application granted granted Critical
Publication of JP4812848B2 publication Critical patent/JP4812848B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Description

本発明は、運用系サーバと待機系サーバとを用いて冗長化されたHA(High Availability)クラスタリングサーバシステムに関する。   The present invention relates to an HA (High Availability) clustering server system that is made redundant using an active server and a standby server.

HA(High Availability)クラスタにおける系間のデータ転送については、データ・レプリケーション(Date Replication)として知られている。このデータ・レプリケーションについては、非特許文献1に体系的な説明が記載されている。   Data transfer between systems in an HA (High Availability) cluster is known as data replication. Non-Patent Document 1 describes a systematic explanation regarding this data replication.

また、HAクラスタのミドルウェアとアプリケーションの使用を策定するフォーラムとして、SAF(Service Availability Forum)があり、AIS(Application Interface Specification)と呼ばれるインタフェースが既定されている。AISのおけるデータ・レプリケーションのインタフェースとしては、非特許文献2に記載されているCKPT(Check Point Service)が存在する。   As a forum for formulating the use of HA cluster middleware and applications, there is SAF (Service Availability Forum), and an interface called AIS (Application Interface Specification) is defined. As a data replication interface in AIS, CKPT (Check Point Service) described in Non-Patent Document 2 exists.

「Blueprints for High Availability: Timely, Practical, Reliable」, Evan Marcus(著), Hal Stern(著),Chapter18 Date Replication"Blueprints for High Availability: Timely, Practical, Reliable", Evan Marcus (Author), Hal Stern (Author), Chapter18 Date Replication 「Service Availability Forum application Interface Specification, Check Point Service, SAI-AIS-CKPT-B.02.02」, Service Availability Forum`` Service Availability Forum application Interface Specification, Check Point Service, SAI-AIS-CKPT-B.02.02 '', Service Availability Forum

高可用性を実現するHAクラスタにおけるフェイルオーバクラスタリングサーバシステムでは、運用系サーバと待機系サーバとを備え、運用系サーバで障害が発生した場合に、即座に待機系サーバで処理を継続させるために、運用系サーバと待機系サーバとはデータを同期・一致させておく必要がある。このため、運用系サーバのデータが更新されると、当該更新データを待機系サーバに転送し、待機系サーバのデータも運用系サーバと同様に更新される。   The failover clustering server system in the HA cluster that realizes high availability is equipped with an active server and a standby server, so that if a failure occurs in the active server, the standby server immediately continues processing. It is necessary to synchronize and match data between the active server and the standby server. For this reason, when the data of the active server is updated, the update data is transferred to the standby server, and the data of the standby server is also updated in the same manner as the active server.

ここで、運用系サーバから待機系サーバに更新データを転送する方式には、系切替え時(フェイルオーバ時)に更新データを一括で待機系サーバに転送する系切替え時転送方式と、各データの更新毎にその都度更新データを待機系サーバに転送する運用中転送方式との2つの方式がある。   Here, the method for transferring update data from the active server to the standby server includes the transfer method at the time of system switchover in which update data is transferred to the standby server at the time of system switchover (failover), and the update of each data. There are two methods: an in-operation transfer method in which update data is transferred to the standby server each time.

運用系サーバにおいて更新頻度の異なる複数の更新データを待機系サーバへ転送する際に、処理負荷を軽減するために、更新頻度の高い更新データについては系切替え時転送方式で、更新頻度の低い更新データについては運用中転送方式で転送する必要がある。これは、頻繁に更新される更新頻度の高い更新データを、運用中転送方式でその都度転送した場合、運用系サーバおよび待機系サーバの負荷が増大し、システム全体の機能低下が発生してしまうおそれがあるからである。   In order to reduce the processing load when transferring multiple update data with different update frequencies to the standby server in the active server, update data with a low update frequency is used for the update data with a high update frequency by the transfer method during system switchover. Data must be transferred using the in-service transfer method. This is because, when frequently updated data that is frequently updated is transferred using the in-operation transfer method, the load on the active server and standby server increases, resulting in a decrease in the functionality of the entire system. Because there is a fear.

一方、系切替え時転送方式では、運用系サーバと待機系サーバとの間の系間ネットワーク帯域の制限、系切替えによるサービス中断時間の制約などにより、系切替え時に一括して転送可能なデータ量には制限がある。   On the other hand, with the transfer method during system switchover, the amount of data that can be transferred at the time of system switchover is limited due to the limitation of the network bandwidth between the active server and the standby server and the service interruption time due to system switchover. There are limitations.

しかしながら、複数のユーザ端末からの要求などにより、様々なタイミングでそれぞれ更新される各データの更新頻度を正確に予測することは困難であり、したがって各データの更新頻度に適した転送方式を事前に割り当てることも困難である。例えば、過去のトラフィックパターンを用いて各データの更新頻度を予測し、更新頻度が低く予測されたデータを運用中転送方式に割り付けた場合、その後トラフィックパターンが変化してデータの更新頻度が高くなると、データ更新の都度、待機系サーバへの転送が実施されてしまい、処理負荷が上昇し、他のサービス提供に影響を及ぼす可能性が高まる。   However, it is difficult to accurately predict the update frequency of each data updated at various timings due to requests from a plurality of user terminals, and therefore a transfer method suitable for the update frequency of each data is determined in advance. It is also difficult to assign. For example, when the update frequency of each data is predicted using the past traffic pattern, and the predicted data with low update frequency is assigned to the in-operation transfer method, the traffic pattern changes and the data update frequency becomes high after that. Each time data is updated, the data is transferred to the standby server, which increases the processing load and increases the possibility of affecting other service provisions.

本発明は上記事情に鑑みてなされたものであり、本発明の目的は、運用中転送方式で転送されるデータ量を抑制し、クラスタリングサーバシステムの処理負荷をより低減させることにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to suppress the amount of data transferred by the operating transfer method and to further reduce the processing load of the clustering server system.

上記目的を達成するため、本発明は、運用系サーバと待機系サーバとを有するクラスタリングサーバシステムであって、前記運用系サーバと前記待機系サーバとの間でのデータ転送方式として、系切替え時に更新データを一括で切替え先サーバに転送する系切替え時転送方式と、各データの更新毎に更新データを切替え先サーバに転送する運用中転送方式とを併用し、前記運用系サーバは、複数のデータを記憶するデータ記憶手段と、前記データ記憶手段に記憶された複数のデータの中で、更新された更新データの更新頻度を記憶する転送リスト記憶手段と、前記運用系サーバと待機系サーバ間で更新データを転送する系間転送管理手段と、を備え、前記系間転送管理手段は、前記転送リスト記憶手段に記憶された更新データのデータ総量を算出し、当該データ総量が前記系切替え時転送方式で転送可能な所定の閾値を超えるか否かを判別し、前記データ総量が前記閾値を超える場合は、前記データ総量が前記閾値以下になるまで、前記転送リスト記憶手段に記憶された更新頻度が最も低い更新データを前記運用中転送方式で前記待機系サーバに転送する。   In order to achieve the above object, the present invention provides a clustering server system having an active server and a standby server, and as a data transfer method between the active server and the standby server, The system for transfer during system switchover that transfers update data to the switch destination server in batch and the operation transfer method that transfers update data to the switch destination server for each data update are used together. Data storage means for storing data, transfer list storage means for storing the update frequency of updated data among a plurality of data stored in the data storage means, and between the active server and the standby server Inter-system transfer management means for transferring update data in the inter-system transfer management means, wherein the inter-system transfer management means calculates the total amount of update data stored in the transfer list storage means. Determining whether the total amount of data exceeds a predetermined threshold that can be transferred by the transfer method at the time of system switching, and if the total amount of data exceeds the threshold, until the total amount of data falls below the threshold, Update data with the lowest update frequency stored in the transfer list storage means is transferred to the standby server by the in-operation transfer method.

また、本発明は、運用系サーバと待機系サーバとを有するクラスタリングサーバシステム用のデータ転送方法であって、クラスタリングサーバシステムは、前記運用系サーバと前記待機系サーバとの間でのデータ転送方式として、系切替え時に更新データを一括で切替え先サーバに転送する系切替え時転送方式と、各データの更新毎に更新データを切替え先サーバに転送する運用中転送方式とを併用し、前記運用系サーバは、複数のデータを記憶するデータ記憶部と、前記データ記憶部に記憶された複数のデータの中で、更新された更新データの更新頻度を記憶する転送リスト記憶部と、系間転送管理部と、を備え、前記系間転送管理部は、前記転送リスト記憶部を更新する更新ステップと、前記転送リスト記憶部に記憶された更新データのデータ総量を算出する算出ステップと、前記算出されたデータ総量が前記系切替え時転送方式で転送可能な所定の閾値を超えるか否かを判別する判別ステップと、前記データ総量が前記閾値を超える場合に、前記データ総量が前記閾値以下になるまで、前記転送リスト記憶部に記憶された更新頻度が最も低い更新データを前記運用中転送方式で前記待機系サーバに転送する転送ステップと、を行う。 The present invention is also a data transfer method for a clustering server system having an active server and a standby server, and the clustering server system is a data transfer method between the active server and the standby server. As described above, a combination of the transfer method during system switchover that transfers update data to the switch destination server at the time of system switchover and the in-operation transfer method that transfers update data to the switch destination server for each data update, The server includes a data storage unit that stores a plurality of data, a transfer list storage unit that stores the update frequency of updated data among the plurality of data stored in the data storage unit, and intersystem transfer management comprising a part, the said inter-system transfer management unit, and updating step of updating the forwarding list storage unit, updates data stored in the transfer list storage unit A calculation step for calculating the total amount of data, a determination step for determining whether or not the calculated total amount of data exceeds a predetermined threshold that can be transferred by the transfer method at the time of system switching, and the total amount of data exceeds the threshold A transfer step of transferring update data having the lowest update frequency stored in the transfer list storage unit to the standby server by the in-operation transfer method until the total data amount becomes equal to or less than the threshold value. .

本発明によれば、各データの更新頻度を動的に算出し、算出した更新頻度に基づいて運用中転送方式で転送するデータを特定するため、運用中転送方式で転送されるデータ量を抑制し、クラスタリングサーバシステムの処理負荷をより低減させることができる。   According to the present invention, the update frequency of each data is dynamically calculated, and the data transferred by the operating transfer method is specified based on the calculated update frequency, so that the amount of data transferred by the operating transfer method is suppressed. Thus, the processing load of the clustering server system can be further reduced.

本発明の実施形態に係るクラスタリングサーバシステムの全体構成図である。1 is an overall configuration diagram of a clustering server system according to an embodiment of the present invention. クラスタリングサーバシステム1の構成を示すブロック図である。1 is a block diagram showing a configuration of a clustering server system 1. FIG. メモリに記憶されるデータを説明するための第1の説明図である。It is a 1st explanatory view for explaining data memorized by memory. メモリに記憶されるデータを説明するための第2の説明図である。It is the 2nd explanatory view for explaining data memorized by memory. 転送リスト記憶部のデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of a transfer list memory | storage part. データ更新時の処理を示すフローチャートである。It is a flowchart which shows the process at the time of data update.

以下、本発明の実施形態について説明する。   Hereinafter, embodiments of the present invention will be described.

図1は、本発明の実施形態に係るクラスタリングサーバシステムを示す全体構成図である。本実施形態のクラスタリングサーバシステム1は、平常時に稼動する運用系サーバ(現用系サーバ)10と、運用系サーバ10が障害時に稼動する待機系サーバ11とを有する。また、本実施形態では、クラスタリングサーバシステム1は、ネットワーク2を介して複数のユーザ端末3と接続されているものとする。   FIG. 1 is an overall configuration diagram showing a clustering server system according to an embodiment of the present invention. The clustering server system 1 according to the present embodiment includes an active server (active server) 10 that operates normally and a standby server 11 that operates when the active server 10 fails. In this embodiment, the clustering server system 1 is connected to a plurality of user terminals 3 via the network 2.

本実施形態のクラスタリングサーバシステム1は、運用系サーバと待機系サーバとの間で更新データを転送する方式として、系切替え時(フェイルオーバ時)に更新データを一括で切替え先のサーバに転送する系切替え時転送方式と、各データの更新毎にその都度更新データを切替え先のサーバに転送する運用中転送方式の2つの方式を併用するものとする。   The clustering server system 1 according to the present embodiment is a system for transferring update data to a switching destination server at the time of system switching (failover) as a method for transferring update data between an active server and a standby server. Two methods are used in combination: a transfer method during switching and an in-operation transfer method in which update data is transferred to the switching destination server each time each data is updated.

なお、運用系サーバ10および待機系サーバ11は、少なくともCPUと、メモリと、HDD等の外部記憶装置とを備えた汎用的なコンピュータシステムを用いることができる。このコンピュータシステムにおいて、CPUがメモリ上にロードされた所定のプログラムを実行することにより、各装置の各機能が実現される。例えば、運用系サーバ10および待機系サーバ11の各機能は、運用系サーバ10用のプログラムの場合は運用系サーバ10のCPUが、そして待機系サーバ11用のプログラムの場合は待機系サーバ11のCPUが、それぞれ実行することにより実現される。   The active server 10 and the standby server 11 can use a general-purpose computer system including at least a CPU, a memory, and an external storage device such as an HDD. In this computer system, each function of each device is realized by the CPU executing a predetermined program loaded on the memory. For example, the functions of the active server 10 and the standby server 11 are the functions of the CPU of the active server 10 in the case of the program for the active server 10, and the standby server 11 in the case of the program for the standby server 11. This is realized by the CPU executing each.

図2は、クラスタリングサーバシステム1の構成を示すブロック図である。運用系サーバ10は、メモリ100と、系間転送管理部101と、アプリケーション部102と、転送リスト記憶部103とを有する。待機系サーバ11も、運用系サーバ10と同様に、メモリ110と、系間転送管理部111と、アプリケーション部112と、転送リスト記憶部113とを有する。運用系サーバ10と待機系サーバ11とは、系間ネットワーク12により接続されている。   FIG. 2 is a block diagram showing a configuration of the clustering server system 1. The active server 10 includes a memory 100, an intersystem transfer management unit 101, an application unit 102, and a transfer list storage unit 103. Similarly to the active server 10, the standby server 11 includes a memory 110, an intersystem transfer management unit 111, an application unit 112, and a transfer list storage unit 113. The active server 10 and the standby server 11 are connected by an inter-system network 12.

運用系サーバ10のメモリ100(データ記憶手段)には、複数のデータが記憶されている。   A plurality of data is stored in the memory 100 (data storage means) of the active server 10.

図3は、メモリ100に記憶されている各データを説明するための説明図である。メモリ100上に記憶されている各データ(X、Y、Z)301には、当該データ301の管理情報として、更新回数302と、最終更新時刻303と、更新頻度としての平均更新頻度304と、データ量305と、更新フラグ306とが、それぞれ付加されているものとする。   FIG. 3 is an explanatory diagram for explaining each data stored in the memory 100. Each data (X, Y, Z) 301 stored on the memory 100 includes, as management information of the data 301, an update count 302, a last update time 303, an average update frequency 304 as an update frequency, It is assumed that a data amount 305 and an update flag 306 are added.

運用系サーバ10のアプリケーション部102は、複数のユーザ端末3から送信される各種の要求に応じて、または、運用系サーバ10の内部処理により、メモリ100に記憶された所望のデータ301自体を更新するとともに、当該データ301の管理情報302、303、304、306を更新する。   The application unit 102 of the active server 10 updates the desired data 301 itself stored in the memory 100 in response to various requests transmitted from the plurality of user terminals 3 or by internal processing of the active server 10. At the same time, the management information 302, 303, 304, 306 of the data 301 is updated.

すなわち、アプリケーション部102は、例えば、メモリ100上のデータXを更新した場合、データXの更新回数302に「1」を加算し、最終更新時刻303をデータXが更新された時刻に更新する。そして、アプリケーション部102は、更新後の更新回数Nと、更新後の最終更新時刻tと、更新前(前回)の最終更新時刻tN−1と、更新前(前回)の平均更新頻度αN−1を用いて、例えば以下の式1により更新後の平均更新頻度αを算出し、算出した値αを平均更新頻度304に設定する。 That is, for example, when the data X on the memory 100 is updated, the application unit 102 adds “1” to the update count 302 of the data X and updates the last update time 303 to the time when the data X is updated. Then, the application unit 102 updates the update count N after the update, the last update time t N after the update, the last update time t N-1 before the update (previous), and the average update frequency α before the update (previous). Using N−1 , for example, the updated average update frequency α N is calculated by the following equation 1, and the calculated value α N is set as the average update frequency 304.

平均更新頻度α=N/{(t-tN−1)+(N−1)/αN−1} 式1
また、アプリケーション部102は、メモリ100上のデータXを更新した場合、更新フラグ306に更新が発生したことを示すフラグ(例えば、「1」)を設定する。なお、既にフラグが設定されている場合は、そのままの状態とする。
Average update frequency α N = N / {(t N −t N−1 ) + (N−1) / α N−1 } Equation 1
Further, when the data X on the memory 100 is updated, the application unit 102 sets a flag (for example, “1”) indicating that an update has occurred in the update flag 306. If the flag has already been set, the state is left as it is.

データ量305については、メモリ100にデータXを割り当てたタイミングで設定され、データの更新を契機としては変化しない(更新されない)ものとする。   The data amount 305 is set at the timing when the data X is allocated to the memory 100, and is not changed (not updated) when the data is updated.

メモリ上の他のデータ(データY、データZ)が更新された場合についても、アプリケーション部102は、データの更新を契機として、当該データの管理情報302、303、304、306を更新する。   Even when other data (data Y, data Z) on the memory is updated, the application unit 102 updates the management information 302, 303, 304, 306 of the data, triggered by the data update.

なお、平均更新頻度304の替わりに、加重平均更新頻度を更新頻度として用いることとしてもよい。   Instead of the average update frequency 304, a weighted average update frequency may be used as the update frequency.

図4は、メモリ100に記憶されている各データを説明するための説明図であって、更新頻度としての加重平均更新頻度404を用いている点において図3と異なり、その他については図3と同様である。すなわち、図4では、メモリ100上に記憶されている各データ(X、Y、Z)401には、当該データ401の管理情報として、更新回数402と、最終更新時刻403と、更新頻度としての加重平均更新頻度404と、データ量405と、更新フラグ406が、それぞれ付加されているものとする。   FIG. 4 is an explanatory diagram for explaining each data stored in the memory 100, and is different from FIG. 3 in that a weighted average update frequency 404 is used as an update frequency. It is the same. That is, in FIG. 4, each data (X, Y, Z) 401 stored in the memory 100 includes the update count 402, the last update time 403, and the update frequency as management information of the data 401. It is assumed that a weighted average update frequency 404, a data amount 405, and an update flag 406 are added.

アプリケーション部102は、図3で説明したように、メモリ100に記憶された所望のデータ401自体を更新するとともに、当該データ401の管理情報402、403、404、406を更新する。更新回数402、最終更新時刻403および更新フラグ406の更新については、図3と同様であるためここでは説明を省略する。   As described with reference to FIG. 3, the application unit 102 updates desired data 401 itself stored in the memory 100 and also updates management information 402, 403, 404, and 406 of the data 401. Since the update count 402, the last update time 403, and the update flag 406 are updated in the same manner as in FIG. 3, the description thereof is omitted here.

加重平均更新頻度404は、直近の更新間隔時間に重みωを付加した更新頻度の加重平均である。すなわち、加重平均更新頻度404は、前回までの加重平均更新頻度と、所定の重み付けした今回の更新間隔時間とに基づいて算出される。アプリケーション部102は、重みωと、更新後の最終更新時刻tと、更新前(前回)の最終更新時刻tN−1と、更新前(前回)の加重平均更新頻度αN−1を用いて、例えば以下の式2により更新後の加重平均更新頻度αを算出し、算出した値αを加重平均更新頻度404に設定する。重みωには、あらかじめ定められた所定の値を用いるものとする。 The weighted average update frequency 404 is a weighted average of update frequencies obtained by adding a weight ω to the latest update interval time. That is, the weighted average update frequency 404 is calculated based on the weighted average update frequency up to the previous time and the current update interval time that has been weighted in a predetermined manner. The application unit 102 uses the weight ω, the last update time t N after update, the last update time t N−1 before update (previous), and the weighted average update frequency α N−1 before update (previous). Thus, for example, the updated weighted average update frequency α N is calculated by the following expression 2, and the calculated value α N is set as the weighted average update frequency 404. As the weight ω, a predetermined value determined in advance is used.

加重平均更新頻度α=1/{(t-tN−1)ω+(1−ω)/αN−1} 式2
なお、待機系サーバ11のメモリ110についても、運用系サーバ10のメモリ100と同様である。
Weighted average update frequency α N = 1 / {(t N −t N−1 ) ω + (1−ω) / α N−1 } Equation 2
The memory 110 of the standby server 11 is the same as the memory 100 of the active server 10.

図5は、運用系サーバ10の系間転送管理部101により管理される、転送リスト記憶部103の一例を示すものである。転送リスト記憶部103は、メモリ100上に保持されている場合であっても、あるいは、HDD等の外部記憶装置上に保持されている場合であってもよい。転送リスト記憶部103には、メモリ100上に記憶されたデータの中で更新が発生し、待機系サーバ11への転送が必要な更新データの転送リスト501と、閾値Mth503と、データ総量M504とが記憶される。 FIG. 5 shows an example of the transfer list storage unit 103 managed by the intersystem transfer management unit 101 of the active server 10. The transfer list storage unit 103 may be stored on the memory 100 or may be stored on an external storage device such as an HDD. In the transfer list storage unit 103, an update occurs in the data stored in the memory 100 and a transfer list 501 of update data that needs to be transferred to the standby server 11, a threshold M th 503, and a total data amount M504 is stored.

図示する転送リスト501は、更新データ毎に、当該更新データにポインタするためのメモリID(メモリ上のアドレス等)と、当該メモリIDに記憶されているデータの更新頻度とを有する。更新頻度には、図3で説明した平均更新頻度304、または図4で説明した加重平均更新頻度404を用いるものとする。   The transfer list 501 shown in the figure has, for each update data, a memory ID (such as an address on the memory) for pointing to the update data, and an update frequency of data stored in the memory ID. As the update frequency, the average update frequency 304 described in FIG. 3 or the weighted average update frequency 404 described in FIG. 4 is used.

また、閾値Mth503には、系切替え時転送方式で一括して転送可能な最大データ量(閾値)が設定されている。この閾値Mth503については、系間ネットワーク12の帯域の制限、系切替えによるサービス中断時間の制約などにより、あらかじめ所定の値を設定しておくものとする。また、データ総量M504には、転送リスト501に登録された更新データの総量が設定される。 The threshold M th 503 is set with a maximum data amount (threshold) that can be transferred in a batch by the transfer method during system switching. The threshold value M th 503 is set to a predetermined value in advance due to the limitation of the bandwidth of the inter-system network 12 and the service interruption time due to system switching. The total amount of update data registered in the transfer list 501 is set in the total data amount M504.

なお、運用系サーバ10の障害などにより待機系サーバ11に処理が切替わった場合、待機系サーバ11の転送リスト記憶部113には、図5と同様の情報が生成され、記憶される。   When the processing is switched to the standby server 11 due to a failure of the active server 10 or the like, the same information as in FIG. 5 is generated and stored in the transfer list storage unit 113 of the standby server 11.

次に、運用系サーバ10のメモリ100に記憶されたデータに更新が発生した際の処理について説明する。   Next, a process when the data stored in the memory 100 of the active server 10 is updated will be described.

図6は、メモリ100に記憶されたデータに更新が発生したタイミングで、転送リスト記憶部103の情報を更新し、閾値を超える分の更新データを運用時転送方式で転送する場合のフローチャートである。   FIG. 6 is a flowchart in the case where the information in the transfer list storage unit 103 is updated at a timing when the data stored in the memory 100 is updated, and the update data exceeding the threshold is transferred by the operation transfer method. .

まず、運用系サーバ10のアプリケーション部102は、複数のユーザ端末3から送信される各種の要求に応じて、または、運用系サーバ10の内部処理により、メモリ100に記憶された所定のデータ自体を更新するとともに、当該データの管理情報(更新回数、最終更新時刻、更新頻度、更新フラグ)を更新する(S1)。なお、更新頻度は、図3の場合は平均更新頻度であり、図4の場合は加重平均更新頻度である。   First, the application unit 102 of the active server 10 receives predetermined data stored in the memory 100 in response to various requests transmitted from a plurality of user terminals 3 or by internal processing of the active server 10. In addition to updating, the management information (update count, last update time, update frequency, update flag) of the data is updated (S1). The update frequency is the average update frequency in the case of FIG. 3 and the weighted average update frequency in the case of FIG.

そして、運用系サーバ10の系間転送管理部101は、S1のデータ更新を契機として、ステップ1で更新された更新データを、転送リスト記憶部103の転送リスト501に登録(追加)する(S2)。具体的には、系間転送管理部101は、メモリ100上の更新データをポインタするメモリID、および、S1で更新された当該更新データの更新頻度を、メモリ100から取得し、転送リスト501に登録する。   Then, the intersystem transfer management unit 101 of the active server 10 registers (adds) the update data updated in step 1 in the transfer list 501 of the transfer list storage unit 103 in response to the data update of S1 (S2). ). Specifically, the inter-system transfer management unit 101 acquires the memory ID that points to the update data on the memory 100 and the update frequency of the update data updated in S1 from the memory 100, and stores it in the transfer list 501. sign up.

そして、系間転送管理部101は、転送リスト501に登録されている更新データのデータ総量M504を算出し、転送リスト記憶部103に設定する(S3)。具体的には、系間転送管理部101は、転送リスト501に登録されている各更新データのデータ量を、各々のメモリIDに基づいてメモリ100から取得し、取得した各データ量の合計を算出する。   Then, the inter-system transfer management unit 101 calculates the total amount M504 of update data registered in the transfer list 501 and sets it in the transfer list storage unit 103 (S3). Specifically, the inter-system transfer management unit 101 acquires the amount of each update data registered in the transfer list 501 from the memory 100 based on each memory ID, and calculates the total amount of each acquired data. calculate.

そして、系間転送管理部101は、算出したデータ総量M504と、閾値Mth503とを比較し、データ総量Mが閾値Mthを超える(M>Mth)か否かを判別する(S4)。 Then, the inter-system transfer management unit 101 compares the calculated total data amount M504 and the threshold value M th 503 to determine whether or not the total data amount M exceeds the threshold value M th (M> M th ) (S4). .

データ総量Mが閾値Mthを超えない、すなわち下回る(M≦Mth)場合(S4:NO)、系間転送管理部101は、S1のデータ更新を契機とする処理を終了する。この場合、転送リスト501に登録されている全ての更新データは、この時点において、系切替え時に一括して転送される系切替え時転送方式ととして管理される。 When the total data amount M does not exceed the threshold value M th , that is, falls below (M ≦ M th ) (S4: NO), the inter-system transfer management unit 101 ends the process triggered by the data update in S1. In this case, all the update data registered in the transfer list 501 is managed at this time as a transfer method at the time of system switching that is transferred collectively at the time of system switch.

データ総量Mが閾値Mthを超える場合(S4:YES)、系間転送管理部101は、転送リスト501に登録されている更新データの中で最も更新頻度の低い更新データを特定し、当該更新データを運用中転送方式で待機系サーバ11のメモリ110に系間ネットワーク12を介して転送する(S5)。これにより、系間転送管理部101は、転送リスト501から転送した更新データの情報(レコード)を削除する。また、系間転送管理部101は、メモリ100にアクセスし、転送した更新データの更新フラグ306、407(図3、図4参照)を削除する。 If the data amount M exceeds a threshold value M th (S4: YES), the inter-system transfer management section 101 specifies the most updated infrequently updated data in the update data registered in the transfer list 501, the update Data is transferred to the memory 110 of the standby server 11 via the intersystem network 12 by the operating transfer method (S5). Thereby, the inter-system transfer management unit 101 deletes the information (record) of the update data transferred from the transfer list 501. Further, the intersystem transfer management unit 101 accesses the memory 100 and deletes the update flags 306 and 407 (see FIGS. 3 and 4) of the transferred update data.

そして、系間転送管理部101は、S3に戻り、転送した更新データの情報を削除した後の転送リスト501に登録された各更新データのデータ総量を再び算出し、データ総量Mが閾値Mthを超えるか否かを判別し(S4)、超える場合はS5の処理を行う。このように、系間転送管理部101は、転送リスト501に登録された各更新データのデータ総量Mが閾値Mthを下回るまでS3からS5の処理を繰り返し、閾値Mthを超えた分の更新データについては、更新頻度の低い更新データから順に運用中転送方式で待機系サーバ11に転送する。 Then, the inter-system transfer management unit 101 returns to S3, recalculates the total data amount of each update data registered in the transfer list 501 after deleting the transferred update data information, and the total data amount M is the threshold value M th. Is exceeded (S4), and if it exceeds, the process of S5 is performed. Thus, the inter-system transfer management section 101, data amount M of each update data registered in the transfer list 501 repeats the process from S3 to below the threshold M th S5, minute update exceeding the threshold value M th The data is transferred to the standby server 11 by the operating transfer method in order from update data with a low update frequency.

図6に示す上記処理では、メモリ100上のデータに更新が発生したタイミングで、S2からS5の処理を行うこととしたが、本発明はこれに限定されず、様々なタイミングでS2からS5の処理を行うことができる。   In the processing shown in FIG. 6, the processing from S2 to S5 is performed at the timing when the data on the memory 100 is updated. However, the present invention is not limited to this, and the processing from S2 to S5 is performed at various timings. Processing can be performed.

例えば、系間転送管理部101は、あらかじめ定められた所定の周期(時間間隔)で、S2からS5の処理を行って、転送リスト記憶部103の情報を更新し、閾値を超える分の更新データを運用時転送方式で転送することとしてもよい。この場合、アプリケーション部102は、ユーザ端末3からの要求または運用系サーバ10の内部処理により、随時、メモリ100上のデータおよび管理情報を更新し、一方、系間転送管理部101は、所定の周期でS2からS5の処理を行う。   For example, the inter-system transfer management unit 101 performs the processing from S2 to S5 at a predetermined cycle (time interval) determined in advance, updates the information in the transfer list storage unit 103, and updates data that exceeds the threshold May be transferred by the transfer method during operation. In this case, the application unit 102 updates data and management information on the memory 100 as needed by a request from the user terminal 3 or internal processing of the active server 10, while the intersystem transfer management unit 101 The processes from S2 to S5 are performed in a cycle.

具体的には、系間転送管理部101は、S2において、前回の周期でS2からS5の処理を行った後に更新されたデータを検索する。例えば、系間転送管理部101は、メモリ上に保持されている各データの管理情報(図3、図4)を参照し、更新フラグ(例えば「1」)が設定されているデータを検索する。そして、検索した各更新データを転送リスト記憶部103の転送リスト501に登録(追加)する(S2)。この際に、系間転送管理部101は、検索した更新データが既に転送リスト501に登録されている場合、当該更新データの更新頻度を、メモリ100から取得した最新の値に更新する。S3からS5の処理については、図6で説明したS3からS5と同様であるため、ここでは説明を省略する。所定の周期でS2からS5の処理を行うことにより、メモリ100の各データが高頻度で更新される場合であっても、処理負荷の増大を回避することができる。   Specifically, the intersystem transfer management unit 101 searches for updated data in S2 after performing the processing from S2 to S5 in the previous cycle. For example, the intersystem transfer management unit 101 refers to the management information (FIGS. 3 and 4) of each data held in the memory and searches for data for which an update flag (for example, “1”) is set. . Then, each searched update data is registered (added) in the transfer list 501 of the transfer list storage unit 103 (S2). At this time, if the searched update data is already registered in the transfer list 501, the inter-system transfer management unit 101 updates the update frequency of the update data to the latest value acquired from the memory 100. The processing from S3 to S5 is the same as that from S3 to S5 described in FIG. By performing the processing from S2 to S5 at a predetermined cycle, it is possible to avoid an increase in processing load even when each data in the memory 100 is updated frequently.

以上説明した本実施形態では、各データの更新頻度を動的に算出し、算出した更新頻度に基づいて運用中転送方式で転送するデータを選択するため、運用中転送方式で転送されるデータ量を抑制し、クラスタリングサーバシステムの処理負荷をより低減させることができる。   In the present embodiment described above, the amount of data transferred by the in-operation transfer method is selected because the update frequency of each data is dynamically calculated and data to be transferred by the in-operation transfer method is selected based on the calculated update frequency. And the processing load on the clustering server system can be further reduced.

すなわち、本実施形態では、運用系サーバ10で更新されたデータを待機系サーバ11に転送する際に、更新頻度の低い更新データを運用中転送方式で更新の度にその都度転送することで、系切替え時(フェイルオーバ時)に一括転送する系切替え時転送方式で転送するデータ量が常に閾値を下回るように動的に制御することができる。   In other words, in the present embodiment, when data updated in the active server 10 is transferred to the standby server 11, update data with a low update frequency is transferred each time it is updated by the operating transfer method. It is possible to dynamically control so that the amount of data transferred by the system switching transfer method that performs batch transfer at the time of system switching (failover) is always below the threshold value.

また、本実施形態では、各更新データの総量が系切替え時に転送可能なデータ量(閾値)に満たない場合は、全ての更新データを転送方式を系切替え時転送方式とし、各更新データの総量が系切替え時に転送可能なデータ量(閾値)を超過する場合は、更新頻度の低い更新データを運転中転送方式として転送し、更新頻度の高い更新データについては系切替え時転送方式として転送するように、更新頻度に応じて転送方式の最適化を実現する。これにより、本実施形態では、トラフィックの予想ができない環境であっても、クラスタリングサーバシステムの処理負荷を抑制し、ユーザ端末に対するサービス提供の低下を極力防止することができる。   Also, in this embodiment, when the total amount of each update data is less than the data amount (threshold value) that can be transferred at the time of system switching, the transfer method is the transfer method at the time of system switching for all update data, and the total amount of each update data If the amount of data that can be transferred during system switchover (threshold) is exceeded, update data with low update frequency is transferred as the operating transfer method, and update data with high update frequency is transferred as the transfer method at system switchover. In addition, the transfer method is optimized according to the update frequency. Thereby, in this embodiment, even in an environment where traffic cannot be predicted, the processing load of the clustering server system can be suppressed, and a decrease in service provision to the user terminal can be prevented as much as possible.

なお、本発明は上記実施形態に限定されるものではなく、その要旨の範囲内で数々の変形が可能である。   In addition, this invention is not limited to the said embodiment, Many deformation | transformation are possible within the range of the summary.

1 クラスタリングサーバシステム
2 ネットワーク
3 ユーザ端末
10 運用系サーバ
11 待機系サーバ
12 系間ネットワーク
100、110 メモリ
101、111 系間転送管理部
102、112 アプリケーション部
103、113 転送リスト記憶部
DESCRIPTION OF SYMBOLS 1 Clustering server system 2 Network 3 User terminal 10 Active server 11 Standby server 12 Intersystem network 100, 110 Memory 101, 111 Intersystem transfer management part 102, 112 Application part 103, 113 Transfer list memory | storage part

Claims (8)

運用系サーバと待機系サーバとを有するクラスタリングサーバシステムであって、前記運用系サーバと前記待機系サーバとの間でのデータ転送方式として、系切替え時に更新データを一括で切替え先サーバに転送する系切替え時転送方式と、各データの更新毎に更新データを切替え先サーバに転送する運用中転送方式とを併用し、
前記運用系サーバは、
複数のデータを記憶するデータ記憶手段と、
前記データ記憶手段に記憶された複数のデータの中で、更新された更新データの更新頻度を記憶する転送リスト記憶手段と、
前記運用系サーバと待機系サーバ間で更新データを転送する系間転送管理手段と、を備え、
前記系間転送管理手段は、前記転送リスト記憶手段に記憶された更新データのデータ総量を算出し、当該データ総量が前記系切替え時転送方式で転送可能な所定の閾値を超えるか否かを判別し、前記データ総量が前記閾値を超える場合は、前記データ総量が前記閾値以下になるまで、前記転送リスト記憶手段に記憶された更新頻度が最も低い更新データを前記運用中転送方式で前記待機系サーバに転送すること
を特徴とするクラスタリングサーバシステム。
A clustering server system having an active server and a standby server, and as a data transfer method between the active server and the standby server, the update data is transferred to the switch destination server at the time of system switchover. Use both the transfer method during system switchover and the in-operation transfer method that transfers update data to the switch destination server for each data update.
The active server is
Data storage means for storing a plurality of data;
Among a plurality of data stored in the data storage means, transfer list storage means for storing the update frequency of updated update data;
An intersystem transfer management means for transferring update data between the active server and the standby server,
The inter-system transfer management unit calculates the total data amount of the update data stored in the transfer list storage unit, and determines whether or not the total data amount exceeds a predetermined threshold that can be transferred by the system switching transfer method If the total amount of data exceeds the threshold value, the standby data is transferred to the standby system using the in-operation transfer method with the update data having the lowest update frequency stored in the transfer list storage unit until the total data amount becomes equal to or less than the threshold value. A clustering server system characterized by transferring to a server.
請求項1記載のクラスタリングサーバシステムであって、
前記系間管理転送手段は、所定の周期毎に、または前記データ記憶手段のデータが更新された場合に、前記更新データのデータ総量を算出し、当該データ総量が前記閾値を超えるか否かを判別し、前記データ総量が前記閾値を超える場合は、前記データ総量が前記閾値以下になるまで、前記転送リスト記憶手段に記憶された更新頻度が最も低い更新データを前記運用中転送方式で前記待機系サーバに転送すること
を特徴とするクラスタリングサーバシステム。
The clustering server system according to claim 1,
The inter-system management transfer means calculates the total data amount of the update data every predetermined cycle or when data in the data storage means is updated, and determines whether the total data amount exceeds the threshold value. If the total amount of data exceeds the threshold value, the update data stored in the transfer list storage unit with the lowest update frequency is stored in the standby transfer method in the active transfer method until the total data amount becomes equal to or less than the threshold value. A clustering server system characterized by being transferred to a system server.
請求項1または請求項2記載のクラスタリングサーバシステムであって、
前記更新頻度は、前記更新データの更新回数、今回の更新間隔時間と、前回の平均更新頻度とに基づいて算出される平均更新頻度であること
を特徴とするクラスタリングサーバシステム。
The clustering server system according to claim 1 or 2,
The clustering server system, wherein the update frequency is an average update frequency calculated based on the number of updates of the update data, a current update interval time, and a previous average update frequency.
請求項1または請求項2記載のクラスタリングサーバシステムであって、
前記更新頻度は、前回までの加重平均更新頻度と、所定の重み付けした今回の更新間隔時間とに基づいて算出される加重平均更新頻度であること
を特徴とするクラスタリングサーバシステム。
The clustering server system according to claim 1 or 2,
The clustering server system characterized in that the update frequency is a weighted average update frequency calculated based on a weighted average update frequency up to the previous time and a predetermined weighted current update interval time.
運用系サーバと待機系サーバとを有するクラスタリングサーバシステム用のデータ転送方法であって、
クラスタリングサーバシステムは、前記運用系サーバと前記待機系サーバとの間でのデータ転送方式として、系切替え時に更新データを一括で切替え先サーバに転送する系切替え時転送方式と、各データの更新毎に更新データを切替え先サーバに転送する運用中転送方式とを併用し、
前記運用系サーバは、
複数のデータを記憶するデータ記憶部と、
前記データ記憶部に記憶された複数のデータの中で、更新された更新データの更新頻度を記憶する転送リスト記憶部と
系間転送管理部と、を備え、
前記系間転送管理部は、
前記転送リスト記憶部を更新する更新ステップと、
前記転送リスト記憶部に記憶された更新データのデータ総量を算出する算出ステップと、
前記算出されたデータ総量が前記系切替え時転送方式で転送可能な所定の閾値を超えるか否かを判別する判別ステップと、
前記データ総量が前記閾値を超える場合に、前記データ総量が前記閾値以下になるまで、前記転送リスト記憶部に記憶された更新頻度が最も低い更新データを前記運用中転送方式で前記待機系サーバに転送する転送ステップと、を行うこと
を特徴とするデータ転送方法。
A data transfer method for a clustering server system having an active server and a standby server,
The clustering server system is a data transfer method between the active server and the standby server, and a transfer method at the time of system switchover that transfers update data to the switch destination server at the time of system switchover. In conjunction with the in-operation transfer method of transferring update data to the switchover destination server,
The active server is
A data storage unit for storing a plurality of data;
Among a plurality of data stored in the data storage unit, a transfer list storage unit that stores the update frequency of updated update data ;
An intersystem transfer management unit ,
The intersystem transfer management unit
An update step of updating the transfer list storage unit;
A calculation step of calculating the total amount of update data stored in the transfer list storage unit;
A determination step of determining whether or not the calculated total amount of data exceeds a predetermined threshold that can be transferred by the transfer method at the time of system switching;
When the total data amount exceeds the threshold value, the update data with the lowest update frequency stored in the transfer list storage unit is transferred to the standby server by the in-operation transfer method until the total data amount becomes the threshold value or less. A data transfer method comprising: performing a transfer step.
請求項5記載のデータ転送方法であって、
前記系間転送管理部は、
前記更新ステップ、算出ステップ、判別ステップおよび転送ステップを、所定の周期毎に、または前記データ記憶部のデータが更新された場合に行うこと
を特徴とするデータ転送方法。
The data transfer method according to claim 5, wherein
The intersystem transfer management unit
The data transfer method, wherein the update step, the calculation step, the determination step, and the transfer step are performed at predetermined intervals or when data in the data storage unit is updated.
請求項5または請求項6記載のデータ転送方法であって、
前記系間転送管理部は、
前記更新頻度として、前記更新データの更新回数と、今回の更新間隔時間と、前回の平均更新頻度とに基づいて平均更新頻度を算出する算出ステップを、さらに行うこと
を特徴とするデータ転送方法。
The data transfer method according to claim 5 or 6, wherein
The intersystem transfer management unit
A data transfer method further comprising a calculation step of calculating an average update frequency as the update frequency based on the number of updates of the update data, the current update interval time, and the previous average update frequency.
請求項5または請求項6記載のデータ転送方法であって、
前記系間転送管理部は、
前記更新頻度として、前回までの加重平均更新頻度と、所定の重み付けした今回の更新間隔時間とに基づいて加重平均更新頻度を算出する算出ステップを、さらに行うこと
を特徴とするデータ転送方法。
The data transfer method according to claim 5 or 6, wherein
The intersystem transfer management unit
A data transfer method further comprising a calculation step of calculating a weighted average update frequency based on a weighted average update frequency up to the previous time and a predetermined weighted update interval time as the update frequency.
JP2009041077A 2009-02-24 2009-02-24 Clustering server system and data transfer method Active JP4812848B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009041077A JP4812848B2 (en) 2009-02-24 2009-02-24 Clustering server system and data transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009041077A JP4812848B2 (en) 2009-02-24 2009-02-24 Clustering server system and data transfer method

Publications (2)

Publication Number Publication Date
JP2010198204A JP2010198204A (en) 2010-09-09
JP4812848B2 true JP4812848B2 (en) 2011-11-09

Family

ID=42822884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009041077A Active JP4812848B2 (en) 2009-02-24 2009-02-24 Clustering server system and data transfer method

Country Status (1)

Country Link
JP (1) JP4812848B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5519554B2 (en) * 2011-02-25 2014-06-11 日本電信電話株式会社 Call control system and information redundancy method used for call control
JP5699691B2 (en) * 2011-03-03 2015-04-15 日本電気株式会社 Data transfer device, FT server, data transfer method, and program
JP5342612B2 (en) * 2011-08-08 2013-11-13 日本電信電話株式会社 Call control system and information redundancy method used for call control
US9542468B2 (en) 2014-03-24 2017-01-10 Hitachi, Ltd. Database management system and method for controlling synchronization between databases

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4462969B2 (en) * 2004-03-12 2010-05-12 株式会社日立製作所 Failover cluster system and failover method
JP2007286952A (en) * 2006-04-18 2007-11-01 Nec Corp Server system and server load reduction method

Also Published As

Publication number Publication date
JP2010198204A (en) 2010-09-09

Similar Documents

Publication Publication Date Title
JP5625998B2 (en) Information processing system
US8972773B2 (en) Cache data processing using cache cluster with configurable modes
JP4812848B2 (en) Clustering server system and data transfer method
JP2014075027A (en) Virtual machine arrangement device and virtual machine arrangement method
CN112039710B (en) Service fault processing method, terminal equipment and readable storage medium
CN108768749B (en) Node isolation self-recovery method and device based on block chain
JP2009193430A (en) Communication controller, information processing device, and program
CN110263093B (en) Data synchronization method, device, node, cluster and storage medium
CN105069152A (en) Data processing method and apparatus
JP5895944B2 (en) Management device, management program, and management method
JP2007304845A (en) Virtual computer system and software update method
US10216593B2 (en) Distributed processing system for use in application migration
CN110943925B (en) Method and related device for synchronizing routing information
CN109154882B (en) Structure packaged elastic storage
JP6225606B2 (en) Database monitoring apparatus, database monitoring method, and computer program
US20170161508A1 (en) Management device, method executed by the management device, and non-transitory computer-readable storage medium
JP2016201795A (en) Sink node status monitoring method, device and system
US20240176762A1 (en) Geographically dispersed hybrid cloud cluster
JP5617586B2 (en) Information processing program, relay device, and relay management device
WO2012056835A1 (en) Data storage control system, data storage control method, and data storage control program
JP4089506B2 (en) File sharing system, server and program
JP5473016B2 (en) Data sharing system, terminal device, data sharing method, and program
JP6473425B2 (en) Node and data placement method
US10783147B2 (en) Query result flow control in a network switch
US10860568B2 (en) External data source linking to queries in memory

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110531

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110720

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: 20110816

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110823

R150 Certificate of patent or registration of utility model

Ref document number: 4812848

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140902

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350