sapling/eden/mononoke/tunables
Stanislau Hlebik b6bbd21600 mononoke: make it possible to quickly cancel derivation for a given repo
Summary:
We've had a few sevs where expensive derivation for a single repo overloaded
our backends. This diff adds a tunable that makes it possible to quickly cancel
all derivations for a given repo. And one important caveat - it doesn't only
cancel derivations for a given repo, it also cancels the initial commit
traversal stage which can be quite expensive.

Note that it cancells all derivations for a given repo, at the moment there's
no way to cancel deriving just a single derived data type. I'd like to add it,
but in the next diffs since it might require changing the tunables - they don't
support tuning a list of strings for a given repo. Besides, having a way to
quickly disable all derivations for a given repo might be useful anyway.

Reviewed By: farnz

Differential Revision: D29028444

fbshipit-source-id: 559917e0e25eb060fe5be77a412bfec4ac3f1779
2021-06-11 07:00:14 -07:00
..
src mononoke: make it possible to quickly cancel derivation for a given repo 2021-06-11 07:00:14 -07:00
tunables-derive mononoke: add support for by repo vec of strings tunables 2021-06-11 05:53:24 -07:00
Cargo.toml rust: revert zstd crates 2021-06-11 04:39:54 -07:00