JP2006139696A - Data restoration method and data restoration program - Google Patents

Data restoration method and data restoration program Download PDF

Info

Publication number
JP2006139696A
JP2006139696A JP2004330710A JP2004330710A JP2006139696A JP 2006139696 A JP2006139696 A JP 2006139696A JP 2004330710 A JP2004330710 A JP 2004330710A JP 2004330710 A JP2004330710 A JP 2004330710A JP 2006139696 A JP2006139696 A JP 2006139696A
Authority
JP
Japan
Prior art keywords
data
checkpoint
update
function unit
memory
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.)
Pending
Application number
JP2004330710A
Other languages
Japanese (ja)
Inventor
Harushio Hidaka
東潮 日高
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 JP2004330710A priority Critical patent/JP2006139696A/en
Publication of JP2006139696A publication Critical patent/JP2006139696A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To suppress access performance deterioration from a data base application at a check point, and to perform recovery time reduction at the time of failure recovery by reducing an amount of disk output data at the check point. <P>SOLUTION: In an on-memory data base system, a data base update processing function part 100 for managing a data area on a memory of the on-memory data base by splitting it into a plurality of segments outputs journal information to be history information on data update; a check point data acquisition area extraction function part 500 extracts a segment where the data have been updated and outputs it to a disk 1300 at the time of check point; and a recovery function part 1100 performs the pursuing processing of the check point data update stored in the disk 1300 on the basis of journal data after the immediate check point stored in the disk at the time of system activation. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、高速な検索・更新性能を要求されるオンメモリデータベースでのバックアップ処理に関する。   The present invention relates to backup processing in an on-memory database that requires high-speed search / update performance.

従来のオンメモリデータベースシステムでは、すべてのデータベースデータを揮発性のメモリ上に確保し、そこに対するデータの参照、更新を行うことで高速なデータアクセスを提供する。しかしデータが揮発性を持つメモリ上に確保されていることから、突然の停電等に対し、何らかの形でのデータ保証を行う必要がある。   In a conventional on-memory database system, all database data is secured on a volatile memory, and high-speed data access is provided by referring to and updating the data. However, since data is secured on a volatile memory, it is necessary to guarantee data in some form against sudden power outages.

一般的には障害発生時におけるデータ保証のため、ある瞬間のデータ状態を永続的に保証するチェックポイントと呼ばれるタイミングの確保、及び複数のチェックポイント間でのデータ更新履歴であるジャーナル情報により任意のデータベース状態を保証している。特にチェックポイントに際しては、頻繁に更新されるメモリ上データの瞬間的な状態に近い内容を永続的な領域であるハードディスク等に確保する関係上、メモリ上データ全域を先頭から連続的にディスク上に出力することにより短時間でのデータ確保を行い、データ確保の間に発生する更新情報についてはジャーナル情報の形で確保する。   Generally, in order to guarantee data in the event of a failure, any timing can be secured by ensuring timing called a checkpoint that permanently guarantees the data state at a certain moment, and journal information that is data update history between multiple checkpoints. The database status is guaranteed. Especially at the time of checkpoint, the entire data in the memory is continuously placed on the disk from the beginning in order to secure the contents close to the instantaneous state of the data on the memory that is frequently updated in the hard disk as a permanent area. By outputting, data is secured in a short time, and update information generated during data securing is secured in the form of journal information.

障害が発生した場合には、再起動を契機としてメモリ空間を確保した後、最新のチェックポイントで確保したチェックポイントデータをメモリ上に展開し、さらにチェックポイント後のジャーナル情報によるデータ更新の後追いを実施することで、チェックポイントファイル確保直後から障害発生直前までの任意の時点で確定していたトランザクション処理が行われたデータベース状態を復元することを実現している(例えば、非特許文献1参照。)。
Kenneth Salem、Hector Garcia−Molina著、「System M:A Transaction Processing Testbed for Memory Resident Data」、IEEE Transactions on knowledge and data engineering.Vol.2、No.1、March 1990
In the event of a failure, the memory space is secured upon restart, the checkpoint data secured at the latest checkpoint is expanded on the memory, and the data update by the journal information after the checkpoint is further followed. By implementing this, it is possible to restore a database state in which transaction processing that has been determined at an arbitrary time from immediately after securing a checkpoint file to immediately before the occurrence of a failure is performed (for example, see Non-Patent Document 1). ).
Kenneth Salem, Hector Garcia-Molina, “System M: A Transaction Processing Tested for Memory Resident Data”, IEEE Transactions on Knowledge. Vol. 2, No. 1. March 1990

しかし、従来のデータ保証方法ではデータベースメモリ全域のスナップショットをディスク上に確保する関係上、チェックポイントタイミングでは数分に渡るディスクI/Oが発生することになり、CPU資源もそれに応じて相当量を消費する。これがアプリケーションからのデータベースアクセス性能を劣化させる要因となる。   However, in the conventional data guarantee method, because the snapshot of the entire database memory is secured on the disk, disk I / O for several minutes is generated at the checkpoint timing, and the CPU resource is correspondingly large accordingly. Consume. This is a factor that degrades the database access performance from the application.

また、チェックポイントファイル取得を行っている間のジャーナル情報も相当量になるため、障害発生後のデータベース復旧時には、最低限のデータ整合性が保証されている時点までの復元に必要なジャーナル情報の後追い処理の時間が必要となり、交換機や金融などの障害時のサービス停止時間を可能な限り短時間化しなければならないようなシステムでは特に問題となる。   In addition, the amount of journal information during the checkpoint file acquisition is considerable, so when recovering the database after a failure occurs, the journal information required for restoration up to the point where the minimum data consistency is guaranteed. Time is required for follow-up processing, which is particularly a problem in a system in which the service stop time in the event of a failure such as an exchange or finance must be shortened as much as possible.

後追い処理を短時間化するには、チェックポイント間隔を短くする方法が考えられるが、前述のようにチェックポイントファイル出力時間が長く、高負荷がかかるため、チェックポイント頻度を上げるとシステム全体のパフォーマンスが著しく低下することとなり、現実的な対処方法とはならない。   To shorten the follow-up process, the checkpoint interval can be shortened. However, as mentioned above, the checkpoint file output time is long and the load is high, so increasing the checkpoint frequency increases the overall system performance. Will not be a realistic countermeasure.

本発明では、チェックポイントで確保しなければならないデータ構成を変更することでディスク出力データ量を抑え、これによりチェックポイントでのデータベースアプリケーションからのアクセス性能劣化を抑えること、及び障害復旧時の復旧時間短縮化を行う。また、これを実現するためのチェックポイントでのデータ格納技術とそれに基づくデータ復旧技術を提供する。   In the present invention, the amount of disk output data is suppressed by changing the data structure that must be secured at the checkpoint, thereby suppressing deterioration in access performance from the database application at the checkpoint, and the recovery time at the time of failure recovery Shorten. In addition, a data storage technique at a checkpoint for realizing this and a data recovery technique based thereon are provided.

そこで、上記課題を解決するために、請求項1に記載の発明は、オンメモリデータベースシステムにおけるデータ復元方法であって、前記オンメモリデータベースシステムは、オンメモリデータベースのメモリ上データ領域を複数のセグメントに分けて管理し、データの更新を行うデータベース更新処理機能部が、データ更新の履歴情報であるジャーナル情報をディスクに送信するステップと、チェックポイントデータ取得領域抽出機能部が、データが更新されたセグメント情報を抽出して、これをチェックポイント時に前記ディスクに送信するステップと、リカバリ機能部が、システム起動時に、前記ディスクに記憶された直前チェックポイント以降のジャーナルデータに基づいて、前記ディスクに記憶されたチェックポイントデータ更新の後追い処理を行うステップと、を有することを特徴とする。   In order to solve the above problem, the invention according to claim 1 is a data restoration method in an on-memory database system, wherein the on-memory database system divides a data area on the memory of the on-memory database into a plurality of segments. The database update processing function unit that manages and updates the data separately sends the journal information that is the data update history information to the disk, and the checkpoint data acquisition area extraction function unit updates the data. Extracting segment information and transmitting it to the disk at the time of a checkpoint; and a recovery function unit storing the information on the disk based on journal data after the previous checkpoint stored on the disk at the time of system startup Updated checkpoint data Performing a post-chase process, characterized by having a.

また、請求項2に記載の発明は、オンメモリデータベースシステムにおけるデータ復元方法であって、前記オンメモリデータベースシステムは、オンメモリデータベースのメモリ上のデータ領域を複数のセグメントに分けて管理し、データベース更新処理機能部が、データの更新要求を受け付け、データ更新する前記メモリ上のデータセグメントを決定して、データの書き換えを行なう更新ステップと、ジャーナル情報出力機能部が、前記データベース更新処理機能部から前記データ更新の履歴情報であるジャーナル情報を受信して、これをディスクに出力するジャーナル情報出力ステップと、更新サブセグメント管理機能部が、前記データベース更新処理機能部から前記更新対象データセグメントを受信して、対応するサブセグメント更新フラグを更新ありの状態にするサブセグメント更新ステップと、チェックポイントデータ取得領域抽出機能部が、前記更新ありの状態にあるサブセグメント更新フラグに対応するセグメント情報を抽出して、チェックポイントデータを決定する抽出ステップと、チェックポイントデータ出力部が、前記チェックポイントデータをチェックポイント時に前記ディスクに出力するチェックポイントデータ出力ステップと、リカバリ機能部が、前記ディスクに記録したチェックポイントデータ及び直前のチェックポイント以降のジャーナルデータを、システム起動時に、前記メモリ領域に復元して、当該ジャーナルデータに基づいてチェックポイントデータ更新の後追い処理を行う復元ステップと、を有することを特徴とする。   The invention according to claim 2 is a data restoration method in an on-memory database system, wherein the on-memory database system manages a data area on a memory of the on-memory database by dividing it into a plurality of segments, and An update processing function unit receives an update request for data, determines a data segment on the memory to be updated, and rewrites the data; and a journal information output function unit includes: The journal information output step of receiving journal information as the data update history information and outputting it to the disk, and the update sub-segment management function unit receives the update target data segment from the database update processing function unit The corresponding subsegment update The subsegment update step that sets the lag to the updated state, and the checkpoint data acquisition area extraction function unit extracts the segment information corresponding to the updated subsegment update flag and determines the checkpoint data An extraction step, a checkpoint data output unit that outputs the checkpoint data to the disc at the time of the checkpoint, and a checkpoint data recorded on the disc by the recovery function unit and the previous checkpoint And a restoration step of restoring subsequent journal data to the memory area at the time of system startup and performing a follow-up process for updating checkpoint data based on the journal data.

また、請求項3に記載の発明は、上記の請求項1または2に記載のデータ復元方法を、コンピュータプログラムで記載してそれを実行可能にしたことを特徴とする。   According to a third aspect of the present invention, the data restoration method according to the first or second aspect of the present invention is described by a computer program so as to be executable.

請求項1〜3に記載の発明では、旧来のメモリ上データベースデータの全領域をディスク上に出力するのではなく、メモリ上データ領域を複数ブロックであるセグメントに分けて管理し、前回のチェックポイント以降の更新があったセグメントについてブロック単位で更新情報を管理する。   According to the first to third aspects of the present invention, the entire data area of the database data in the memory is not output on the disk, but the data area in the memory is divided into segments each having a plurality of blocks, and the previous checkpoint Update information is managed in units of blocks for segments that have been updated thereafter.

チェックポイント時には該当セグメントのみをディスク上に出力し、障害発生後のリカバリ時には、ディスク上の最新世代セグメントデータファイル群からメモリ上にデータ展開を行い、チェックポイント取得以降のジャーナル情報によりトランザクションの後追いを実行する。   At checkpoint, only the relevant segment is output to the disk. At the time of recovery after a failure occurs, data is expanded from the latest generation segment data file group on the disk to memory, and the transaction is followed by journal information after the checkpoint is acquired. Execute.

このようなデータ復元により、従来メモリ上データ全域のディスク出力は不要となり、チェックポイント処理時間の短縮化に伴う必要マシンリソースの削減、これに伴いチェックポイント間隔を短く設定できることからチェックポイント間に発生するジャーナル情報量を抑え、リカバリ時のジャーナル後追い処理量を少なくすることによりシステムの停止時間の短縮化が可能となる。   Such data restoration eliminates the need for disk output of the entire data in the conventional memory, reduces the required machine resources associated with shortening the checkpoint processing time, and the checkpoint interval can be set accordingly. By reducing the amount of journal information to be performed and reducing the amount of post-journal processing at the time of recovery, the system stop time can be shortened.

請求項1〜3に記載の発明によれば、従来のオンメモリデータベースシステムにおいて、チェックポイントにおけるディスク出力量を低減することで、通常運用の背景で必要なCPUリソース・I/Oリソースを抑え、通常アクセス性能を維持したまま障害時に備えたデータ保証処理を実施することができる。   According to the first to third aspects of the present invention, in the conventional on-memory database system, by reducing the disk output amount at the checkpoint, CPU resources and I / O resources necessary for the background of normal operation are suppressed, Data guarantee processing in case of failure can be implemented while maintaining normal access performance.

また、チェックポイント処理時間が短くなることからチェックポイント頻度を上げることが可能となり、さらにはチェックポイント間での更新履歴情報であるジャーナル情報のデータ量を小さく抑えることができる。このことからリカバリ時に必要な更新トランザクションの後追い処理時間を短くでき、システム回復までのサービス停止時間を短くすることが可能となる。   In addition, since the checkpoint processing time is shortened, the checkpoint frequency can be increased, and the data amount of journal information, which is update history information between checkpoints, can be reduced. As a result, it is possible to shorten the follow-up processing time of the update transaction required at the time of recovery, and it is possible to shorten the service stop time until the system recovery.

これにより、一般ユーザーに対してデータベースアプリケーションの安定したアクセス性能を提供でき、障害に対して短時間のサービス停止で済むようになる。   As a result, stable access performance of the database application can be provided to general users, and a short service stop can be required for a failure.

