Movatterモバイル変換


[0]ホーム

URL:


CN103365987A - Clustered database system and data processing method based on shared-disk framework - Google Patents

Clustered database system and data processing method based on shared-disk framework
Download PDF

Info

Publication number
CN103365987A
CN103365987ACN2013102821145ACN201310282114ACN103365987ACN 103365987 ACN103365987 ACN 103365987ACN 2013102821145 ACN2013102821145 ACN 2013102821145ACN 201310282114 ACN201310282114 ACN 201310282114ACN 103365987 ACN103365987 ACN 103365987A
Authority
CN
China
Prior art keywords
data
node
main controlled
controlled node
described main
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
CN2013102821145A
Other languages
Chinese (zh)
Other versions
CN103365987B (en
Inventor
任永杰
冯玉
冷建全
李祥凯
杨尚
白广超
王殿成
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.)
China Electronics Technology Group Jincang Beijing Technology Co ltd
Original Assignee
Beijing Kingbase Information Technologies Co 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 Beijing Kingbase Information Technologies Co LtdfiledCriticalBeijing Kingbase Information Technologies Co Ltd
Priority to CN201310282114.5ApriorityCriticalpatent/CN103365987B/en
Publication of CN103365987ApublicationCriticalpatent/CN103365987A/en
Application grantedgrantedCritical
Publication of CN103365987BpublicationCriticalpatent/CN103365987B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention relates to a clustered database system and data processing method based on a shared-disk framework. The system comprises main control nodes and transaction nodes, wherein the transaction nodes are used for processing transactions and querying static data in a clustered database; the main control nodes are used for carrying out update operation on data in the clustered database, generating dynamic data, saving and querying the dynamic data. According to a novel database management system framework and the data processing method under the cluster environment of shared-disk framework, advantages (such as large internal storage, SSD (Solid State Disk) and other latest hardware technologies) of latest hardware technologies are adopted, so that the performance of the database is improved remarkably, the cooperative work of multiple computes is utilized fully, limitation of the database on the aspect of expansibility is broken through, and the system performance and throughput of transaction processing are improved.

Description

