JP2010011157A - Method of controlling and sorting access to database - Google Patents

Method of controlling and sorting access to database Download PDF

Info

Publication number
JP2010011157A
JP2010011157A JP2008168950A JP2008168950A JP2010011157A JP 2010011157 A JP2010011157 A JP 2010011157A JP 2008168950 A JP2008168950 A JP 2008168950A JP 2008168950 A JP2008168950 A JP 2008168950A JP 2010011157 A JP2010011157 A JP 2010011157A
Authority
JP
Japan
Prior art keywords
information
database
distribution control
client node
control management
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
JP2008168950A
Other languages
Japanese (ja)
Other versions
JP5120105B2 (en
Inventor
Yasuhiro Shimizu
康玄 清水
Hiroyasu Bando
弘泰 板東
Yoshihito Morishige
嘉人 守重
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2008168950A priority Critical patent/JP5120105B2/en
Publication of JP2010011157A publication Critical patent/JP2010011157A/en
Application granted granted Critical
Publication of JP5120105B2 publication Critical patent/JP5120105B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reduce processing load by partitioning and improve processing speed concerning even processing different from processing of an object for partitioning in an environment accessing to the partitioned database. <P>SOLUTION: The method of controlling sorting of access to database includes: a step to determine a memory area in a database on the basis of features of registration information when receiving an information registration request from a client node and to register the memory area in the database together with a specific sorting control management information; a step to transmit the sorting control management information including a response to the information registration request to the client node; and a step to specify the memory area of the database on the basis of the sorting control management information accompanied with an information update request when receiving the information update request from the client node and to update the registration information. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、プレゼンスサービスシステム等のクライアントノードに対してサービスを提供するシステムにおけるデータベースのアクセス制御技術に関する。   The present invention relates to a database access control technique in a system that provides services to client nodes such as a presence service system.

プレゼンスサービスとは、ネットワーク上のユーザ(クライアント)の状態、例えば「オンライン」「離席中」「会議中」等を、リアルタイムで他のユーザ(クライアント)に通知するサービスである。一般的にSIMPLE(SIP(Session Initiation Protocol) for Instant Messaging and Presence Leveraging Extensions)プロトコルが使用される。このようなプレゼンスサービスを提供するプレゼンスサービスシステムでは、データベースに対してユーザ毎のプレゼンス情報の登録・更新が行われるほか、データベース上の登録情報に対してエクスパイア(Expire)時刻に達したか否かのエクスパイア管理が定期的に行われる。   The presence service is a service for notifying other users (clients) in real time of the status of users (clients) on the network, for example, “online”, “away from seat”, “meeting”. Generally, a SIMPLE (SIP (Session Initiation Protocol) for Instant Messaging and Presence Leveraging Extensions) protocol is used. In a presence service system that provides such a presence service, presence information for each user is registered and updated in the database, and whether or not an expire time has been reached for the registration information in the database. Expire management is regularly conducted.

図1は従来のプレゼンスサービスシステムにおけるエクスパイア管理およびプレゼンス更新の概要を示す図である。例えば現在時刻「10時15分12秒」にエクスパイア管理の処理を開始したとすると、データベース上の各登録情報のエクスパイア時刻と現在時刻を比較照合し、期限切れになった登録情報を特定する。また、エクスパイア管理の処理とは非同期に、プレゼンス情報の登録および更新が行われる。図ではユーザ「FFF@example.co.jp」に対してプレゼンス更新が行われた状態を示しており、データベース上の「ユーザ(SIP−URI)」部分から「FFF@example.co.jp」に一致するものが特定され、その「プレゼンス情報」が更新される。   FIG. 1 is a diagram showing an outline of expire management and presence update in a conventional presence service system. For example, assuming that the expire management process is started at the current time “10:15:12”, the expire time of each registration information on the database is compared with the current time, and the expired registration information is specified. Also, presence information is registered and updated asynchronously with the expire management process. The figure shows a state in which presence update is performed for the user “FFF@example.co.jp”, and the “user (SIP-URI)” portion on the database changes to “FFF@example.co.jp”. A match is identified and its “presence information” is updated.

このような処理方式によると、エクスパイア管理の処理により周期的にデータベースの全件検索が発生してしまい、登録されているユーザが多数いた場合などは、大きな処理時間が必要となってしまうことが懸念される。また、プレゼンス更新の処理などのように、エクスパイア管理の処理とは別の処理によるデータベースへのアクセスが発生した際に、エクスパイア管理の処理との間にデータベースアクセスにおける競合が発生し、一方の処理において中断による待ち時間が発生してしまい、性能に影響を与える可能性がある。   According to such a processing method, the entire search of the database occurs periodically due to the processing of the expire management, and a large processing time may be required when there are many registered users. Concerned. In addition, when access to the database is performed by a process separate from the expire management process, such as presence update processing, a conflict occurs in the database access with the expire management process. May cause a waiting time due to interruption, which may affect performance.

一方、データベースの機能の1つにパーティショニングと呼ばれる手法がある(特許文献1等を参照。)。これは、データベース上の記憶領域を分割し、登録情報の特徴に応じて記憶領域を異ならせ、検索する範囲を限定することで処理の高速化を図るとともに、複数のプロセッサを用いたシステムにおいてデータベースへの処理を並列に実行することにより処理の高速化を図るものである。   On the other hand, there is a technique called partitioning as one of the functions of the database (see Patent Document 1). This is because the storage area on the database is divided, the storage area is made different according to the characteristics of the registered information, the search range is limited, and the processing speed is increased, and the database is used in a system using a plurality of processors. The processing is speeded up by executing the processes in parallel.

図2はデータベースのパーティショニングを行った従来のプレゼンスサービスシステムにおけるエクスパイア管理およびプレゼンス更新の概要を示す図である。ここでは、登録情報の特徴として、エクスパイア管理に用いるエクスパイア時刻の「分」の部分に着目し、分の値を分割キー情報(振り分け制御管理情報)とするとともに、分の値ごとにデータベース上の異なる記憶領域であるテーブルT1〜T6、・・に情報を登録するようにしている。従って、例えば現在時刻「10時15分12秒」にエクスパイア管理の処理を開始したとすると、現在時刻「10時15分12秒」の分の部分「15分」を分割キー情報として、同じ分割キー情報の値を持つデータベース上の記憶領域であるテーブルT1を特定し、その中での各登録情報のエクスパイア時刻と現在時刻を比較照合し、期限切れになった登録情報を特定する。図では分割キー情報「15分」に対応するテーブルT1に2つの登録情報がある場合を示しているが、0〜59分のいずれかに登録情報が分散されるため、ユーザ数が多くても検索対象となる登録情報が減少し、周期的な処理の集中ならびにプレゼンス更新の処理との競合が緩和される。
特開平7−319923号公報
FIG. 2 is a diagram showing an outline of expire management and presence update in a conventional presence service system in which database partitioning is performed. Here, as a feature of the registration information, focusing on the “minute” portion of the expire time used for expire management, the minute value is used as split key information (distribution control management information), and each minute value is stored on the database. Information is registered in tables T1 to T6, which are different storage areas. Therefore, for example, if the expire management process is started at the current time “10:15:12”, the portion “15 minutes” of the current time “10:15:12” is used as the division key information, and the same division is performed. The table T1, which is a storage area on the database having the key information value, is specified, and the expire time and the current time of each registration information in the registration information are compared and checked, and the expired registration information is specified. Although the figure shows a case where there are two pieces of registration information in the table T1 corresponding to the divided key information “15 minutes”, the registration information is distributed to any one of 0 to 59 minutes, so even if the number of users is large. Registration information to be searched is reduced, and the concentration of periodic processing and competition with presence update processing are alleviated.
Japanese Unexamined Patent Publication No. 7-319923

図2に示した処理方式では、エクスパイア管理による周期的な処理の集中ならびにプレゼンス更新の処理との競合が緩和されるものではあるが、プレゼンス更新の処理についてはパーティショニングの効果が発揮できないという問題があった。   In the processing method shown in FIG. 2, although the concentration of the periodic processing by the expire management and the conflict with the presence update processing are alleviated, there is a problem in that the effect of partitioning cannot be exhibited for the presence update processing. was there.

すなわち、図2ではエクスパイア管理に用いるエクスパイア時刻の分の部分を分割キー情報としているため、エクスパイア管理の処理についてはパーティショニングの効果がある。しかし、パーティショニングによって分割されたデータベースに対して格納されたデータへ効果的にアクセスするには分割キー情報が必要となるところ、エクスパイア管理とは別のプレゼンス更新の処理では分割キー情報を知ることはできず、結果的に全ての分割された記憶領域にアクセスしなければならない。図2では、ユーザ「FFF@example.co.jp」に対してプレゼンス更新が行われた状態を示しているが、ユーザの情報から分割キー情報を知ることはできないため、データベース上の全ての分割された記憶領域にアクセスし、その中の登録情報の「ユーザ(SIP−URI)」部分から「FFF@example.co.jp」に一致するものを特定した上で、その「プレゼンス情報」を更新しなければならない。そのため、パーティショニングによる効果は期待できない。   That is, in FIG. 2, the portion of the expire time used for expire management is used as the split key information, so that the expiration management process has the effect of partitioning. However, partition key information is required to effectively access the data stored in the database partitioned by partitioning, and knowing the partition key information in the presence update process separate from the expire management. As a result, all the divided storage areas must be accessed. FIG. 2 shows a state in which presence update is performed for the user “FFF@example.co.jp”, but since the division key information cannot be obtained from the user information, all the divisions on the database are performed. Access to the stored storage area, specify the one that matches "FFF@example.co.jp" from the "user (SIP-URI)" portion of the registration information, and update the "presence information" Must. Therefore, the effect of partitioning cannot be expected.

また、データベース上にパーティショニングの分割キー情報を管理するための管理テーブルを新たに作成することが考えられるが、その場合、プレゼンス更新によるデータベースアクセスは、
(1)管理テーブルによる更新したいデータの分割キー情報の検索
(2)取得した分割キー情報を基にした更新の実施
の2段階の処理となり、1ステップ処理が追加となる。
In addition, it is possible to create a new management table for managing partitioning partition key information on the database.
(1) Retrieval of split key information of data to be updated using management table (2) Update process based on acquired split key information is a two-step process, and a one-step process is added.

また、上記(1)の処理はすべてのユーザからプレゼンス更新が要求されるたびに行われるため、管理テーブルにアクセスが集中してしまい、データベースへのアクセス待ちとなる可能性も考えられる。   Further, since the process (1) is performed every time presence update is requested by all users, there is a possibility that access is concentrated on the management table and waiting for access to the database.

なお、プレゼンスサービスシステムにおけるエクスパイア管理およびプレゼンス更新の処理を例として説明したが、他のサービス提供システムにおいても、パーティショニングを行ったデータベースに対して異なる処理がアクセスを行う環境では同様に生じ得る問題である。   Although the expiration management and presence update processing in the presence service system has been described as an example, problems that may occur similarly in other service providing systems in an environment where different processing accesses the partitioned database. It is.

上記の従来の問題点に鑑み、パーティショニングを行ったデータベースに対してアクセスを行う環境において、パーティショニングの対象となった処理とは異なる処理についてもパーティショニングによる処理負荷の軽減および処理速度の向上を図ることを目的とする。   In view of the conventional problems described above, in an environment in which access is made to a database that has been partitioned, processing that is different from the processing targeted for partitioning can be reduced and processing speed can be improved by partitioning. It aims to plan.

このデータベースアクセス振り分け制御方法の一実施態様では、クライアントノードから情報登録要求を受信した場合に、登録情報の特徴に基づいてデータベース上の記憶領域を決定し、当該記憶領域を特定する振り分け制御管理情報を伴って前記データベースに登録する工程と、前記情報登録要求に対する応答に含めて、前記振り分け制御管理情報を前記クライアントノードに送信する工程と、前記クライアントノードから情報更新要求を受信した場合に、当該情報更新要求に伴われた振り分け制御管理情報に基づいて前記データベースの記憶領域を特定し、登録情報を更新する工程とを備える。   In one embodiment of the database access distribution control method, when an information registration request is received from a client node, a storage area on the database is determined based on the characteristics of the registration information, and the distribution control management information for specifying the storage area Including the step of registering in the database, the step of transmitting the distribution control management information to the client node in a response to the information registration request, and the case of receiving an information update request from the client node, And a step of identifying the storage area of the database based on the distribution control management information accompanying the information update request and updating the registration information.

好ましくは、前記登録情報の更新に際し、更新後の登録情報の特徴に基づいて前記データベース上の記憶領域を決定し、当該記憶領域を特定する新たな振り分け制御管理情報を伴って前記データベースに登録する工程と、前記情報更新要求に対する応答に含めて、前記新たな振り分け制御管理情報を前記クライアントノードに送信する工程とを更に備える。   Preferably, when the registration information is updated, a storage area on the database is determined based on characteristics of the updated registration information, and is registered in the database with new distribution control management information for specifying the storage area. And a step of transmitting the new distribution control management information to the client node in a response to the information update request.

開示のデータベースアクセス振り分け制御方法にあっては、クライアントノードからの情報登録要求への応答に含めて振り分け制御管理情報をクライアントノードに送信し、クライアントノードはその振り分け制御管理情報を用いて情報更新要求を行うことで、パーティショニングの対象となった処理とは異なる処理についてもパーティショニングによる処理負荷の軽減および処理速度の向上を図ることができる。   In the disclosed database access distribution control method, distribution control management information is transmitted to the client node in response to the information registration request from the client node, and the client node uses the distribution control management information to send an information update request. By performing the above, it is possible to reduce the processing load and improve the processing speed of the processing different from the processing subject to partitioning.

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

<構成>
図3は本発明の一実施形態にかかるプレゼンスサービスシステムの構成例を示す図である。
<Configuration>
FIG. 3 is a diagram showing a configuration example of a presence service system according to an embodiment of the present invention.

図3において、プレゼンスサービスシステムは、クライアントノード群1とアプリケーションサーバノード群2とデータベースノード3とを備えている。クライアントノード群1にはクライアントノード11、12、・・が含まれ、アプリケーションサーバノード群2にはアプリケーションサーバノード21、22、23、・・が含まれ、データベースノード3にはデータベース管理システム31とディスク(共有ディスク)32とが含まれている。   In FIG. 3, the presence service system includes a client node group 1, an application server node group 2, and a database node 3. The client node group 1 includes client nodes 11, 12,..., The application server node group 2 includes application server nodes 21, 22, 23,. Disk (shared disk) 32.

プレゼンスサービスの提供にあたり、クライアントノード群1のクライアントノード11、12、・・とアプリケーションサーバノード群2のアプリケーションサーバノード21、22、23、・・の間でSIP/SIMPLEプロトコルに従った通信が行われ、アプリケーションサーバノード群2のアプリケーションサーバノード21、22、23、・・はデータベースノード3のデータベース管理システム31を介してディスク32にアクセスを行う。   In providing the presence service, communication according to the SIP / SIMPLE protocol is performed between the client nodes 11, 12,... Of the client node group 1 and the application server nodes 21, 22, 23,. The application server nodes 21, 22, 23,... Of the application server node group 2 access the disk 32 via the database management system 31 of the database node 3.

図4は本発明の一実施形態にかかるプレゼンスサービスシステムの他の構成例を示す図であり、アプリケーションサーバノード群2において、アプリケーションサーバノード21、22、23、・・の前段に負荷を分散するためのロードバランサ20が設けられている。この場合、クライアントノード群1のクライアントノード11、12、・・は、いったんアプリケーションサーバノード群2のロードバランサ20にアクセスし、ロードバランサ20から負荷状態に応じてアプリケーションサーバノード21、22、23、・・に処理が分散される。   FIG. 4 is a diagram showing another configuration example of the presence service system according to the embodiment of the present invention. In the application server node group 2, the load is distributed before the application server nodes 21, 22, 23,. A load balancer 20 is provided. In this case, the client nodes 11, 12,... Of the client node group 1 once access the load balancer 20 of the application server node group 2, and the application server nodes 21, 22, 23,.・ ・ Processing is distributed to.

図5は図3および図4におけるアプリケーションサーバノード群2のアプリケーションサーバノード21、22、23、・・の構成例を示す図である。図5において、アプリケーションサーバノード21、22、23、・・は、クライアントノード側からの信号を受信する信号受信部201と、受信信号を解析する受信信号解析部202と、受信信号の解析結果に応じてデータベースノード3にアクセスを行うデータベースアクセス部203と、データベースノード3へのアクセス結果に基づいて応答信号を生成する応答信号生成部204と、生成された応答信号をクライアントノード側に送信する信号送信部205とを備えている。   FIG. 5 is a diagram showing a configuration example of the application server nodes 21, 22, 23,... Of the application server node group 2 in FIGS. 5, the application server nodes 21, 22, 23,... Include a signal receiving unit 201 that receives a signal from the client node side, a received signal analyzing unit 202 that analyzes the received signal, and an analysis result of the received signal. In response, the database access unit 203 that accesses the database node 3, a response signal generation unit 204 that generates a response signal based on the access result to the database node 3, and a signal that transmits the generated response signal to the client node side A transmission unit 205.

<動作>
図6は上記の実施形態の処理例を示す図であり、図7はその際のクライアントノード11、アプリケーションサーバノード22、23間の処理を示すシーケンス図である。
<Operation>
FIG. 6 is a diagram showing a processing example of the above embodiment, and FIG. 7 is a sequence diagram showing processing between the client node 11 and the application server nodes 22 and 23 at that time.

図6および図7において、先ず、クライアントノード11から任意のアプリケーションサーバノード22へ情報登録要求信号「PUBLISH(Initial)要求」を送信する(ステップS1)。図8(a)はクライアントノード11からアプリケーションサーバノード22へ送信される情報登録要求信号「PUBLISH(Initial)要求」の例を示している。   6 and 7, first, an information registration request signal “PUBLISH (Initial) request” is transmitted from the client node 11 to an arbitrary application server node 22 (step S1). FIG. 8A shows an example of an information registration request signal “PUBLISH (Initial) request” transmitted from the client node 11 to the application server node 22.

アプリケーションサーバノード22では、クライアントノード11からの情報登録要求信号「PUBLISH(Initial)要求」を信号受信部201が受信し、受信信号解析部202は受信信号を解析して情報登録要求であることを認識する。そして、受信信号解析部202はエクスパイア時刻を計算し、データベースアクセス部203からデータベースノード3のデータベース管理システム31を介して、パーティショニングされたディスク32内にあるテーブルT2の記憶領域にデータを格納する(ステップS2)。すなわち、エクスパイア管理に用いるエクスパイア時刻の「分」の部分に着目し、分の値を分割キー情報(振り分け制御管理情報)とするとともに、分の値に対応するデータベース上のテーブルT2に情報を登録する。   In the application server node 22, the signal reception unit 201 receives the information registration request signal “PUBLISH (Initial) request” from the client node 11, and the received signal analysis unit 202 analyzes the received signal to confirm that it is an information registration request. recognize. Then, the received signal analysis unit 202 calculates the expire time, and stores the data from the database access unit 203 through the database management system 31 of the database node 3 in the storage area of the table T2 in the partitioned disk 32. (Step S2). That is, paying attention to the “minute” portion of the expire time used for expire management, the minute value is used as split key information (distribution control management information), and information is registered in the table T2 on the database corresponding to the minute value. To do.

次いで、アプリケーションサーバノード22の応答信号生成部204は情報登録要求に対する応答信号のSIP-ETagヘッダにテーブルT2を特定するパーティショニングの分割キー情報を含め、応答信号「PUBLISH(Initial)応答」として、信号送信部205によりクライアントノード11へ返送する(ステップS3)。SIP-ETagヘッダは、SIP/SIMPLEプロトコルで規定された、サーバ側が任意に設定できるヘッダ情報である。図8(b)はアプリケーションサーバノード22からクライアントノード11へ返送される応答信号「PUBLISH(Initial)応答」の例を示している。   Next, the response signal generation unit 204 of the application server node 22 includes partitioning split key information for specifying the table T2 in the SIP-ETag header of the response signal to the information registration request, and as a response signal “PUBLISH (Initial) response”. The signal transmission unit 205 returns it to the client node 11 (step S3). The SIP-ETag header is header information defined by the SIP / SIMPLE protocol and can be arbitrarily set by the server side. FIG. 8B shows an example of a response signal “PUBLISH (Initial) response” returned from the application server node 22 to the client node 11.

次いで、クライアントノード11がプレゼンス状態を変更しようとする場合は、情報更新要求信号「PUBLISH(Modify)要求」を送信する際に、先に応答信号「PUBLISH(Initial)応答」を受信した際のSIP-ETagヘッダの情報をSIP-If-Matchヘッダに載せ変えて、任意のアプリケーションサーバノード23へ送信する(ステップS4)。SIP-If-Matchヘッダは、SIP/SIMPLEプロトコルで規定された、更新対象のプレゼンス情報を特定するためのヘッダ情報である。図8(c)はクライアントノード11からアプリケーションサーバノード23へ送信される情報更新要求信号「PUBLISH(Modify)要求」の例を示している。   Next, when the client node 11 wants to change the presence state, when transmitting the information update request signal “PUBLISH (Modify) request”, the SIP when the response signal “PUBLISH (Initial) response” is received first. The information of the -ETag header is replaced with the SIP-If-Match header and transmitted to any application server node 23 (step S4). The SIP-If-Match header is header information for specifying presence information to be updated, which is defined by the SIP / SIMPLE protocol. FIG. 8C shows an example of an information update request signal “PUBLISH (Modify) request” transmitted from the client node 11 to the application server node 23.

アプリケーションサーバノード23では、クライアントノード11からの情報更新要求信号「PUBLISH(Modify)要求」を信号受信部201が受信し、受信信号解析部202は受信信号を解析して情報更新要求であることを認識する。そして、受信信号解析部202はSIP-If-Matchヘッダを解析し、分割キー情報を取り出し、データベースアクセス部203からデータベースノード3のデータベース管理システム31を介して、対応するテーブルT2の中で該当するユーザのプレゼンス変更を行う(ステップS5)。分割キー情報により該当するテーブルが容易に特定でき、その中での更新処理となるため、高速に処理を行うことができる。   In the application server node 23, the signal receiving unit 201 receives the information update request signal “PUBLISH (Modify) request” from the client node 11, and the received signal analyzing unit 202 analyzes the received signal to indicate that it is an information update request. recognize. Then, the received signal analysis unit 202 analyzes the SIP-If-Match header, extracts the split key information, and corresponds in the corresponding table T2 from the database access unit 203 via the database management system 31 of the database node 3. The user's presence is changed (step S5). Since the corresponding table can be easily specified by the split key information and the update process is performed in the table, the process can be performed at high speed.

次いで、アプリケーションサーバノード23の受信信号解析部202はエクスパイア時刻を再計算し、データベースアクセス部203からデータベースノード3のデータベース管理システム31を介して、パーティショニングされたディスク32内にあるテーブルT3の記憶領域にデータを格納する(ステップS6)。   Next, the received signal analysis unit 202 of the application server node 23 recalculates the expire time, and stores the table T3 in the partitioned disk 32 from the database access unit 203 via the database management system 31 of the database node 3. Data is stored in the area (step S6).

次いで、アプリケーションサーバノード23の応答信号生成部204は情報更新要求に対する応答信号のSIP-ETagヘッダにテーブルT3を特定するパーティショニングの分割キー情報を含め、応答信号「PUBLISH(Modify)応答」として、クライアントノード11へ返送する(ステップS7)。図8(d)はアプリケーションサーバノード23からクライアントノード11へ返送される応答信号「PUBLISH(Modify)応答」の例を示している。   Next, the response signal generation unit 204 of the application server node 23 includes partitioning split key information for specifying the table T3 in the SIP-ETag header of the response signal for the information update request, and as a response signal “PUBLISH (Modify) response”. It returns to the client node 11 (step S7). FIG. 8D shows an example of a response signal “PUBLISH (Modify) response” returned from the application server node 23 to the client node 11.

上記の処理(ステップS1〜S7)と並行して、エクスパイア管理によりエクスパイア時刻に達したかどうかを判定する処理が周期的に動作し、例えば現在時刻の分に対応するテーブルに対して処理が行われるが、検索対象となるデータ数は少ないため、競合などによる待ち時間も短縮化される。   In parallel with the above processing (steps S1 to S7), processing for determining whether the expire time has been reached by the expire management periodically operates. For example, the processing is performed on the table corresponding to the current time. However, since the number of data to be searched is small, waiting time due to competition and the like is also shortened.

<総括>
このように、本実施形態では、プレゼンスサービスシステムにおいて使用されるデータベースのアクセスに関し、データベースのパーティショニングを行う際の分割キー情報をSIP/SIMPLEプロトコルで規定されるSIP-ETagヘッダ、SIP-If-Matchヘッダに格納させることで、パーティショニングを行ったデータの参照や更新などの処理をより早く行うことができる。
<Summary>
As described above, in the present embodiment, with respect to access to the database used in the presence service system, the split key information used when partitioning the database is the SIP-ETag header, SIP-If-, which is defined by the SIP / SIMPLE protocol. By storing it in the Match header, it is possible to perform processing such as reference and update of the partitioned data more quickly.

すなわち、ある特定の処理に対して効果的なパーティショニングがされているデータベースに対して、プレゼンス更新のような別の処理を行う場合に、全テーブル検索が必要になるといった遅延が発生する事象を回避することができる。これにより、ユーザが各パーティションに均一に登録されていると仮定すると、パーティショニングされた数の分だけ、検索対象の数が減ることによる処理速度向上が見込める。   In other words, when another process such as presence update is performed on a database that is effectively partitioned for a specific process, an event that causes a delay such that a full table search is required. It can be avoided. As a result, assuming that the user is uniformly registered in each partition, the processing speed can be improved by reducing the number of search objects by the number of partitions.

また、データベース上に、パーティショニングの分割キー情報を管理する管理テーブルを新たに作成する手法と比較しても、管理テーブルから分割キー情報を取得するための処理を省略できるため、SQL文実行数の削減やデータベースアクセスの集中によるアクセス待ち時間の削減により、処理時間の削減が見込める。   In addition, the number of SQL statement executions can be reduced because the processing for obtaining the partition key information from the management table can be omitted even when compared with a method for newly creating a management table for managing partitioning partition key information on the database. Reduction of processing time can be expected by reducing access waiting time due to reduction of database access and concentration of database access.

以上、本発明の好適な実施の形態により本発明を説明した。ここでは特定の具体例を示して本発明を説明したが、特許請求の範囲に定義された本発明の広範な趣旨および範囲から逸脱することなく、これら具体例に様々な修正および変更を加えることができることは明らかである。すなわち、具体例の詳細および添付の図面により本発明が限定されるものと解釈してはならない。
(付記1)
クライアントノードから情報登録要求を受信した場合に、登録情報の特徴に基づいてデータベース上の記憶領域を決定し、当該記憶領域を特定する振り分け制御管理情報を伴って前記データベースに登録する工程と、
前記情報登録要求に対する応答に含めて、前記振り分け制御管理情報を前記クライアントノードに送信する工程と、
前記クライアントノードから情報更新要求を受信した場合に、当該情報更新要求に伴われた振り分け制御管理情報に基づいて前記データベースの記憶領域を特定し、登録情報を更新する工程と
を備えたことを特徴とするデータベースアクセス振り分け制御方法。
(付記2)
前記登録情報の更新に際し、更新後の登録情報の特徴に基づいて前記データベース上の記憶領域を決定し、当該記憶領域を特定する新たな振り分け制御管理情報を伴って前記データベースに登録する工程と、
前記情報更新要求に対する応答に含めて、前記新たな振り分け制御管理情報を前記クライアントノードに送信する工程と
を更に備えたことを特徴とする付記1に記載のデータベースアクセス振り分け制御方法。
(付記3)
前記情報登録要求に対する応答における前記振り分け制御管理情報は、サーバ側が任意に設定できるヘッダ情報に含めて送信する
ことを特徴とする付記1または2のいずれか一項に記載のデータベースアクセス振り分け制御方法。
(付記4)
クライアントノードから情報登録要求を受信した場合に、登録情報の特徴に基づいてデータベース上の記憶領域を決定し、当該記憶領域を特定する振り分け制御管理情報を伴って前記データベースに登録する手段と、
前記情報登録要求に対する応答に含めて、前記振り分け制御管理情報を前記クライアントノードに送信する手段と、
前記クライアントノードから情報更新要求を受信した場合に、当該情報更新要求に伴われた振り分け制御管理情報に基づいて前記データベースの記憶領域を特定し、登録情報を更新する手段と
を備えたことを特徴とするサービス提供サーバ装置。
(付記5)
前記登録情報の更新に際し、更新後の登録情報の特徴に基づいて前記データベース上の記憶領域を決定し、当該記憶領域を特定する新たな振り分け制御管理情報を伴って前記データベースに登録する手段と、
前記情報更新要求に対する応答に含めて、前記新たな振り分け制御管理情報を前記クライアントノードに送信する手段と
を更に備えたことを特徴とする付記4に記載のサービス提供サーバ装置。
(付記6)
前記情報登録要求に対する応答における前記振り分け制御管理情報は、サーバ側が任意に設定できるヘッダ情報に含めて送信する
ことを特徴とする付記4または5のいずれか一項に記載のサービス提供サーバ装置。
(付記7)
サービス提供サーバ装置を構成するコンピュータを、
クライアントノードから情報登録要求を受信した場合に、登録情報の特徴に基づいてデータベース上の記憶領域を決定し、当該記憶領域を特定する振り分け制御管理情報を伴って前記データベースに登録する手段、
前記情報登録要求に対する応答に含めて、前記振り分け制御管理情報を前記クライアントノードに送信する手段、
前記クライアントノードから情報更新要求を受信した場合に、当該情報更新要求に伴われた振り分け制御管理情報に基づいて前記データベースの記憶領域を特定し、登録情報を更新する手段
として機能させるデータベースアクセス振り分け制御プログラム。
(付記8)
前記コンピュータを、
前記登録情報の更新に際し、更新後の登録情報の特徴に基づいて前記データベース上の記憶領域を決定し、当該記憶領域を特定する新たな振り分け制御管理情報を伴って前記データベースに登録する手段、
前記情報更新要求に対する応答に含めて、前記新たな振り分け制御管理情報を前記クライアントノードに送信する手段
として更に機能させる付記7に記載のデータベースアクセス振り分け制御プログラム。
(付記9)
前記情報登録要求に対する応答における前記振り分け制御管理情報は、サーバ側が任意に設定できるヘッダ情報に含めて送信する
付記7または8のいずれか一項に記載のデータベースアクセス振り分け制御プログラム。
The present invention has been described above by the preferred embodiments of the present invention. While the invention has been described with reference to specific embodiments, various modifications and changes may be made to the embodiments without departing from the broad spirit and scope of the invention as defined in the claims. Obviously you can. In other words, the present invention should not be construed as being limited by the details of the specific examples and the accompanying drawings.
(Appendix 1)
When receiving an information registration request from a client node, determining a storage area on the database based on the characteristics of the registration information, and registering in the database with distribution control management information identifying the storage area;
Including in a response to the information registration request, transmitting the distribution control management information to the client node;
A step of specifying a storage area of the database based on distribution control management information accompanying the information update request and updating registration information when an information update request is received from the client node. Database access distribution control method.
(Appendix 2)
When updating the registration information, determining a storage area on the database based on the characteristics of the updated registration information, and registering in the database with new distribution control management information for specifying the storage area;
The database access distribution control method according to claim 1, further comprising a step of transmitting the new distribution control management information to the client node in a response to the information update request.
(Appendix 3)
3. The database access distribution control method according to claim 1, wherein the distribution control management information in response to the information registration request is transmitted by including in header information that can be arbitrarily set by the server side.
(Appendix 4)
Means for determining a storage area on the database based on the characteristics of the registration information when receiving an information registration request from the client node, and registering it in the database with distribution control management information for specifying the storage area;
Means for transmitting the distribution control management information to the client node in a response to the information registration request;
When receiving an information update request from the client node, the storage node of the database is specified based on the distribution control management information accompanying the information update request, and the registration information is updated. A service providing server device.
(Appendix 5)
Upon updating the registration information, determining a storage area on the database based on the characteristics of the updated registration information, and registering in the database with new distribution control management information for specifying the storage area;
The service providing server device according to appendix 4, further comprising means for transmitting the new distribution control management information to the client node in a response to the information update request.
(Appendix 6)
6. The service providing server device according to any one of appendix 4 or 5, wherein the distribution control management information in response to the information registration request is transmitted by being included in header information that can be arbitrarily set by the server side.
(Appendix 7)
A computer constituting the service providing server device;
Means for determining a storage area on the database based on the characteristics of the registration information when receiving an information registration request from a client node, and registering it in the database with distribution control management information for identifying the storage area;
Means for transmitting the distribution control management information to the client node in a response to the information registration request;
Database access distribution control that, when an information update request is received from the client node, identifies a storage area of the database based on distribution control management information accompanying the information update request and functions as a means for updating registered information program.
(Appendix 8)
The computer,
Means for determining a storage area on the database based on the characteristics of the updated registration information upon updating the registration information, and registering the database with new distribution control management information for specifying the storage area;
The database access distribution control program according to appendix 7, which is further included in a response to the information update request and further functions as means for transmitting the new distribution control management information to the client node.
(Appendix 9)
The database access distribution control program according to any one of appendices 7 and 8, wherein the distribution control management information in response to the information registration request is included in header information that can be arbitrarily set by the server side and transmitted.

従来のプレゼンスサービスシステムにおけるエクスパイア管理およびプレゼンス更新の概要を示す図である。It is a figure which shows the outline | summary of the expire management and presence update in the conventional presence service system. データベースのパーティショニングを行った従来のプレゼンスサービスシステムにおけるエクスパイア管理およびプレゼンス更新の概要を示す図である。It is a figure which shows the outline | summary of the expire management and presence update in the conventional presence service system which performed the partitioning of the database. 本発明の一実施形態にかかるプレゼンスサービスシステムの構成例を示す図(その1)である。It is a figure (the 1) which shows the structural example of the presence service system concerning one Embodiment of this invention. 本発明の一実施形態にかかるプレゼンスサービスシステムの構成例を示す図(その2)である。It is FIG. (2) which shows the structural example of the presence service system concerning one Embodiment of this invention. アプリケーションサーバノードの構成例を示す図である。It is a figure which shows the structural example of an application server node. 実施形態の処理例を示す図である。It is a figure which shows the process example of embodiment. 実施形態の処理例を示すシーケンス図である。It is a sequence diagram which shows the process example of embodiment. クライアントノードとアプリケーションサーバノードの間で送受信される信号の例を示す図である。It is a figure which shows the example of the signal transmitted / received between a client node and an application server node.

符号の説明Explanation of symbols

1 クライアントノード群
11、12 クライアントノード
2 アプリケーションサーバノード群
20 ロードバランサ
21〜23 アプリケーションサーバノード
201 信号受信部
202 受信信号解析部
203 データベースアクセス部
204 応答信号生成部
205 信号送信部
3 データベースノード
31 データベース管理システム
32 ディスク
T1〜T6 テーブル
DESCRIPTION OF SYMBOLS 1 Client node group 11, 12 Client node 2 Application server node group 20 Load balancer 21-23 Application server node 201 Signal receiving part 202 Received signal analysis part 203 Database access part 204 Response signal generation part 205 Signal transmission part 3 Database node 31 Database Management system 32 disks T1-T6 table

Claims (6)

クライアントノードから情報登録要求を受信した場合に、登録情報の特徴に基づいてデータベース上の記憶領域を決定し、当該記憶領域を特定する振り分け制御管理情報を伴って前記データベースに登録する工程と、
前記情報登録要求に対する応答に含めて、前記振り分け制御管理情報を前記クライアントノードに送信する工程と、
前記クライアントノードから情報更新要求を受信した場合に、当該情報更新要求に伴われた振り分け制御管理情報に基づいて前記データベースの記憶領域を特定し、登録情報を更新する工程と
を備えたことを特徴とするデータベースアクセス振り分け制御方法。
When receiving an information registration request from a client node, determining a storage area on the database based on the characteristics of the registration information, and registering in the database with distribution control management information identifying the storage area;
Including in a response to the information registration request, transmitting the distribution control management information to the client node;
A step of specifying a storage area of the database based on distribution control management information accompanying the information update request and updating registration information when an information update request is received from the client node. Database access distribution control method.
前記登録情報の更新に際し、更新後の登録情報の特徴に基づいて前記データベース上の記憶領域を決定し、当該記憶領域を特定する新たな振り分け制御管理情報を伴って前記データベースに登録する工程と、
前記情報更新要求に対する応答に含めて、前記新たな振り分け制御管理情報を前記クライアントノードに送信する工程と
を更に備えたことを特徴とする請求項1に記載のデータベースアクセス振り分け制御方法。
When updating the registration information, determining a storage area on the database based on the characteristics of the updated registration information, and registering in the database with new distribution control management information for specifying the storage area;
The database access distribution control method according to claim 1, further comprising a step of transmitting the new distribution control management information to the client node in a response to the information update request.
クライアントノードから情報登録要求を受信した場合に、登録情報の特徴に基づいてデータベース上の記憶領域を決定し、当該記憶領域を特定する振り分け制御管理情報を伴って前記データベースに登録する手段と、
前記情報登録要求に対する応答に含めて、前記振り分け制御管理情報を前記クライアントノードに送信する手段と、
前記クライアントノードから情報更新要求を受信した場合に、当該情報更新要求に伴われた振り分け制御管理情報に基づいて前記データベースの記憶領域を特定し、登録情報を更新する手段と
を備えたことを特徴とするサービス提供サーバ装置。
Means for determining a storage area on the database based on the characteristics of the registration information when receiving an information registration request from the client node, and registering it in the database with distribution control management information for specifying the storage area;
Means for transmitting the distribution control management information to the client node in a response to the information registration request;
When receiving an information update request from the client node, the storage node of the database is specified based on the distribution control management information accompanying the information update request, and the registration information is updated. A service providing server device.
前記登録情報の更新に際し、更新後の登録情報の特徴に基づいて前記データベース上の記憶領域を決定し、当該記憶領域を特定する新たな振り分け制御管理情報を伴って前記データベースに登録する手段と、
前記情報更新要求に対する応答に含めて、前記新たな振り分け制御管理情報を前記クライアントノードに送信する手段と
を更に備えたことを特徴とする請求項3に記載のサービス提供サーバ装置。
Upon updating the registration information, determining a storage area on the database based on the characteristics of the updated registration information, and registering in the database with new distribution control management information for specifying the storage area;
4. The service providing server apparatus according to claim 3, further comprising means for transmitting the new distribution control management information to the client node in a response to the information update request.
サービス提供サーバ装置を構成するコンピュータを、
クライアントノードから情報登録要求を受信した場合に、登録情報の特徴に基づいてデータベース上の記憶領域を決定し、当該記憶領域を特定する振り分け制御管理情報を伴って前記データベースに登録する手段、
前記情報登録要求に対する応答に含めて、前記振り分け制御管理情報を前記クライアントノードに送信する手段、
前記クライアントノードから情報更新要求を受信した場合に、当該情報更新要求に伴われた振り分け制御管理情報に基づいて前記データベースの記憶領域を特定し、登録情報を更新する手段
として機能させるデータベースアクセス振り分け制御プログラム。
A computer constituting the service providing server device;
Means for determining a storage area on the database based on the characteristics of the registration information when receiving an information registration request from a client node, and registering it in the database with distribution control management information for identifying the storage area;
Means for transmitting the distribution control management information to the client node in a response to the information registration request;
Database access distribution control that, when an information update request is received from the client node, identifies a storage area of the database based on distribution control management information accompanying the information update request and functions as a means for updating registered information program.
前記コンピュータを、
前記登録情報の更新に際し、更新後の登録情報の特徴に基づいて前記データベース上の記憶領域を決定し、当該記憶領域を特定する新たな振り分け制御管理情報を伴って前記データベースに登録する手段、
前記情報更新要求に対する応答に含めて、前記新たな振り分け制御管理情報を前記クライアントノードに送信する手段
として更に機能させる請求項5に記載のデータベースアクセス振り分け制御プログラム。
The computer,
Means for determining a storage area on the database based on the characteristics of the updated registration information upon updating the registration information, and registering the database with new distribution control management information for specifying the storage area;
6. The database access distribution control program according to claim 5, further comprising a function for transmitting the new distribution control management information to the client node in a response to the information update request.
JP2008168950A 2008-06-27 2008-06-27 Database access distribution control method Expired - Fee Related JP5120105B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008168950A JP5120105B2 (en) 2008-06-27 2008-06-27 Database access distribution control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008168950A JP5120105B2 (en) 2008-06-27 2008-06-27 Database access distribution control method

Publications (2)

Publication Number Publication Date
JP2010011157A true JP2010011157A (en) 2010-01-14
JP5120105B2 JP5120105B2 (en) 2013-01-16

Family

ID=41591094

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008168950A Expired - Fee Related JP5120105B2 (en) 2008-06-27 2008-06-27 Database access distribution control method

Country Status (1)

Country Link
JP (1) JP5120105B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0342742A (en) * 1989-07-10 1991-02-22 Nec Corp Online data base system by range division
JP2007206913A (en) * 2006-02-01 2007-08-16 Nec Corp Database access system, application server node, database access method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0342742A (en) * 1989-07-10 1991-02-22 Nec Corp Online data base system by range division
JP2007206913A (en) * 2006-02-01 2007-08-16 Nec Corp Database access system, application server node, database access method and program

Also Published As

Publication number Publication date
JP5120105B2 (en) 2013-01-16

Similar Documents

Publication Publication Date Title
EP3167594B1 (en) Caching data in an information centric networking architecture
EP1825654B1 (en) Routing a service query in an overlay network
US20130046859A1 (en) Stream processing using a client-server architecture
CN108076103A (en) A kind of message treatment method, system and message producer&#39;s cluster
US20170374154A1 (en) Generating a response to a client device in an internet of things domain
JP6067714B2 (en) Scale-out system that acquires event data
US20100332592A1 (en) Data processing device and data retriever
CN106686040A (en) Message processing method and message processing device
CN106789147B (en) Flow analysis method and device
US20160301625A1 (en) Intelligent High-Volume Cloud Application Programming Interface Request Caching
CN111400301A (en) Data query method, device and equipment
JP2009187393A (en) Predictive cache method for caching frequently-accessed information in advance, system and program thereof
JP5120105B2 (en) Database access distribution control method
US11205049B2 (en) Method for managing semantic information on M2M/IoT platform
US20200327122A1 (en) Conflation of topic selectors
US20210037090A1 (en) Systems and Methods for Server Failover and Load Balancing
US11082484B2 (en) Load balancing system
KR100597829B1 (en) System and method for providing a service of business rule using ontology
CN113296968A (en) Address list updating method, device, medium and electronic equipment
US10693826B2 (en) Message Service
Antoine et al. A generic API for load balancing in distributed systems for big data management
Mukhopadhyay et al. Analytics at Scale
CN112732757B (en) Method, system, device, equipment and storage medium for processing degraded data
US20130282700A1 (en) Apparatus and method for searching for address book information
US20150304382A1 (en) Providing transaction identifiers for application performance management in distributed computer systems

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110315

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120810

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121008

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

Free format text: PAYMENT UNTIL: 20151102

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees