One release hosts several services, and a singleton helper (#8) #10
Loading…
Reference in a new issue
No description provided.
Delete branch "saturnus/8-multi-service-boot"
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?
Refs #8
mcl_om:boot/1,2now adds its service to the ones the node hosts.boot([Mod | {Mod, Opts}])boots a list and answers{ok, [{Mod, Pid}]}or{error, {Mod, Reason}}. A standalone singleboot/1behaves as before.info/0'sorg, else theorgenv.register/3,list/1).<org>/infoanddescribe_capabilitiesanswer for their own service./healthlists each one's info underservices.mcl_om_claim:add_org/1).mcl_om_singleton: a child under aglobalname that runs on exactly one node; standbys take over.Tests:
f5ac356is the red commit, alone.Local results: eunit 473/0, ct 78 passed (template suite under a scratch HOME), lint, xref and dialyzer clean. Mutants killed: dropping the stand-down, and claiming an org twice.
The work's start function answers as a supervisor child's does. {ok, Pid, Info} runs the work as {ok, Pid} does; ignore ends the guard as an ignored child, and global drops its name with it. Before, both crashed the guard with a case_clause (Jupiter, r1). The moduledoc now says that a netsplit runs one copy per connected partition, and that resolve/3 keeps one when the parts meet (Jupiter's note, r1). Refs #8Landed by fast-forward: main is
a2aa62e3bd(from2a15aefe). This repository does not allow the manually-merged style, so the PR is closed by hand.