図1に本発明のオンメモリデータベースシステム構成図を、図2に当該システムにおけるチェックポイントデータ取得フローを示す。   FIG. 1 shows an on-memory database system configuration diagram of the present invention, and FIG. 2 shows a checkpoint data acquisition flow in the system.

図1に示すように、本発明のオンメモリデータベースシステムは「データベース更新処理機能部100」、「更新セグメント管理機能部200」、「システム域・データベース域300」、「サブセグメント更新フラグ400」、「チェックポイントデータ取得領域抽出機能部500」、「差分サブセグメントデータ群600」、「チェックポイントデータ出力機能部700」、「JNL出力機能部800」、「チェックポイントデータ900」、「JNLデータ1000」、「リカバリ機能部1100」、「メモリ内データ領域1200」、及び「磁気ディスク装置1300」を有している。   As shown in FIG. 1, the on-memory database system of the present invention includes a “database update processing function unit 100”, an “update segment management function unit 200”, a “system area / database area 300”, a “subsegment update flag 400”, “Checkpoint data acquisition area extraction function unit 500”, “Differential subsegment data group 600”, “Checkpoint data output function unit 700”, “JNL output function unit 800”, “Checkpoint data 900”, “JNL data 1000” ”,“ Recovery function unit 1100 ”,“ in-memory data area 1200 ”, and“ magnetic disk device 1300 ”.

データベース更新処理機能部100はデータベースデータのデータ更新要求の制御を行う。   The database update processing function unit 100 controls a data update request for database data.

更新サブセグメント管理機能部200はデータ更新に際して変更が加わるデータ・セグメントの状態管理を行う。   The update sub-segment management function unit 200 manages the status of the data segment to which changes are made when data is updated.

チェックポイントデータ取得領域抽出機能部500は更新セグメント情報からバックアップに必要なデータ・セグメント群をメモリ内データ域1200より抽出する。   The checkpoint data acquisition area extraction function unit 500 extracts a data segment group necessary for backup from the update segment information from the in-memory data area 1200.

チェックポイントデータ出力機能部700は抽出されたデータ・セグメント群を磁気ディスク装置1300に出力する。   The checkpoint data output function unit 700 outputs the extracted data segment group to the magnetic disk device 1300.

JNL出力機能部800はチェックポイント取得処理中に発生した更新履歴を磁気ディスク装置1300に出力する。   The JNL output function unit 800 outputs the update history generated during the checkpoint acquisition process to the magnetic disk device 1300.

リカバリ機能部1100は磁気ディスク装置1300に記憶したチェックポイントデータ900及びJNLデータ1000からシステム機動時にデータをメモリ上に復旧する。   The recovery function unit 1100 restores the data from the checkpoint data 900 and JNL data 1000 stored in the magnetic disk device 1300 to the memory during system operation.

また、図2に示すように、このオンメモリデータベースシステムでは、メモリ中のシステム域・データベース域300はいずれもセグメントと呼ぶ固定サイズの単位を元に構成されている。   As shown in FIG. 2, in this on-memory database system, the system area / database area 300 in the memory is configured based on a unit of a fixed size called a segment.

上記オンメモリデータベースシステムにおいて、外部からのデータ更新処理をデータベース更新処理機能部100が受けると、インデックス情報等により更新対象のデータセグメントを確定させて、データの更新処理を行い、更新サブセグメント管理機能部200がセグメント更新フラグ400上の該当するセグメントのフラグを“更新あり”の状態に変更する。   In the on-memory database system, when the database update processing function unit 100 receives external data update processing, the data segment to be updated is determined by index information or the like, the data update processing is performed, and the update sub-segment management function The unit 200 changes the flag of the corresponding segment on the segment update flag 400 to the “updated” state.

また、平行してデータベース更新処理機能部100は更新履歴情報であるJNL情報を磁気ディスク装置1300上にJNLデータ1000として出力を行うようJNL取得機能部800に伝達する。   In parallel, the database update processing function unit 100 transmits the JNL information, which is update history information, to the JNL acquisition function unit 800 so as to output it as JNL data 1000 on the magnetic disk device 1300.

一定時間毎、又はJNLデータ1000が一定量を超えた場合に、チェックポイントデータ取得領域抽出機能部500はサブセグメント更新フラグで“更新あり”のフラグ状態になっているセグメントを抽出して、差分サブセグメントデータ群600を確定させ、さらにチェックポイントデータ出力機能部700がチェックポイント時に、磁気ディスク装置1300へチェックポイントデータ900として出力する。   When a certain amount of time or when the JNL data 1000 exceeds a certain amount, the checkpoint data acquisition area extraction function unit 500 extracts the segment in the “updated” flag state by the subsegment update flag, The sub-segment data group 600 is determined, and the checkpoint data output function unit 700 outputs the checkpoint data 900 to the magnetic disk device 1300 at the checkpoint.

システム起動時等においてはリカバリ機能部1100が呼び出され、チェックポイントデータ900をメモリ内データ域1200に展開した上、システム域・データベース域300に対してJNLデータ1000によりトランザクションの後追い処理を実施することで、障害発生直前までに確定していたトランザクションを再現する。   When the system is started, the recovery function unit 1100 is called, and the checkpoint data 900 is expanded in the in-memory data area 1200, and the transaction follow-up process is performed on the system area / database area 300 using the JNL data 1000. Then, reproduce the transaction that was confirmed immediately before the failure occurred.

このようにオンメモリデータベースシステムの処理は、バックアップ処理とリカバリ処理とに大きく分けられる。以下に、バックアップ処理及びリカバリ処理について図3及び図4を用いて詳細に説明する。   In this way, the processing of the on-memory database system is roughly divided into backup processing and recovery processing. Hereinafter, the backup process and the recovery process will be described in detail with reference to FIGS.

(バックアップ処理)
外部からのデータベース更新処理要求を、データベース更新処理機能部100が受信する(S31)。
(Backup process)
The database update processing function unit 100 receives an external database update processing request (S31).

データベース更新処理機能部100はメモリ内データ域1200の情報を元にデータベース更新要求が書き換えるべきデータ位置を解析し、メモリ内データ域1200にあるシステム域・データベース域300の書き換え処理を行う。平行して、該当するメモリ内データ域1200の位置を更新サブセグメント管理機能部200へ送り、また更新履歴情報であるJNL情報をJNL取得機能部800へ送信する(S32)。   The database update processing function unit 100 analyzes the data position to be rewritten by the database update request based on the information in the in-memory data area 1200, and rewrites the system area / database area 300 in the in-memory data area 1200. In parallel, the position of the corresponding in-memory data area 1200 is sent to the update sub-segment management function unit 200, and JNL information as update history information is sent to the JNL acquisition function unit 800 (S32).

更新サブセグメント管理機能部200は、与えられたメモリ内データ域1200の位置の管理フラグであるサブセグメント更新フラグ400を“更新あり”の状態に設定する(S33)。   The updated sub-segment management function unit 200 sets the sub-segment update flag 400, which is a management flag at the position of the given in-memory data area 1200, to the “updated” state (S33).

JNL取得機能部800は与えられた更新履歴情報をJNLデータ1000として磁気ディスク装置1300へ出力する(S34)。   The JNL acquisition function unit 800 outputs the given update history information as the JNL data 1000 to the magnetic disk device 1300 (S34).

一定の時間間隔、又は前回のチェックポイントのタイミングから蓄積されたJNLの量が一定量を超えた段階で、チェックポイントデータ取得領域抽出機能部500はサブセグメント更新フラグ400を参照し、前回のチェックポイント時からの更新差分情報を取得し、それをチェックポイントデータ出力機能部700へ送出し、そのタイミングでサブセグメント更新フラグ400を初期状態に戻す(S35)。   When the amount of JNL accumulated from a certain time interval or the timing of the previous checkpoint exceeds a certain amount, the checkpoint data acquisition area extraction function unit 500 refers to the subsegment update flag 400 to check the previous checkpoint. The update difference information from the point time is acquired and sent to the checkpoint data output function unit 700, and the subsegment update flag 400 is returned to the initial state at that timing (S35).

チェックポイントデータ出力機能部700はチェックポイント時に、受け取った更新差分情報をチェックポイントデータ900として磁気ディスク装置1300へ出力する(S36)。なお、前回のチェックポイント時に確保した更新差分情報と同じサブセグメントの情報を出力する場合は、前に取得したデータへの上書きを行う。また、以上の処理が終了したタイミングでJNLデータについては新しいファイルを作り、それ以降の更新処理に伴うJNL出力を書き込む。   The checkpoint data output function unit 700 outputs the received update difference information as checkpoint data 900 to the magnetic disk device 1300 at the time of the checkpoint (S36). When outputting the same sub-segment information as the update difference information secured at the previous checkpoint, the previously acquired data is overwritten. Also, a new file is created for JNL data at the timing when the above processing is completed, and the JNL output associated with the subsequent update processing is written.

上記S31から36をシステム起動時から終了まで繰り返し実施する。なお、上記のS35からS36までの処理を実施中にはシステムの停止は行えない。   Steps S31 to S36 are repeated from the system startup to the end. Note that the system cannot be stopped during the processing from S35 to S36.

