1. ZooKeeper Overviewhistorical

    ZooKeeper provides distributed coordination and consistency-related capabilities. These notes cover its role, installation, mechanisms, and uses such as locks and registries.

  2. Installing ZooKeeperhistorical

    These notes record ZooKeeper configuration and startup, progressing from standalone installation to cluster setup and basic operations.

  3. Distributed Locks with ZooKeeperhistorical

    Apache Curator examples demonstrate ZooKeeper distributed locks, including locking, unlocking, and behavior across lock instances in one thread.

  4. ZooKeeper as a Service Registryhistorical

    A ZooKeeper registry can record services with ephemeral sequential nodes and watch changes to a parent's children to detect instance arrivals and departures.

  5. Leader Election with ZooKeeperhistorical

    ZooKeeper can use ephemeral sequential nodes for leader election. These notes begin with connecting and creating nodes and examine predecessor watching.

  6. ZooKeeper Atomic Broadcast (ZAB)historical

    ZAB is ZooKeeper's atomic broadcast protocol with crash recovery. These notes examine its roles, elections, and message handling.

  7. ZooKeeper Watcheshistorical

    ZooKeeper allows a client to register a Watcher on a Znode on the server. When certain specified events on the server trigger this Watcher, the server sends an event notification to the specified client to implement distributed notification.

  8. ZooKeeper Namespacehistorical

    ZooKeeper organizes data in a tree whose nodes can also hold content. These notes examine its in-memory directory structure through differences from ordinary file systems.

  9. ZooKeeper Znode Propertieshistorical

    Persistent nodes remain until deleted, while ephemeral nodes are tied to client sessions. These notes compare node types through their lifecycles and behavior.

  10. ZooKeeper High Availabilityhistorical

    ZooKeeper establishes roles through election and uses replication to maintain node state. These notes examine availability through election and full replication.

  11. Building ZooKeeper from Sourcehistorical

    These notes inspect ZooKeeper's startup entry point through zkServer.sh and use commands such as jps to examine source compilation and execution.