diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2020-05-11 12:58:56 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2020-05-12 13:19:18 +0300 |
commit | 996bf21b4533a01a7e1c96f71ec3c5e74d590184 (patch) | |
tree | acced1848577b7d4ccb1eaa90d256d6adf338cc1 /proto/praefect.proto | |
parent | 376078ae190dc747a4fa4a7e5966509b0e8d8866 (diff) |
praefect enable-writes subcommand
Adds a subcommand for re-enabling writes to a virtual storage after
a failover event.
Diffstat (limited to 'proto/praefect.proto')
-rw-r--r-- | proto/praefect.proto | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/proto/praefect.proto b/proto/praefect.proto index df4677ada..ee7f0eb52 100644 --- a/proto/praefect.proto +++ b/proto/praefect.proto @@ -35,8 +35,24 @@ service PraefectInfoService { scope_level: SERVER }; } + + // EnableWrites enables writes for a storage that was switched to a read-only mode + // following a failover. + rpc EnableWrites(EnableWritesRequest) returns (EnableWritesResponse) { + option (op_type) = { + op: MUTATOR + scope_level: STORAGE + }; + } } +message EnableWritesRequest { + // virtual_storage is the name of the virtual storage to enable writes for. + string virtual_storage = 1 [(storage)=true]; +} + +message EnableWritesResponse {} + // DatalossCheckRequest fetches dead replica jobs from praefect. message DatalossCheckRequest { // from is an inclusive beginning of the timeframe the dead replica jobs are to be |