(リカバリ処理)
システムの起動時に確保されたメモリ領域へリカバリ機能部1100が呼び出され、磁気ディスク装置1300に記録されたチェックポイントデータをメモリ内データ域1200にロードする(S41)。
(Recovery process)
The recovery function unit 1100 is called into the memory area secured when the system is started, and the checkpoint data recorded in the magnetic disk device 1300 is loaded into the in-memory data area 1200 (S41).

リカバリ機能部1100は、S41が終了後、磁気ディスク装置1300に記録されたJNLデータにより更新の後追い処理をメモリに対して行う(S42)。   After S41 ends, the recovery function unit 1100 performs update follow-up processing on the memory using the JNL data recorded in the magnetic disk device 1300 (S42).

S42が終了し次第、データベース更新処理機能部100を外部に開放し、サービスを開始する(S43)。   As soon as S42 is completed, the database update processing function unit 100 is released to the outside and the service is started (S43).

なお、本発明のオンメモリデータベースシステムの適用例としては以下のようなものがある。   Examples of application of the on-memory database system of the present invention include the following.

電話交換処理などのサービスにおいては、1つのデータベース処理(トランザクション)としては極めて小さく、その代わり単位時間あたりの処理用級数が極めて大きいという特徴を持つ。また、サービスの性格上、バックアップなどの保守操作に対してシステムを停止することはできず、すべての保守操作はオンラインにて実現される必要があるため、バックアップもオンライン背景での動作が求められる。   In services such as telephone exchange processing, one database process (transaction) is extremely small, and instead, the processing series per unit time is extremely large. In addition, due to the nature of the service, the system cannot be stopped for maintenance operations such as backup, and all maintenance operations must be performed online, so backup must also be performed in an online background. .

このようなシステムに本発明のオンメモリデータベースシステムを適用すると、ショートトランザクション、高スループットというサービス要求に対し、オンメモリデータベースシステムであることから特に検索処理に対する性能を確保し、また、チェックポイントとJNLによるオンラインバックアップ処理を提供することにより、サービス無停止での保守操作を提供することが可能となる。   When the on-memory database system of the present invention is applied to such a system, it is an on-memory database system in response to a service request such as a short transaction and a high throughput. By providing the online backup processing according to, it becomes possible to provide maintenance operation without service interruption.

また、本発明のオンメモリデータベースシステムを利用したアプリケーション例としては次のような例が考えられる。   Moreover, the following examples can be considered as application examples using the on-memory database system of the present invention.

交換処理では電話のユーザー登録情報から話中管理などのステータス情報までさまざまな種類のデータが管理されるが、特にステータス情報などは頻繁に更新が発生するデータであり、更新に伴うJNL情報もかなりの量を出力する。リカバリ処理においては、最新世代のチェックポイントデータをメモリにロード後、JNL情報によりトランザクション処理を後追いするが、本サーバーシステムを適用することでチェックポイント処理量を抑えることでチェックポイント間隔を短くし、リカバリ処理で使用するJNL情報量を抑え、短い時間でのリカバリを可能とする。   In the exchange process, various types of data are managed, from telephone user registration information to status information such as busy management. Especially, status information is frequently updated data, and JNL information accompanying the update is also considerable. The amount of output. In recovery processing, after loading the latest generation checkpoint data into memory, the transaction processing is followed by JNL information. By applying this server system, the checkpoint interval is shortened by reducing the checkpoint processing amount. The amount of JNL information used in the recovery process is suppressed, and recovery in a short time is possible.

なお、本発明のオンメモリデータベースシステムは、例えば、オンメモリデータベースシステムを構成するコンピュータ装置が有するCPUによって実現され、必要とするデータベース更新処理機能、更新サブセグメント管理機能、チェックポイントデータ取得領域抽出機能、チェックポイントデータ出力機能、JNL出力機能、リカバリ機能などをアプリケーションプログラムとして搭載することができる。   The on-memory database system of the present invention is realized by a CPU included in a computer device constituting the on-memory database system, for example, and requires a required database update processing function, update subsegment management function, checkpoint data acquisition area extraction function In addition, a checkpoint data output function, a JNL output function, a recovery function, and the like can be installed as application programs.

また、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記録媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のCPU(MPU)が記録媒体に格納されたプログラムコードを読み出し実行することによっても実現できる。その場合、記憶媒体から読み出されたプログラムコード自体が上述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体、例えば、CD−ROM、DVD−ROM、CD−R、CD−RW、MO、HDD、等は本発明を構成する。   The present invention also provides a recording medium in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or apparatus, and a program in which the CPU (MPU) of the system or apparatus is stored in the recording medium. This can also be realized by reading and executing the code. In that case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and a storage medium storing the program code, for example, a CD-ROM, a DVD-ROM, a CD-R, CD-RW, MO, HDD, etc. constitute the present invention.