A kind of clustered database system and data processing method based on the shared disk framework
Technical field
The present invention relates to database technical field, particularly a kind of clustered database system and data processing method based on the shared disk framework.
Background technology
Database is the net result of preserving calculating, so be the most important components of whole infosystem.Satisfying ever-increasing Transaction Processing application facet, also there are many urgent technical issues that need to address in fact in current database technology.
For all databases, except recording correct result, they all are faced with the challenge of four aspects: how to improve processing speed, availability of data, data security and data set extensibility, that is to say, the scalability that how to make current database have this four aspect makes the client can obtain simultaneously higher processing speed, higher availability of data, higher data security and larger data set.A plurality of databases are linked togather form data-base cluster and reach above-mentioned target and should say a very natural idea.Clustering is to use specific connected mode, and the hardware device that price is relatively low combines, and provides high-performance suitable task processing power, guarantees simultaneously the correctness of issued transaction.
Data-base cluster mainly contains following three kinds of structures:
1) shared drive (primary memory) structure (Shared_Memory, SM)
2) shared-disk architecture (Shared_Disk, SD)
3) shared nothing structure (Shared_Nothing, SN)
Under shared-disk architecture, more typical system is Oracle Real Application Cluster(Oracl e RAC at present), this system is the parallel cluster of Oracle, the Oracle example that is positioned at the different server system is accessed same oracle database simultaneously, communicate by private network between the node, all control documents, online daily record and data file leave on the shared equipment, can be read while write by all nodes in the cluster.Each node among the RAC is peer-to-peer, and each node receives user's request, and gives user's return results.RAC has adopted Cache Fusion (Database cache fusion) technology, and the transmission of data block is carried out by high speed, the low internal network that postpones in the data buffer of each node.This scheme Main Problems is that inter-node traffic is large, and node buffer zone simultaneous techniques is complicated.
Summary of the invention
The objective of the invention is for the problems referred to above, the present invention proposes a kind of clustered database system based on the shared disk framework and data processing method, and is large to overcome in the prior art inter-node traffic, the problem of node buffer zone simultaneous techniques complexity.
For achieving the above object, the present invention proposes a kind of clustered database system based on the shared disk framework, and this system comprises: main controlled node and affairs node;
Described affairs node is for the treatment of the inquiry of the issued transaction in the Cluster Database and static data;
Described main controlled node is used for Cluster Database is carried out the Data Update operation, produces dynamic data, preserves and inquire about described dynamic data.
Optionally, in an embodiment of the present invention, described main controlled node is further used for inquiring about described dynamic data, and Query Result is back to described affairs node;
Described affairs node is further used for obtaining the Static Inquiry result according to the static data on the data processing request inquiry disk, obtains result set according to the Query Result and the described Static Inquiry result merging that identify described main controlled node.
Optionally, in an embodiment of the present invention, described main controlled node is used for the data of inserting are preserved.
Optionally, in an embodiment of the present invention, described main controlled node is used for recording the sign of the data that need modification and the data after the corresponding renewal;
Optionally, in an embodiment of the present invention, described main controlled node is used for the sign that record needs the data of deletion.
Optionally, in an embodiment of the present invention, described affairs node adopts the relational database management system engine.
Optionally, in an embodiment of the present invention, described main controlled node adopts the main storage data base engine.
Optionally, in an embodiment of the present invention, described main controlled node is further used for regularly or is static data on the disk according to the operating position of core buffer with described daynamic transformation.
Optionally, in an embodiment of the present invention, described main controlled node is further used for regularly or according to the operating position of core buffer described dynamic data is forwarded to described affairs node;
Described affairs node is further used for the data that described main controlled node forwards are converted to static data on the disk.
For achieving the above object, the present invention also proposes a kind of data processing method, and the method comprises:
The query manipulation of the static data in the described affairs node processing Cluster Database;
Described main controlled node carries out the Data Update operation to Cluster Database, produces dynamic data, preserves and inquire about described dynamic data.
Optionally, in an embodiment of the present invention, the method also comprises:
Described main controlled node is inquired about described dynamic data and is obtained the first Query Result, and is forwarded to described affairs node;
Described affairs node obtains the Static Inquiry result according to the static data on the data processing request inquiry disk, according to sign described the first Query Result and described Static Inquiry result merging is obtained result set.
Optionally, in an embodiment of the present invention, described main controlled node is preserved the data of inserting.
Optionally, in an embodiment of the present invention, the sign of the data that described main controlled node record need to be modified and the data after corresponding the renewal;
Optionally, in an embodiment of the present invention, described main controlled node record needs the sign of the data of deletion.
Technique scheme has following beneficial effect: under a kind of cluster environment of new shared disk framework, database management system architecture and data processing method thereof, utilize the advantage (such as up-to-date hardware technologies such as large internal memory, SSD) of up-to-date hardware technology, significantly improved the performance of database, and take full advantage of many collaborative computer work, break through the limitation of database aspect extendability, improve the performance of system and the handling capacity of issued transaction.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of clustered database system block diagram based on the shared disk framework that the present invention proposes;
Fig. 2 is one of a kind of data processing method process flow diagram of proposing of the present invention;
Fig. 3 is two of a kind of data processing method process flow diagram of proposing of the present invention;
Fig. 4 is that the embodiment of the invention is based on the clustered database system Organization Chart of shared disk framework;
Fig. 5 is data processing method process flow diagram in the embodiment of the invention;
Fig. 6 is that the embodiment of the invention is based on the data processing method process flow diagram of the system architecture of Fig. 4;
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described.Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
As shown in Figure 1, a kind of clustered database system block diagram based on the shared disk framework that proposes for the present invention.This system comprises: main controllednode 101 andaffairs node 102;
Describedaffairs node 102 is for the treatment of the query manipulation of the static data in the Cluster Database;
Described main controllednode 101 is used for Cluster Database is carried out the Data Update operation, produces dynamic data, preserves and inquire about described dynamic data.
Optionally, in an embodiment of the present invention, described main controllednode 101 is further used for inquiring about described dynamic data, and Query Result is back to described affairs node;
Describedaffairs node 102 is further used for obtaining the Static Inquiry result according to the static data on the data processing request inquiry disk, obtains result set according to the Query Result and the described Static Inquiry result merging that identify described main controlled node.
Optionally, in an embodiment of the present invention, described main controllednode 101 is used for the data of inserting are preserved.
Optionally, in an embodiment of the present invention, described main controllednode 101 is used for recording the sign of the data that are modified and the data after corresponding the renewal;
Optionally, in an embodiment of the present invention, described main controllednode 101 is used for the sign that record needs the data of deletion.
Optionally, in an embodiment of the present invention, describedaffairs node 102 adopts the relational database management system engine.
Optionally, in an embodiment of the present invention, described main controllednode 101 adopts the main storage data base engine.
Optionally, in an embodiment of the present invention, it regularly is static data on the disk with described daynamic transformation that described main controllednode 101 is further used for.
Optionally, in an embodiment of the present invention, described main controllednode 101 is further used for regularly described dynamic data being forwarded to described affairs node;
Describedaffairs node 102 is further used for the data that described main controllednode 101 forwards are converted to static data on the disk.
As shown in Figure 2, one of a kind of data processing method process flow diagram that proposes for the present invention.The method comprises:
Step 201): the query manipulation of the static data in the described affairs node processing Cluster Database;
Step 202): described main controlled node carries out the Data Update operation to Cluster Database, produces dynamic data, preserves and inquire about described dynamic data.
As shown in Figure 3, two of a kind of data processing method process flow diagram that proposes for the present invention.The method also comprises:
Step 203): described main controlled node is inquired about described dynamic data and is obtained the first Query Result, and is forwarded to described affairs node;
Step 204): described affairs node obtains the Static Inquiry result according to the static data on the data processing request inquiry disk, according to sign described the first Query Result and described Static Inquiry result merging is obtained result set.
Embodiment:
Present embodiment provides database management system architecture and data processing method thereof under a kind of cluster environment of new shared disk framework, utilize the advantage (such as up-to-date hardware technologies such as large internal memory, SSD) of up-to-date hardware technology, significantly improved the performance of database, and take full advantage of many collaborative computer work, break through the limitation of database aspect extendability, improve the performance of system and the handling capacity of issued transaction.
As shown in Figure 4, be a kind of clustered database system Organization Chart based on the shared disk framework of the embodiment of the invention.The computer node that forms data-base cluster has two types: affairs node and main controlled node; The affairs node adopts relational database management system (RDB) engine, and main controlled node adopts main storage data base (MMDB) engine.The affairs node is accepted user's data processing request.Static data on the affairs querying node disk, all increase, delete, change all and carry out at main controlled node data-base cluster, upgrade the result and are kept in the internal memory of main controlled node.When the data buffer of main controlled node is full of or system when idle, system then merges on the disk upgrading batch data, forms new static data.
The operation that increases, deletes, changes in the request is processed by main controlled node; For query manipulation in user's the request, then be divided into two parts and carry out: the static data on the affairs querying node disk, master control node inquiry dynamic data is merged into correct result set to these two parts, returns to the user.
For the update (INSERT statement) of database, processed by main controlled node, be stored in the internal storage data buffer zone;
For the retouching operation (UPDATE statement) of database, at first inquire the old tuple that needs modification, generate the new tuple after upgrading; New tuple is processed by main controlled node, the sign of record modification tuple and corresponding new tuple in the data buffer of main controlled node;
For the deletion action (DELETE statement) of database, at first inquiry needs the old tuple of modification, if exist, then the tuple of record deletion identifies in the data buffer of main controlled node;
Query manipulation (SELECT statement) for database, be divided into two parts: static data inquiry and dynamic data retrieval, the static data inquiry is carried out at the affairs node, dynamic data retrieval carries out at main controlled node, according to the tuple sign these two parts is merged the final correct result of formation and returns to the user;
Generally, a typical shared disk framework data-base cluster is made of a main controlled node and a plurality of affairs node.In high available configuration situation, also can increase by a station server, as the standby host of main controlled node, for the special two-shipper of main controlled node configuration is done memory mirror, thereby guarantee the real uninterrupted of Transaction Service, standby host also can be accepted read request simultaneously.
In addition, can also be on same server simultaneously operational relation database (RDB) engine and main storage data base (M MDB) engine, be that main controlled node and affairs node are integrated on the same station server, the in the manner described above simultaneously user of process database request.
As shown in Figure 5, be data processing method process flow diagram in the embodiment of the invention.The method comprises:
Step 501): client sends the SQL query instruction to the affairs node;
Step 502): the affairs node is resolved the generated query plan to described SQL query instruction;
Step 503): when inquiry plan inserted data, described affairs node was sent to main controlled node with the data of inserting;
When inquiry plan was deleted data, described affairs node and described main controlled node were carried out the sign that query manipulation obtains the data that need deletion, and will need the sign of the data of deleting to be sent to main controlled node;
When inquiry plan was revised data, the sign of the data that described affairs querying node goes out to be modified was sent to described main controlled node with the sign of the data that are modified and the data after corresponding the renewal;
Step 504): when inquiry plan was inquired about data, the static data on the described affairs querying node disk obtained the Static Inquiry result;
Step 505): described main controlled node is carried out the operation of inquiry plan, and returns a result set to described affairs node;
Step 506): described affairs node obtains the net result collection according to sign with result set and the described Static Inquiry result merging that described main controlled node returns, and described net result collection is back to described client.
Preferably, also comprise: described affairs node abnormality processing occurs after the generated query plan is resolved in described SQL query instruction, and then described affairs node sends wrong indication to described client.
As shown in Figure 6, be the data processing method process flow diagram of the embodiment of the invention based on the system architecture of Fig. 4.The below uses a concrete database manipulation example to further specify in conjunction with Fig. 6:
Tentation data storehouse cluster is comprised of three node N1, N2 and N3, and wherein N1, N2 are the affairs nodes, and N3 is main controlled node;
Tentation data has Table A in the storehouse, and three tuples (1,1,1) are arranged among the A, and (2,2,2), (3,3,3) suppose that first row is the unique identification of tuple in the table;
When node N1 received the user and inquires about the request of A table, three tuples of Table A were read the data buffer of node N1 from disk, inquire 3 tuples from node N1, query node N3 then, and the tuple without the A table then returns to three tuples of user;
When node N1 received the user to the A table new tuple of insertion (4,4,4) request, node N1 constructed new tuple, sends to node N3, is inserted into the data buffer of node N3;
When node N1 received the user tuple (1,1,1) in the A table is modified as the request of (1,2,2), then node N1 constructed new tuple (1,2,2), sends to node N3, and new tuple is inserted into the data buffer of node N3;
When node N1 receives the user and deletes tuple (2,2,2) request in the A table, then node N1 at first acknowledgment of your inquiry have tuple (2,2,2), then notify node N3, in the data buffer of node N3, insert a special tuple (2, del);
When node N1 receives when the user inquires about the A table again, from node N1, inquire three tuples (1,1,1), (2,2,2), (3,3,3), from node N3, inquire two tuples (1,2,2), (2, del), node N1 merges two result sets, can obtain result set (1,2,2), (3,3,3), return to the user.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; the protection domain that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

CN201310282114.5A2013-07-052013-07-05Clustered database system and data processing method based on shared-disk frameworkActiveCN103365987B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310282114.5ACN103365987B (en)2013-07-052013-07-05Clustered database system and data processing method based on shared-disk framework

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310282114.5ACN103365987B (en)2013-07-052013-07-05Clustered database system and data processing method based on shared-disk framework

Publications (2)

Publication NumberPublication Date
CN103365987Atrue CN103365987A (en)2013-10-23
CN103365987B CN103365987B (en)2017-04-12

Family

ID=49367328

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310282114.5AActiveCN103365987B (en)2013-07-052013-07-05Clustered database system and data processing method based on shared-disk framework

Country Status (1)

CountryLink
CN (1)CN103365987B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103984768A (en)*2014-05-302014-08-13华为技术有限公司Data management method for database cluster, nodes and data management system for database cluster
CN104408097A (en)*2014-11-172015-03-11深圳市比一比网络科技有限公司Hybrid indexing method and system based on character field hot update
CN105354046A (en)*2015-09-152016-02-24深圳市深信服电子科技有限公司Shared disk based database update processing method and system
CN106372162A (en)*2016-08-312017-02-01天津南大通用数据技术股份有限公司Extension method and device of database cluster application
US10642822B2 (en)2015-01-042020-05-05Huawei Technologies Co., Ltd.Resource coordination method, apparatus, and system for database cluster
CN112162832A (en)*2020-09-082021-01-01北京人大金仓信息技术股份有限公司Method and device for realizing audit data storage under multi-version concurrency control
CN115438112A (en)*2022-09-142022-12-06中国银行股份有限公司Data information exporting method and device based on Oracle database

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20030149793A1 (en)*2002-02-012003-08-07Daniel BannouraSystem and method for partial data compression and data transfer
CN1480850A (en)*2002-12-042004-03-10联想(北京)有限公司Method for dynamic transferring data and its storing system
CN101068237A (en)*2006-08-282007-11-07腾讯科技(深圳)有限公司Data access system and data access method
CN102375884A (en)*2011-10-212012-03-14北京百度网讯科技有限公司Method and device for data compression for page access object

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20030149793A1 (en)*2002-02-012003-08-07Daniel BannouraSystem and method for partial data compression and data transfer
CN1480850A (en)*2002-12-042004-03-10联想(北京)有限公司Method for dynamic transferring data and its storing system
CN101068237A (en)*2006-08-282007-11-07腾讯科技(深圳)有限公司Data access system and data access method
CN102375884A (en)*2011-10-212012-03-14北京百度网讯科技有限公司Method and device for data compression for page access object

