open-nomad/scheduler/benchmarks
Tim Gross b6dd1191b2
snapshot restore-from-archive streaming and filtering (#13658)
Stream snapshot to FSM when restoring from archive
The `RestoreFromArchive` helper decompresses the snapshot archive to a
temporary file before reading it into the FSM. For large snapshots
this performs a lot of disk IO. Stream decompress the snapshot as we
read it, without first writing to a temporary file.

Add bexpr filters to the `RestoreFromArchive` helper.
The operator can pass these as `-filter` arguments to `nomad operator
snapshot state` (and other commands in the future) to include only
desired data when reading the snapshot.
2022-07-11 10:48:00 -04:00
..
benchmarks_test.go scheduler: tooling for scheduler benchmarking (#11725) 2021-12-22 10:05:44 -05:00
helpers_test.go snapshot restore-from-archive streaming and filtering (#13658) 2022-07-11 10:48:00 -04:00