CockroachDB Raft Consensus and Leaseholders

Dive into the mechanics of the Raft consensus protocol as applied to CockroachDB ranges, including leaseholder election and distributed coordination.

Sample Questions

  1. What is the primary consensus algorithm used by CockroachDB for data replication?

    • Paxos
    • Raft
    • Zab
    • Two-Phase Commit
  2. In CockroachDB, what is the fundamental unit of data replication and distribution?

    • Table
    • Database
    • Range
    • Cluster
  3. What is the main responsibility of a Leaseholder in CockroachDB?

    • Storing backups
    • Serving all reads and writes for a Range
    • Managing node heartbeats
    • Compressing the Raft log