All Questions
Zookeeper hard

Why does ZooKeeper perform 64MB block pre-allocation for Transaction Logs instead of using standard byte-by-byte file appends?

  1. A To minimize disk I/O latency by avoiding frequent inode metadata updates and ensuring sequential write performance.
  2. B To facilitate the background defragmentation of the local Znode metadata tree by the OS kernel.
  3. C To reserve adequate storage for anticipated future snapshots without competing for disk space during runtime.
  4. D It is a specialized workaround for a legacy JVM limitation regarding direct byte buffer expansion in 64-bit environments.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions