发明名称 Parallel database mirroring
摘要 In a database cluster comprising a plurality of mirrored database segments, a mirror database pair comprising a primary database and a mirror database are maintained substantially consistent by writing changes resulting from transactions to page data in parallel to the primary database and to the mirror database. Changes are sent to the mirror database over a network using network communications. Transaction logs are also written to the primary and mirrored databases in parallel, the transaction logs being sent to the mirror database using network communications. Bulk load changes resulting from transactions are written in parallel over the network to the primary database and the mirror database without writing the changes to a transaction log. In the event of a failure, resynchronization of the mirror database can be performed quickly while avoiding a lengthy ongoing redo process on the mirror database.
申请公布号 US8775381(B1) 申请公布日期 2014.07.08
申请号 US201113107897 申请日期 2011.05.14
申请人 Pivotal Software, Inc. 发明人 McCline Matthew C.;Bergant Milena
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 1. A method comprising: determining, by a master node of a computer network, that a primary database is synchronized with a mirror database, the primary database being hosted on a first node of the computer network, the mirror database being hosted on a second node of the computer network, each of the master node, the first node, and the second node including one or more computers and being coupled to one another by the computer network; and in response to the determining, performing operations comprising: writing, by a first mirrored write process, one or more changes to data to the primary database and to the mirror database asynchronously and in parallel, wherein writing the one or more changes comprises: writing the one or more changes to a primary database page stored on the first node; andsending the one or more changes to the mirror database using network communications between the primary and mirror databases, wherein the one or more changes are written to a mirror database page stored on the second node; andwriting, by a second mirrored write process that is different from the first mirrored write process, content of a transaction log memory buffer to the primary database and the mirror database asynchronously and in parallel, the content including a record of the one or more changes, wherein writing the transaction log comprises: writing the content to a primary database transaction log stored on the first node; andsending the content to the mirror database using the network communications between the primary and mirror databases, wherein the content is written to a mirror database transaction log stored on the second node; andflushing the primary and mirror database transaction logs to a first non-volatile computer readable storage medium of the first node and a second non-volatile computer readable storage medium of the second node, respectively, at predetermined synchronization points, wherein writing the one or more changes to the mirror database page is performed independently of the mirror database transaction log.
地址 Palo Alto CA US