KR100346891B1 - Replication method for distributed data - Google Patents

Replication method for distributed data Download PDF

Info

Publication number
KR100346891B1
KR100346891B1 KR1020000051203A KR20000051203A KR100346891B1 KR 100346891 B1 KR100346891 B1 KR 100346891B1 KR 1020000051203 A KR1020000051203 A KR 1020000051203A KR 20000051203 A KR20000051203 A KR 20000051203A KR 100346891 B1 KR100346891 B1 KR 100346891B1
Authority
KR
South Korea
Prior art keywords
replication
data
server
databases
active
Prior art date
Application number
KR1020000051203A
Other languages
Korean (ko)
Other versions
KR20020017705A (en
Inventor
방재경
이상윤
Original Assignee
삼성증권주식회사
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 삼성증권주식회사 filed Critical 삼성증권주식회사
Priority to KR1020000051203A priority Critical patent/KR100346891B1/en
Publication of KR20020017705A publication Critical patent/KR20020017705A/en
Application granted granted Critical
Publication of KR100346891B1 publication Critical patent/KR100346891B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis

Abstract

개시된 내용은 분산 데이터 복제방법에 관한 것으로서, 증권거래 발생시 특정 유닉스 서버의 액티브 데이터 서버를 통해 복수개의 액티브 데이터베이스에 데이터를 업데이트하고 하나의 복제 서버를 통해 복제 대상이 되는 데이터를 다른 유닉스 서버의 복제서버 및 복제 데이터 서버를 통해 복제 데이터베이스로 복제하는 경우, 복제 대상이 되는 액티브 데이터베이스가 복수개라도 하나의 복제 서버에 전체 액티브 데이터베이스가 할당됨과 동시에 하나의 복제서버가 하나의 CPU에 전용으로 할당되는 방식으로 증권거래시 발생되는 데이터를 직렬로 처리하는 분산 데이터 복제방법에 있어서, 증권거래시 발생되는 데이터를 복제하기 위해 유닉스 서버에 구비된 복수개의 액티브 데이터베이스를 복수개의 복제 서버에 할당하고, 복수개의 복제 서버를 복수개의 CPU에 각각 전용으로 할당하며, 복수개의 액티브 데이터베이스에 업데이트된 복제대상의 데이터를 복수개의 복제 서버로 병렬로 분산하여 네트워크를 통해 다른 유닉스 서버의 복제 데이터베이스로 복제한다.Disclosed is a distributed data replication method. When a securities transaction occurs, data is updated in a plurality of active databases through an active data server of a specific Unix server, and data that is to be replicated through a single replication server is a replication server of another Unix server. When replicating to a replica through a replica data server, even if there are multiple active databases to be replicated, the entire active database is allocated to one replica server and one replica server is allocated to one CPU. In the distributed data replication method of serially processing data generated during a transaction, a plurality of active databases provided in a Unix server are assigned to a plurality of replication servers in order to replicate data generated during a stock transaction.Each CPU is allocated to a plurality of CPUs, and the updated target data in multiple active databases is distributed in parallel to a plurality of replication servers and replicated to a replica database of another Unix server through a network.

따라서, 본 발명은 증권거래시 발생되는 데이터의 복제속도가 최소 2배에서 최대 수십배까지 향상됨은 물론, 고속의 데이터 복제기법을 활용하여 복수개의 유닉스 서버로 거래를 분산 처리함으로써 대규모 거래 발생으로 인한 유닉스 서버의 처리규모 한계치를 극복할 수 있는 효과를 제공한다.Therefore, the present invention improves the replication speed of data generated during a securities transaction by at least 2 times up to several tens of times, as well as by distributing transactions to a plurality of Unix servers using a high speed data replication technique. It provides the effect of overcoming the processing limit of the server.

Description

분산 데이터 복제방법 {Replication method for distributed data}Replication method for distributed data

본 발명은 분산 데이터 복제방법에 관한 것이다.The present invention relates to a distributed data replication method.

보다 상세하게는 개방형 구조의 유닉스(Unix) 시스템 및 표준화된 관계 데이터베이스 관리 시스템(RDBMS) 등을 사용하여 증권거래 발생시 생성되는 데이터를 처리할 때 대규모의 거래 발생으로 인해 유닉스 서버의 처리규모 한계치를 초과하여 데이터 복제속도 및 업무처리의 지장이 발생될 경우, 하나의 유닉스 서버에서 처리되는 데이터를 복수의 유닉스 서버로 분산, 복제함으로써 업무분산을 수행할 수 있도록 하는 분산 데이터 복제방법에 관한 것이다.More specifically, when processing data generated when a securities transaction occurs using an open Unix system and a standardized relational database management system (RDBMS), a large transaction occurrence exceeds the limit of the processing capacity of the Unix server. Therefore, when data replication speed and business processing problems occur, the present invention relates to a distributed data replication method for performing business distribution by distributing and replicating data processed by one Unix server to a plurality of Unix servers.

일반적으로 증권 업무를 수행하는 많은 증권사들은 증권 데이터의 빠른 처리를 위해 유닉스 시스템 및 표준화된 관계 데이터베이스 관리 시스템 등을 통해 업무를 전산화하여 사용하고 있다.In general, many securities firms that carry out securities business use computerized services through Unix system and standardized relational database management system for the quick processing of securities data.

도 1 내지 도 3은 상술한 바와 같이 종래 기술에 따른 증권 데이터의 전산처리를 위한 데이터 복제과정을 설명하기 위한 도면이다.1 to 3 are diagrams for explaining a data replication process for the computerized processing of the securities data according to the prior art as described above.

도시된 바와 같이, 하나의 증권거래가 발생되면 유닉스 서버(10)의 액티브 데이터 서버(12)를 통해 3개의 액티브 데이터베이스(13)(14)(15)에 데이터가 업데이트됨과 아울러, 복제 서버(16)를 통해 복제대상이 되는 데이터가 네트워크로 연결된 다른 유닉스 서버(20)의 복제 서버(22) 및 복제 데이터 서버(23)를 통해 해당 데이터가 복제 데이터베이스(24)(25)(26)로 복제된다. 이때, 유닉스 서버(10) 내의 복수개의 액티브 데이터베이스(13)(14)(15)를 하나의 복제 서버(16)에 할당하는 것은 CPU(11)의 제어에 따라 수행된다.As shown in the figure, when one securities transaction occurs, data is updated in three active databases 13, 14, and 15 through the active data server 12 of the Unix server 10, and the replication server 16. The data to be replicated through the replication server 22 and the replication data server 23 of the other UNIX server 20 connected to the network is replicated to the replication database 24, 25, 26. At this time, the allocation of the plurality of active databases 13, 14, 15 in the Unix server 10 to one replica server 16 is performed under the control of the CPU 11.

예를 들어, 도 2와 도 3을 참조하여 보다 상세하게 설명하면, 30개의 증권거래를 전산처리할 경우 유닉스 서버(10)의 액티브 데이터 서버(12)를 통해 3개의 액티브 데이터베이스(13)(14)(15)에 해당되는 데이터의 업데이트가 발생된다. 이때, 데이터 업데이트시에는 데이터의 정합성을 확보하기 위한 락(Lock) 처리를 위하여 더미(dummy) 업데이트를 수행한다. 따라서, 액티브 데이터베이스(13)(14)(15) 각각에 실제로 라이트(write)되는 로그(Log)는 각각 60개씩, 복제 대상이 되는 데이터는 전체적으로 180건이 발생된다.For example, referring to FIG. 2 and FIG. 3, three active databases 13 and 14 through the active data server 12 of the Unix server 10 when computerizing 30 securities transactions. Update of the data corresponding to (15) is generated. At this time, during data update, a dummy update is performed for a lock process to ensure data consistency. Therefore, 60 logs are actually written to each of the active databases 13, 14, and 15, and 180 pieces of data to be replicated are generated.

즉, 유닉스 서버(10)에 있는 하나의 복제 서버(16) 내부의 각 복제 에이전트 유저(Replication Agent User)는 액티브 데이터 서버(12)의 복제 에이전트(Replication Agent)를 통해 60개씩의 로그를 읽어서 이를 다른 유닉스 서버(20)의 복제 서버(22)로 데이터를 180건 복제하는 것이다.That is, each replication agent user in one replication server 16 of the UNIX server 10 reads 60 logs through the replication agent of the active data server 12 and then logs them. It is to replicate 180 data to the replication server 22 of another Unix server 20.

이때, 복제 서버(16)는 유닉스 서버(10) 내에 있는 복수개의 CPU중 하나의 CPU(11)(21)에만 전용으로 할당되어 처리된다. 즉, 종래의 증권 데이터의 전산처리를 위한 데이터 복제과정은 복제 대상이 되는 데이터베이스가 복수개라도 하나의 복제 서버(16)에 전체가 할당되고, 이와 동시에 하나의 CPU(11)에 전용으로 할당되는 형태로 되어 있다.At this time, the replication server 16 is dedicated and processed only for one CPU 11, 21 of a plurality of CPUs in the Unix server 10. That is, in the conventional data replication process for computerized data processing of securities data, even if a plurality of databases to be replicated are allotted to one replication server 16, the entire data is allocated to one CPU 11 at the same time. It is.

이로 인해 하나의 CPU는 하나의 복제 서버에 할당되어 전체적으로 180개의 로그를 처리함에 따라 복제대상 데이터가 복제 서버의 처리 임계치를 초과하게 되면, CPU 자체의 처리능력 한계성 때문에 복제 서버의 복제 에이전트 유저가 액티브 데이터 서버의 복제 에이전트를 통해 해당 로그를 읽을 때 병목현상이 발생하고,이로 인해 전체적인 데이터 복제속도가 느려지게 된다.As a result, one CPU is allocated to one replication server to process 180 logs as a whole, and when the data to be replicated exceeds the processing threshold of the replication server, the replication agent user of the replication server becomes active due to the CPU's own processing limitation. Bottlenecks occur when reading the log through the replication agent of the data server, which slows down overall data replication.

즉, 상술한 바와 같은 종래의 데이터 복제방법은, 시스템 환경의 급변과 온라인 거래의 급속한 성장으로 인해 예상을 초월하는 거래가 이루어지는 상황에서 거래량의 증가에 따른 유닉스 시스템의 한계로 인하여 하나의 유닉스 서버에서 모든 데이터를 처리할 경우 데이터 복제속도가 느려짐은 물론, 전산업무 처리를 위해 복제되어야 할 데이터량이 증가됨에 따라 이를 처리하는 유닉스 서버의 적정 한계치를 초과하게 되면, 데이터 복제속도가 현저하게 떨어져 전산업무 처리에 지장을 초래하는 문제점이 발생하였다.In other words, the conventional data replication method as described above, in a situation where transactions exceed the expectations due to the rapid change of the system environment and the rapid growth of online transactions, all of one Unix server due to the limitation of the Unix system due to the increase in the transaction volume When processing data, the data replication speed is slowed down, and when the amount of data to be replicated for the whole business process increases, the proper limit of the UNIX server that processes it is exceeded. There was a problem causing trouble.

본 발명의 목적은 전술한 문제점을 해결할 수 있도록 개방형 구조의 유닉스 시스템 및 표준화된 관계 데이터베이스 관리 시스템 등을 사용하여 증권거래 발생시 생성되는 데이터를 처리할 때 대규모의 거래 발생으로 인해 유닉스 서버의 처리규모 한계치를 초과하여 데이터 복제속도 및 업무처리의 지장이 발생될 경우, 하나의 유닉스 서버에서 처리되는 데이터를 복수의 유닉스 서버로 분산, 복제함으로써 업무분산을 수행할 수 있도록 하는 분산 데이터 복제방법을 제공하는데 있다.An object of the present invention is to limit the processing size of the UNIX server due to the large-scale transaction when processing the data generated when the securities transaction occurs by using an open-type UNIX system and a standardized relational database management system to solve the above problems. In the event that data replication speed and business processing problem are exceeded, a distributed data replication method is provided so that business distribution can be performed by distributing and replicating data processed by one Unix server to a plurality of Unix servers. .

도 1 내지 도 3은 종래 기술에 따른 데이터 복제과정을 설명하기 위한 도면,1 to 3 are diagrams for explaining a data replication process according to the prior art;

도 4 내지 도 6은 본 발명에 따른 분산 데이터 복제과정의 일 실시예를 설명하기 위한 도면,4 to 6 are diagrams for explaining an embodiment of a distributed data replication process according to the present invention;

도 7 내지 도 9는 본 발명에 따른 분산 데이터 복제과정의 다른 실시예를 설명하기 위한 도면,7 to 9 are diagrams for explaining another embodiment of a distributed data replication process according to the present invention;

도 10은 본 발명에 따른 분산 데이터 복제과정의 또 다른 실시예를 설명하기 위한 도면,10 is a view for explaining another embodiment of a distributed data replication process according to the present invention;

도 11 내지 도 13은 본 발명에 따른 분산 데이터 복제과정의 각 실시예의 동작과정을 상세하게 나타낸 순서도이다.11 to 13 are flowcharts showing in detail the operation of each embodiment of the distributed data replication process according to the present invention.

* 도면의 주요부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

100, 200 : 유닉스 서버 110, 210 : CPU100, 200: Unix server 110, 210: CPU

120 : 액티브 데이터 서버 130 : 액티브 데이터베이스120: Active Data Server 130: Active Database

140, 220 : 복제 서버 230 : 복제 데이터 서버140, 220: replication server 230: replication data server

240 : 복제 데이터베이스240: replica database

이러한 목적을 달성하기 위한 본 발명에 따른 분산 데이터 복제방법은, 증권거래 발생시 특정 유닉스 서버의 액티브 데이터 서버를 통해 복수개의 액티브 데이터베이스에 데이터를 업데이트하고 하나의 복제 서버를 통해 복제 대상이 되는 데이터를 다른 유닉스 서버의 복제 서버 및 복제 데이터 서버를 통해 복제 데이터베이스로 복제하는 경우, 복제 대상이 되는 액티브 데이터베이스가 복수개라도 하나의 복제 서버에 전체 액티브 데이터베이스가 할당됨과 동시에 하나의 복제 서버가 하나의 CPU에 전용으로 할당되는 방식으로 증권거래시 발생되는 데이터를 직렬로 처리하는 분산 데이터 복제방법에 있어서, 증권거래시 발생되는 데이터를 복제하기 위해 유닉스 서버에 구비된 복수개의 액티브 데이터베이스를 복수개의 복제 서버에 할당하고, 복수개의 복제 서버를 복수개의 CPU에 각각 전용으로 할당하며, 복수개의 액티브 데이터베이스에 업데이트된 복제대상의 데이터를 복수개의 복제 서버로 병렬로 분산하여 네트워크를 통해 다른 유닉스 서버의 복제 데이터베이스로 복제하는 것을 특징으로 한다.The distributed data replication method according to the present invention for achieving the above object, when the securities transaction occurs, updates the data in a plurality of active databases through the active data server of a specific Unix server and the data to be replicated through one replication server to another When replicating to a replica through a replica server and a replica data server on a Unix server, one replica server is dedicated to one CPU while all active databases are assigned to one replica server, even if multiple replicas are active. In the distributed data replication method of serially processing data generated during a securities transaction in an allocated manner, assigning a plurality of active databases provided in the UNIX server to a plurality of replication servers in order to replicate the data generated during the securities transaction, revenge Dedicated replication servers are allocated to a plurality of CPUs respectively, and the updated replication target data in a plurality of active databases are distributed in parallel to a plurality of replication servers and replicated to a replication database of another Unix server through a network. do.

그리고, 본 발명에 따른 분산 데이터 복제방법은, 유닉스 서버에서 복수개의 액티브 데이터베이스에 업데이트되는 데이터를 다른 유닉스 서버로 복제하기 위하여 복수개의 가상 데이터베이스를 생성하고, 증권거래시 발생되는 데이터가 업데이트되는 복수개의 액티브 데이터베이스를 트리거 처리하여 복제대상의 데이터를 절반으로 줄인 후 복수개의 가상 데이터베이스로 병렬로 분리하여 출력하며, 복수개의 복제 서버에서 복수개의 가상 데이터베이스로부터 입력되는 절반으로 줄어든 복제대상의 데이터를 병렬로 처리하여 네트워크를 통해 다른 유닉스 서버의 복제 데이터베이스로 복제하는 것을 다른 특징으로 한다.In addition, in the distributed data replication method according to the present invention, a plurality of virtual databases are created to replicate data updated in a plurality of active databases in a Unix server to another Unix server, and a plurality of data that is generated when a stock transaction is updated. Trigger the active database to reduce the data of the replication target in half and then output it by separating it into multiple virtual databases in parallel, and process the data of the replication target reduced in half from the multiple virtual databases in multiple replication servers in parallel. Another feature is to replicate over a network to a replica of another Unix server.

또한, 본 발명에 따른 분산 데이터 복제방법은, 유닉스 서버에서 복수개의 액티브 데이터베이스에 업데이트되는 데이터를 다른 유닉스 서버로 복제하기 위하여 일부 액티브 데이터베이스의 출력단에 복수개의 가상 데이터베이스를 생성하고,복수개의 액티브 데이터베이스 및 새롭게 생성된 가상 데이터베이스 각각을 복수개의 복제 서버에 할당함과 동시에 복수개의 복제 서버는 복수개의 CPU에 각각 전용으로 할당하고, 복제대상의 데이터가 업데이트되는 일부 액티브 데이터베이스를 트리거 처리하여 복제대상의 데이터를 절반으로 줄인 후 복수개의 가상 데이터베이스로 병렬로 분산하여 출력하며, 복수개의 액티브 데이터베이스에 업데이트된 복제대상의 데이터를 복수개의 복제 서버로 병렬로 분산 처리하거나, 또는 복수개의 가상 데이터베이스에 업데이트된 복제대상의 데이터를 복수개의 복제 서버로 병렬로 분산 처리한 후 네트워크를 통해 다른 유닉스 서버의 복제 데이터베이스로 복제하는 것을 또 다른 특징으로 한다.In addition, the distributed data replication method according to the present invention, in order to replicate data updated in a plurality of active databases in a Unix server to another Unix server, to generate a plurality of virtual databases at the output of some active databases, a plurality of active databases and At the same time, each newly created virtual database is assigned to a plurality of replication servers, and at the same time, the plurality of replication servers are allocated to a plurality of CPUs, respectively, and triggers some active databases where the data of the replication targets is updated to trigger data of the replication target. Reduced to half and distributed in parallel to a plurality of virtual databases, and output the data of the replication target updated in a plurality of active databases in parallel to a plurality of replication servers, or a plurality of virtual databases Another feature is that distributed data is updated in parallel to multiple replication servers and then replicated to other UNIX servers' replication databases over the network.

이하, 첨부된 도면을 참조하여 본 발명의 분산 데이터 복제방법을 상세하게 설명한다.Hereinafter, the distributed data replication method of the present invention will be described in detail with reference to the accompanying drawings.

도 4 내지 도 6은 본 발명에 따른 분산 데이터 복제과정의 일 실시예를 설명하기 위한 도면이다.4 to 6 are diagrams for explaining an embodiment of a distributed data replication process according to the present invention.

도시된 바와 같이, 증권거래가 발생되면 유닉스 서버(100)의 액티브 데이터 서버(120)를 통해 복수개의 액티브 데이터베이스(130)에 증권거래에 따라 발생되는 데이터가 업데이트됨과 아울러, 복제대상이 되는 데이터가 복수개의 액티브 데이터베이스(130) 각각에 연결된 복수개의 복제 서버(140)를 통해 네트워크로 연결된 다른 유닉스 서버(200) 내에 구비된 복수개의 복제 서버(220)로 출력된다. 이후, 복제 데이터 서버(230)를 통해 해당 데이터가 복수개의 복제 데이터베이스(240)로 복제된다. 이때, 유닉스 서버(100) 내에 구비된 복수개의 액티브 데이터베이스(130)각각을 복수개의 복제 서버(140)에 할당하는 것은 복수의 CPU(110)의 제어에 따라 수행된다. 즉, 도면에 도시된 바와 같이, 첫 번째 CPU를 첫 번째 복제 서버에 할당하고, 두 번째 CPU를 두 번째 복제 서버에 할당하며, 세 번째 CPU를 세 번째 복제 서버에 할당하는 것이다.As shown, when a securities transaction occurs, the data generated according to the securities transaction is updated in the plurality of active databases 130 through the active data server 120 of the UNIX server 100, and a plurality of data to be replicated are provided. It is output to a plurality of replication servers 220 provided in other Unix server 200 connected through a network through a plurality of replication servers 140 connected to each of the active database 130. Thereafter, the corresponding data is replicated to the plurality of replicate databases 240 through the replicate data server 230. In this case, allocating each of the plurality of active databases 130 provided in the UNIX server 100 to the plurality of replication servers 140 is performed under the control of the plurality of CPUs 110. That is, as shown in the figure, the first CPU is assigned to the first replica server, the second CPU is assigned to the second replica server, and the third CPU is assigned to the third replica server.

예를 들어, 도 5와 도 6을 참조하여 보다 상세하게 설명하면, 전술한 종래 기술과 동일한 방법으로 30개의 증권거래를 전산처리할 경우, 유닉스 서버(100)의 액티브 데이터 서버(120)를 통해 3개의 액티브 데이터베이스(130)에 해당되는 데이터의 업데이트가 발생된다. 이때, 데이터 업데이트시에는 데이터의 정합성을 확보하기 위한 락 처리를 위하여 더미 업데이트를 수행한다. 따라서, 3개의 액티브 데이터베이스(130) 각각에 실제로 읽혀지는 로그는 각각 60개씩, 복제 대상이 되는 데이터는 전체적으로 180건이 발생된다.For example, in more detail with reference to FIGS. 5 and 6, in the case of computerizing 30 securities transactions in the same manner as the above-described prior art, through the active data server 120 of the UNIX server 100 Updates of data corresponding to the three active databases 130 are generated. At this time, during data update, a dummy update is performed for a lock process to ensure data consistency. Therefore, 60 logs are actually read in each of the three active databases 130, and 180 data are generated in total.

이때, 3개의 액티브 데이터베이스(130)는 3개의 복제 서버(140) 및 3개의 CPU(110)에 각각 전용으로 할당되어 처리되기 때문에 전술한 종래기술과 비교할 때 처리되어야할 건수는 180건으로 동일하지만, 실제로 데이터 처리속도는 병렬로 분산처리되기 때문에 처리능력은 3배 이상 증가된다.In this case, since the three active databases 130 are allocated to each of three replication servers 140 and three CPUs 110 and are processed separately, the number of cases to be processed in comparison with the above-described prior art is the same as 180, In fact, the data throughput is distributed in parallel, increasing the processing power by more than three times.

즉, 유닉스 서버(100)의 각 CPU(110)에 전용으로 할당되어 있는 복수의 복제 서버(140) 내부의 각 복제 에이전트 유저는 액티브 데이터 서버(120)의 복제 에이전트를 통해 단지 60개씩의 로그를 읽어서 병렬로 처리하기 때문에 각 CPU(110) 및 복제 서버(140)가 처리 임계치를 초과하지 않음으로 종래기술의 180개의 로그를 처리하는 것에 비해 병목현상이 발생되지 않는다.That is, each replication agent user in the plurality of replication servers 140 dedicated to each CPU 110 of the UNIX server 100 may log only 60 logs through the replication agent of the active data server 120. Since the CPU 110 and the replication server 140 do not exceed the processing threshold because they are read and processed in parallel, the bottleneck does not occur as compared with processing the 180 logs of the prior art.

이를 보다 상세하게 설명하면, 복제 대상이 되는 데이터베이스가 복수개라도 하나의 복제 서버에 전체가 할당이 되고 이와 동시에 하나의 CPU에 전용으로 할당되는 방식으로 180건의 데이터가 직렬로 처리되는 종래기술과는 달리, 본 발명은 복수개의 데이터베이스(130)를 복수개의 복제 서버(140) 각각에 할당하고 이와 동시에 복수개의 복제 서버(140) 각각이 복수개의 CPU(110) 각각에 할당되는 방식으로 180건의 데이터가 3개로 나뉘어 60건씩 병렬로 처리되는 것이다.In more detail, unlike the prior art in which 180 data are processed serially in such a manner that even if a plurality of databases to be replicated are allotted to one replication server and allotted to one CPU at the same time. According to the present invention, 180 data are stored in a manner in which a plurality of databases 130 are allocated to each of the plurality of replication servers 140, and at the same time, each of the plurality of replication servers 140 is assigned to each of the plurality of CPUs 110. It is divided into dogs and processed in parallel by 60 cases.

여기에서, 상술한 본 발명의 유닉스 서버에서 사용되는 액티브 데이터베이스 각각에 연결된 복제 서버와 복제 서버에 전용으로 할당되는 CPU의 수를 3개로 하여 설명할 뿐, 그 수량은 시스템의 구성상황에 따라 늘어나거나 줄어들 수 있음은 물론이다.Here, only the number of CPUs dedicated to the replication server and the replication server connected to each of the active databases used in the above-described Unix server of the present invention will be described as three, and the quantity will increase or increase depending on the configuration of the system. Of course, it can be reduced.

그리고, 도 7 내지 도 9는 본 발명에 따른 분산 데이터 복제과정의 다른 실시예를 설명하기 위한 도면이다.7 to 9 illustrate another embodiment of a distributed data replication process according to the present invention.

도시된 바와 같이, 증권거래가 발생되면 유닉스 서버(300)의 액티브 데이터 서버(320)를 통해 복수개의 액티브 데이터베이스(330)에 증권거래에 따라 발생되는 데이터가 업데이트된다. 이 경우 유닉스 서버(300)에서는 복수개의 액티브 데이터베이스(330)에 업데이트되는 데이터를 다른 유닉스 서버(400)로 복제하기 위하여 복수개의 가상 데이터베이스(340)를 생성한 후, 가상의 데이터베이스(340)를 통해 복제 대상의 데이터를 병렬로 분산, 처리하고 복제 서버(350)를 통해 네트워크로 연결된 다른 유닉스 서버(400) 내에 구비된 복제 서버(420)로 출력한다. 이후, 복제 데이터 서버(430)를 통해 해당 데이터가 복수개의 복제 데이터베이스(440)로 복제된다. 이때, 유닉스 서버(300)에서 생성되는 복수개의 가상 데이터베이스(340)를 복제 서버(350)에 할당하는 것은 특정 CPU(310)의 제어에 따라 수행된다.As shown, when a stock transaction occurs, data generated according to the stock transaction is updated in the plurality of active databases 330 through the active data server 320 of the UNIX server 300. In this case, the Unix server 300 generates a plurality of virtual databases 340 to replicate data updated in the plurality of active databases 330 to another Unix server 400, and then through the virtual database 340 The data to be replicated is distributed and processed in parallel, and outputted to a replication server 420 provided in another Unix server 400 connected to a network through the replication server 350. Thereafter, the data is replicated to the plurality of replicate databases 440 through the replicate data server 430. In this case, allocating the plurality of virtual databases 340 generated by the UNIX server 300 to the replication server 350 is performed under the control of a specific CPU 310.

예를 들어, 도 8과 도 9를 참조하여 보다 상세하게 설명하면, 전술한 종래 기술과 동일한 방법으로 30개의 증권거래를 전산처리할 경우, 유닉스 서버(300)의 액티브 데이터 서버(320)를 통해 복수개의 액티브 데이터베이스(330)에 증권거래에 따라 발생되는 데이터가 업데이트되는데, 이와 같은 데이터 업데이트시에는 데이터의 정합성을 확보하기 위한 락 처리를 위하여 더미 업데이트를 수행된다. 따라서, 실제로 두 번째 액티브 데이터베이스(330)에 읽혀지는 로그는 60개가 되며, 복제 서버(350)의 복제 에이전트 유저는 액티브 데이터 서버(320)의 복제 에이전트를 통해 60개의 로그를 직렬로 순차적으로 복제함에 따라 복제속도가 60이 된다.For example, in more detail with reference to FIGS. 8 and 9, in the case of computerizing 30 securities transactions in the same manner as the above-described prior art, through the active data server 320 of the Unix server 300. The data generated according to the securities transaction is updated in the plurality of active databases 330. In such data update, a dummy update is performed for a lock process to ensure data consistency. Therefore, the number of logs actually read to the second active database 330 is 60, and the replication agent user of the replication server 350 sequentially replicates 60 logs serially through the replication agent of the active data server 320. The copy speed is therefore 60.

그러나, 본 발명에 따르면 복수개의 액티브 데이터베이스(330)중 두 번째 액티브 데이터베이스(330)의 로그가 60개이므로 이를 트리거(trigger) 기능을 사용하여 더미 업데이트를 스킵(skip) 처리하면 복제대상 데이터가 30개로 절반으로 줄어듦과 동시에 3개의 가상 데이터베이스(340)를 생성함으로써 가상 데이터베이스 로그를 10개씩 3그룹으로 줄어들게 된다.However, according to the present invention, since there are 60 logs of the second active database 330 among the plurality of active databases 330, when the dummy update is skipped using the trigger function, the data to be replicated is 30. In addition, the virtual database log is reduced to three groups of ten by reducing the number of virtual database logs by creating three virtual databases 340 at the same time.

이로 인해 복제 서버(350) 각각의 복제 에이전트 유저가 처리하여야 하는 로그는 10이 되고, 처리하여야 할 복제건수는 30건으로 줄어들게 되며, 아울러 가상 데이터베이스(340)를 통해 로그를 10개씩 3그룹으로 병렬로 처리하기 때문에 처리시간이 종래의 복제방법에 의한 60에서 10으로 줄게되어 결국 복제속도는 기존대비 약 6배 이상 증대된다. 물론, 본 실시예의 경우에도 상술한 도 4 내지 도 6의 설명에서와 같이 복수개의 복제 서버(140) 각각이 복수개의 CPU(110) 각각에 할당된다.As a result, the number of logs to be processed by each replication agent user of the replication server 350 is reduced to 10, and the number of replications to be processed is reduced to 30. In addition, the logs are paralleled into 3 groups of 10 logs through the virtual database 340. Since the processing time is reduced from 60 to 10 by the conventional replication method, the replication speed is increased by about six times or more. Of course, in the case of the present embodiment, as described above with reference to FIGS. 4 to 6, each of the plurality of replication servers 140 is assigned to each of the plurality of CPUs 110.

이를 보다 상세하게 설명하면, 복제 대상이 되는 데이터베이스를 그대로 복제함에 따라 복제대상 건수가 60개가 되고 아울러 복제대상 건수 60개를 직렬로 복제하는 종래기술과는 달리, 본 발명은 트리거 처리를 통해 하나의 데이터베이스(330)를 통해 처리하여야 할 복제대상 건수를 60개에서 30개로 절반을 줄이고 이와 동시에 가상 데이터베이스(340)를 복수개 생성하여 절반으로 줄어든 복제대상 건수 30개를 병렬로 처리하는 것이다.In more detail, unlike the prior art of replicating a database to be replicated as it is, the number of replication targets is 60, and serially replicating 60 replication targets, the present invention uses a single trigger process. The number of replication targets to be processed through the database 330 is reduced to half from 60 to 30, and at the same time, a plurality of virtual databases 340 are generated to process 30 replication targets reduced in half in parallel.

한편, 도 10은 본 발명에 따른 분산 데이터 복제과정의 또 다른 실시예를 설명하기 위한 도면으로서, 상술한 실시예인 병렬처리 방법과 가상 데이터베이스를 이용하는 방법의 두가지 형태를 혼합하여 사용한 방법이다.On the other hand, Figure 10 is a view for explaining another embodiment of the distributed data replication process according to the present invention, a method using a combination of the two forms of a parallel processing method and a method using a virtual database as the above-described embodiment.

도시된 바와 같이, 증권거래가 발생되면 유닉스 서버(500)의 액티브 데이터 서버(520)를 통해 복수개의 액티브 데이터베이스(530)에 증권거래에 따라 발생되는 데이터가 업데이트됨과 아울러, 복제대상이 되는 데이터가 복수개의 액티브 데이터베이스(530) 및 새로 생성된 가상 액티브 데이터베이스(540) 각각에 연결된 복수개의 복제 서버(550)를 통해 네트워크로 연결된 다른 유닉스 서버(600) 내에 구비된 복수개의 복제 서버(620)로 출력된다. 이후, 복제 데이터 서버(630)를 통해 해당 데이터가 복수개의 복제 데이터베이스(640)로 복제된다.As shown, when a securities transaction occurs, the data generated according to the securities transaction is updated in the plurality of active databases 530 through the active data server 520 of the Unix server 500, and a plurality of data to be copied are duplicated. Are output to a plurality of replication servers 620 provided in other UNIX servers 600 connected through a network through a plurality of replication servers 550 connected to each of the plurality of active databases 530 and the newly created virtual active databases 540. . Thereafter, the corresponding data is replicated to the plurality of replicate databases 640 through the replicate data server 630.

또한, 유닉스 서버(500)에서는 상술한 도 7 내지 도 9의 실시예에서 설명한 바와 같이 복수개의 액티브 데이터베이스(530)중 두번째 액티브 데이터베이스(530)에 업데이트되는 증권거래 데이터를 다른 유닉스 서버(600)로 복제하기 위하여 복수개의 가상 데이터베이스(540)를 생성한 후, 가상의 데이터베이스(540)를 통해 복제 대상의 데이터를 분산, 처리하고 복제 서버(550)를 통해 네트워크로 연결된 다른 유닉스 서버(600) 내에 구비된 복제 서버(620)로 출력한다.In addition, in the UNIX server 500, as described in the embodiments of FIGS. 7 to 9, the securities transaction data updated in the second active database 530 among the plurality of active databases 530 is transferred to another Unix server 600. After creating a plurality of virtual databases 540 to replicate, distribute and process the data of the replication target through the virtual database 540 and is provided in another Unix server 600 connected to the network via the replication server 550 Output to the replicated server 620.

이때, 유닉스 서버(500) 내에 구비된 복수개의 액티브 데이터베이스(530) 각각을 복수개의 복제 서버(550)에 할당하는 것은 복수의 CPU(510)의 제어에 따라 수행된다.At this time, allocating each of the plurality of active databases 530 included in the UNIX server 500 to the plurality of replication servers 550 is performed under the control of the plurality of CPUs 510.

다음에는, 이와 같이 구성된 본 발명에 따른 분산 데이터 복제방법의 동작과정을 각 실시예별로 구분하여 보다 상세하게 설명한다.Next, an operation process of the distributed data replication method according to the present invention configured as described above will be described in more detail by dividing each embodiment.

우선, 도 4 내지 도 6의 첫 번째 실시예를 도 11을 참조하여 설명하면, 증권거래시 발생하는 데이터를 복제하기 위해 유닉스 서버(100)는 먼저 복수개의 액티브 데이터베이스(130)를 복수개의 복제 서버(140)에 할당하고, 복수개의 복제 서버(140) 각각을 복수개의 CPU(110)에 전용으로 할당한다(S110).First, the first embodiment of FIGS. 4 to 6 will be described with reference to FIG. 11. In order to replicate data generated during a stock transaction, the UNIX server 100 first generates a plurality of active databases 130 and a plurality of replication servers. And assigns each of the plurality of replication servers 140 to the plurality of CPUs 110 (S110).

이처럼 복수개의 액티브 데이터베이스(130)를 복수개의 복제 서버(140)에 할당함과 동시에 복수개의 복제 서버(140) 각각을 복수개의 CPU(110)에 할당한 이후, 유닉스 서버(100)는 외부로부터 복제하여야 할 증권거래 데이터가 입력되면 액티브 데이터 서버(120)를 통해 복수개의 액티브 데이터베이스(130)에 해당 데이터를 업데이트한다(S120).After allocating the plurality of active databases 130 to the plurality of replication servers 140 and simultaneously assigning each of the plurality of replication servers 140 to the plurality of CPUs 110, the UNIX server 100 replicates from the outside. When securities transaction data to be input is input, the corresponding data is updated in the plurality of active databases 130 through the active data server 120 (S120).

그리고, 복수개의 액티브 데이터베이스(130) 각각에 연결된 복수개의 복제 서버(140)의 복제 에이전트 유저를 통해 복제대상이 되는 데이터를 병렬로 읽어들여 처리한다(S130).Then, data to be replicated is read and processed in parallel through the replication agent users of the plurality of replication servers 140 connected to each of the plurality of active databases 130 (S130).

이렇게 복수개의 복제 서버(140)에서 병렬로 복제대상의 데이터가 처리되면, 유닉스 서버(100)는 복수개의 복제 서버(140)를 통해 병렬로 처리된 복제대상의 데이터를 네트워크로 연결된 다른 유닉스 서버(200) 내에 구비된 복수개의 복제 서버(220)로 출력하고(S140), 복수개의 복제 서버(220)로 입력된 복제대상의 데이터는 복제 데이터 서버(230)를 통해 복수개의 복제 데이터베이스(240)에 각각 복제한 후 데이터 복제과정을 종료한다(S150).When the data of the replication targets are processed in parallel in the plurality of replication servers 140 as described above, the Unix server 100 transmits the data of the replication targets processed in parallel through the plurality of replication servers 140 to another Unix server connected to the network ( Output to a plurality of replication server 220 provided in the 200 (S140), the data of the replication target input to the plurality of replication server 220 to the plurality of replication database 240 through the replication data server 230 After each copy ends the data replication process (S150).

다음에는, 상술한 바와 같이 복수개의 액티브 데이터베이스(130)에 업데이트된 복제대상의 데이터를 복수개의 복제 서버(140)로 병렬로 분산하여 네트워크를 통해 다른 유닉스 서버(200)의 복제 데이터베이스(240)로 복제하는 본 발명의 실시예 이외에, 도 7 내지 도 9의 두 번째 실시예를 도 12를 참조하여 설명하면, 증권거래시 발생하는 데이터를 복제하기 위해 유닉스 서버(300)는 데이터 복제를 위하여 복수개의 액티브 데이터베이스(330) 출력단에 복수개의 가상 데이터베이스(340)를 생성하고, 복수개의 가상 데이터베이스(340)를 복수개의 복제 서버(350)에 할당하며, 복수개의 복제 서버(350)를 복수개의 CPU(310)에 각각 전용으로 할당한다(S210).Next, as described above, the data of the replication target updated in the plurality of active databases 130 are distributed in parallel to the plurality of replication servers 140 to the replica databases 240 of other Unix servers 200 through the network. In addition to the embodiment of the present invention for replicating, the second embodiment of Figs. 7 to 9 will be described with reference to Fig. 12, in order to replicate the data generated during the stock trading, the UNIX server 300 is a plurality of Create a plurality of virtual databases 340 at the output of the active database 330, assign a plurality of virtual databases 340 to a plurality of replication servers 350, a plurality of CPUs 310 Dedicated to each) (S210).

이처럼 복수개의 액티브 데이터베이스(330) 출력단에 복수개의 가상 데이터베이스(340)를 생성하고 복수개의 가상 데이터베이스(340)를 복제 서버(350)에 할당함과 동시에 복수개의 복제 서버(350) 각각을 복수개의 CPU(510)에 할당한 이후, 유닉스 서버(300)는 복제하여야 할 증권거래 데이터가 외부로부터 입력되면 액티브 데이터 서버(320)를 통해 복수개의 액티브 데이터베이스(330)에 해당 데이터를 업데이트한다(S220).As such, the plurality of virtual databases 340 are generated at the outputs of the plurality of active databases 330, the plurality of virtual databases 340 are allocated to the replication server 350, and each of the plurality of replication servers 350 is allocated to a plurality of CPUs. After allocating to 510, when the stock transaction data to be replicated is input from the outside, the UNIX server 300 updates the corresponding data in the plurality of active databases 330 through the active data server 320 (S220).

그리고, 복수개의 액티브 데이터베이스(330)에 업데이트된 복제 대상의 데이터를 트리거 처리를 통해 처리하여야 할 데이터를 절반으로 줄이고, 절반으로 줄어든 복제대상의 데이터를 복수개의 가상 데이터베이스(340)로 병렬로 분산하여 출력한다(S230). 즉, 이전의 실시예에서처럼 복수개의 액티브 데이터베이스(330)에 업데이트되는 복제대상의 데이터 정합을 위한 락 처리를 위해 더미 업데이트를 수행하는 것을 트리거 기능을 사용하여 더미 업데이트를 스킵 처리함으로써 복제대상의 데이터를 절반으로 줄이는 것이다.In addition, by reducing the data to be processed by trigger processing the data of the replication target updated in the plurality of active databases 330 in half, by distributing the data of the replication target reduced in half to the plurality of virtual databases 340 in parallel Output (S230). That is, as in the previous embodiment, the dummy update is skipped by using a trigger function to perform a dummy update for lock processing for data matching of the duplicate targets updated in the plurality of active databases 330. It will be cut in half.

이후, 유닉스 서버(300)는 복수개의 가상 데이터베이스(340)에 연결된 복제 서버(350)의 복제 에이전트 유저를 통해 복제대상이 되는 데이터를 병렬로 읽어들여 처리한다(S240).Thereafter, the UNIX server 300 reads and processes data to be replicated in parallel through a replication agent user of the replication server 350 connected to the plurality of virtual databases 340 (S240).

이렇게 복수개의 복제 서버(350)에서 병렬로 복제대상의 데이터가 처리되면, 유닉스 서버(300)는 복수개의 복제 서버(350)를 통해 병렬로 처리된 복제대상의 데이터를 네트워크로 연결된 다른 유닉스 서버(400) 내에 구비된 복수개의 복제 서버(420)로 출력하고(S250), 복수개의 복제 서버(420)로 입력된 복제대상의 데이터는 복제 데이터 서버(430)를 통해 복수개의 복제 데이터베이스(440)에 각각 복제한 후 데이터 복제과정을 종료한다(S260).When the data of the replication targets are processed in parallel in the plurality of replication servers 350 as described above, the Unix server 300 may connect the data of the replication targets processed in parallel through the plurality of replication servers 350 to another Unix server connected to the network ( Output to a plurality of replication server 420 provided in the 400 (S250), the data of the replication target input to the plurality of replication server 420 to the plurality of replication database 440 through the replication data server 430 After each copy ends the data replication process (S260).

마지막으로, 상술한 두가지 실시예 이외에, 도 10의 세 번째 실시예를 도 13을 참조하여 설명하면, 유닉스 서버(500)는 복수개의 액티브 데이터베이스(530)에 업데이트되는 복제대상의 데이터를 다른 유닉스 서버(600)로 복제하기 위하여 일부액티브 데이터베이스(530)의 출력단에 복수개의 가상 데이터베이스(540)를 생성한다(S310).Lastly, in addition to the two embodiments described above, the third embodiment of FIG. 10 will be described with reference to FIG. 13. The Unix server 500 stores data of a replication target that is updated in the plurality of active databases 530. In operation S310, a plurality of virtual databases 540 are generated at the output of the partial active database 530 to replicate to 600.

또한, 유닉스 서버(500)는 복수개의 액티브 데이터베이스(530) 및 새로 생성한 복수개의 가상 데이터베이스(540)를 복수개의 복제 서버(550)에 할당하고, 복수개의 복제 서버(550)를 복수개의 CPU(510)에 각각 전용으로 할당한다(S320).In addition, the UNIX server 500 allocates a plurality of active databases 530 and newly created plurality of virtual databases 540 to the plurality of replication servers 550, and assigns the plurality of replication servers 550 to a plurality of CPUs ( Dedicated to each of the 510 (S320).

이처럼 상술한 과정(S310)(S320)을 통해 일부 액티브 데이터베이스(530)의 출력단에 복수개의 가상 데이터베이스(540)를 생성하고, 복수개의 액티브 데이터베이스(530) 및 새로 생성한 복수개의 가상 데이터베이스(540)를 복수개의 복제 서버(550)에 할당함과 동시에 복수개의 복제 서버(550)를 복수개의 CPU(510)에 전용으로 할당한 이후, 유닉스 서버(500)는 복제하여야 할 증권거래 데이터가 외부로부터 입력되면 액티브 데이터 서버(520)를 통해 복수개의 액티브 데이터베이스(530)에 해당 데이터를 업데이트한다(S330).As described above, a plurality of virtual databases 540 are generated at the output terminal of some active databases 530 through the above-described processes S310 and S320, and the plurality of active databases 530 and the newly created plurality of virtual databases 540 are provided. Is allocated to the plurality of replication servers 550 and at the same time the plurality of replication servers 550 is dedicated to the plurality of CPUs 510, the UNIX server 500 is to enter the securities transaction data to be replicated from the outside When the corresponding data is updated in the plurality of active databases 530 through the active data server 520 (S330).

그리고, 유닉스 서버(500)는 일부 액티브 데이터베이스(540)에 업데이트된 복제대상의 데이터를 트리거 처리를 통해 절반으로 줄이고, 절반으로 줄어든 복제대상의 데이터를 복수개의 가상 데이터베이스(540)로 병렬로 분산하여 출력한다(S340). 즉, 전술한 두 번째 실시예에서와 마찬가지로 복수개의 액티브 데이터베이스(530)에 업데이트되는 복제대상의 데이터 정합을 위한 락 처리를 위해 더미 업데이트를 수행하는 것을 트리거 기능을 사용하여 더미 업데이트를 스킵 처리함으로써 복제대상의 데이터를 절반으로 줄이는 것이다.In addition, the UNIX server 500 reduces the data of the replication target updated in some active databases 540 in half through trigger processing, and distributes the data of the replication target reduced in half to the plurality of virtual databases 540 in parallel. Output (S340). That is, as in the above-described second embodiment, the dummy update is performed by skipping the dummy update using the trigger function to perform the dummy update for lock processing for data matching of the replication targets updated in the plurality of active databases 530. It will cut the data of the target in half.

이후, 유닉스 서버(500)는 복수개의 액티브 데이터베이스(530) 및 가상 데이터베이스(540) 각각에 연결된 복수개의 복제 서버(550)의 복제 에이전트 유저를 통해 복제대상이 되는 데이터를 병렬로 읽어들여 처리한다(S350).Thereafter, the UNIX server 500 reads and processes data to be replicated in parallel through replication agent users of the plurality of replication servers 550 connected to each of the plurality of active databases 530 and the virtual databases 540 ( S350).

이렇게 복수개의 복제 서버(550)에서 병렬로 복제대상의 데이터가 처리되면, 유닉스 서버(500)는 복수개의 복제 서버(550)를 통해 병렬로 처리된 복제대상의 데이터를 네트워크로 연결된 다른 유닉스 서버(600) 내에 구비된 복수개의 복제 서버(620)로 출력하고(S360), 복수개의 복제 서버(620)로 입력된 복제대상의 데이터를 복제 데이터 서버(630)를 통해 복수개의 복제 데이터베이스(640)에 각각 복제한 후 데이터 복제과정을 종료한다(S370).When the data of the replication targets are processed in parallel in the plurality of replication servers 550 in this manner, the UNIX server 500 may transfer the data of the replication targets processed in parallel through the plurality of replication servers 550 to other Unix servers connected to the network. Output to a plurality of replication server 620 provided in the 600 (S360), and the data of the replication target input to the plurality of replication server 620 to the plurality of replication database 640 through the replication data server 630 After each copy ends the data replication process (S370).

이상에서와 같이 본 발명의 분산 데이터 복제방법에 따르면, 기존의 관계 데이터베이스 관리 시스템(RDBMS)의 복제 기능을 사용하여 증권거래시 발생된 데이터를 복제할 경우 복제속도가 1이라 가정할 때 본 발명에 따른 방법을 적용하게 되면 증권거래시 발생되는 데이터의 복제속도가 최소 2배에서 최대 수십배까지 향상됨은 물론, 고속의 데이터 복제기법을 활용하여 복수개의 유닉스 서버로 거래를 분산 처리함으로써 대규모 거래 발생으로 인한 유닉스 서버의 처리규모 한계치를 극복할 수 있는 효과가 있다.As described above, according to the distributed data replication method of the present invention, when replicating the data generated during the securities transaction using the replication function of the existing relational database management system (RDBMS), it is assumed that the replication speed is 1; According to this method, the replication speed of data generated during securities transactions can be improved by at least 2 times and up to several tens of times. In addition, the data can be distributed to multiple UNIX servers by using high speed data replication techniques. This has the effect of overcoming the processing limit of Unix servers.

또한, 복수개의 유닉스 서버에서 분산 데이터베이스를 구성하기 때문에 데이터 파손에 대비하여 데이터 복제 또는 백업센터 구축 등에 활용할 경우에도 1대의 유닉스 서버에서 처리할 수 없는 대규모 업무처리를 손쉽게 처리할 수 있는 이점이 있다.In addition, since a distributed database is composed of a plurality of Unix servers, there is an advantage that a large amount of work cannot be handled by a single Unix server even when used for data replication or a backup center to prepare for data corruption.

그리고, 복제하고자 하는 해당 데이터를 개발자들이 프로그램을 개발하지 않고도 관계 데이터베이스 관리 시스템 차원에서 하나의 유닉스 서버에서 LAN, WAN 등의 네트워크로 연결된 다른 유닉스 서버로 데이터를 자동으로 복제함으로써 재해시 백업시스템으로 활용할 수 있으며, 증권거래시 발생되는 데이터를 복수개의 유닉스 서버에서 업무처리를 분담함으로써 유닉스 서버의 처리 한계치를 극복할 수 있는 효과가 있다.In addition, the data to be replicated can be used as a backup system in case of disaster by automatically copying data from one Unix server to another Unix server connected to a LAN, WAN, etc. in a relational database management system without developers developing a program. In addition, it is possible to overcome the processing limit of the Unix server by sharing the business process in a plurality of Unix server data generated during the securities trading.

여기에서, 상술한 본 발명에서는 바람직한 실시예를 참조하여 설명하였지만, 해당 기술분야의 숙련된 당업자는 하기의 특허청구범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경할 수 있음을 이해할 수 있을 것이다.Herein, while the present invention has been described with reference to the preferred embodiments, those skilled in the art will variously modify the present invention without departing from the spirit and scope of the invention as set forth in the claims below. And can be changed.

Claims (7)

증권거래 발생시 특정 유닉스 서버의 액티브 데이터 서버를 통해 복수개의 액티브 데이터베이스에 데이터를 업데이트하고 하나의 복제 서버를 통해 복제 대상이 되는 데이터를 다른 유닉스 서버의 복제 서버 및 복제 데이터 서버를 통해 복제 데이터베이스로 복제하는 경우, 복제 대상이 되는 액티브 데이터베이스가 복수개라도 하나의 복제 서버에 전체 액티브 데이터베이스가 할당됨과 동시에 하나의 복제 서버가 하나의 CPU에 전용으로 할당되는 방식으로 증권거래시 발생되는 데이터를 직렬로 처리하는 분산 데이터 복제방법에 있어서,When a securities transaction occurs, data is updated in multiple active databases through an active data server on a specific UNIX server, and data that is to be replicated through one replication server is replicated to a replication database through a replication server and a replication data server on another Unix server. In this case, even though there are multiple active databases to be replicated, the entire active database is allocated to one replication server and one replication server is allocated to one CPU. In the data replication method, 증권거래시 발생되는 데이터를 복제하기 위해 유닉스 서버에 구비된 복수개의 액티브 데이터베이스를 복수개의 복제 서버에 할당하고,In order to replicate the data generated during securities trading, assign a plurality of active databases provided on the UNIX server to the plurality of replication servers, 상기 복수개의 복제 서버를 복수개의 CPU에 각각 전용으로 할당하며,Dedicate the plurality of replication servers to a plurality of CPUs each, 복수개의 액티브 데이터베이스에 업데이트된 복제대상의 데이터를 복수개의 복제 서버로 병렬로 분산하여 네트워크를 통해 다른 유닉스 서버의 복제 데이터베이스로 복제하는 것을 특징으로 하는 분산 데이터 복제방법.A distributed data replication method comprising: replicating updated data in a plurality of active databases in parallel to a plurality of replication servers and replicating the data to a replication database of another Unix server through a network. (1) 유닉스 서버에 구비된 복수개의 액티브 데이터베이스를 복수개의 복제 서버에 할당하고, 상기 복수개의 복제 서버를 복수개의 CPU에 각각 전용으로 할당하는 과정;(1) allocating a plurality of active databases provided in a UNIX server to a plurality of replication servers, and allocating the plurality of replication servers to a plurality of CPUs respectively; (2) 복제하여야 할 증권거래 데이터가 외부로부터 입력되면 유닉스 서버의액티브 데이터 서버를 통해 복수개의 액티브 데이터베이스에 해당 데이터를 업데이트하는 과정;(2) updating the data in a plurality of active databases through an active data server of a UNIX server when the securities transaction data to be replicated are input from the outside; (3) 상기 복수개의 액티브 데이터베이스 각각에 연결된 복수개의 복제 서버의 복제 에이전트 유저를 통해 복제대상이 되는 데이터를 병렬로 읽어들여 처리하는 과정;(3) reading and processing data to be replicated in parallel through a replication agent user of a plurality of replication servers connected to each of the plurality of active databases; (4) 유닉스 서버의 복수개의 복제 서버를 통해 병렬로 처리된 복제대상의 데이터를 네트워크로 연결된 다른 유닉스 서버 내에 구비된 복수개의 복제 서버로 각각 출력하는 과정; 및(4) outputting data of a replication target processed in parallel through a plurality of replication servers of a UNIX server to a plurality of replication servers provided in other Unix servers connected through a network, respectively; And (5) 복수개의 복제 서버로 입력된 복제대상의 데이터를 복제 데이터 서버를 통해 복수개의 복제 데이터베이스에 복제하는 과정을 포함하여 이루어진 것을 특징으로 하는 분산 데이터 복제방법.(5) a distributed data replication method comprising replicating data of a replication target input to a plurality of replication servers to a plurality of replicate databases via a replicate data server. 제 1 항에 있어서, 상기 복제대상이 되는 증권거래 데이터가 입력되는 유닉스 서버에 구비되는 복수개의 액티브 데이터베이스, 복제 서버 및 CPU 각각이 일대일로 매칭되어 있음을 특징으로 하는 분산 데이터 복제방법.The distributed data replication method of claim 1, wherein each of a plurality of active databases, a replication server, and a CPU provided in the UNIX server to which the stock transaction data to be copied is input is matched one-to-one. 증권거래 발생시 특정 유닉스 서버의 액티브 데이터 서버를 통해 복수개의 액티브 데이터베이스에 데이터를 업데이트하고 하나의 복제 서버를 통해 복제 대상이 되는 데이터를 다른 유닉스 서버의 복제 서버 및 복제 데이터 서버를 통해 복제 데이터베이스로 복제하는 경우, 복제 대상이 되는 액티브 데이터베이스가 복수개라도 하나의 복제 서버에 전체 액티브 데이터베이스가 할당됨과 동시에 상기 하나의 복제 서버가 하나의 CPU에 전용으로 할당되는 방식으로 증권거래시 발생되는 데이터를 직렬로 처리하는 분산 데이터 복제방법에 있어서,When a securities transaction occurs, data is updated in multiple active databases through an active data server on a specific UNIX server, and data that is to be replicated through one replication server is replicated to a replication database through a replication server and a replication data server on another Unix server. In this case, even if there are a plurality of active databases to be replicated, the entire active database is allocated to one replication server and at the same time, the one replication server is allocated to one CPU in order to serially process data generated during the stock transaction. In the distributed data replication method, 상기 유닉스 서버에서 복수개의 액티브 데이터베이스에 업데이트되는 데이터를 다른 유닉스 서버로 복제하기 위하여 복수개의 가상 데이터베이스를 생성하고,Create a plurality of virtual databases to replicate data updated in the plurality of active databases in the Unix server to another Unix server, 증권거래시 발생되는 데이터가 업데이트되는 복수개의 액티브 데이터베이스를 트리거 처리하여 복제대상의 데이터를 절반으로 줄인 후 상기 복수개의 가상 데이터베이스로 병렬로 분리하여 출력하며,Triggering a plurality of active databases that are updated when the data generated during the securities transaction is triggered to reduce the data of the replication in half, and then output to separate in parallel to the plurality of virtual databases, 복수개의 복제 서버에서 상기 복수개의 가상 데이터베이스로부터 입력되는 절반으로 줄어든 복제대상의 데이터를 병렬로 처리하여 네트워크를 통해 다른 유닉스 서버의 복제 데이터베이스로 복제하는 것을 특징으로 하는 분산 데이터 복제방법.Distributed data replication method characterized in that the data of the replication target reduced in half from the plurality of virtual databases in parallel in the plurality of replication servers to be processed in parallel to replicate to the replica database of another Unix server through the network. (가) 유닉스 서버에서 데이터 복제를 위하여 복수개의 액티브 데이터베이스 출력단에 복수개의 가상 데이터베이스를 생성하고, 상기 복수개의 가상 데이터베이스를 복수개의 복제 서버에 할당하며, 상기 복수개의 복제 서버를 복수개의 CPU에 각각 전용으로 할당하는 과정;(A) Create a plurality of virtual databases at a plurality of active database outputs, allocate the plurality of virtual databases to a plurality of replication servers, and dedicate the plurality of replication servers to a plurality of CPUs for data replication in a UNIX server. Assigning to; (나) 복제하여야 할 증권거래 데이터가 외부로부터 입력되면 유닉스 서버의 액티브 데이터 서버를 통해 복수개의 액티브 데이터베이스에 해당 데이터를 업데이트하는 과정;(B) updating securities transaction data to be replicated to a plurality of active databases through an active data server of a Unix server when data to be replicated is input from the outside; (다) 상기 복수개의 액티브 데이터베이스에 업데이트된 복제 대상의 데이터를 트리거 처리를 통해 절반으로 줄이고, 절반으로 줄어든 복제대상의 데이터를 상기 복수개의 가상 데이터베이스로 병렬로 분산, 출력하는 과정;(C) reducing the data of the replication target updated in the plurality of active databases in half through trigger processing, and distributing and outputting the data of the replication target reduced in half to the plurality of virtual databases in parallel; (라) 상기 복수개의 가상 데이터베이스에 연결된 복제 서버의 복제 에이전트 유저를 통해 복제대상이 되는 데이터를 병렬로 읽어들여 처리하는 과정;(D) reading and processing data to be replicated in parallel through a replication agent user of a replication server connected to the plurality of virtual databases; (마) 유닉스 서버의 복수개의 복제 서버를 통해 병렬로 처리된 복제대상의 데이터를 네트워크로 연결된 다른 유닉스 서버 내에 구비된 복수개의 복제 서버로 각각 출력하는 과정; 및(E) outputting data of a replication target processed in parallel through a plurality of replication servers of a UNIX server to a plurality of replication servers provided in other Unix servers connected through a network, respectively; And (바) 복수개의 복제 서버로 입력된 복제대상의 데이터를 복제 데이터 서버를 통해 복수개의 복제 데이터베이스에 복제하는 과정을 포함하여 이루어진 것을 특징으로 하는 분산 데이터 복제방법.(F) Distributed data replication method comprising the step of replicating the data of the replication target input to the plurality of replication servers to the plurality of replication databases through the replication data server. 증권거래 발생시 특정 유닉스 서버의 액티브 데이터 서버를 통해 복수개의 액티브 데이터베이스에 데이터를 업데이트하고 하나의 복제 서버를 통해 복제 대상이 되는 데이터를 다른 유닉스 서버의 복제 서버 및 복제 데이터 서버를 통해 복제 데이터베이스로 복제하는 경우, 복제 대상이 되는 액티브 데이터베이스가 복수개라도 하나의 복제 서버에 전체 액티브 데이터베이스가 할당됨과 동시에 상기 하나의 복제 서버가 하나의 CPU에 전용으로 할당되는 방식으로 증권거래시 발생되는 데이터를 직렬로 처리하는 분산 데이터 복제방법에 있어서,When a securities transaction occurs, data is updated in multiple active databases through an active data server on a specific UNIX server, and data that is to be replicated through one replication server is replicated to a replication database through a replication server and a replication data server on another Unix server. In this case, even if there are a plurality of active databases to be replicated, the entire active database is allocated to one replication server and at the same time, the one replication server is allocated to one CPU in order to serially process data generated during the stock transaction. In the distributed data replication method, 상기 유닉스 서버에서 복수개의 액티브 데이터베이스에 업데이트되는 데이터를 다른 유닉스 서버로 복제하기 위하여 일부 액티브 데이터베이스의 출력단에 복수개의 가상 데이터베이스를 생성하고,Create a plurality of virtual databases at the output of some of the active database in order to replicate the data updated in the plurality of active databases in the Unix server to another Unix server, 상기 복수개의 액티브 데이터베이스 및 새롭게 생성된 가상 데이터베이스 각각을 복수개의 복제 서버에 할당함과 동시에 복수개의 복제 서버는 복수개의 CPU에 각각 전용으로 할당하고,Assign each of the plurality of active databases and the newly created virtual databases to a plurality of replication servers, and simultaneously assign a plurality of replication servers to a plurality of CPUs, respectively. 복제대상의 데이터가 업데이트되는 일부 액티브 데이터베이스를 트리거 처리하여 복제대상의 데이터를 절반으로 줄인 후 복수개의 가상 데이터베이스로 병렬로 분산하여 출력하며,Triggers some active databases that update the data of the replication target, cuts the data of the replication target in half, and distributes them in parallel to multiple virtual databases. 상기 복수개의 액티브 데이터베이스에 업데이트된 복제대상의 데이터를 복수개의 복제 서버로 병렬로 분산 처리하거나, 또는 복수개의 가상 데이터베이스에 업데이트된 복제대상의 데이터를 복수개의 복제 서버로 병렬로 분산 처리한 후 네트워크를 통해 다른 유닉스 서버의 복제 데이터베이스로 복제하는 것을 특징으로 하는 분산 데이터 복제방법.The data of the replication target updated in the plurality of active databases is distributed in parallel to the plurality of replication servers, or the data of the replication target updated in the plurality of virtual databases is distributed in parallel to the plurality of replication servers and then the network is divided. Distributed data replication method characterized by replicating to a replica of another Unix server through. (A) 유닉스 서버에서 복수개의 액티브 데이터베이스에 업데이트되는 데이터를 다른 유닉스 서버로 복제하기 위하여 일부 액티브 데이터베이스의 출력단에 복수개의 가상 데이터베이스를 생성하는 과정;(A) creating a plurality of virtual databases at the output of some of the active database to replicate data updated in the plurality of active databases in the UNIX server to another Unix server; (B) 유닉스 서버에 구비된 복수개의 액티브 데이터베이스 및 새로 생성한 복수개의 가상 데이터베이스를 복수개의 복제 서버에 할당하고, 상기 복수개의 복제 서버를 복수개의 CPU에 각각 전용으로 할당하는 과정;(B) allocating a plurality of active databases and a plurality of newly created virtual databases provided in the UNIX server to the plurality of replication servers, and allocating the plurality of replication servers to a plurality of CPUs respectively; (C) 복제하여야 할 증권거래 데이터가 외부로부터 입력되면 유닉스 서버의 액티브 데이터 서버를 통해 복수개의 액티브 데이터베이스에 해당 데이터를 업데이트하는 과정;(C) updating the corresponding data in the plurality of active databases through the active data server of the UNIX server when the securities transaction data to be replicated are input from the outside; (D) 복제대상의 데이터가 업데이트된 일부 액티브 데이터베이스에 업데이트된 복제대상의 데이터를 트리거 처리를 통해 절반으로 줄이고, 절반으로 줄어든 복제대상의 데이터를 복수개의 가상 데이터베이스로 병렬로 분산하여 출력하는 과정;(D) reducing the data of the replication target updated in half to a part of the active database where the data of the replication target is updated through trigger processing, and distributing the data of the replication target reduced in half to a plurality of virtual databases in parallel; (E) 상기 복수개의 액티브 데이터베이스 및 가상 데이터베이스 각각에 연결된 복수개의 복제 서버의 복제 에이전트 유저를 통해 복제대상이 되는 데이터를 병렬로 읽어들여 처리하는 과정;(E) reading and processing data to be replicated in parallel through a replication agent user of a plurality of replication servers connected to each of the plurality of active databases and the virtual database; (F) 유닉스 서버의 복수개의 복제 서버를 통해 병렬로 처리된 복제대상의 데이터를 네트워크로 연결된 다른 유닉스 서버 내에 구비된 복수개의 복제 서버로 각각 출력하는 과정; 및(F) outputting data of a replication target processed in parallel through a plurality of replication servers of the UNIX server to a plurality of replication servers provided in other Unix servers connected through a network, respectively; And (G) 복수개의 복제 서버로 입력된 복제대상의 데이터를 복제 데이터 서버를 통해 복수개의 복제 데이터베이스에 복제하는 과정을 포함하여 이루어진 것을 특징으로 하는 분산 데이터 복제방법.(G) a distributed data replication method comprising replicating data of a replication target input to a plurality of replication servers to a plurality of replication databases through a replication data server.
KR1020000051203A 2000-08-31 2000-08-31 Replication method for distributed data KR100346891B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000051203A KR100346891B1 (en) 2000-08-31 2000-08-31 Replication method for distributed data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000051203A KR100346891B1 (en) 2000-08-31 2000-08-31 Replication method for distributed data

Publications (2)

Publication Number Publication Date
KR20020017705A KR20020017705A (en) 2002-03-07
KR100346891B1 true KR100346891B1 (en) 2002-08-03

Family

ID=19686447

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000051203A KR100346891B1 (en) 2000-08-31 2000-08-31 Replication method for distributed data

Country Status (1)

Country Link
KR (1) KR100346891B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5781910A (en) * 1996-09-13 1998-07-14 Stratus Computer, Inc. Preforming concurrent transactions in a replicated database environment
US5946689A (en) * 1996-11-28 1999-08-31 Hitachi, Ltd. Distributed database system and method of detecting contention in data update involved in replication of database data
US6012059A (en) * 1997-08-21 2000-01-04 Dataxel Corporation Method and apparatus for replicated transaction consistency
JP2000207266A (en) * 1999-01-13 2000-07-28 Mitsubishi Electric Corp Replica system and replica method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5781910A (en) * 1996-09-13 1998-07-14 Stratus Computer, Inc. Preforming concurrent transactions in a replicated database environment
US5946689A (en) * 1996-11-28 1999-08-31 Hitachi, Ltd. Distributed database system and method of detecting contention in data update involved in replication of database data
US6012059A (en) * 1997-08-21 2000-01-04 Dataxel Corporation Method and apparatus for replicated transaction consistency
JP2000207266A (en) * 1999-01-13 2000-07-28 Mitsubishi Electric Corp Replica system and replica method

Also Published As

Publication number Publication date
KR20020017705A (en) 2002-03-07

Similar Documents

Publication Publication Date Title
US20220405264A1 (en) System And Method For Large-Scale Data Processing Using An Application-Independent Framework
EP0953173B1 (en) Data partitioning and duplication in a distributed data processing system
CN102483768B (en) Memory structure based on strategy distributes
KR100926880B1 (en) Data replication method and system in DVMS
Srinivasan et al. Aerospike: Architecture of a real-time operational dbms
KR20190122843A (en) Blockchain ledger
CN102804183A (en) Reorganization of data under continuous workload
CN108200112B (en) Distributed storage method and system
Parshutina et al. Models to support design of highly reliable distributed computer systems with redundant processes of data transmission and handling
Osman et al. Modelling replication in nosql datastores
US8015375B1 (en) Methods, systems, and computer program products for parallel processing and saving tracking information for multiple write requests in a data replication environment including multiple storage devices
US11461201B2 (en) Cloud architecture for replicated data services
Johansson On the impact of network latency on distributed systems design
KR100346891B1 (en) Replication method for distributed data
CA3008830C (en) High throughput, high reliability data processing system
EP3811227B1 (en) Methods, devices and systems for non-disruptive upgrades to a distributed coordination engine in a distributed computing environment
Alanazi et al. A systematic literature review of recent trends in replication techniques
Cannon et al. A stable distributed tuple space
CN117931531A (en) Data backup system, method, apparatus, device, storage medium and program product
Lee et al. Fault-tolerant process allocation with load balancing
CN117762689A (en) Copy method and apparatus, electronic device and storage medium
Ahmad A massively parallel fault-tolerant architecture for time-critical computing
CN114969048A (en) Method and system for executing batch processing tasks
CN117608795A (en) Task processing method and device in preemption mode
CN117609345A (en) Data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130627

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20140703

Year of fee payment: 13

FPAY Annual fee payment

Payment date: 20150629

Year of fee payment: 14

FPAY Annual fee payment

Payment date: 20160629

Year of fee payment: 15

FPAY Annual fee payment

Payment date: 20180625

Year of fee payment: 17

FPAY Annual fee payment

Payment date: 20190625

Year of fee payment: 18