skip to content
==> README.md <==
1# @ajax/mesh-sched-weights
2
3The fleet scheduler's weights and policy (`msw_weights`): the score terms' weights, the rebalancer's
4hysteresis (`improve`, `hold_ms`, `dwell_ms`, `per_min`), the replacement grace, the owner policy and
5the reservation reserve. `msw_from_keys` reads a cluster config's `sched_*` keys over the defaults.
6
7## Ported from
8
9[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) `crates/mesh-host/src/sched.rs`:
10`Weights`, `Weights::default`, `Weights::from_keys`.
11
12## Tests
13
14`tests/weights.c`: defaults, overrides, `tick_ms`'s floor of 100, each error message.
15
16## Licence
17
18MIT. See the repository's LICENSE.