JP2018142807A - Distributed DB system and timer setting method - Google Patents
Distributed DB system and timer setting method Download PDFInfo
- Publication number
- JP2018142807A JP2018142807A JP2017035133A JP2017035133A JP2018142807A JP 2018142807 A JP2018142807 A JP 2018142807A JP 2017035133 A JP2017035133 A JP 2017035133A JP 2017035133 A JP2017035133 A JP 2017035133A JP 2018142807 A JP2018142807 A JP 2018142807A
- Authority
- JP
- Japan
- Prior art keywords
- server
- servers
- capture
- delay time
- storage unit
- 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
Links
Images
Abstract
Description
本発明は、分散DBシステムおよびタイマ設定方法に関する。 The present invention relates to a distributed DB system and a timer setting method.
従来、DBクライアントからの要求に応じて、複数のDBサーバ間でリレーを行う分散DBシステムにおいて、システム全体が停止しないようにDBサーバを離れた位置に設置するのが一般的である。このような分散DBシステムにおいて、DBサーバ間でのリレーでは通信網が利用されるため、DBサーバ間のリレー時間は、通信距離やNW機器の構成等の影響を受け、通信経路によって異なる。 Conventionally, in a distributed DB system that relays between a plurality of DB servers in response to a request from a DB client, it is common to install the DB server at a remote location so that the entire system does not stop. In such a distributed DB system, since a communication network is used for relaying between DB servers, the relay time between DB servers is affected by the communication distance, the configuration of the NW device, and the like, and varies depending on the communication path.
また、このような分散DBシステムにおいて、DBクライアントが要求を行って、該要求に対する応答を受け取るまでの制限時間として、タイマ値が設定されており、該タイマ値を過ぎた場合には、タイムアウトとなる。 Further, in such a distributed DB system, a timer value is set as a time limit until a DB client makes a request and receives a response to the request. Become.
しかしながら、従来の技術では、タイムアウトのタイマ値を適切に設定することができない場合があるという課題があった。つまり、従来の技術では、例えば、分散DBシステムを新規導入する際、もしくは、DBサーバを追加配置する際のタイマ設計に複雑性がある。また、分散DBシステムは、離れた距離にDBサーバが配置されており、通信距離やネットワーク機器の構成等の影響があるため、通信経路によってリレーによる通信速度が異なるため、通信経路を考慮したタイマ値を適切に設定することが難しい場合がある。 However, the conventional technique has a problem that the timeout timer value may not be set appropriately. In other words, in the conventional technology, for example, there is a complexity in the timer design when a new distributed DB system is introduced or when a DB server is additionally arranged. In the distributed DB system, since the DB server is arranged at a distant distance and there is an influence of the communication distance, the configuration of the network device, etc., the communication speed by the relay differs depending on the communication path, so the timer considering the communication path It may be difficult to set the value appropriately.
上述した課題を解決し、目的を達成するために、本発明の分散DBシステムは、それぞれ異なる場所に設置された各DBサーバ同士で通信を行う分散DBシステムであって、各DBサーバ間で行われる通信の遅延時間を測定し、測定した遅延時間を記憶部に格納する測定部と、前記記憶部に記憶された遅延時間をDBサーバ間ごとに分類し、各DBサーバ間の遅延時間の平均および分散を算出する算出部と、前記算出部によって算出された各DBサーバ間の遅延時間の平均および分散を用いて、各DBサーバ間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する決定部と、を備えることを特徴とする。 In order to solve the above-described problems and achieve the object, the distributed DB system of the present invention is a distributed DB system in which each DB server installed in a different place communicates with each other. Measuring the delay time of the communication, and storing the measured delay time in the storage unit, classifying the delay time stored in the storage unit for each DB server, the average of the delay time between each DB server And a timer that is set for each delay time of communication performed between the DB servers using the average and variance of the delay times between the DB servers calculated by the calculation unit. And a determining unit that determines a value.
また、本発明のタイマ設定方法は、それぞれ異なる場所に設置された各DBサーバ同士で通信を行う分散DBシステムによって実行されるタイマ設定方法であって、各DBサーバ間で行われる通信の遅延時間を測定し、測定した遅延時間を記憶部に格納する測定工程と、前記記憶部に記憶された遅延時間をDBサーバ間ごとに分類し、各DBサーバ間の遅延時間の平均および分散を算出する算出工程と、前記算出工程によって算出された各DBサーバ間の遅延時間の平均および分散を用いて、各DBサーバ間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する決定工程と、を含んだことを特徴とする。 The timer setting method of the present invention is a timer setting method executed by a distributed DB system that communicates with each other DB servers installed at different locations, and a delay time of communication performed between the DB servers. And measuring the delay time stored in the storage unit, classifying the delay time stored in the storage unit for each DB server, and calculating the average and variance of the delay time between each DB server A determination step for determining a timer value to be set for each delay time of communication performed between the DB servers using the calculation step and the average and variance of the delay times between the DB servers calculated by the calculation step And a process.
本発明によればタイムアウトのタイマ値を適切に設定することができるという効果を奏する。 According to the present invention, it is possible to appropriately set a timeout timer value.
以下に、本願に係る分散DBシステムおよびタイマ設定方法の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態により本願に係る分散DBシステムおよびタイマ設定方法が限定されるものではない。 Embodiments of a distributed DB system and a timer setting method according to the present application will be described below in detail with reference to the drawings. Note that the distributed DB system and the timer setting method according to the present application are not limited by this embodiment.
[第一の実施の形態]
以下の実施の形態では、第一の実施の形態に係る分散DBシステムの構成、キャプチャサーバの構成、キャプチャサーバの処理の流れを順に説明し、最後に第一の実施の形態による効果を説明する。
[First embodiment]
In the following embodiments, the configuration of the distributed DB system according to the first embodiment, the configuration of the capture server, the processing flow of the capture server will be described in order, and finally the effects of the first embodiment will be described. .
[分散DBシステムの構成]
まず、図1を用いて、第一の実施の形態に係る分散DBシステムについて説明する。図1は、第一の実施の形態に係る分散DBシステムの構成の一例を示す図である。第一の実施の形態に係る分散DBシステム100は、キャプチャサーバ10、複数のDBサーバ20a〜20c、クライアントサーバ30および複数のネットワーク機器(図1ではNW機器と記載)40a、40bを有する。なお、各DBサーバ20a〜20cは、それぞれ同様の構成を有しており、特に区別なく説明する場合には、DBサーバ20と記載する。また、各ネットワーク機器40a、40bについても、それぞれ同様の構成を有しており、特に区別なく説明する場合には、ネットワーク機器40と記載する。また、図1に示す各装置の数は、あくまで一例であり、これに限られるものではない。
[Configuration of distributed database system]
First, the distributed DB system according to the first embodiment will be described with reference to FIG. FIG. 1 is a diagram illustrating an example of a configuration of a distributed DB system according to the first embodiment. The
キャプチャサーバ10は、DBサーバ20間の通信を中継するネットワーク機器40からDBサーバ20間に流れるデータを取得する。そして、キャプチャサーバ10は、取得したデータからDBサーバ20間で行われる通信の遅延時間を測定し、キャプチャログとして後述するキャプチャログ記憶部13aに格納する。
The
また、キャプチャサーバ10は、キャプチャログ記憶部13aに記憶された遅延時間をDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。そして、キャプチャサーバ10は、算出された各DBサーバ20間の遅延時間の平均および分散を用いて、各DBサーバ20間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する。
In addition, the
各DBサーバ20は、アクセス要求の対象となるデータを記憶する他のDBサーバ20にアクセス要求を送信したり、他のDBサーバ20からアクセス要求を受信して返信したりする。各DBサーバ20では、各DBサーバ20間で通信を行う際に、通信距離やネットワーク機器40の構成等の影響により、遅延時間がそれぞれ異なる。 Each DB server 20 transmits an access request to another DB server 20 that stores data that is the target of the access request, or receives and returns an access request from the other DB server 20. In each DB server 20, when communicating between each DB server 20, delay time differs according to the influence of a communication distance, the structure of the network apparatus 40, etc., respectively.
ここで、図2を用いて、第一の実施の形態に係る分散DBシステム100における遅延時間について説明する。図2は、第一の実施の形態に係る分散DBシステムにおける遅延時間について説明する図である。図2に例示するように、分散DBシステム100において、各DBサーバ20は、システム全体が停止しないように、それぞれ離れた位置に設置されている。例えば、DBサーバ20aが東京に設置され、DBサーバ20bが大阪に設置され、DBサーバ20cがニューヨークに設置されているものとする。また、各DBサーバ20は、図示しないネットワークを介して、それぞれ接続されている。なお、図2の例では、クライアントサーバ30からのアクセス要求をDBサーバ20aが受け付けているものとする。
Here, the delay time in the
例えば、DBサーバ20aは、クライアントサーバ30からアクセス要求を受け付けたデータをDBサーバ20bが収容している場合には、DBサーバ20bにアクセス要求を送信し、アクセス要求を受け付けたデータをDBサーバ20cが収容している場合には、DBサーバ20cにアクセス要求を送信する。
For example, when the
ここで、図2に示すように、DBサーバ20aは、DBサーバ20bにアクセス要求を送信して応答を受信するまでの時間よりも、DBサーバ20cにアクセス要求を送信して応答を受信するまでの時間の方が長い。つまり、DBサーバ20aについて、DBサーバ20bとの通信における遅延が小さく、DBサーバ20cとの通信における遅延が大きいものとする。なお、以下の説明では、DBサーバ20aがクライアントサーバ30からアクセス要求を受け付けている例を用いて適宜説明する。
Here, as shown in FIG. 2, the
クライアントサーバ30は、DBサーバ20aに対してアクセス要求を送信する。そして、クライアントサーバ30は、アクセス要求をしたデータをDBサーバ20aから受信する。ネットワーク機器40は、DBサーバ20間の通信を中継する機器であり、例えば、スイッチやルータ等である。例えば、ネットワーク機器40は、いわゆるポートミラーリング機能を有し、所定のポート経由するデータをコピーし、コピーしたデータを、キャプチャサーバ10に送信する。
The
[キャプチャサーバの構成]
次に、図3を用いて、図1に示したキャプチャサーバ10の構成を説明する。図3は、第一の実施の形態に係るキャプチャサーバ10の構成を示すブロック図である。図3に示すように、このキャプチャサーバ10は、通信処理部11、制御部12および記憶部13を有する。以下にこれらの各部の処理を説明する。
[Capture Server Configuration]
Next, the configuration of the
通信処理部11は、DBサーバ20やネットワーク機器40等との間でやり取りする各種情報に関する通信を制御する。例えば、通信処理部11は、ネットワーク機器40からDBサーバ20間で送受信されているパケットを受信する。また、通信処理部11は、DBサーバ20に対して、設定するタイマ値を送信する。 The communication processing unit 11 controls communication related to various types of information exchanged with the DB server 20, the network device 40, and the like. For example, the communication processing unit 11 receives packets transmitted and received between the network device 40 and the DB server 20. In addition, the communication processing unit 11 transmits a timer value to be set to the DB server 20.
また、記憶部13は、制御部12による各種処理に必要なデータおよびプログラムを格納するが、特に本発明に密接に関連するものとしては、キャプチャログ記憶部13aを有する。例えば、記憶部13は、RAM(Random Access Memory)、フラッシュメモリ(Flash Memory)等の半導体メモリ素子、又は、ハードディスク、光ディスク等の記憶装置などである。
The storage unit 13 stores data and programs necessary for various processes performed by the
キャプチャログ記憶部13aは、各DBサーバ20間で行われる通信の遅延時間を記憶する。具体的には、キャプチャログ記憶部13aは、図4に示すように、通信の送信元であるDBサーバ20の識別子を示す「From」と、通信の送信先であるDBサーバ20の識別子を示す「To」と、遅延時間を示す「TAT(Turn Around Time)」とを対応付けて記憶する。 The capture log storage unit 13 a stores a delay time of communication performed between the DB servers 20. Specifically, as illustrated in FIG. 4, the capture log storage unit 13 a indicates “From” indicating the identifier of the DB server 20 that is the communication transmission source and the identifier of the DB server 20 that is the communication transmission destination. “To” and “TAT (Turn Around Time)” indicating the delay time are stored in association with each other.
図4の例を挙げて説明すると、例えば、キャプチャログ記憶部13aは、From(送信元)「DB1」と、To(送信先)「DB2」と、TAT(遅延時間)「0.001」とを対応付けて記憶する。これは、DB1からDB2に対して送信されたパケットの遅延時間が「0.001」秒であることを意味する。なお、以下では、DBサーバ20aを「DB1」、DBサーバ20bを「DB2」、DBサーバ20cを「DB3」と記載して適宜説明する。
Referring to the example of FIG. 4, for example, the capture log storage unit 13 a determines that From (transmission source) “DB1”, To (transmission destination) “DB2”, and TAT (delay time) “0.001”. Are stored in association with each other. This means that the delay time of the packet transmitted from DB1 to DB2 is “0.001” seconds. In the following description, the
制御部12は、各種の処理手順などを規定したプログラムおよび所要データを格納するための内部メモリを有し、これらによって種々の処理を実行するが、特に本発明に密接に関連するものとしては、測定部12a、算出部12b、決定部12cおよび通知部12dを有する。
The
測定部12aは、各DBサーバ20間で行われる通信の遅延時間を測定し、測定した遅延時間をキャプチャログ記憶部13aに格納する。例えば、測定部12aは、定期的に、DBサーバ20間の通信を中継するネットワーク機器40からDBサーバ20間に流れるデータを取得する。そして、測定部12aは、取得したデータからDBサーバ20間で行われる通信の遅延時間を測定し、キャプチャログとしてキャプチャログ記憶部13aに格納する。 The measurement unit 12a measures a delay time of communication performed between the DB servers 20, and stores the measured delay time in the capture log storage unit 13a. For example, the measurement unit 12 a periodically acquires data flowing between the DB servers 20 from the network device 40 that relays communication between the DB servers 20. Then, the measurement unit 12a measures the delay time of communication performed between the DB servers 20 from the acquired data, and stores it in the capture log storage unit 13a as a capture log.
ここで、図5を用いて、遅延時間の計測する処理を説明する。図5は、遅延時間を計測する処理を説明する図である。なお、図5では、簡略化のため、キャプチャサーバ10が、ネットワーク機器40a、40bからデータを取得する例を示しているが、これに限定されるものではなく、当然より多くのネットワーク機器40からデータを取得していてもよい。
Here, the process of measuring the delay time will be described with reference to FIG. FIG. 5 is a diagram illustrating a process for measuring the delay time. 5 shows an example in which the
図5に例示するように、キャプチャサーバ10は、DBサーバ20aとDBサーバ20bとの間の通信を中継するネットワーク機器40aと、DBサーバ20aとDBサーバ20cとの間の通信を中継するネットワーク機器40bとからデータを取得する。そして、測定部12aは、取得したデータからDBサーバ20aとDBサーバ20bとの間で行われる通信の遅延時間と、DBサーバ20aとDBサーバ20cとの間で行われる通信の遅延時間とを測定し、キャプチャログとしてキャプチャログ記憶部13aに格納する。
As illustrated in FIG. 5, the
算出部12bは、キャプチャログ記憶部13aに記憶された遅延時間をDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。例えば、算出部12bは、所定期間(例えば、12時間)に格納された遅延時間をDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。なお、算出するタイミングは、所定期間ごとであってもよいし、ユーザが指定した所定のタイミングでもよい。 The calculation unit 12b classifies the delay times stored in the capture log storage unit 13a for each DB server 20, and calculates the average and variance of the delay times between the DB servers 20. For example, the calculation unit 12b classifies the delay times stored in a predetermined period (for example, 12 hours) for each DB server 20, and calculates the average and variance of the delay times between the DB servers 20. Note that the calculation timing may be every predetermined period or may be a predetermined timing designated by the user.
また、算出部12bは、遅延時間をDBサーバ20間ごとに分類する処理として、キャプチャログ記憶部13aに記憶された各レコードのうち、FromとToの組み合わせが同じレコードを同一グループに分類する。なお、FromとToを逆にした場合に、同じになるレコードについても同一グループに分類する。つまり、例えば、Fromが「DB1」でToが「DB2」のレコードと、Fromが「DB2」でToが「DB1」のレコードとは、同一グループに分類される。 Further, as a process of classifying the delay time for each DB server 20, the calculation unit 12b classifies records having the same combination of From and To into the same group among the records stored in the capture log storage unit 13a. When From and To are reversed, records that are the same are also classified into the same group. In other words, for example, a record with From “DB1” and To “DB2” and a record with From “DB2” and To “DB1” are classified into the same group.
決定部12cは、算出部12bによって算出された各DBサーバ20間の遅延時間の平均および分散を用いて、各DBサーバ20間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する。例えば、決定部12cは、各DBサーバ20間について、遅延時間の平均値に、分散の3倍の値を加算した値をタイマ値として決定する。
The
ここで、図6を用いて、各DBサーバ20にタイマ値を通知する処理を説明する。図6は、各DBサーバにタイマ値を通知する処理を説明する図である。図6に示すように、決定部12cは、DB1−DB2間のタイマ値として、DB1−DB2間で行われた通信のTAT平均と、DB1−DB2間で行われた通信の分散σの3倍の値である「3σ」とを加算した値を算出する。また、決定部12cは、DB1−DB3間のタイマ値として、DB1−DB3間で行われた通信の「TAT平均」と、DB1−DB3間で行われた通信の分散σの3倍の値である「3σ」とを加算した値を算出する。
Here, the process of notifying each DB server 20 of the timer value will be described with reference to FIG. FIG. 6 is a diagram for explaining processing for notifying each DB server of a timer value. As illustrated in FIG. 6, the
通知部12dは、決定部12cによって決定されたタイマ値を各DBサーバ20に通知する。例えば、通知部12dは、決定部12cによって決定されたDB1−DB2間のタイマ値を、DBサーバ20aおよびDBサーバ20bに通知する。また、通知部12dは、決定部12cによって決定されたDB1−DB3間のタイマ値を、DBサーバ20aおよびDBサーバ20cに通知する。なお、DBサーバ20は、タイマ値を受信すると、自装置の各IF(Interface)にタイマ値を設定する。
The
このように、キャプチャサーバ10は、各DBサーバ20間の通信経路を考慮したタイマ設計を自動的に行うことが可能である。また、キャプチャサーバ10は、分散DBシステム100構築後の通信経路変更の影響も考慮したタイマ設計を自動的に行うことが可能である。
As described above, the
[キャプチャサーバの処理の流れ]
次に、図7を用いて、第一の実施の形態に係るキャプチャサーバ10の処理の流れを説明する。図7は、第一の実施の形態に係るキャプチャサーバによる処理を説明するフローチャートである。
[Capture server processing flow]
Next, a processing flow of the
図7に示すように、キャプチャサーバ10は、所定期間(例えば、12時間)が経過したか否かを判定する(ステップS101)。なお、ここで、所定期間が経過したとは、例えば、前回タイマ値を決定してから12時間が経過したことを意味する。ここで、キャプチャサーバ10は、所定期間が経過していない場合には(ステップS101否定)、所定期間が経過するまで、各DBサーバ20間で行われる通信の遅延時間を測定し、測定した遅延時間をキャプチャログ記憶部13aに格納する処理を繰り返すものとする。
As shown in FIG. 7, the
また、キャプチャサーバ10は、所定期間が経過した場合には(ステップS101肯定)、キャプチャログ記憶部13aに記憶された遅延時間をDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する(ステップS102)。
Further, when the predetermined period has elapsed (Yes at Step S101), the
続いて、キャプチャサーバ10は、算出した各DBサーバ20間の遅延時間の平均および分散を用いて、各DBサーバ20間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する(ステップS103)。そして、キャプチャサーバ10は、決定したタイマ値を各DBサーバ20に通知する(ステップS104)。
Subsequently, the
[第一の実施の形態の効果]
このように、第一の実施の形態に係る分散DBシステム100のキャプチャサーバ10は、各DBサーバ20間で行われる通信の遅延時間を測定し、測定した遅延時間をキャプチャログ記憶部13aに格納する。そして、キャプチャサーバ10は、キャプチャログ記憶部13aに記憶された遅延時間をDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。続いて、キャプチャサーバ10は、算出された各DBサーバ20間の遅延時間の平均および分散を用いて、各DBサーバ20間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する。このため、タイムアウトのタイマ値を適切に設定することが可能である。
[Effect of the first embodiment]
As described above, the
つまり、キャプチャサーバ10は、各DBサーバ20間の通信経路を考慮したタイマ設計を自動的に行うことが可能である。また、キャプチャサーバ10は、分散DBシステム100構築後の通信経路変更の影響も考慮したタイマ設計を自動的に行うことが可能である。
That is, the
また、第一の実施の形態に係る分散DBシステム100のキャプチャサーバ10は、決定されたタイマ値を各DBサーバ20に通知する。このため、キャプチャサーバ10が、各DBサーバ20に対して、直接タイマ値を設定することが可能である。
Further, the
また、第一の実施の形態に係る分散DBシステム100のキャプチャサーバ10は、所定期間に格納された遅延時間をDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。このため、キャプチャサーバ10は、所定期間に蓄積されたキャプチャログを用いて、適切な遅延時間の平均および分散を算出することが可能である。
Further, the
[第二の実施の形態]
上述した第二の実施の形態では、所定期間に格納された遅延時間をDBサーバ間ごとに分類し、各DBサーバ間の遅延時間の平均および分散を算出する場合を説明したが、本実施の形態は、これに限定されるものではない。例えば、所定期間に格納された遅延時間のサンプル数が少ない場合には、過去に測定した遅延時間も用いて、各DBサーバ間の遅延時間の平均および分散を算出するようにしてもよい。
[Second Embodiment]
In the second embodiment described above, the case where the delay times stored in the predetermined period are classified for each DB server and the average and variance of the delay times between the DB servers is calculated has been described. The form is not limited to this. For example, when the number of delay time samples stored in a predetermined period is small, the average and variance of the delay times between the DB servers may be calculated using the delay times measured in the past.
そこで、以下では、第二の実施の形態に係るキャプチャサーバ10Aが、所定期間に記憶部13に格納された遅延時間のサンプル数が所定の閾値未満である場合には、過去の遅延時間を過去キャプチャログ記憶部13bから読み出して、各DBサーバ20間の遅延時間の平均および分散を算出する場合を説明する。なお、第一の実施の形態に係るキャプチャサーバ10と同様の構成や処理については説明を省略する。
Therefore, in the following, when the number of samples of delay time stored in the storage unit 13 in the predetermined period is less than the predetermined threshold, the
まず、図8を用いて、第二の実施の形態に係るキャプチャサーバ10Aについて説明する。図8は、第二の実施の形態に係るキャプチャサーバの構成を示すブロック図である。図8に示すように、第二の実施の形態に係るキャプチャサーバ10Aは、図3に示した第一の実施の形態に係るキャプチャサーバ10と比較して、読出部12e、過去キャプチャログ記憶部13bを有する点が異なる。
First, the
キャプチャログ記憶部13aは、所定期間内に測定された遅延時間を含む、今回タイマ値を決定するためのキャプチャログを記憶する。これに対して、過去キャプチャログ記憶部13bは、以前にタイマ値を決定するために用いられた過去のキャプチャログを記憶する。例えば、過去キャプチャログ記憶部13bには、決定部12cによりタイマ値が決定されるたびに、キャプチャログ記憶部13aに記憶されたキャプチャログが、過去のキャプチャログとして記憶されるものとする。
The capture log storage unit 13a stores a capture log for determining a current timer value including a delay time measured within a predetermined period. On the other hand, the past capture log storage unit 13b stores a past capture log that was previously used to determine a timer value. For example, it is assumed that the capture log stored in the capture log storage unit 13a is stored as the past capture log every time the timer value is determined by the
読出部12eは、所定期間にキャプチャログ記憶部13aに格納された遅延時間のサンプル数が所定の閾値未満である場合には、所定期間よりも以前にキャプチャログ記憶部13aに格納された過去の遅延時間を過去キャプチャログ記憶部13bから読み出す。例えば、読出部12eは、各DBサーバ20間について、前回タイマ値を決定してから12時間以内にキャプチャログ記憶部13aに格納された遅延時間のサンプル数が所定の閾値未満であるか否かを判定する。この結果、読出部12eは、遅延時間のサンプル数が所定の閾値未満である場合には、該当するDBサーバ20間の遅延情報について、過去の遅延時間を、サンプル数が所定の閾値以上となる分だけ過去キャプチャログ記憶部13bから読み出す。 When the number of samples of the delay time stored in the capture log storage unit 13a in the predetermined period is less than the predetermined threshold, the reading unit 12e stores the past data stored in the capture log storage unit 13a before the predetermined period. The delay time is read from the past capture log storage unit 13b. For example, the reading unit 12e determines whether or not the number of samples of the delay time stored in the capture log storage unit 13a within 12 hours after determining the previous timer value for each DB server 20 is less than a predetermined threshold value. Determine. As a result, when the number of samples of the delay time is less than the predetermined threshold, the reading unit 12e sets the past delay time for the delay information between the corresponding DB servers 20 to the number of samples equal to or greater than the predetermined threshold. It reads from the past capture log memory | storage part 13b by the part.
算出部12bは、所定期間にキャプチャログ記憶部13aに格納された遅延時間と、過去の遅延時間とをDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。 The calculation unit 12b classifies the delay times stored in the capture log storage unit 13a during the predetermined period and the past delay times for each DB server 20, and calculates the average and variance of the delay times between the DB servers 20. To do.
ここで、図9を用いて、第二の実施の形態に係るキャプチャサーバ10Aによる一連のタイマ設定処理を説明する。図9は、第二の実施の形態に係るキャプチャサーバ10Aによる一連のタイマ設定処理を説明する図である。キャプチャサーバ10Aは、DBサーバ20aとDBサーバ20bとの間の通信を中継するネットワーク機器40a(図9では図示を省略)と、DBサーバ20aとDBサーバ20cとの間の通信を中継するネットワーク機器40b(図9では図示を省略)とからデータを取得する。ここで、図9の例では、DBサーバ20aとDBサーバ20bとの間の通信トラフィックが小さいものとする。
Here, a series of timer setting processes by the
そして、キャプチャサーバ10Aは、取得したデータからDBサーバ20aとDBサーバ20bとの間で行われる通信の遅延時間と、DBサーバ20aとDBサーバ20cとの間で行われる通信の遅延時間とを測定し、キャプチャログとしてキャプチャログ記憶部13aに格納する。
Then, the
そして、キャプチャサーバ10Aは、前回タイマ値を決定してから12時間以内にキャプチャログ記憶部13aに格納された遅延時間のサンプル数が所定の閾値未満であるか否かを判定し、例えば、DBサーバ20aとDBサーバ20cとの間で行われた通信の遅延時間のサンプル数が少ない場合には、DBサーバ20aとDBサーバ20cとの間で行われた通信の遅延情報について、過去の遅延時間を、サンプル数が所定の閾値以上となる分だけ過去キャプチャログ記憶部13bから読み出す。
Then, the
その後、キャプチャサーバ10Aは、所定期間にキャプチャログ記憶部13aに格納された遅延時間と、過去の遅延時間とをDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。
Thereafter, the
そして、キャプチャサーバ10Aは、DB1−DB2間で行われた通信の「TAT平均」と、DB1−DB2間で行われた通信の分散σの3倍の値である「3σ」とを加算した値を算出する。また、キャプチャサーバ10Aは、DB1−DB3間のタイマ値として、DB1−DB3間で行われた通信の「TAT平均」と、DB1−DB3間で行われた通信の分散σの3倍の値である「3σ」とを加算した値を算出する。そして、キャプチャサーバ10Aは、算出したタイマ値を各DBサーバ20に通知する。
Then, the
次に、図10を用いて、第二の実施の形態に係るキャプチャサーバによる処理手順の例を説明する。図10は、第二の実施の形態に係るキャプチャサーバによる処理を説明するフローチャートである。 Next, an example of a processing procedure performed by the capture server according to the second embodiment will be described with reference to FIG. FIG. 10 is a flowchart for explaining processing by the capture server according to the second embodiment.
図10に示すように、キャプチャサーバ10Aは、所定期間(例えば、12時間)が経過したか否かを判定する(ステップS201)。なお、ここで、所定期間が経過したとは、例えば、前回タイマ値を決定してから12時間が経過したことを意味する。ここで、キャプチャサーバ10Aは、所定期間が経過していない場合には(ステップS201否定)、所定期間が経過するまで、各DBサーバ20間で行われる通信の遅延時間を測定し、測定した遅延時間をキャプチャログ記憶部13aに格納する処理を繰り返すものとする。
As illustrated in FIG. 10, the
また、キャプチャサーバ10Aは、所定期間が経過した場合には(ステップS201肯定)、前回タイマ値を決定してから12時間以内にキャプチャログ記憶部13aに格納された遅延時間のサンプル数が所定の閾値未満であるか否かを判定する(ステップS202)。
In addition, when the predetermined period has elapsed (Yes in step S201), the
この結果、キャプチャサーバ10Aは、サンプル数が所定の閾値以上である場合には(ステップS202否定)、第一の実施の形態と同様に、各DBサーバ20間の遅延時間の平均および分散を算出し(ステップS204)、各DBサーバ20間の遅延時間の平均および分散を用いて、各DBサーバ20間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定し(ステップS205)、決定されたタイマ値を各DBサーバ20に通知する(ステップS206)。
As a result, when the number of samples is equal to or greater than the predetermined threshold (No at Step S202), the
また、キャプチャサーバ10Aは、サンプル数が所定の閾値未満である場合には(ステップS202肯定)、所定期間よりも以前にキャプチャログ記憶部13aに格納された過去の遅延時間を過去キャプチャログ記憶部13bから読み出す(ステップS203)。具体的には、キャプチャサーバ10Aは、遅延時間のサンプル数が所定の閾値未満である場合には、該当するDBサーバ20間の遅延情報について、過去の遅延時間を、サンプル数が所定の閾値以上となる分だけ過去キャプチャログ記憶部13bから読み出す。
Further, when the number of samples is less than the predetermined threshold value (Yes at Step S202), the
そして、キャプチャサーバ10Aは、所定期間にキャプチャログ記憶部13aに格納された遅延時間と、過去の遅延時間とをDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する(ステップS204)。続いて、キャプチャサーバ10Aは、算出した各DBサーバ20間の遅延時間の平均および分散を用いて、各DBサーバ20間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する(ステップS205)。そして、キャプチャサーバ10Aは、決定したタイマ値を各DBサーバ20に通知する(ステップS206)。
Then, the
[第二の実施の形態の効果]
このように、第二の実施の形態に係るキャプチャサーバ10Aは、所定期間にキャプチャログ記憶部13aに格納された遅延時間のサンプル数が所定の閾値未満である場合には、所定期間よりも以前にキャプチャログ記憶部13aに格納された過去の遅延時間を過去キャプチャログ記憶部13bから読み出す。そして、キャプチャサーバ10Aは、所定期間にキャプチャログ記憶部13aに格納された遅延時間と、過去の遅延時間とをDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。このため、キャプチャサーバ10Aは、DBサーバ20間の通信量が少ない場合であっても、過去のキャプチャログを利用することで、適切なタイマ値を各DBサーバ20に設定することが可能である。
[Effect of the second embodiment]
As described above, the
[システム構成等]
また、図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。さらに、各装置にて行なわれる各処理機能は、その全部または任意の一部が、CPUおよび当該CPUにて解析実行されるプログラムにて実現され、あるいは、ワイヤードロジックによるハードウェアとして実現され得る。
[System configuration, etc.]
Further, each component of each illustrated apparatus is functionally conceptual, and does not necessarily need to be physically configured as illustrated. In other words, the specific form of distribution / integration of each device is not limited to that shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions. Can be integrated and configured. Further, all or any part of each processing function performed in each device may be realized by a CPU and a program analyzed and executed by the CPU, or may be realized as hardware by wired logic.
また、本実施の形態において説明した各処理のうち、自動的におこなわれるものとして説明した処理の全部または一部を手動的におこなうこともでき、あるいは、手動的におこなわれるものとして説明した処理の全部または一部を公知の方法で自動的におこなうこともできる。この他、上記文書中や図面中で示した処理手順、制御手順、具体的名称、各種のデータやパラメータを含む情報については、特記する場合を除いて任意に変更することができる。 In addition, among the processes described in this embodiment, all or part of the processes described as being automatically performed can be manually performed, or the processes described as being manually performed All or a part of the above can be automatically performed by a known method. In addition, the processing procedure, control procedure, specific name, and information including various data and parameters shown in the above-described document and drawings can be arbitrarily changed unless otherwise specified.
[プログラム]
図11は、タイマ設定プログラムを実行するコンピュータを示す図である。コンピュータ1000は、例えば、メモリ1010、CPU(Central Processing Unit)1020を有する。また、コンピュータ1000は、ハードディスクドライブインタフェース1030、ディスクドライブインタフェース1040、シリアルポートインタフェース1050、ビデオアダプタ1060、ネットワークインタフェース1070を有する。これらの各部は、バス1080によって接続される。
[program]
FIG. 11 is a diagram illustrating a computer that executes a timer setting program. The
メモリ1010は、ROM(Read Only Memory)1011及びRAM1012を含む。ROM1011は、例えば、BIOS(Basic Input Output System)等のブートプログラムを記憶する。ハードディスクドライブインタフェース1030は、ハードディスクドライブ1090に接続される。ディスクドライブインタフェース1040は、ディスクドライブ1100に接続される。例えば磁気ディスクや光ディスク等の着脱可能な記憶媒体が、ディスクドライブ1100に挿入される。シリアルポートインタフェース1050は、例えばマウス1051、キーボード1052に接続される。ビデオアダプタ1060は、例えばディスプレイ1061に接続される。
The
ハードディスクドライブ1090は、例えば、OS1091、アプリケーションプログラム1092、プログラムモジュール1093、プログラムデータ1094を記憶する。すなわち、キャプチャサーバ10、10Aの各処理を規定するプログラムは、コンピュータにより実行可能なコードが記述されたプログラムモジュール1093として実装される。プログラムモジュール1093は、例えばハードディスクドライブ1090に記憶される。例えば、装置における機能構成と同様の処理を実行するためのプログラムモジュール1093が、ハードディスクドライブ1090に記憶される。なお、ハードディスクドライブ1090は、SSD(Solid State Drive)により代替されてもよい。
The hard disk drive 1090 stores, for example, an
また、上述した実施の形態の処理で用いられる設定データは、プログラムデータ1094として、例えばメモリ1010やハードディスクドライブ1090に記憶される。そして、CPU1020が、メモリ1010やハードディスクドライブ1090に記憶されたプログラムモジュール1093やプログラムデータ1094を必要に応じてRAM1012に読み出して実行する。
The setting data used in the processing of the above-described embodiment is stored as
なお、プログラムモジュール1093やプログラムデータ1094は、ハードディスクドライブ1090に記憶される場合に限らず、例えば着脱可能な記憶媒体に記憶され、ディスクドライブ1100等を介してCPU1020によって読み出されてもよい。あるいは、プログラムモジュール1093及びプログラムデータ1094は、ネットワーク(LAN(Local Area Network)、WAN(Wide Area Network)等)を介して接続された他のコンピュータに記憶されてもよい。そして、プログラムモジュール1093及びプログラムデータ1094は、他のコンピュータから、ネットワークインタフェース1070を介してCPU1020によって読み出されてもよい。
The
10、10A キャプチャサーバ
11 通信処理部
12 制御部
12a 測定部
12b 算出部
12c 決定部
12d 通知部
12e 読出部
13 記憶部
13a キャプチャログ記憶部
13b 過去キャプチャログ記憶部
20a、20b、20c DBサーバ
30 クライアントサーバ
100 分散DBシステム
10, 10A Capture server 11
Claims (5)
各DBサーバ間で行われる通信の遅延時間を測定し、測定した遅延時間を記憶部に格納する測定部と、
前記記憶部に記憶された遅延時間をDBサーバ間ごとに分類し、各DBサーバ間の遅延時間の平均および分散を算出する算出部と、
前記算出部によって算出された各DBサーバ間の遅延時間の平均および分散を用いて、各DBサーバ間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する決定部と、
を備えることを特徴とする分散DBシステム。 A distributed DB system that communicates between DB servers installed in different locations,
Measuring a delay time of communication performed between each DB server, and storing the measured delay time in a storage unit;
Classifying the delay times stored in the storage unit for each DB server, and calculating a mean and variance of the delay times between the DB servers;
A determination unit that determines a timer value set for each delay time of communication performed between the DB servers, using an average and variance of the delay times between the DB servers calculated by the calculation unit;
A distributed DB system comprising:
前記算出部は、前記所定期間に前記記憶部に格納された遅延時間と、前記過去の遅延時間とをDBサーバ間ごとに分類し、各DBサーバ間の遅延時間の平均および分散を算出することを特徴とする請求項3に記載の分散DBシステム。 When the number of samples of the delay time stored in the storage unit during the predetermined period is less than a predetermined threshold, a reading unit that reads a past delay time stored in the storage unit before the predetermined period In addition,
The calculation unit classifies the delay time stored in the storage unit during the predetermined period and the past delay time for each DB server, and calculates an average and variance of the delay times between the DB servers. The distributed DB system according to claim 3.
各DBサーバ間で行われる通信の遅延時間を測定し、測定した遅延時間を記憶部に格納する測定工程と、
前記記憶部に記憶された遅延時間をDBサーバ間ごとに分類し、各DBサーバ間の遅延時間の平均および分散を算出する算出工程と、
前記算出工程によって算出された各DBサーバ間の遅延時間の平均および分散を用いて、各DBサーバ間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する決定工程と、
を含んだことを特徴とするタイマ設定方法。 A timer setting method executed by a distributed DB system that communicates between DB servers installed in different places,
A measurement step of measuring a delay time of communication performed between each DB server, and storing the measured delay time in a storage unit;
A calculation step of classifying the delay times stored in the storage unit for each DB server, and calculating an average and variance of the delay times between the DB servers;
A determination step of determining a timer value set for each delay time of communication performed between the DB servers, using an average and variance of delay times between the DB servers calculated by the calculation step;
The timer setting method characterized by including.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017035133A JP6711768B2 (en) | 2017-02-27 | 2017-02-27 | Distributed DB system and timer setting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017035133A JP6711768B2 (en) | 2017-02-27 | 2017-02-27 | Distributed DB system and timer setting method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2018142807A true JP2018142807A (en) | 2018-09-13 |
JP6711768B2 JP6711768B2 (en) | 2020-06-17 |
Family
ID=63528301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017035133A Active JP6711768B2 (en) | 2017-02-27 | 2017-02-27 | Distributed DB system and timer setting method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6711768B2 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000253048A (en) * | 1999-02-26 | 2000-09-14 | Nec Corp | Data communication method, terminal, router, data communication system and its recording medium |
JP2008219408A (en) * | 2007-03-02 | 2008-09-18 | Ntt Docomo Inc | Communication device, communication system and method for controlling transmission |
WO2011114910A1 (en) * | 2010-03-15 | 2011-09-22 | 日本電気株式会社 | Packet retransmission control device, packet retransmission control method, and packet retransmission control program |
JP2015512583A (en) * | 2012-03-19 | 2015-04-27 | アップル インコーポレイテッド | Apparatus and method for mitigating backoff caused by TCP protocol in a communication network |
-
2017
- 2017-02-27 JP JP2017035133A patent/JP6711768B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000253048A (en) * | 1999-02-26 | 2000-09-14 | Nec Corp | Data communication method, terminal, router, data communication system and its recording medium |
JP2008219408A (en) * | 2007-03-02 | 2008-09-18 | Ntt Docomo Inc | Communication device, communication system and method for controlling transmission |
WO2011114910A1 (en) * | 2010-03-15 | 2011-09-22 | 日本電気株式会社 | Packet retransmission control device, packet retransmission control method, and packet retransmission control program |
JP2015512583A (en) * | 2012-03-19 | 2015-04-27 | アップル インコーポレイテッド | Apparatus and method for mitigating backoff caused by TCP protocol in a communication network |
Non-Patent Citations (1)
Title |
---|
伊藤 勇樹, 青島 史郎: "分散DB間リレー時間の遅延を考慮したサーバ応答制御方式 Control System of Server's Response Consider", 電子情報通信学会2016年総合大会講演論文集 通信2 PROCEEDINGS OF THE 2016 IEICE GENERAL CONFEREN, JPN6019046735, 1 March 2016 (2016-03-01), pages 21, ISSN: 0004165213 * |
Also Published As
Publication number | Publication date |
---|---|
JP6711768B2 (en) | 2020-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9929918B2 (en) | Profile-based SLA guarantees under workload migration in a distributed cloud | |
US10027743B2 (en) | Connection control device, connection control system, and non-transitory computer readable medium | |
JP6493400B2 (en) | Service chain management device, service chain management system, service chain management method, and program | |
CN103458036A (en) | Access device and method of cluster file system | |
EP2827559B1 (en) | Server system for providing current data and past data to clients | |
CN109560976B (en) | Message delay monitoring method and device | |
US11838822B2 (en) | Techniques for selecting network protocols | |
US10474518B1 (en) | Obtaining historical information in a device core dump | |
US10951707B2 (en) | Selection device, device selection method, and program | |
JP6711768B2 (en) | Distributed DB system and timer setting method | |
WO2019235101A1 (en) | Time-adding method, time-adding device, and program | |
US11423326B2 (en) | Using machine-learning methods to facilitate experimental evaluation of modifications to a computational environment within a distributed system | |
EP3113024A1 (en) | Network element monitoring | |
US11405261B1 (en) | Optimizing bandwidth utilization when exporting telemetry data from a network device | |
US11627063B1 (en) | Systems and methods for measuring unidirectional latency of applications over asymmetric links | |
CN112422613B (en) | Data processing method, data processing platform and computer readable storage medium | |
US11902370B2 (en) | Shared data management system | |
JP2017146669A (en) | Distribution db system and timer control method | |
US20230262146A1 (en) | Analyzing network data for debugging, performance, and identifying protocol violations using parallel multi-threaded processing | |
US20220038532A1 (en) | Information processing apparatus and non-transitory computer readable medium | |
KR102037002B1 (en) | Method for Estimating Performance of Distributed Data Processing System and Node device for the Distributed Data Processing System | |
KR20220055661A (en) | Edge service processing system and control method thereof | |
KR101563457B1 (en) | System and method for selecting neighbor node to guarantee service availability | |
US20180262562A1 (en) | Selection device, device selection method, and program | |
CN116684355A (en) | Distributed current limiting method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190220 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20191125 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20191203 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200122 |
|
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: 20200526 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200528 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6711768 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |