JP2014154077A - Double update prevention system and double update prevention method - Google Patents

Double update prevention system and double update prevention method Download PDF

Info

Publication number
JP2014154077A
JP2014154077A JP2013025405A JP2013025405A JP2014154077A JP 2014154077 A JP2014154077 A JP 2014154077A JP 2013025405 A JP2013025405 A JP 2013025405A JP 2013025405 A JP2013025405 A JP 2013025405A JP 2014154077 A JP2014154077 A JP 2014154077A
Authority
JP
Japan
Prior art keywords
shared data
access
flag
server
update
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.)
Granted
Application number
JP2013025405A
Other languages
Japanese (ja)
Other versions
JP5830042B2 (en
Inventor
Kotaro Mihara
孝太郎 三原
Eiji Ishikawa
英治 石川
Makoto Hamada
信 浜田
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 JP2013025405A priority Critical patent/JP5830042B2/en
Publication of JP2014154077A publication Critical patent/JP2014154077A/en
Application granted granted Critical
Publication of JP5830042B2 publication Critical patent/JP5830042B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent the double update of shared data.SOLUTION: A shared disk device 30 stores a first exclusive flag (a) and a second exclusive flag b indicating an access request state or an access non-request state to shared data, which can be respectively updated only by a first server 10 and a second server 20 in the different partitions of a shared data storage part 301. The first server 10 and the second server 20 acquire exclusive flags (the second exclusive flag b and the first exclusive flag (a)) for the other server from the shared data storage part 301, and perform access to the shared data when the exclusive flags for the other device indicate the access non-request state.

Description

本発明は、共有データの二重更新を防止する技術に関する。   The present invention relates to a technique for preventing double update of shared data.

複数のサーバにより共有ディスク装置内の共有データを更新するサーバクラスタシステムが存在する。従来のサーバクラスタシステムは、サーバ間での系間通信によりACT系/SBY系を決定し、ACT系のみが共有データへのアクセス権を確保することにより、共有データへの相互排他的なアクセスを実現し、その二重更新を回避していた。   There is a server cluster system in which shared data in a shared disk device is updated by a plurality of servers. The conventional server cluster system determines the ACT system / SBY system by inter-system communication between servers, and only the ACT system secures the access right to the shared data, thereby enabling mutual exclusive access to the shared data. Realized and avoided that double update.

“26.5.2 共有ディスク装置の準備”、株式会社日立製作所、<URL: http://www.hitachi.co.jp/Prod/comp/soft1/manual/pc/d645430/W4540718.HTM>“26.5.2 Preparing the shared disk device”, Hitachi, Ltd. <URL: http://www.hitachi.co.jp/Prod/comp/soft1/manual/pc/d645430/W4540718.HTM>

しかしながら、アクセス権を持つACT系を系間通信に基づいて決定しているため、何らかの原因により系間通信に異常が生じると、両サーバが共にACT系となる可能性があり、共有データへの相互排他的なアクセスによる共有データの正常性を確保することができなかった(図5参照)。   However, since the ACT system with the access right is determined based on the intersystem communication, if an abnormality occurs in the intersystem communication for some reason, both servers may become the ACT system. The normality of the shared data due to mutually exclusive access could not be ensured (see FIG. 5).

また、共有データの二重更新が発生すると共有ディスク装置内のファイルシステムが破壊され、その復旧に長時間を必要としたりデータが損失したりすること等が懸念されていた。   In addition, when double update of shared data occurs, there is a concern that the file system in the shared disk device is destroyed, and that it takes a long time to recover or data is lost.

本発明は、上記事情を鑑みてなされたものであり、共有データの二重更新を防止することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to prevent double update of shared data.

請求項1記載の二重更新防止システムは、共有データを更新する2つの共有データ更新装置と、前記共有データを記憶しておく共有データ記憶装置とを備えた二重更新防止システムにおいて、前記共有データ記憶装置は、前記共有データへのアクセス要求状態又はアクセス非要求状態を示し、前記2つの共有データ更新装置のそれぞれのみにより更新可能な2つの専用フラグを異なるパーティションで記憶しておく共有データ記憶手段、を有し、前記2つの共有データ更新装置は、それぞれ、前記共有データ記憶手段から他装置用の専用フラグを取得し、当該他装置用の専用フラグがアクセス非要求状態の場合に前記共有データにアクセスするアクセス制御手段、を有することを要旨とする。   The double update prevention system according to claim 1, wherein the double update prevention system includes two shared data update devices that update shared data and a shared data storage device that stores the shared data. A data storage device indicates an access request state or an access non-request state for the shared data, and stores two dedicated flags that can be updated only by each of the two shared data update devices in different partitions. Each of the two shared data update devices acquires a dedicated flag for the other device from the shared data storage unit, and the shared flag is updated when the dedicated flag for the other device is in an access non-request state. The main point is to have an access control means for accessing data.

請求項2記載の二重更新防止システムは、請求項1記載の二重更新防止システムにおいて、前記共有データ記憶手段は、前記共有データへのアクセスが優先されている共有データ更新装置を識別する優先権フラグを更に記憶しておき、前記アクセス制御手段は、前記他装置用の専用フラグがアクセス要求状態の場合に前記優先権フラグを参照し、他装置が優先されている場合に自装置用の専用フラグをアクセス非要求状態に戻すことを要旨とする。   The double update prevention system according to claim 2 is the double update prevention system according to claim 1, wherein the shared data storage means prioritizes identification of a shared data update apparatus to which access to the shared data is prioritized. A right flag is further stored, and the access control means refers to the priority flag when the dedicated flag for the other device is in an access request state, and for the own device when the other device has priority. The gist is to return the dedicated flag to the access non-request state.

請求項3記載の二重更新防止システムは、請求項2記載の二重更新防止システムにおいて、前記アクセス制御手段は、前記共有データにアクセスした後に前記優先権フラグを他装置が優先されるように変更することを要旨とする。   The double update prevention system according to claim 3 is the double update prevention system according to claim 2, wherein the access control means sets the priority flag to be given priority to other devices after accessing the shared data. The gist is to change.

請求項4記載の二重更新防止方法は、共有データを更新する2つの共有データ更新装置と、前記共有データを記憶しておく共有データ記憶装置とで行う二重更新防止方法において、前記共有データ記憶装置は、前記共有データへのアクセス要求状態又はアクセス非要求状態を示し、前記2つの共有データ更新装置のそれぞれのみにより更新可能な2つの専用フラグを異なるパーティションで共有データ記憶手段に記憶しておく共有データ記憶ステップ、を有し、前記2つの共有データ更新装置は、それぞれ、前記共有データ記憶手段から他装置用の専用フラグを取得し、当該他装置用の専用フラグがアクセス非要求状態の場合に前記共有データにアクセスするアクセス制御ステップ、を有することを要旨とする。   5. The double update prevention method according to claim 4, wherein the shared data is updated by two shared data update devices that update shared data and a shared data storage device that stores the shared data. The storage device indicates an access request state or an access non-request state for the shared data, and stores two dedicated flags that can be updated only by each of the two shared data update devices in different partitions in the shared data storage means. Each of the two shared data update devices acquires a dedicated flag for the other device from the shared data storage means, and the dedicated flag for the other device is in an access non-request state. In some cases, the method includes an access control step of accessing the shared data.

請求項5記載の二重更新防止方法は、請求項4記載の二重更新防止方法において、前記共有データ記憶ステップは、前記共有データへのアクセスが優先されている共有データ更新装置を識別する優先権フラグを更に記憶しておき、前記アクセス制御ステップは、前記他装置用の専用フラグがアクセス要求状態の場合に前記優先権フラグを参照し、他装置が優先されている場合に自装置用の専用フラグをアクセス非要求状態に戻すことを要旨とする。   The double update prevention method according to claim 5 is the double update prevention method according to claim 4, wherein the shared data storage step is a priority for identifying a shared data update device to which access to the shared data is prioritized. A right flag is further stored, and the access control step refers to the priority flag when the dedicated flag for the other device is in an access request state, and for the own device when the other device has priority. The gist is to return the dedicated flag to the access non-request state.

請求項6記載の二重更新防止方法は、請求項5記載の二重更新防止方法において、前記アクセス制御ステップは、前記共有データにアクセスした後に前記優先権フラグを他装置が優先されるように変更することを要旨とする。   The double update prevention method according to claim 6 is the double update prevention method according to claim 5, wherein the access control step sets the priority flag to be given priority to another device after accessing the shared data. The gist is to change.

以上より、本発明によれば、共有データ記憶装置が、共有データへのアクセス要求状態又はアクセス非要求状態を示し、2つの共有データ更新装置のそれぞれのみにより更新可能な2つの専用フラグを異なるパーティションで共有データ記憶手段に記憶しておき、2つの共有データ更新装置は、それぞれ、共有データ記憶手段から他装置用の専用フラグを取得し、当該他装置用の専用フラグがアクセス非要求状態の場合に共有データにアクセスするため、共有データへの相互排他的なアクセスが可能となることから、共有データの二重更新を防止することができる。   As described above, according to the present invention, the shared data storage device indicates the shared data access request state or the access non-request state, and the two dedicated flags that can be updated only by each of the two shared data update devices are different partitions. When the two shared data update devices each acquire a dedicated flag for the other device from the shared data storage device, and the dedicated flag for the other device is in an access non-request state. Since the shared data is accessed in a mutually exclusive manner, the shared data can be mutually exclusive, so that it is possible to prevent double updating of the shared data.

本発明によれば、共有データの二重更新を防止することができる。   According to the present invention, double updating of shared data can be prevented.

二重更新防止システムの全体構成を示す図である。It is a figure which shows the whole structure of a double update prevention system. 第1サーバからアクセスした場合における二重更新防止システムの処理フローを示す図である。It is a figure which shows the processing flow of the double update prevention system at the time of accessing from the 1st server. 図2の動作フローの場合における第1サーバの動作を説明する図である。It is a figure explaining operation | movement of the 1st server in the case of the operation | movement flow of FIG. 第1サーバと第2サーバにより同時アクセスが発生した場合における二重更新防止システムの処理フローを示す図である。It is a figure which shows the processing flow of the double update prevention system when simultaneous access generate | occur | produces by the 1st server and the 2nd server. 従来のサーバクラスタシステムの概要を説明するための図である。It is a figure for demonstrating the outline | summary of the conventional server cluster system.

本発明は、サーバ同士の系間通信に頼るのに代えて、共有データへのアクセス権情報を共有ディスク装置側に配置することにより、共有データへの相互排他的なアクセスを実現し、共有データの二重更新を防止するようにしている。   The present invention realizes mutual exclusive access to shared data by arranging access right information to shared data on the shared disk device side, instead of relying on inter-system communication between servers. To prevent double updates.

以下、本発明を実施する一実施の形態について図面を用いて説明する。但し、本発明は多くの異なる様態で実施することが可能であり、本実施の形態の記載内容に限定して解釈すべきではない。   Hereinafter, an embodiment for carrying out the present invention will be described with reference to the drawings. However, the present invention can be implemented in many different modes and should not be construed as being limited to the description of the present embodiment.

図1は、本実施の形態に係る二重更新防止システム1の全体構成を示す図である。この二重更新防止システム1は、共有データをそれぞれ更新する第1サーバ10及び第2サーバ20と、その共有データを記憶しておく共有ディスク装置30とを備えている。以下、各装置の機能について説明する。   FIG. 1 is a diagram showing an overall configuration of a double update prevention system 1 according to the present embodiment. The double update prevention system 1 includes a first server 10 and a second server 20 that update shared data, respectively, and a shared disk device 30 that stores the shared data. Hereinafter, functions of each device will be described.

共有ディスク装置30は、記憶している共有データへの相互排他的なアクセスを実現するため、共有変数であるフラグa,b,tを記憶しておく共有データ記憶部301を備えている。   The shared disk device 30 includes a shared data storage unit 301 that stores flags a, b, and t that are shared variables in order to achieve mutually exclusive access to stored shared data.

フラグa,bは、共有データへのアクセス権情報を保持するためのフラグであり、共有データへのアクセス要求状態又はアクセス非要求状態を示している。それらフラグa,bは、第1パーティションと第2パーティションにそれぞれ配置され、第1サーバ10と第2サーバ20のそれぞれのみにより更新することができる。これにより、共有データの二重更新やフラグa,bの同時更新によるデータ破壊を回避するようにしている。   Flags a and b are flags for holding access right information for shared data, and indicate an access request state or an access non-request state for shared data. These flags a and b are arranged in the first partition and the second partition, respectively, and can be updated only by each of the first server 10 and the second server 20. This avoids data corruption due to double updating of shared data and simultaneous updating of flags a and b.

以下、第1パーティションに配置され、第1サーバ10のみにより更新可能なフラグaを第1専用フラグaという。また、第2パーティションに配置され、第2サーバ20のみにより更新可能なフラグbを第2専用フラグbという。   Hereinafter, the flag a that is arranged in the first partition and can be updated only by the first server 10 is referred to as a first dedicated flag a. A flag b that is arranged in the second partition and can be updated only by the second server 20 is referred to as a second dedicated flag b.

フラグtは、共有データへの同時アクセスが発生した場合に備え、共有データへのアクセスが優先されているサーバを識別するために用いられる。そのフラグtは、共有データと同じ第3パーティションに配置され、第1サーバ10と第2サーバ20の両サーバにより書き換える(変更する)ことができる。   The flag t is used to identify a server that prioritizes access to shared data in preparation for the case where simultaneous access to shared data occurs. The flag t is arranged in the same third partition as the shared data, and can be rewritten (changed) by both the first server 10 and the second server 20.

このような優先権フラグtを用いることにより、第1サーバ10と第2サーバ20によるデッドロック状態の発生を回避するようにしている。また、共有データへのアクセス毎に優先サーバを他サーバに書き換えることにより、第1サーバ10と第2サーバ20との間での共有データへのアクセスの公平性を確保するようにしている。   By using such a priority flag t, occurrence of a deadlock state by the first server 10 and the second server 20 is avoided. Further, by rewriting the priority server to another server every time the shared data is accessed, the fairness of access to the shared data between the first server 10 and the second server 20 is ensured.

第1サーバ10と第2サーバ20は、それぞれ、共有ディスク装置30と通信可能に物理的・電気的に接続されており、共有データ記憶部301から取得した第1専用フラグaと第2専用フラグbと優先権フラグtを用いて相互排他的に共有データへアクセスするアクセス制御機能部101,201を備えている。   The first server 10 and the second server 20 are physically and electrically connected so as to be communicable with the shared disk device 30, respectively. The first dedicated flag a and the second dedicated flag acquired from the shared data storage unit 301. Access control function units 101 and 201 for accessing shared data in a mutually exclusive manner using b and priority flag t are provided.

続いて、図2を参照しながら、二重更新防止システム1の動作について説明する。   Next, the operation of the double update prevention system 1 will be described with reference to FIG.

まず、第1サーバ10のアクセス制御機能部101は、共有データが記憶されている共有ディスク装置30にアクセスし、その共有データにアクセスする前に、自サーバからアクセスしたいことを示すため、自サーバ用の第1専用フラグaを取得し、そのフラグ状態をアクセス非要求状態(0)からアクセス要求状態(1)に変更(a:0→1)する(ステップS101)。   First, the access control function unit 101 of the first server 10 accesses the shared disk device 30 in which the shared data is stored, and indicates that it wants to access from the own server before accessing the shared data. The first dedicated flag a is obtained, and the flag state is changed from the access non-request state (0) to the access request state (1) (a: 0 → 1) (step S101).

次に、アクセス制御機能部101は、第2サーバ20が共有データへアクセスしようとしていないかを確認するため、他サーバ用の第2専用フラグbを取得し、そのフラグ状態がアクセス非要求状態(0)であるかアクセス要求状態(1)であるかを判定する(ステップS102)。   Next, the access control function unit 101 acquires the second dedicated flag b for the other server in order to confirm whether the second server 20 is trying to access the shared data, and the flag state is an access non-request state ( 0) or an access request state (1) is determined (step S102).

これ以降は、第2専用フラグb及び優先権フラグtの各状態に基づき、共有データへのアクセス制御を実行する。   Thereafter, access control to the shared data is executed based on the states of the second dedicated flag b and the priority flag t.

まず、第2専用フラグbがアクセス非要求状態である場合(b=0)には、第2サーバ20は共有データへアクセスしていないため、アクセス制御機能部101は、優先権フラグtを参照することなく共有データへアクセスする(ステップS103)。   First, when the second dedicated flag b is in an access non-request state (b = 0), the access control function unit 101 refers to the priority flag t because the second server 20 is not accessing the shared data. The shared data is accessed without doing so (step S103).

一方、第2専用フラグbがアクセス要求状態である場合(b=1)には、次の2つのケースが考えられる。つまり、第2サーバ20は既に共有データにアクセス中である第1ケースと、第2サーバ20も同時に共有データへアクセスしようとしているが、未だ共有データへアクセスしておらず、第2サーバ20も第1専用フラグaを確認中である第2ケースである。特に第2ケースの場合には第1サーバ10と第2サーバ20との間でデッドロック状態にならないようにするため、それら2つのサーバ間での調整が必要となる。   On the other hand, when the second dedicated flag b is in the access request state (b = 1), the following two cases can be considered. That is, the second server 20 is already accessing the shared data, and the second server 20 is also trying to access the shared data at the same time. However, the second server 20 has not yet accessed the shared data. This is the second case in which the first dedicated flag a is being confirmed. Particularly in the case of the second case, adjustment between the two servers is necessary to prevent a deadlock state between the first server 10 and the second server 20.

そこで、そのような2つのケースを考慮して、本実施の形態では、優先権フラグtを確認し、優先権がない方が優先権のある方へ共有データへのアクセスを譲るように動作させる。この条件を満たす第1サーバ10の動作を図3に示す。第2サーバ20については、これと裏返しの動作をすればよい。   Therefore, in consideration of these two cases, in the present embodiment, the priority right flag t is checked, and an operation is performed so that a person who does not have a priority right transfers access to shared data to a person who has the priority right. . The operation of the first server 10 that satisfies this condition is shown in FIG. The second server 20 may be reversed.

まず、アクセス制御機能部101は、優先権フラグtを参照し、そのフラグ状態が第1サーバ10の優先状態(A)であるか第2サーバ20の優先状態(B)であるかを判定する(ステップS104)。   First, the access control function unit 101 refers to the priority flag t, and determines whether the flag state is the priority state (A) of the first server 10 or the priority state (B) of the second server 20. (Step S104).

そして、優先権フラグtが第2サーバ20を示している場合(t=B)には、第1サーバ10は、共有データへのアクセス権を一瞬だけ第2サーバ20に譲るようにする。すなわち、アクセス制御機能部101は、自サーバ用の第1専用フラグaをアクセス非要求状態(0)に一旦戻し(ステップS105)、所定時間が経過した後にステップS102に戻ってリトライする(ステップS106)。   When the priority flag t indicates the second server 20 (t = B), the first server 10 transfers the access right to the shared data to the second server 20 for a moment. That is, the access control function unit 101 once returns the first dedicated flag a for its own server to the access non-request state (0) (step S105), and after a predetermined time has elapsed, returns to step S102 to retry (step S106). ).

