etcdserver/etcdserverpb: define 'MoveLeader' RPC
@@ -191,6 +191,14 @@ service Maintenance {
body: "*"
};
}
+
+ // MoveLeader requests current leader node to transfer its leadership to transferee.
+ rpc MoveLeader(MoveLeaderRequest) returns (MoveLeaderResponse) {
+ option (google.api.http) = {
+ post: "/v3alpha/maintenance/transfer-leadership"
+ body: "*"
+ };
+ }
}
service Auth {
@@ -787,6 +795,15 @@ message DefragmentResponse {
ResponseHeader header = 1;
}
+message MoveLeaderRequest {
+ // targetID is the node ID for the new leader.
+ uint64 targetID = 1;
+}
+
+message MoveLeaderResponse {
+ ResponseHeader header = 1;
+}
+
enum AlarmType {
NONE = 0; // default, used to query if any alarm is active
NOSPACE = 1; // space quota is exhausted
