The leader's lockstep group policy: pause on a lost member, resume as a new epoch, re-form with the survivors
$ sexc add @ajax/mesh-fleet-groups- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 04:08v/# 1 version
- drwxr-xr-x-Oct 27 04:08files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 04:08 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-check ^0.1.0, @ajax/mesh-mt ^0.1.0, @ajax/mesh-member-list ^0.1.0, @ajax/mesh-fleet-doc ^0.1.0
- dependents
- @ajax/mesh-fleet-edit, @ajax/mesh-peer-relay
- keywords
- mesh alphaos fleet fleet lockstep groups
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-fleet-groups
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-fleet-groups 2 3The leader's lockstep group policy: a running group with a member missing pauses (its data plane paused 4already); a paused group whose members are all back resumes as a new epoch (reset); with 5`on_loss = reform` and a timeout, a paused group re-forms over its survivors; `group <name> reform` 6makes a new epoch over every up member that can run it. 7 8## Ported from 9 10[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) `crates/mesh-host/src/fleet.rs`: 11`new_epoch`, `group_policy`, `reform`. 12 13## Tests 14 15`tests/groups.c`: the Rust's `group_epochs`. 16 17## Licence 18 19MIT. See the repository's LICENSE.