これは、第2サーバ20が上述した第2ケースの場合、t=Aの場合と同様の動作をするとデッドロック状態になることから、それを回避するようにするためである。最終的にリトライするため、第2サーバ20が第1ケースの場合でも対応することができる。   This is to avoid a deadlock state when the second server 20 is in the above-described second case and performs the same operation as when t = A. Since the retry is finally performed, it is possible to cope with the case where the second server 20 is the first case.

一方、優先権フラグtが第1サーバ10を示している場合(t=A)には、第2サーバ20が共有データへのアクセスを完了させて第2専用フラグbがアクセス非要求状態(0)に戻されるか、又は、共有データへのアクセス権を第1サーバ10に譲り第2専用フラグbがアクセス非要求状態(0)に戻されるか(第2サーバ20がアクセスした場合のステップS105に相当)を期待し、ステップS102に戻ってリトライする。   On the other hand, when the priority flag t indicates the first server 10 (t = A), the second server 20 completes access to the shared data and the second dedicated flag b is in the access non-request state (0 ) Or the access right to the shared data is transferred to the first server 10 and the second dedicated flag b is returned to the access non-request state (0) (step S105 when the second server 20 accesses) And return to step S102 to retry.

そして、そのようなリトライを行い、ステップS102及びステップS103を経由して共有データのデータ変更が完了した後には、アクセス制御機能部101は、優先権フラグtを他サーバが優先されるように第2サーバ20の優先状態(B)に変更する(ステップS107)。   After such a retry is performed and the data change of the shared data is completed via step S102 and step S103, the access control function unit 101 sets the priority right flag t so that other servers have priority. 2 Change to the priority state (B) of the server 20 (step S107).