本発明のオンメモリデータベースシステム構成図。The on-memory database system block diagram of this invention. 本発明のオンメモリデータベースシステムにおけるチェックポイントデータフローを示す図。The figure which shows the checkpoint data flow in the on-memory database system of this invention. バックアップ処理フロー図。Backup processing flowchart. リカバリ処理フロー図。Recovery processing flowchart.

符号の説明Explanation of symbols

100…データベース更新処理機能部
200…更新サブセグメント管理機能部
300…システム域・データベース域
400…サブセグメント更新フラグ
500…チェックポイントデータ取得領域抽出機能部
600…差分サブセグメントデータ群
700…チェックポイントデータ出力機能部
800…JNL出力機能部
900…チェックポイントデータ
1000…JNLデータ
1100…リカバリ機能部
1200…メモリ内データ域
1300…磁気ディスク装置
DESCRIPTION OF SYMBOLS 100 ... Database update process function part 200 ... Update subsegment management function part 300 ... System area | region / database area 400 ... Subsegment update flag 500 ... Checkpoint data acquisition area extraction function part 600 ... Difference subsegment data group 700 ... Checkpoint data Output function unit 800 ... JNL output function unit 900 ... Check point data 1000 ... JNL data 1100 ... Recovery function unit 1200 ... Data area in memory 1300 ... Magnetic disk device

Claims (3)

オンメモリデータベースシステムにおけるデータ復元方法であって、
前記オンメモリデータベースシステムは、
オンメモリデータベースのメモリ上データ領域を複数のセグメントに分けて管理し、
データの更新を行うデータベース更新処理機能部が、データ更新の履歴情報であるジャーナル情報をディスクに送信するステップと、
チェックポイントデータ取得領域抽出機能部が、データが更新されたセグメント情報を抽出して、これをチェックポイント時に前記ディスクに送信するステップと、
リカバリ機能部が、システム起動時に、前記ディスクに記憶された直前チェックポイント以降のジャーナルデータに基づいて、前記ディスクに記憶されたチェックポイントデータ更新の後追い処理を行うステップと、を有することを特徴とするデータ復元方法。
A data restoration method in an on-memory database system,
The on-memory database system includes:
Manage the on-memory database data area by dividing it into multiple segments,
A database update processing function unit for updating data transmits journal information which is data update history information to the disk;
A checkpoint data acquisition area extraction function unit extracts segment information whose data has been updated, and transmits the segment information to the disk at the time of a checkpoint;
The recovery function unit has a step of performing a follow-up process for updating the checkpoint data stored in the disk based on journal data after the immediately preceding checkpoint stored in the disk at the time of system startup. To restore data.
オンメモリデータベースシステムにおけるデータ復元方法であって、
前記オンメモリデータベースシステムは、
オンメモリデータベースのメモリ上データ領域を複数のセグメントに分けて管理し、
データベース更新処理機能部が、データの更新要求を受け付け、データ更新する前記メモリ上のデータセグメントを決定して、データの書き換えを行なう更新ステップと、
ジャーナル情報出力機能部が、前記データベース更新処理機能部から前記データ更新の履歴情報であるジャーナル情報を受信して、これをディスクに出力するジャーナル情報出力ステップと、
更新サブセグメント管理機能部が、前記データベース更新処理機能部から前記更新対象データセグメント情報を受信して、対応するサブセグメント更新フラグを更新ありの状態にするサブセグメント更新ステップと、
チェックポイントデータ取得領域抽出機能部が、前記更新ありの状態にあるサブセグメント更新フラグに対応するセグメント情報を抽出して、チェックポイントデータを決定する抽出ステップと、
チェックポイントデータ出力部が、前記チェックポイントデータをチェックポイント時に前記ディスクに出力するチェックポイントデータ出力ステップと、
リカバリ機能部が、前記ディスクに記録したチェックポイントデータ及び直前のチェックポイント以降のジャーナルデータを、システム起動時に、前記メモリ領域に復元して、当該ジャーナルデータに基づいてチェックポイントデータ更新の後追い処理を行う復元ステップと、を有することを特徴とするデータ復元方法。
A data restoration method in an on-memory database system,
The on-memory database system includes:
Manage the on-memory database data area by dividing it into multiple segments,
A database update processing function unit receives a data update request, determines a data segment on the memory to be updated, and rewrites the data; and
A journal information output function unit that receives journal information that is history information of the data update from the database update processing function unit and outputs the journal information to a disk; and
An update subsegment management function unit receives the update target data segment information from the database update processing function unit, and sets a corresponding subsegment update flag to an updated state, a subsegment update step;
An extraction step in which the checkpoint data acquisition region extraction function unit extracts the segment information corresponding to the subsegment update flag in the updated state, and determines the checkpoint data;
A checkpoint data output unit that outputs the checkpoint data to the disc at the time of a checkpoint;
The recovery function unit restores the checkpoint data recorded on the disk and journal data after the previous checkpoint to the memory area at the time of system startup, and performs a follow-up process for updating the checkpoint data based on the journal data. A data restoration method comprising: performing a restoration step.
上記の請求項1または2に記載のデータ復元方法を、コンピュータプログラムで記載してそれを実行可能にしたことを特徴とするプログラム。   A program characterized in that the data restoration method according to claim 1 or 2 is described as a computer program and can be executed.
JP2004330710A 2004-11-15 2004-11-15 Data restoration method and data restoration program Pending JP2006139696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004330710A JP2006139696A (en) 2004-11-15 2004-11-15 Data restoration method and data restoration program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004330710A JP2006139696A (en) 2004-11-15 2004-11-15 Data restoration method and data restoration program

