Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Append-only log, replay, compaction?

Dikenal juga sebagai: append-only log · log replay · compaction (log)

Definition 31.5 University Computer Science — Year 2 · Bab 31 — Project: A Key-Value Server

An append-only log is a file to which records are only ever added at the end. To replay a log of changes is to apply its records in order to an empty state. To compact it is to replace it by a shorter log whose replay gives the same state.

The record of SET a 1, byte by byte: four bytes of length, four of CRC, then the command as it is printed. A record is 8 bytes longer than its command.
The record of SET a 1, byte by byte: four bytes of length, four of CRC, then the command as it is printed. A record is 8 bytes longer than its command.
A crash in the middle of an append. The restart replays the three complete records, cuts the file after them, and the next change is appended there.
A crash in the middle of an append. The restart replays the three complete records, cuts the file after them, and the next change is appended there.
Baca dalam konteks →