Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2020-05-11 12:58:56 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2020-05-12 13:19:18 +0300
commit996bf21b4533a01a7e1c96f71ec3c5e74d590184 (patch)
treeacced1848577b7d4ccb1eaa90d256d6adf338cc1 /proto/praefect.proto
parent376078ae190dc747a4fa4a7e5966509b0e8d8866 (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.proto16
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