最後に、図4を参照しながら、第1サーバ10と第2サーバ20により同時アクセスが発生した場合における二重更新防止システム1の動作について説明する。   Finally, the operation of the double update prevention system 1 when simultaneous access occurs by the first server 10 and the second server 20 will be described with reference to FIG.

まず、第1サーバ10が、自サーバ用の第1専用フラグaを取得してそのフラグ状態をアクセス非要求状態(0)からアクセス要求状態(1)に変更(a:0→1)する(ステップS201)。   First, the first server 10 acquires the first dedicated flag a for its own server and changes the flag state from the access non-request state (0) to the access request state (1) (a: 0 → 1) ( Step S201).

ステップS201と同時に、第2サーバ20は、自サーバ用の第2専用フラグbを取得してそのフラグ状態をアクセス非要求状態(0)からアクセス要求状態(1)に変更(b:0→1)する(ステップS201)。   Simultaneously with step S201, the second server 20 acquires the second dedicated flag b for its own server and changes the flag state from the access non-request state (0) to the access request state (1) (b: 0 → 1). (Step S201).

次に、第1サーバ10と第2サーバ20は、それぞれ、他サーバ用の専用フラグ(第2専用フラグb、第1専用フラグa)を取得してそのフラグ状態がアクセス非要求状態(0)であるかアクセス要求状態(1)であるかを確認する(ステップS202)。   Next, each of the first server 10 and the second server 20 acquires a dedicated flag for another server (second dedicated flag b, first dedicated flag a), and the flag state is an access non-request state (0). Or the access request state (1) is confirmed (step S202).