Cited By (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US10379977B2 (en)2014-05-302019-08-13Huawei Technologies Co., Ltd.Data management method, node, and system for database cluster
US10860447B2 (en)2014-05-302020-12-08Huawei Technologies Co., Ltd.Database cluster architecture based on dual port solid state disk
CN103984768B (en)*2014-05-302017-09-29华为技术有限公司A kind of data-base cluster manages method, node and the system of data
CN103984768A (en)*2014-05-302014-08-13华为技术有限公司Data management method for database cluster, nodes and data management system for database cluster
CN104408097A (en)*2014-11-172015-03-11深圳市比一比网络科技有限公司Hybrid indexing method and system based on character field hot update
CN104408097B (en)*2014-11-172018-07-20深圳市比一比网络科技有限公司One kind is based on the newer hybrid index method and system of character field heat
US10642822B2 (en)2015-01-042020-05-05Huawei Technologies Co., Ltd.Resource coordination method, apparatus, and system for database cluster
CN105354046B (en)*2015-09-152019-03-26深信服科技股份有限公司Database update processing method and system based on shared disk
CN105354046A (en)*2015-09-152016-02-24深圳市深信服电子科技有限公司Shared disk based database update processing method and system
CN106372162A (en)*2016-08-312017-02-01天津南大通用数据技术股份有限公司Extension method and device of database cluster application
CN112162832A (en)*2020-09-082021-01-01北京人大金仓信息技术股份有限公司Method and device for realizing audit data storage under multi-version concurrency control
CN112162832B (en)*2020-09-082024-02-09北京人大金仓信息技术股份有限公司Method and device for realizing audit data storage under multi-version concurrency control
CN115438112A (en)*2022-09-142022-12-06中国银行股份有限公司Data information exporting method and device based on Oracle database

Also Published As

Publication numberPublication date
CN103365987B (en)2017-04-12

Similar Documents

PublicationPublication DateTitle
US11816126B2 (en)Large scale unstructured database systems
KR102177190B1 (en)Managing data with flexible schema
CN104794123B (en)A kind of method and device building NoSQL database indexes for semi-structured data
CN109656958B (en)Data query method and system
US8924365B2 (en)System and method for range search over distributive storage systems
CN103714123B (en)Enterprise's cloud memory partitioning object data de-duplication and restructuring version control method
CN111767303A (en) A data query method, device, server and readable storage medium
CN103365987A (en)Clustered database system and data processing method based on shared-disk framework
Khandelwal et al.Zipg: A memory-efficient graph store for interactive queries
US10860562B1 (en)Dynamic predicate indexing for data stores
CN111917834A (en) A data synchronization method, device, storage medium and computer equipment
EP3702932A1 (en)Method, apparatus, device and medium for storing and querying data
US20090012932A1 (en)Method and System For Data Storage And Management
US20140012867A1 (en)Method And Process For Enabling Distributing Cache Data Sources For Query Processing And Distributed Disk Caching Of Large Data And Analysis Requests
CN105389367B (en)The multilevel distributed storage method of grid graph multi-time Scales based on Mongo databases
CN105183839A (en)Hadoop-based storage optimizing method for small file hierachical indexing
CN104133882A (en)HDFS (Hadoop Distributed File System)-based old file processing method
CN101963993B (en)Method for fast searching database sheet table record
CN103595799A (en)Method for achieving distributed shared data bank
CN107766355B (en)Hierarchical data management method, hierarchical data management system and instant messaging system
CN109213760B (en) High-load business storage and retrieval method for non-relational data storage
CN105405070A (en)Distributed memory power grid system construction method
WO2017112861A1 (en)System and method for adaptive filtering of data requests
CN106055678A (en)Hadoop-based panoramic big data distributed storage method
US20180276267A1 (en)Methods and system for efficiently performing eventual and transactional edits on distributed metadata in an object storage system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address
CP03Change of name, title or address

Address after:100102 201, 2 / F, 101, No. 5 building, No. 7 Rongda Road, Chaoyang District, Beijing

Patentee after:China Electronics Technology Group Jincang (Beijing) Technology Co.,Ltd.

Country or region after:China

Address before:Room 601, Building 4, No. 8 Shangdi West Road, Haidian District, Beijing

Patentee before:BEIJING KINGBASE INFORMATION TECHNOLOGIES Inc.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp