P2: LAN transport on distributed Erlang, the first mcl_core release #3
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?
DECIDED 2026-12-02 "I have created and cloned macula-services/mcl-core. Let's build this properly. In the end I hope we keep a single repo: mcl-core that will replace both mcl-om and mcl-lan" (Raf)
DECIDED 2026-12-02 "trust on sight. mcl-martha services should auto-cluster over LAN, no mcl-station required. Distributed Erlang offers us all we need." (Raf)
DECIDED 2026-12-02 "Shared cookie + secret (Recommended)" (Raf)
Purpose (feature): services on one LAN find each other and call and publish to each other over distributed Erlang, with no station. This is design P2 (
docs/DESIGN.md§2, §7) and the firstmcl_corehex release, which the bundled services take in their wave changes.Scope (design §7 P2): cluster start (macula gossip, LAN distribution, cookie and secret generated into the data volume); capabilities and calls on
pgwithcallerwritten (§2.2, §2.4); pubsub onpg(§2.3).mcl_core_transporttries the LAN first, then the bridge, and services'mcl_core_pubsub:publish/2,3go through it. Two-node tests onpeernodes with a TTL of 0, as in the spike.Done when:
peernodes with the same cookie and secret form a cluster with no station, and a node without them does not join.caller.Waits on #1. Refs macula-services/mcl-lan#1
Landed at
a697a9bdc2(fast-forward, PR 6; review PASS at r=2). Done when, each againsttest/mcl_core_lan_SUITE.erlon the landed tip (PR run 6843 green):peernodes with the same cookie and secret form a cluster with no station; a node without them does not join:two_nodes_with_the_secrets_form_a_cluster,a_node_with_another_secret_does_not_join,a_node_with_another_cookie_does_not_join,a_node_without_the_secrets_refuses_to_start.caller:a_capability_is_called_from_the_other_node_with_its_caller.a_publish_reaches_a_subscriber_on_the_other_node.with_no_lan_provider_a_call_goes_to_the_bridge.mcl_corerelease goes to the Supervisor for Raf's yes.Review r1 found that the LAN hosts restarted empty; fixed in
a697a9b, withwhat_a_node_serves_survives_a_restart_of_its_lan_tree. Main runs 6845-6848 were started on the landed tip.Main runs on
a697a9bdc2finished: 6845 advisories, 6846 docs and 6847 lint+eunit+ct (OTP 28.4.3) are green. 6848 is red only on scaffold-lint (job 27839), the accepted red tracked in #2. #3 stays closed.