Multi-service boot: several services (each its own org) in one release, plus a singleton helper #8
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 (feature): one BEAM release hosts several mcl services, each in its own org, with one identity key, one mesh pool, one health socket and one claim per org, plus a singleton helper so a side effect runs on exactly one node of a cluster. This is the base the per-service packages (§2.5 step 3) and the clustered mcl-martha release build on.
Raf, 2026-12-02: "Run the whole path (Recommended)" — the crew runs the whole path to one clustered mcl-martha release, in order.
Raf, 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."
Refs martha-ai/mcl-martha#1 (consolidation plan §2.3 "mcl_om (L, first)", §2.5 step 2, A3 package 3).
The API the per-service packages build on
What changes inside mcl_om
<org>/info,<org>/get_limits/set_limitsand<service>.describe_capabilitiesanswer for the service of that org, not "the" service.{degraded | down, {ServiceName, Reason}}when more than one service is booted; one service keeps today's shape).mcl_om_claimclaims once per distinct org (today onlymcl_om_identity:org(), mcl_om_claim.erl:247,256)./health'sclaimstays today's map for one org and is a list of those maps for several.Out
io.maculastays.Done when
mcl_om:boot/1,2with one service behaves as today: the existing eunit and CT suites pass unchanged./healthcombines both, and a failing service is named in the verdict.claimhealth field for one org and for two.<org>/infoanddescribe_capabilitiesanswer for their own service when two are booted.mcl_om_singleton: a two-node test (peer nodes on loopback, no outside network) runs the child on exactly one node, and on the other once the holder's node stops.Landed: main
a2aa62e3bd(PR 10; Jupiter r1 small FAIL fixed inline at6869ac1, then the nit ata2aa62e).Done when, checked against the landed range 2a15aef..a2aa62e:
boot/1,2behaves as before. The existing eunit and CT cases are unchanged and pass: eunit 475/0 (Jupiter, on6869ac1); forge run 6564, job 26999lint + eunit + ct, success ona2aa62e.mcl_om_SUITEtwo_services_boot_in_one_vm,booting_a_service_again_replaces_only_its_own,health_names_the_failing_service,a_refused_start_in_a_list_names_the_service.claimfor one org and for two:mcl_om_claim_testsone_claim_per_org_test_. A restarted worker claims again for every hosted org:restarted_worker_claims_every_hosted_org_test_(Jupiter).<org>/infoanddescribe_capabilitiesanswer for their own service:info_answers_for_its_own_service,describe_answers_for_its_own_service.mcl_om_singletonon two peer nodes over loopback (mcl_om_singleton_SUITE): runs on exactly one node, the standby takes over when the holder's node stops, and two holders that meet keep one.{ok, Pid, Info}andignorestarts are covered too.Notes for the per-service packages (Jupiter, r1):
/healthmoves each service's name and version underservices, andclaimbecomes a list.Accepted reds on the same runs: scaffold lint (#2), docs (#5).
hygiea referenced this issue from macula-services/mcl-stations2026-12-02 07:06:21 +00:00