Publications (1)

Publication Number Publication Date
JP2006139696A true JP2006139696A (en) 2006-06-01

Family

ID=36620469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004330710A Pending JP2006139696A (en) 2004-11-15 2004-11-15 Data restoration method and data restoration program

Country Status (1)

Country Link
JP (1) JP2006139696A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134522A (en) * 2008-12-02 2010-06-17 Hitachi Ltd Method, program and device for management of database
JP2010134583A (en) * 2008-12-03 2010-06-17 Hitachi Ltd Database processing method, database processing program and database instruction apparatus
JP2010181924A (en) * 2009-02-03 2010-08-19 Hitachi Ltd Database management method, database management device, and its processing program
JP2011186532A (en) * 2010-03-04 2011-09-22 Nec Corp Information processing system and data management method thereof
JP2012033126A (en) * 2010-08-03 2012-02-16 Nec Corp Database system, database update method and database update program
WO2014136172A1 (en) 2013-03-04 2014-09-12 株式会社東芝 Database device, program, and data processing method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134522A (en) * 2008-12-02 2010-06-17 Hitachi Ltd Method, program and device for management of database
JP2010134583A (en) * 2008-12-03 2010-06-17 Hitachi Ltd Database processing method, database processing program and database instruction apparatus
JP2010181924A (en) * 2009-02-03 2010-08-19 Hitachi Ltd Database management method, database management device, and its processing program
JP2011186532A (en) * 2010-03-04 2011-09-22 Nec Corp Information processing system and data management method thereof
JP2012033126A (en) * 2010-08-03 2012-02-16 Nec Corp Database system, database update method and database update program
WO2014136172A1 (en) 2013-03-04 2014-09-12 株式会社東芝 Database device, program, and data processing method
CN104137100A (en) * 2013-03-04 2014-11-05 株式会社东芝 Database device, program, and data processing method
CN104137100B (en) * 2013-03-04 2017-11-24 株式会社东芝 Data library device, program and data processing method
US10969970B2 (en) 2013-03-04 2021-04-06 Kabushiki Kaisha Toshiba Storage optimization of database in volatile and non-volatile storing unit

Similar Documents

Publication Publication Date Title
JP5337916B1 (en) Information processing system
US20150213100A1 (en) Data synchronization method and system
US20170344433A1 (en) Apparatus and method for data migration
US9635109B2 (en) Enhancing reliability of a storage system by strategic replica placement and migration
US20080005191A1 (en) System And Method For Implementing A Partial-Blocking Consistency Point In A Database
US10592354B2 (en) Configurable recovery states
JP2006065845A (en) Generation of optimized restoration plan
CN109426585A (en) A kind of method and apparatus for backing up, restoring database data
US20120278429A1 (en) Cluster system, synchronization controlling method, server, and synchronization controlling program
US10031948B1 (en) Idempotence service
CN104750755B (en) A kind of data covering method and system after database active-standby switch
RU2646309C1 (en) Backup method
CN102262543A (en) Power-failure resistant method for starting Linux system
US11500812B2 (en) Intermediate file processing method, client, server, and system
US8719622B2 (en) Recording and preventing crash in an appliance
JP2006139696A (en) Data restoration method and data restoration program
JP5719083B2 (en) Database apparatus, program, and data processing method
US11216427B2 (en) Method, electronic device and computer-readable medium for managing metadata
EP3769225B1 (en) Free space pass-through
US11226875B2 (en) System halt event recovery
CN110297673B (en) Method and storage medium for optimizing loading of memory data
KR102618274B1 (en) Management system for data included in a container and control method thereof
CN110658989B (en) System and method for backup storage garbage collection
JP2014170448A (en) Replication system, job processing system, replication method and program
US20030120689A1 (en) Database management program and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070215

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20090527

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091104

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100309