次に、他サーバの専用フラグは共にアクセス要求状態(1)であることから、第1サーバ10と第2サーバ20は、それぞれ、優先権フラグtを参照してそのフラグ状態が第1サーバ10の優先状態(A)であるか第2サーバ20の優先状態(B)であるかを確認する(ステップS203)。   Next, since the dedicated flags of the other servers are both in the access request state (1), each of the first server 10 and the second server 20 refers to the priority flag t and the flag state is the first server 10. Whether the priority state (A) of the second server 20 or the priority state (B) of the second server 20 is confirmed (step S203).

ここでt=Aの場合、優先権のない第2サーバ20は、第2専用フラグbをアクセス非要求状態(0)に変更することにより、アクセス要求を一旦取り下げる(ステップS204)。   Here, when t = A, the second server 20 having no priority right temporarily cancels the access request by changing the second dedicated flag b to the access non-request state (0) (step S204).

次に、優先権のある第1サーバ10は、第2サーバ20がアクセス要求を取り下げたことを確認して共有データへアクセスする(ステップS205)。優先権フラグtは、第1サーバ10によって共有データの使用後にt=Bに書き換えられるので、第2サーバ20は次に共有データへアクセスすることができる。   Next, the first server 10 having the priority right confirms that the second server 20 has withdrawn the access request and accesses the shared data (step S205). Since the priority flag t is rewritten to t = B after the shared data is used by the first server 10, the second server 20 can access the shared data next.

