Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Latest commit

 

History

History
15 lines (11 loc) · 394 Bytes

example-5.md

File metadata and controls

15 lines (11 loc) · 394 Bytes
Example 5: 0 node cluster, 1 peer successfully joins
  • No nodes fully in the cluster

  • Local state before (1): {:pairs {}}

  • A wants to join

  • B sends prepare-join-cluster (1)

  • A plays the log

  • A encounters (1)

    • Pre: {:pair {}}
    • Post: {:pairs {}}
    • A realizes it is the only peer in the cluster, promotes itself to fully joined status
    • flushes all outbox messages