Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Write Ahead Log (WAL)#

Sumit Rawal answered on June 1, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers


Write Ahead Log (WAL)#

0

The write ahead log is an append-only file that records all the changes that take place on the master node. In the context of a database it is a sequence of bytes. Depending on the storage engine in a database, this log can be:

The log that stores data for SSTables and LSM-Trees.

A log to track every change when the storage engine is a B-tree. In this scenario individual disk blocks are overwritten but the change is first recorded in the log so that the index can be restored to a consistent state after the crash.

Outside the context of databases, WAL or a form of it is commonly used. For instance in the Hadoop distributed file system, the metadata about the files is maintained by an entity called the Namenode. The Namenode follows a master-slave model, where the master or active Namenode maintains an up to date metadata about files. As changes to the filesystem occur they are recorded in an edit log. The slave/passive Namenodes observes the changes showing up in the edit log and applies them locally thus keeping its data in-sync with that of the active Namenode. In case, the active Namenode crashes, the passive can take its place.

Another popular distributed system Kafka is based on WAL

Popularity 2/10 Helpfulness 1/10 Language whatever
Source: Grepper
Tags: whatever
Link to this answer
Share Copy Link
Contributed on Jun 01 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.