Database journal recording method, device and system
A database and log technology, applied in the database field, can solve the problems of high price and large capacity of flash memory array
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] figure 2 It is the cluster database system 200 of the first embodiment of the present invention. The cluster database system 200 includes computing nodes 212 , 214 and 216 , a master coordinator 222 , a backup coordinator 224 , an Infiniband (IB) 204 , a fiber channel 206 , and a cache 208 . In one embodiment, the cache 208 is a disk. The disk 208 stores data in the cluster database system 200 . Compute nodes 212 , 214 , and 216 perform transactions, such as computing or reading and writing operations on data stored on disk 208 . The master coordinator node 222 manages the communication among the computing nodes 212 , 214 and 216 . The standby coordinating node 224 replaces the primary coordinating node 222 when the primary coordinating node 222 fails, and completes the functions of the primary coordinating node 222 in a non-failure state. Computing nodes 212 , 214 and 216 , between the primary coordinating node 222 and the standby coordinating node 224 , and betwe...
Embodiment 2
[0048] image 3 is a schematic flowchart of a method for recording database logs according to the second embodiment of the present invention. to combine figure 2 right image 3 to describe.
[0049] In step 302 , the main coordinating node 222 receives the transaction log sent by the computing node in the database system 200 , such as the computing node 212 , and records the transaction log in the primary cache 232 . Primary cache 232 is associated with primary coordinating node 222 . In one embodiment, primary cache 232 is located within primary coordinating node 222 . In another embodiment, the primary cache 232 is located outside the primary coordinating node 222 . A transaction log is a database log that records a corresponding transaction.
[0050] In step 304 , after recording the transaction log in the primary cache 232 , the primary coordinating node 222 sends primary feedback information to the computing node 212 to enable the computing node 212 to execute the ...
Embodiment 3
[0062] Figure 4 is a schematic flowchart of a method for recording database logs according to the third embodiment of the present invention.
[0063] In step 402 , the computing node 212 sends the transaction log corresponding to the transaction to the master coordinating node 222 before executing the transaction, so that the master coordinating node 222 records the transaction log on the primary cache 232 . Primary cache 232 is associated with primary coordinating node 222 . In one embodiment, primary cache 232 is located within primary coordinating node 222 . In another embodiment, the primary cache 232 is located outside the primary coordinating node 222 . In one embodiment, the read and write latency of the main cache 232 is not greater than microsecond (us) level. For example, the primary cache 232 is any one of the following storage media: flash memory (Flash Memory) and phase change memory (Phase Change Memory, PCM). A transaction log is a database log that records...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 