skip to content
==> README.md <==
1# @ajax/mesh-manifest-needs
2
3What a program needs and prefers from the fleet scheduler: its manifest's `replicas`, `spread`, `prefer`, `avoid`, `arch`, `min_mem_mb`, `colocate_with`, `group*`, `priority`, `migrate` and the `cpu`/`mem_mb` reservations, as `mesh_needs`; placement terms (`cuda`, `host:NAME`, `system:K`, `arch:A`) with their parser.
4
5`Term::matches` needs the scheduler's member type, so it lives with the scheduler.
6
7## Ported from
8
9[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/sched.rs (`Replicas`, `Migrate`, `Term`, `Needs`).
10
11## Tests
12
13Through @ajax/mesh-manifest-encode's golden test (the Needs' Debug output is compared with the Rust's).
14
15## Licence
16
17MIT. See the repository's LICENSE.