JP2018142807A - Distributed DB system and timer setting method - Google Patents

Distributed DB system and timer setting method Download PDF

Info

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
Application number
JP2017035133A
Other languages
Japanese (ja)
Other versions
JP6711768B2 (en
Inventor
勇樹 伊藤
Yuuki Ito
勇樹 伊藤
史郎 青島
Shiro Aoshima
史郎 青島
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 JP2017035133A priority Critical patent/JP6711768B2/en
Publication of JP2018142807A publication Critical patent/JP2018142807A/en
Application granted granted Critical
Publication of JP6711768B2 publication Critical patent/JP6711768B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To appropriately set a timer value for timeout.SOLUTION: A capture server 10 of a distributed DB system 100 measures a delay time of communication performed between each DB server 20 and each of other DB servers, and stores the measured delay time in a capture log storage unit 13a. Then, the capture server 10 classifies delay times stored in the capture log storage unit 13a by between each DB server 20 and each of other DB servers, and calculates an average and a variance of delay times between each DB server 20 and each of other DB servers. Next, the capture server 10 determines a timer value set for the delay time of communication performed between each DB server 20 and each of other DB servers using the calculated average and variance of the delay time between each DB server 20 and each of other DB servers.SELECTED DRAWING: Figure 1

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.

特開2014−239331号公報JP 2014-239331 A 特開平4−208791号公報JP-A-4-208791

しかしながら、従来の技術では、タイムアウトのタイマ値を適切に設定することができない場合があるという課題があった。つまり、従来の技術では、例えば、分散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.

図1は、第一の実施の形態に係る分散DBシステムの構成の一例を示す図である。FIG. 1 is a diagram illustrating an example of a configuration of a distributed DB system according to the first embodiment. 図2は、第一の実施の形態に係る分散DBシステムにおける遅延時間について説明する図である。FIG. 2 is a diagram for explaining the delay time in the distributed DB system according to the first embodiment. 図3は、第一の実施の形態に係るキャプチャサーバの構成を示すブロック図である。FIG. 3 is a block diagram showing the configuration of the capture server according to the first embodiment. 図4は、キャプチャログ記憶部に記憶される情報の一例を示す図である。FIG. 4 is a diagram illustrating an example of information stored in the capture log storage unit. 図5は、遅延時間を計測する処理を説明する図である。FIG. 5 is a diagram illustrating a process for measuring the delay time. 図6は、各DBサーバにタイマ値を通知する処理を説明する図である。FIG. 6 is a diagram for explaining processing for notifying each DB server of a timer value. 図7は、第一の実施の形態に係るキャプチャサーバによる処理を説明するフローチャートである。FIG. 7 is a flowchart for explaining processing by the capture server according to the first embodiment. 図8は、第二の実施の形態に係るキャプチャサーバの構成を示すブロック図である。FIG. 8 is a block diagram showing a configuration of a capture server according to the second embodiment. 図9は、第二の実施の形態に係るキャプチャサーバによる一連のタイマ設定処理を説明する図である。FIG. 9 is a diagram for explaining a series of timer setting processes by the capture server according to the second embodiment. 図10は、第二の実施の形態に係るキャプチャサーバによる処理を説明するフローチャートである。FIG. 10 is a flowchart for explaining processing by the capture server according to the second embodiment. 図11は、タイマ設定プログラムを実行するコンピュータを示す図である。FIG. 11 is a diagram illustrating a computer that executes a timer setting program.

以下に、本願に係る分散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 distributed DB system 100 according to the first embodiment includes a capture server 10, a plurality of DB servers 20a to 20c, a client server 30, and a plurality of network devices (described as NW devices in FIG. 1) 40a and 40b. The DB servers 20a to 20c have the same configuration, and are described as the DB server 20 when they are described without distinction. Each network device 40a, 40b has the same configuration, and will be referred to as a network device 40 when it is described without distinction. Moreover, the number of each apparatus shown in FIG. 1 is an example to the last, and is not restricted to this.

キャプチャサーバ10は、DBサーバ20間の通信を中継するネットワーク機器40からDBサーバ20間に流れるデータを取得する。そして、キャプチャサーバ10は、取得したデータからDBサーバ20間で行われる通信の遅延時間を測定し、キャプチャログとして後述するキャプチャログ記憶部13aに格納する。   The capture server 10 acquires data flowing between the DB servers 20 from the network device 40 that relays communication between the DB servers 20. And the capture server 10 measures the delay time of the communication performed between the DB servers 20 from the acquired data, and stores it in the capture log storage part 13a mentioned later as a capture log.

また、キャプチャサーバ10は、キャプチャログ記憶部13aに記憶された遅延時間をDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。そして、キャプチャサーバ10は、算出された各DBサーバ20間の遅延時間の平均および分散を用いて、各DBサーバ20間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する。   In addition, the capture server 10 classifies the delay times stored in the capture log storage unit 13 a for each DB server 20, and calculates the average and variance of the delay times between the DB servers 20. And the capture server 10 determines the timer value respectively set with respect to the delay time of the communication performed between each DB server 20 using the average and dispersion | distribution of the delay time between each DB server 20 calculated. .

各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 distributed DB system 100 according to the first embodiment will be described with reference to FIG. FIG. 2 is a diagram for explaining the delay time in the distributed DB system according to the first embodiment. As illustrated in FIG. 2, in the distributed DB system 100, each DB server 20 is installed at a position away from each other so that the entire system does not stop. For example, it is assumed that the DB server 20a is installed in Tokyo, the DB server 20b is installed in Osaka, and the DB server 20c is installed in New York. Each DB server 20 is connected via a network (not shown). In the example of FIG. 2, it is assumed that the DB server 20a accepts an access request from the client server 30.

例えば、DBサーバ20aは、クライアントサーバ30からアクセス要求を受け付けたデータをDBサーバ20bが収容している場合には、DBサーバ20bにアクセス要求を送信し、アクセス要求を受け付けたデータをDBサーバ20cが収容している場合には、DBサーバ20cにアクセス要求を送信する。   For example, when the DB server 20b accommodates the data for which the access request has been received from the client server 30, the DB server 20a transmits the access request to the DB server 20b, and the data for which the access request has been received is transmitted to the DB server 20c. If it is accommodated, an access request is transmitted to the DB server 20c.

ここで、図2に示すように、DBサーバ20aは、DBサーバ20bにアクセス要求を送信して応答を受信するまでの時間よりも、DBサーバ20cにアクセス要求を送信して応答を受信するまでの時間の方が長い。つまり、DBサーバ20aについて、DBサーバ20bとの通信における遅延が小さく、DBサーバ20cとの通信における遅延が大きいものとする。なお、以下の説明では、DBサーバ20aがクライアントサーバ30からアクセス要求を受け付けている例を用いて適宜説明する。   Here, as shown in FIG. 2, the DB server 20a transmits the access request to the DB server 20c and receives the response, rather than the time required to transmit the access request to the DB server 20b and receive the response. The time is longer. In other words, regarding the DB server 20a, it is assumed that the delay in communication with the DB server 20b is small and the delay in communication with the DB server 20c is large. In the following description, the DB server 20a will be described as appropriate using an example in which an access request is received from the client server 30.

クライアントサーバ30は、DBサーバ20aに対してアクセス要求を送信する。そして、クライアントサーバ30は、アクセス要求をしたデータをDBサーバ20aから受信する。ネットワーク機器40は、DBサーバ20間の通信を中継する機器であり、例えば、スイッチやルータ等である。例えば、ネットワーク機器40は、いわゆるポートミラーリング機能を有し、所定のポート経由するデータをコピーし、コピーしたデータを、キャプチャサーバ10に送信する。   The client server 30 transmits an access request to the DB server 20a. Then, the client server 30 receives the requested data from the DB server 20a. The network device 40 is a device that relays communication between the DB servers 20, and is, for example, a switch or a router. For example, the network device 40 has a so-called port mirroring function, copies data passing through a predetermined port, and transmits the copied data to the capture server 10.

[キャプチャサーバの構成]
次に、図3を用いて、図1に示したキャプチャサーバ10の構成を説明する。図3は、第一の実施の形態に係るキャプチャサーバ10の構成を示すブロック図である。図3に示すように、このキャプチャサーバ10は、通信処理部11、制御部12および記憶部13を有する。以下にこれらの各部の処理を説明する。
[Capture Server Configuration]
Next, the configuration of the capture server 10 shown in FIG. 1 will be described with reference to FIG. FIG. 3 is a block diagram showing the configuration of the capture server 10 according to the first embodiment. As illustrated in FIG. 3, the capture server 10 includes a communication processing unit 11, a control unit 12, and a storage unit 13. The processing of each of these units will be described below.

通信処理部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 control unit 12. The storage unit 13 includes a capture log storage unit 13 a particularly closely related to the present invention. For example, the storage unit 13 is a semiconductor memory device such as a RAM (Random Access Memory) or a flash memory, or a storage device such as a hard disk or an optical disk.

キャプチャログ記憶部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 DB server 20a is described as “DB1”, the DB server 20b is described as “DB2”, and the DB server 20c is described as “DB3”.

制御部12は、各種の処理手順などを規定したプログラムおよび所要データを格納するための内部メモリを有し、これらによって種々の処理を実行するが、特に本発明に密接に関連するものとしては、測定部12a、算出部12b、決定部12cおよび通知部12dを有する。   The control unit 12 has an internal memory for storing a program that defines various processing procedures and necessary data, and performs various processes using them, and particularly as closely related to the present invention, A measurement unit 12a, a calculation unit 12b, a determination unit 12c, and a notification unit 12d are included.

測定部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 capture server 10 acquires data from the network devices 40a and 40b for the sake of simplification. However, the present invention is not limited to this example. Data may be acquired.

図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 capture server 10 includes a network device 40a that relays communication between the DB server 20a and the DB server 20b, and a network device that relays communication between the DB server 20a and the DB server 20c. Data is acquired from 40b. Then, the measuring unit 12a measures the delay time of communication performed between the DB server 20a and the DB server 20b and the delay time of communication performed between the DB server 20a and the DB server 20c from the acquired data. And stored in the capture log storage unit 13a as a capture log.

算出部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 determination unit 12c uses the average and variance of the delay times between the DB servers 20 calculated by the calculation unit 12b, and sets timer values respectively set for the delay times of communication performed between the DB servers 20. decide. For example, the determination unit 12c determines, as a timer value, a value obtained by adding three times the variance to the average value of the delay times between the DB servers 20.

ここで、図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 determination unit 12c uses, as the timer value between DB1 and DB2, the TAT average of communication performed between DB1 and DB2 and three times the distribution σ of communication performed between DB1 and DB2. A value obtained by adding “3σ” which is the value of is calculated. In addition, the determination unit 12c uses the “TAT average” of communication performed between DB1 and DB3 as a timer value between DB1 and DB3, and a value three times the distribution σ of communication performed between DB1 and DB3. A value obtained by adding a certain “3σ” is calculated.

通知部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 notification unit 12d notifies each DB server 20 of the timer value determined by the determination unit 12c. For example, the notification unit 12d notifies the DB server 20a and the DB server 20b of the timer value between DB1 and DB2 determined by the determination unit 12c. Further, the notification unit 12d notifies the DB server 20a and the DB server 20c of the timer value between DB1 and DB3 determined by the determination unit 12c. When receiving the timer value, the DB server 20 sets the timer value in each IF (Interface) of the own device.

このように、キャプチャサーバ10は、各DBサーバ20間の通信経路を考慮したタイマ設計を自動的に行うことが可能である。また、キャプチャサーバ10は、分散DBシステム100構築後の通信経路変更の影響も考慮したタイマ設計を自動的に行うことが可能である。   As described above, the capture server 10 can automatically perform timer design in consideration of the communication path between the DB servers 20. In addition, the capture server 10 can automatically perform a timer design that takes into account the influence of a communication path change after the construction of the distributed DB system 100.

[キャプチャサーバの処理の流れ]
次に、図7を用いて、第一の実施の形態に係るキャプチャサーバ10の処理の流れを説明する。図7は、第一の実施の形態に係るキャプチャサーバによる処理を説明するフローチャートである。
[Capture server processing flow]
Next, a processing flow of the capture server 10 according to the first embodiment will be described with reference to FIG. FIG. 7 is a flowchart for explaining processing by the capture server according to the first embodiment.

図7に示すように、キャプチャサーバ10は、所定期間(例えば、12時間)が経過したか否かを判定する(ステップS101)。なお、ここで、所定期間が経過したとは、例えば、前回タイマ値を決定してから12時間が経過したことを意味する。ここで、キャプチャサーバ10は、所定期間が経過していない場合には(ステップS101否定)、所定期間が経過するまで、各DBサーバ20間で行われる通信の遅延時間を測定し、測定した遅延時間をキャプチャログ記憶部13aに格納する処理を繰り返すものとする。   As shown in FIG. 7, the capture server 10 determines whether or not a predetermined period (for example, 12 hours) has elapsed (step S101). Here, the elapse of the predetermined period means, for example, that 12 hours have elapsed since the last timer value was determined. Here, if the predetermined period has not elapsed (No at Step S101), the capture server 10 measures the delay time of communication performed between the DB servers 20 until the predetermined period elapses, and measures the measured delay. Assume that the process of storing the time in the capture log storage unit 13a is repeated.

また、キャプチャサーバ10は、所定期間が経過した場合には(ステップS101肯定)、キャプチャログ記憶部13aに記憶された遅延時間をDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する(ステップS102)。   Further, when the predetermined period has elapsed (Yes at Step S101), the capture server 10 classifies the delay times stored in the capture log storage unit 13a for each DB server 20, and delays between the DB servers 20. The average and variance are calculated (step S102).

続いて、キャプチャサーバ10は、算出した各DBサーバ20間の遅延時間の平均および分散を用いて、各DBサーバ20間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する(ステップS103)。そして、キャプチャサーバ10は、決定したタイマ値を各DBサーバ20に通知する(ステップS104)。   Subsequently, the capture server 10 determines a timer value set for each delay time of communication performed between the DB servers 20 using the calculated average and variance of the delay times between the DB servers 20. (Step S103). Then, the capture server 10 notifies each DB server 20 of the determined timer value (step S104).

[第一の実施の形態の効果]
このように、第一の実施の形態に係る分散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 capture server 10 of the distributed DB system 100 according to the first embodiment measures the delay time of communication performed between the DB servers 20, and stores the measured delay time in the capture log storage unit 13a. To do. The capture server 10 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. Subsequently, the capture server 10 determines a timer value to be set for each delay time of communication performed between the DB servers 20 using the calculated average and variance of the delay times between the DB servers 20. To do. Therefore, it is possible to appropriately set the timeout timer value.

つまり、キャプチャサーバ10は、各DBサーバ20間の通信経路を考慮したタイマ設計を自動的に行うことが可能である。また、キャプチャサーバ10は、分散DBシステム100構築後の通信経路変更の影響も考慮したタイマ設計を自動的に行うことが可能である。   That is, the capture server 10 can automatically perform timer design considering the communication path between the DB servers 20. In addition, the capture server 10 can automatically perform a timer design that takes into account the influence of a communication path change after the construction of the distributed DB system 100.

また、第一の実施の形態に係る分散DBシステム100のキャプチャサーバ10は、決定されたタイマ値を各DBサーバ20に通知する。このため、キャプチャサーバ10が、各DBサーバ20に対して、直接タイマ値を設定することが可能である。   Further, the capture server 10 of the distributed DB system 100 according to the first embodiment notifies each DB server 20 of the determined timer value. For this reason, the capture server 10 can directly set a timer value for each DB server 20.

また、第一の実施の形態に係る分散DBシステム100のキャプチャサーバ10は、所定期間に格納された遅延時間をDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。このため、キャプチャサーバ10は、所定期間に蓄積されたキャプチャログを用いて、適切な遅延時間の平均および分散を算出することが可能である。   Further, the capture server 10 of the distributed DB system 100 according to the first embodiment classifies the delay times stored in a predetermined period for each DB server 20, and averages and distributes the delay times between the DB servers 20. Is calculated. For this reason, the capture server 10 can calculate an appropriate average and variance of the delay time using the capture log accumulated in a predetermined period.

[第二の実施の形態]
上述した第二の実施の形態では、所定期間に格納された遅延時間を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 capture server 10A according to the second embodiment sets the past delay time to the past. A case will be described in which the average and variance of the delay times between the DB servers 20 are calculated by reading from the capture log storage unit 13b. In addition, description is abbreviate | omitted about the structure and process similar to the capture server 10 which concerns on 1st embodiment.

まず、図8を用いて、第二の実施の形態に係るキャプチャサーバ10Aについて説明する。図8は、第二の実施の形態に係るキャプチャサーバの構成を示すブロック図である。図8に示すように、第二の実施の形態に係るキャプチャサーバ10Aは、図3に示した第一の実施の形態に係るキャプチャサーバ10と比較して、読出部12e、過去キャプチャログ記憶部13bを有する点が異なる。   First, the capture server 10A according to the second embodiment will be described with reference to FIG. FIG. 8 is a block diagram showing a configuration of a capture server according to the second embodiment. As shown in FIG. 8, the capture server 10A according to the second embodiment has a reading unit 12e, a past capture log storage unit, as compared with the capture server 10 according to the first embodiment shown in FIG. The difference is that it has 13b.

キャプチャログ記憶部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 determination unit 12c in the past capture log storage unit 13b.

読出部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 capture server 10A according to the second embodiment will be described with reference to FIG. FIG. 9 is a diagram for explaining a series of timer setting processes by the capture server 10A according to the second embodiment. The capture server 10A includes a network device 40a (not shown in FIG. 9) that relays communication between the DB server 20a and the DB server 20b, and a network device that relays communication between the DB server 20a and the DB server 20c. Data is acquired from 40b (not shown in FIG. 9). Here, in the example of FIG. 9, it is assumed that the communication traffic between the DB server 20a and the DB server 20b is small.

そして、キャプチャサーバ10Aは、取得したデータからDBサーバ20aとDBサーバ20bとの間で行われる通信の遅延時間と、DBサーバ20aとDBサーバ20cとの間で行われる通信の遅延時間とを測定し、キャプチャログとしてキャプチャログ記憶部13aに格納する。   Then, the capture server 10A measures the delay time of communication performed between the DB server 20a and the DB server 20b and the delay time of communication performed between the DB server 20a and the DB server 20c from the acquired data. And stored in the capture log storage unit 13a as a capture log.

そして、キャプチャサーバ10Aは、前回タイマ値を決定してから12時間以内にキャプチャログ記憶部13aに格納された遅延時間のサンプル数が所定の閾値未満であるか否かを判定し、例えば、DBサーバ20aとDBサーバ20cとの間で行われた通信の遅延時間のサンプル数が少ない場合には、DBサーバ20aとDBサーバ20cとの間で行われた通信の遅延情報について、過去の遅延時間を、サンプル数が所定の閾値以上となる分だけ過去キャプチャログ記憶部13bから読み出す。   Then, the capture server 10A 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 is less than a predetermined threshold, for example, DB When the number of samples of the delay time of the communication performed between the server 20a and the DB server 20c is small, the past delay time for the delay information of the communication performed between the DB server 20a and the DB server 20c. Are read from the past capture log storage unit 13b by an amount corresponding to the number of samples exceeding a predetermined threshold.

その後、キャプチャサーバ10Aは、所定期間にキャプチャログ記憶部13aに格納された遅延時間と、過去の遅延時間とをDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。   Thereafter, the capture server 10A 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 averages and distributes the delay times between the DB servers 20. Is calculated.

そして、キャプチャサーバ10Aは、DB1−DB2間で行われた通信の「TAT平均」と、DB1−DB2間で行われた通信の分散σの3倍の値である「3σ」とを加算した値を算出する。また、キャプチャサーバ10Aは、DB1−DB3間のタイマ値として、DB1−DB3間で行われた通信の「TAT平均」と、DB1−DB3間で行われた通信の分散σの3倍の値である「3σ」とを加算した値を算出する。そして、キャプチャサーバ10Aは、算出したタイマ値を各DBサーバ20に通知する。   Then, the capture server 10A adds “TAT average” of communication performed between DB1 and DB2 and “3σ” which is a value three times the variance σ of communication performed between DB1 and DB2. Is calculated. Further, the capture server 10A uses a value that is three times the “TAT average” of the communication performed between DB1 and DB3 and the variance σ of the communication performed between DB1 and DB3 as the timer value between DB1 and DB3. A value obtained by adding a certain “3σ” is calculated. Then, the capture server 10A notifies each DB server 20 of the calculated timer value.

次に、図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 capture server 10A determines whether or not a predetermined period (for example, 12 hours) has elapsed (step S201). Here, the elapse of the predetermined period means, for example, that 12 hours have elapsed since the last timer value was determined. Here, if the predetermined period has not elapsed (No at Step S201), the capture server 10A measures the delay time of communication performed between the DB servers 20 until the predetermined period elapses, and measures the measured delay. Assume that the process of storing the time in the capture log storage unit 13a is repeated.

また、キャプチャサーバ10Aは、所定期間が経過した場合には(ステップS201肯定)、前回タイマ値を決定してから12時間以内にキャプチャログ記憶部13aに格納された遅延時間のサンプル数が所定の閾値未満であるか否かを判定する(ステップS202)。   In addition, when the predetermined period has elapsed (Yes in step S201), the capture server 10A determines that the number of samples of the delay time stored in the capture log storage unit 13a within a predetermined 12 hours after determining the previous timer value is predetermined. It is determined whether it is less than the threshold value (step S202).

この結果、キャプチャサーバ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 capture server 10A calculates the average and variance of the delay times between the DB servers 20 as in the first embodiment. (Step S204), and using the average and variance of the delay times between the DB servers 20, the timer values set for the delay times of the communications performed between the DB servers 20 are determined (Step S205). The determined timer value is notified to each DB server 20 (step S206).

また、キャプチャサーバ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 capture server 10A determines the past delay time stored in the capture log storage unit 13a before the predetermined period as the past capture log storage unit. Read from 13b (step S203). Specifically, when the number of samples of the delay time is less than a predetermined threshold, the capture server 10A sets the past delay time for the delay information between the corresponding DB servers 20, and the number of samples is equal to or greater than the predetermined threshold. Are read from the past capture log storage unit 13b.

そして、キャプチャサーバ10Aは、所定期間にキャプチャログ記憶部13aに格納された遅延時間と、過去の遅延時間とをDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する(ステップS204)。続いて、キャプチャサーバ10Aは、算出した各DBサーバ20間の遅延時間の平均および分散を用いて、各DBサーバ20間で行われる通信の遅延時間に対してそれぞれ設定されるタイマ値を決定する(ステップS205)。そして、キャプチャサーバ10Aは、決定したタイマ値を各DBサーバ20に通知する(ステップS206)。   Then, the capture server 10A 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 averages and distributes the delay times between the DB servers 20. Is calculated (step S204). Subsequently, the capture server 10 </ b> A determines a timer value set for each delay time of communication performed between the DB servers 20 using the calculated average and variance of the delay times between the DB servers 20. (Step S205). Then, the capture server 10A notifies each DB server 20 of the determined timer value (step S206).

[第二の実施の形態の効果]
このように、第二の実施の形態に係るキャプチャサーバ10Aは、所定期間にキャプチャログ記憶部13aに格納された遅延時間のサンプル数が所定の閾値未満である場合には、所定期間よりも以前にキャプチャログ記憶部13aに格納された過去の遅延時間を過去キャプチャログ記憶部13bから読み出す。そして、キャプチャサーバ10Aは、所定期間にキャプチャログ記憶部13aに格納された遅延時間と、過去の遅延時間とをDBサーバ20間ごとに分類し、各DBサーバ20間の遅延時間の平均および分散を算出する。このため、キャプチャサーバ10Aは、DBサーバ20間の通信量が少ない場合であっても、過去のキャプチャログを利用することで、適切なタイマ値を各DBサーバ20に設定することが可能である。
[Effect of the second embodiment]
As described above, the capture server 10A according to the second embodiment, 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, is earlier than the predetermined period. The past delay time stored in the capture log storage unit 13a is read from the past capture log storage unit 13b. Then, the capture server 10A 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 averages and distributes the delay times between the DB servers 20. Is calculated. For this reason, the capture server 10A can set an appropriate timer value in each DB server 20 by using the past capture log even when the communication amount between the DB servers 20 is small. .

[システム構成等]
また、図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。さらに、各装置にて行なわれる各処理機能は、その全部または任意の一部が、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 computer 1000 includes, for example, a memory 1010 and a CPU (Central Processing Unit) 1020. The computer 1000 also includes a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These units are connected by a bus 1080.

メモリ1010は、ROM(Read Only Memory)1011及びRAM1012を含む。ROM1011は、例えば、BIOS(Basic Input Output System)等のブートプログラムを記憶する。ハードディスクドライブインタフェース1030は、ハードディスクドライブ1090に接続される。ディスクドライブインタフェース1040は、ディスクドライブ1100に接続される。例えば磁気ディスクや光ディスク等の着脱可能な記憶媒体が、ディスクドライブ1100に挿入される。シリアルポートインタフェース1050は、例えばマウス1051、キーボード1052に接続される。ビデオアダプタ1060は、例えばディスプレイ1061に接続される。   The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM 1012. The ROM 1011 stores a boot program such as BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to the hard disk drive 1090. The disk drive interface 1040 is connected to the disk drive 1100. For example, a removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to a mouse 1051 and a keyboard 1052, for example. The video adapter 1060 is connected to the display 1061, for example.

ハードディスクドライブ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 OS 1091, an application program 1092, a program module 1093, and program data 1094. That is, the program that defines each process of the capture servers 10 and 10A is implemented as a program module 1093 in which code executable by a computer is described. The program module 1093 is stored in the hard disk drive 1090, for example. For example, a program module 1093 for executing processing similar to the functional configuration in the apparatus is stored in the hard disk drive 1090. The hard disk drive 1090 may be replaced by an SSD (Solid State Drive).

また、上述した実施の形態の処理で用いられる設定データは、プログラムデータ1094として、例えばメモリ1010やハードディスクドライブ1090に記憶される。そして、CPU1020が、メモリ1010やハードディスクドライブ1090に記憶されたプログラムモジュール1093やプログラムデータ1094を必要に応じてRAM1012に読み出して実行する。   The setting data used in the processing of the above-described embodiment is stored as program data 1094 in, for example, the memory 1010 or the hard disk drive 1090. Then, the CPU 1020 reads the program module 1093 and the program data 1094 stored in the memory 1010 and the hard disk drive 1090 to the RAM 1012 and executes them as necessary.

なお、プログラムモジュール1093やプログラムデータ1094は、ハードディスクドライブ1090に記憶される場合に限らず、例えば着脱可能な記憶媒体に記憶され、ディスクドライブ1100等を介してCPU1020によって読み出されてもよい。あるいは、プログラムモジュール1093及びプログラムデータ1094は、ネットワーク(LAN(Local Area Network)、WAN(Wide Area Network)等)を介して接続された他のコンピュータに記憶されてもよい。そして、プログラムモジュール1093及びプログラムデータ1094は、他のコンピュータから、ネットワークインタフェース1070を介してCPU1020によって読み出されてもよい。   The program module 1093 and the program data 1094 are not limited to being stored in the hard disk drive 1090, but may be stored in, for example, a removable storage medium and read out by the CPU 1020 via the disk drive 1100 or the like. Alternatively, the program module 1093 and the program data 1094 may be stored in another computer connected via a network (LAN (Local Area Network), WAN (Wide Area Network), etc.). Then, the program module 1093 and the program data 1094 may be read by the CPU 1020 from another computer via the network interface 1070.

10、10A キャプチャサーバ
11 通信処理部
12 制御部
12a 測定部
12b 算出部
12c 決定部
12d 通知部
12e 読出部
13 記憶部
13a キャプチャログ記憶部
13b 過去キャプチャログ記憶部
20a、20b、20c DBサーバ
30 クライアントサーバ
100 分散DBシステム
10, 10A Capture server 11 Communication processing unit 12 Control unit 12a Measurement unit 12b Calculation unit 12c Determination unit 12d Notification unit 12e Reading unit 13 Storage unit 13a Capture log storage unit 13b Past capture log storage unit 20a, 20b, 20c DB server 30 Client Server 100 Distributed DB system

Claims (5)

それぞれ異なる場所に設置された各DBサーバ同士で通信を行う分散DBシステムであって、
各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サーバに通知する通知部をさらに備えることを特徴とする請求項1に記載の分散DBシステム。   The distributed DB system according to claim 1, further comprising a notification unit that notifies each DB server of the timer value determined by the determination unit. 前記算出部は、所定期間に格納された遅延時間をDBサーバ間ごとに分類し、各DBサーバ間の遅延時間の平均および分散を算出することを特徴とする請求項1に記載の分散DBシステム。   2. The distributed DB system according to claim 1, wherein the calculation unit classifies delay times stored in a predetermined period for each DB server, and calculates an average and variance of the delay times between the DB servers. . 前記所定期間に前記記憶部に格納された遅延時間のサンプル数が所定の閾値未満である場合には、前記所定期間よりも以前に前記記憶部に格納された過去の遅延時間を読み出す読出部をさらに備え、
前記算出部は、前記所定期間に前記記憶部に格納された遅延時間と、前記過去の遅延時間とを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サーバ間の遅延時間の平均および分散を算出する算出工程と、
前記算出工程によって算出された各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.
JP2017035133A 2017-02-27 2017-02-27 Distributed DB system and timer setting method Active JP6711768B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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