以上より、本実施の形態によれば、共有ディスク装置30が、共有データへのアクセス要求状態又はアクセス非要求状態を示し、第1サーバ10と第2サーバ20のそれぞれのみにより更新可能な第1専用フラグaと第2専用フラグbを共有データ記憶部301に記憶しておき、第1サーバ10と第2サーバ20は、それぞれ、共有データ記憶部301から他サーバ用の専用フラグ(第2専用フラグb、第1専用フラグa)を取得し、当該他装置用の専用フラグがアクセス非要求状態の場合に共有データにアクセスするので、共有データへの相互排他的なアクセスが可能となることから、共有データの二重更新を防止することができる。   As described above, according to the present embodiment, the shared disk device 30 indicates a shared data access request state or an access non-request state, and can be updated only by each of the first server 10 and the second server 20. The dedicated flag a and the second dedicated flag b are stored in the shared data storage unit 301, and the first server 10 and the second server 20 respectively transmit the dedicated flag for the other server (second dedicated server) from the shared data storage unit 301. Since the flag b and the first dedicated flag a) are acquired, and the shared data is accessed when the dedicated flag for the other device is in the access non-request state, mutual access to the shared data becomes possible. Thus, double updating of shared data can be prevented.

また、本実施の形態によれば、第1専用フラグaと第2専用フラグbを異なるパーティションで記憶しておくので、専用フラグの同時更新によるデータ破壊を回避することができる。   Further, according to the present embodiment, the first dedicated flag a and the second dedicated flag b are stored in different partitions, so that data destruction due to simultaneous updating of the dedicated flag can be avoided.

また、本実施の形態によれば、アクセス要求状態又はアクセス非要求状態を示す専用フラグとは別に優先権フラグを共有ディスク装置30内に保持し、この優先権フラグに基づいて共有データへアクセスするので、第1サーバ10と第2サーバ20でのデッドロック状態を回避することができる。   Further, according to the present embodiment, a priority flag is held in the shared disk device 30 separately from a dedicated flag indicating an access request state or an access non-request state, and shared data is accessed based on this priority flag. Therefore, a deadlock state between the first server 10 and the second server 20 can be avoided.

また、本実施の形態によれば、共有データへのアクセスを完了した際に優先権フラグtを他サーバに書き換えるので、共有データへのアクセスの公平性を確保することができる。   Further, according to the present embodiment, when the access to the shared data is completed, the priority flag t is rewritten to another server, so that fairness of access to the shared data can be ensured.

尚、本実施の形態では、サーバクラスタシステム構成の最小単位である2つのサーバを用いて説明したが、そのサーバ数が3つ以上の場合であっても同様に処理することにより、同様の効果を得ることが可能である。   Although the present embodiment has been described using two servers, which are the minimum unit of the server cluster system configuration, the same effect can be obtained by processing in the same way even when the number of servers is three or more. It is possible to obtain

また、本実施の形態で説明した二重更新防止システム1は、メモリやCPUを備えたコンピュータで実現することができる。また、その処理はプログラムによって実行可能である。   The double update prevention system 1 described in the present embodiment can be realized by a computer having a memory and a CPU. The process can be executed by a program.

1…二重更新防止システム
10…第1サーバ(共有データ更新装置)
101…アクセス制御機能部
20…第2サーバ(共有データ更新装置)
201…アクセス制御機能部
30…共有ディスク装置(共有データ記憶装置)
301…共有データ記憶部
S101〜S107、S201〜S205…ステップ
DESCRIPTION OF SYMBOLS 1 ... Double update prevention system 10 ... 1st server (shared data update device)
101 ... Access control function unit 20 ... Second server (shared data update device)
201: Access control function unit 30 ... Shared disk device (shared data storage device)
301 ... Shared data storage unit S101 to S107, S201 to S205 ... Step

Claims (6)

共有データを更新する2つの共有データ更新装置と、前記共有データを記憶しておく共有データ記憶装置とを備えた二重更新防止システムにおいて、
前記共有データ記憶装置は、
前記共有データへのアクセス要求状態又はアクセス非要求状態を示し、前記2つの共有データ更新装置のそれぞれのみにより更新可能な2つの専用フラグを異なるパーティションで記憶しておく共有データ記憶手段、を有し、
前記2つの共有データ更新装置は、それぞれ、
前記共有データ記憶手段から他装置用の専用フラグを取得し、当該他装置用の専用フラグがアクセス非要求状態の場合に前記共有データにアクセスするアクセス制御手段、
を有することを特徴とする二重更新防止システム。
In a double update prevention system comprising two shared data update devices for updating shared data and a shared data storage device for storing the shared data,
The shared data storage device
Shared data storage means for storing two dedicated flags that indicate an access request state or an access non-request state to the shared data and that can be updated only by each of the two shared data update devices in different partitions ,
The two shared data update devices are respectively
An access control means for acquiring a dedicated flag for the other device from the shared data storage means, and accessing the shared data when the dedicated flag for the other device is in an access non-request state;
A double update prevention system characterized by comprising:
前記共有データ記憶手段は、前記共有データへのアクセスが優先されている共有データ更新装置を識別する優先権フラグを更に記憶しておき、
前記アクセス制御手段は、
前記他装置用の専用フラグがアクセス要求状態の場合に前記優先権フラグを参照し、他装置が優先されている場合に自装置用の専用フラグをアクセス非要求状態に戻すことを特徴とする請求項1記載の二重更新防止システム。
The shared data storage means further stores a priority flag for identifying a shared data update device that is prioritized to access the shared data,
The access control means includes
The priority flag is referred to when the dedicated flag for the other device is in the access request state, and the dedicated flag for the own device is returned to the access non-requested state when the other device has priority. Item 2. The double update prevention system according to item 1.
前記アクセス制御手段は、
前記共有データにアクセスした後に前記優先権フラグを他装置が優先されるように変更することを特徴とする請求項2記載の二重更新防止システム。
The access control means includes
3. The double update prevention system according to claim 2, wherein after the access to the shared data, the priority flag is changed so that another device has priority.
共有データを更新する2つの共有データ更新装置と、前記共有データを記憶しておく共有データ記憶装置とで行う二重更新防止方法において、
前記共有データ記憶装置は、
前記共有データへのアクセス要求状態又はアクセス非要求状態を示し、前記2つの共有データ更新装置のそれぞれのみにより更新可能な2つの専用フラグを異なるパーティションで共有データ記憶手段に記憶しておく共有データ記憶ステップ、を有し、
前記2つの共有データ更新装置は、それぞれ、
前記共有データ記憶手段から他装置用の専用フラグを取得し、当該他装置用の専用フラグがアクセス非要求状態の場合に前記共有データにアクセスするアクセス制御ステップ、
を有することを特徴とする二重更新防止方法。
In a double update prevention method performed by two shared data update devices that update shared data and a shared data storage device that stores the shared data,
The shared data storage device
Shared data storage that indicates an access request state or an access non-request state to the shared data, and stores two dedicated flags that can be updated only by each of the two shared data update devices in different partitions in a shared data storage unit Steps, and
The two shared data update devices are respectively
An access control step of acquiring a dedicated flag for the other device from the shared data storage means and accessing the shared data when the dedicated flag for the other device is in an access non-request state;
A double update preventing method comprising:
前記共有データ記憶ステップは、前記共有データへのアクセスが優先されている共有データ更新装置を識別する優先権フラグを更に記憶しておき、
前記アクセス制御ステップは、
前記他装置用の専用フラグがアクセス要求状態の場合に前記優先権フラグを参照し、他装置が優先されている場合に自装置用の専用フラグをアクセス非要求状態に戻すことを特徴とする請求項4記載の二重更新防止方法。
The shared data storage step further stores a priority flag for identifying a shared data update device that is prioritized to access the shared data,
The access control step includes
The priority flag is referred to when the dedicated flag for the other device is in the access request state, and the dedicated flag for the own device is returned to the access non-requested state when the other device has priority. Item 5. The double update prevention method according to Item 4.
前記アクセス制御ステップは、
前記共有データにアクセスした後に前記優先権フラグを他装置が優先されるように変更することを特徴とする請求項5記載の二重更新防止方法。
The access control step includes
6. The double update prevention method according to claim 5, wherein after the shared data is accessed, the priority flag is changed so that another device has priority.
JP2013025405A 2013-02-13 2013-02-13 Double update prevention system and double update prevention method Expired - Fee Related JP5830042B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013025405A JP5830042B2 (en) 2013-02-13 2013-02-13 Double update prevention system and double update prevention method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013025405A JP5830042B2 (en) 2013-02-13 2013-02-13 Double update prevention system and double update prevention method

