aboutsummaryrefslogtreecommitdiff
path: root/weed/pb/master.proto
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-04-10 23:00:05 -0700
committerGitHub <noreply@github.com>2022-04-10 23:00:05 -0700
commita87f57e47c9a39c7f431448ac1f99954a30151da (patch)
tree0d142482d59098ffc4a481cb73d7c91803e4aff8 /weed/pb/master.proto
parentc6ec5269f4b34d79ab8e13050623501b8befda32 (diff)
parent931cb9e5818b202c3855321c9b12a6149d121ffa (diff)
downloadseaweedfs-a87f57e47c9a39c7f431448ac1f99954a30151da.tar.xz
seaweedfs-a87f57e47c9a39c7f431448ac1f99954a30151da.zip
Merge pull request #2868 from kmlebedev/hashicorp_raft
hashicorp raft
Diffstat (limited to 'weed/pb/master.proto')
-rw-r--r--weed/pb/master.proto32
1 files changed, 32 insertions, 0 deletions
diff --git a/weed/pb/master.proto b/weed/pb/master.proto
index 1ab9fda39..ed5da7292 100644
--- a/weed/pb/master.proto
+++ b/weed/pb/master.proto
@@ -37,6 +37,12 @@ service Seaweed {
}
rpc Ping (PingRequest) returns (PingResponse) {
}
+ rpc RaftListClusterServers (RaftListClusterServersRequest) returns (RaftListClusterServersResponse) {
+ }
+ rpc RaftAddServer (RaftAddServerRequest) returns (RaftAddServerResponse) {
+ }
+ rpc RaftRemoveServer (RaftRemoveServerRequest) returns (RaftRemoveServerResponse) {
+ }
}
//////////////////////////////////////////////////
@@ -338,3 +344,29 @@ message PingRequest {
}
message PingResponse {
}
+
+message RaftAddServerRequest {
+ string id = 1;
+ string address = 2;
+ bool voter = 3;
+}
+message RaftAddServerResponse {
+}
+
+message RaftRemoveServerRequest {
+ string id = 1;
+ bool force = 2;
+}
+message RaftRemoveServerResponse {
+}
+
+message RaftListClusterServersRequest {
+}
+message RaftListClusterServersResponse {
+ message ClusterServers {
+ string id = 1;
+ string address = 2;
+ string suffrage = 3; //
+ }
+ repeated ClusterServers cluster_servers = 1;
+} \ No newline at end of file