mcl-graph#19: on mcl_core, LAN first; the truth learner as a declared subscription, the holder on the mesh #20
Loading…
Reference in a new issue
No description provided.
Delete branch "neptunus/19-lan-mcl-core"
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?
mcl-lan P5 for mcl-graph (macula-services/mcl-lan docs/DESIGN.md §5, "graph 1 + 2"), with the Supervisor's placement ruling folded in. Refs #19.
What changes
~> 1.0).learn_truths_from_meshbecomes amacula_subscriberdeclared inmcl_graph_service:subscriptions/0(sources => members), on the holder only. mcl_core wires it on the LAN (pg) and, on a node on the mesh, on the mesh too. The pool/resubscribe code goes. /health loses itsnot_hearing_truthsinput, because the subscription is now mcl_core's to keep and to report.check_realm_name/1. The holder needs a realm. A member without the graph may have none ({error, no_realm}), and a realm that is set must still match.learn_linkkeeps refusingasserted_bywithrealm_unknownwhere no realm is set.{mcl_graph_holder_off_mesh, member}. It runs standalone or on the bridge, so mesh-widetruth_assertedfacts still reach it.Proof (local, OTP 28)
rebar3 lint,rebar3 dialyzerandrebar3 eunitare green (154 tests). This includesmcl_graph_lan_tests: twopeernodes with gossip TTL 0, so nothing leaves the host. A member publishes a truth, and the graph on the bridge learns it at 0.7, with the member's node id linkedasserted. It passed 3 times in a row on its own.opensources- mcl_om -> mcl_core (git pin on mcl-core main 914650ae until 1.0.0 is on hex). - learn_truths_from_mesh is a macula_subscriber named in mcl_graph_service:subscriptions/0 (sources => members), on the holder only; mcl_core wires it on the LAN and, on a node on the mesh, the mesh. The pool/resubscribe code and the hearing input to /health go: the subscription is mcl_core's to keep and to report. - Placement (Supervisor ruling): a graph holder on a LAN member is refused at boot, {mcl_graph_holder_off_mesh, member}; it runs standalone or on the bridge, where mesh-wide truth_asserted facts still reach it. - The realm: required on the holder; a member without the graph may have none, and one that has a realm is still checked. - Two-node LAN test (peer, gossip TTL 0): a member's truth is learned by the graph on the bridge with the member's node id as provenance. Refs macula-services/mcl-graph#19View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.