A3 package 2: the store mode comes from config, and a cluster node waits for its join #6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (capability): whiteboard can run on a clustered store, so every node of a cluster holds every board and a node can go down without losing one.
A3 package 2 for mcl-whiteboard (plan: the mcl-martha consolidation analysis, A3 + corrections R1/R2). It ships with the held A3 package 4 wrap (#5,
71c944f) in one range.What
MCL_STORE_MODE=single(default, unchanged) orcluster; anything else refuses the boot by name. It is no longer hardcoded:singleinMclWhiteboard.Service.event_store/0.reckon_db_cluster:local_healthy/1says the store has joined. reckon-db 5.12 guide: an event appended to an empty node in the count-then-join window is wiped by the join.mcl_om_singletononly in cluster mode. In single mode each node's store holds only its own events, so each node keeps publishing its own.Operator rules (written into the README)
Netsplit
globalruns one singleton per connected partition. Each side's emitter republishes its side's events; the receivers are idempotent (#5 comment 8131: a takeover is a burst, not a gap). Stated in the PR; no new guard.Done when
MCL_STORE_MODE, an unknown value refuses the boot.Refs #5, Refs reckon-db-org/reckon-db#2, Refs reckon-db-org/reckon-db#14
Done on main
9c6fe7c(PR #7:a3b0a47, plus the floor roundd9b3b59and9c6fe7c; Mercurius PASS r1 and r2). Main runs 6914 (c4) and 6915 (gates) are green.runtime_store_mode_test.exsruns the real runtime.exs: unset reads as single, single and cluster are read, and any other value is refused by name.cluster_open_test.exs: two peers. The lone node holds 10 s without opening; both open once they meet, including connected-before-start (reckon-db#15, fixed in 5.12.1). Mutant "no wait" fails it.one_node_publishes_test.exs: single mode gives one handler per node, cluster mode one per cluster. Mutants fixing the mode to cluster (2 fail) or to single (1 fails).{:reckon_db, "~> 5.12.1"}(d9b3b59), and{:evoq, "~> 1.32"}across the umbrella (9c6fe7c).