Publications (2)

Publication Number Publication Date
JP2014154077A true JP2014154077A (en) 2014-08-25
JP5830042B2 JP5830042B2 (en) 2015-12-09

Family

ID=51575856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013025405A Expired - Fee Related JP5830042B2 (en) 2013-02-13 2013-02-13 Double update prevention system and double update prevention method

Country Status (1)

Country Link
JP (1) JP5830042B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016091260A (en) * 2014-11-04 2016-05-23 富士通株式会社 Start control program, start control method and start control device
CN107480014A (en) * 2017-07-24 2017-12-15 北京奇安信科技有限公司 A kind of High Availabitity equipment switching method and device
JP2021009554A (en) * 2019-07-01 2021-01-28 日本電気株式会社 Computer device, data sharing system, data access method, and program
KR20210064545A (en) * 2019-11-26 2021-06-03 주식회사 알티스트 Apparatus ane method for sharing data between partitions

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6320653A (en) * 1986-07-15 1988-01-28 Sekisui Chem Co Ltd Memory access method for multiprocessor system
JPH06332780A (en) * 1993-05-24 1994-12-02 Nippon Telegr & Teleph Corp <Ntt> Data base exclusive controlling method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6320653A (en) * 1986-07-15 1988-01-28 Sekisui Chem Co Ltd Memory access method for multiprocessor system
JPH06332780A (en) * 1993-05-24 1994-12-02 Nippon Telegr & Teleph Corp <Ntt> Data base exclusive controlling method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016091260A (en) * 2014-11-04 2016-05-23 富士通株式会社 Start control program, start control method and start control device
CN107480014A (en) * 2017-07-24 2017-12-15 北京奇安信科技有限公司 A kind of High Availabitity equipment switching method and device
JP2021009554A (en) * 2019-07-01 2021-01-28 日本電気株式会社 Computer device, data sharing system, data access method, and program
KR20210064545A (en) * 2019-11-26 2021-06-03 주식회사 알티스트 Apparatus ane method for sharing data between partitions
KR102283739B1 (en) 2019-11-26 2021-07-30 주식회사 알티스트 Apparatus ane method for sharing data between partitions

Also Published As

Publication number Publication date
JP5830042B2 (en) 2015-12-09

Similar Documents

Publication Publication Date Title
JP6942798B2 (en) Automatic provisioning of IOT devices
CN107430566B (en) Direct memory access descriptor handling
US20170371596A1 (en) Method and system for managing storage system
JP5830042B2 (en) Double update prevention system and double update prevention method
US11070979B2 (en) Constructing a scalable storage device, and scaled storage device
CN105162879B (en) Realize the method, apparatus and system of multimachine room data consistency
JP6297232B2 (en) Data processing apparatus, data processing method, and data processing program
CN110673941A (en) Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium
JP2017517087A (en) Database cluster data management method, node, and system
US20130282908A1 (en) Method and System for Deploying and Modifying a Service-Oriented Architecture Deployment Environment
WO2020256831A1 (en) Smart contract information redirect to updated version of smart contract
JP5754504B2 (en) Management apparatus, information processing apparatus, information processing system, and data transfer method
JP6630069B2 (en) Information processing method, program, and information processing apparatus
CN114356215A (en) Distributed cluster and control method of distributed cluster lock
TWI536175B (en) Updating files between computing devices via a wireless connection
WO2021066938A1 (en) Multi-phase distributed task coordination
US9519527B1 (en) System and method for performing internal system interface-based communications in management controller
JP2011107754A (en) Plant-monitoring control system
US10534544B2 (en) Data shuffling in a non-uniform memory access device
JP2007241570A (en) Setting system of shared memory for communication between programmable controller
JP2018147430A (en) Communication apparatus, communication method, and program
JP6043687B2 (en) Server / client system
JP5473016B2 (en) Data sharing system, terminal device, data sharing method, and program
JP5664417B2 (en) Net boot system, client terminal, load reduction method, and load reduction program
JP4333749B2 (en) Arithmetic system, arithmetic device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150909

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151023

R150 Certificate of patent or registration of utility model

Ref document number: 5830042

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees