open-nomad/helper/snapshot
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
..
testdata/snapshot Add snapshot helper 2020-05-21 20:04:38 -04:00
archive.go Add snapshot helper 2020-05-21 20:04:38 -04:00
archive_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
snapshot.go snapshot restore-from-archive streaming and filtering (#13658) 2022-07-11 10:48:00 -04:00
snapshot_test.go Add snapshot helper 2020-05-21 20:04:38 -04:00