This repository was archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtorchft.proto
92 lines (75 loc) · 1.85 KB
/
torchft.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
syntax = "proto3";
package torchft;
message RaftMessageRequest {
// Request message contains the serialized Raft proto message.
bytes message = 1;
}
message RaftMessageResponse {
}
message NodeInfo {
uint64 rank = 1;
string address = 2;
}
message InfoRequest {
NodeInfo requester = 1;
}
message InfoResponse {
repeated NodeInfo peers = 1;
}
service CoordinatorService {
rpc RaftMessage (RaftMessageRequest) returns (RaftMessageResponse);
rpc Info (InfoRequest) returns (InfoResponse);
}
message QuorumMember {
string replica_id = 1;
string address = 2;
string store_address = 3;
int64 step = 4;
}
message Quorum {
int64 quorum_id = 1;
repeated QuorumMember participants = 2;
}
message LighthouseQuorumRequest {
QuorumMember requester = 1;
}
message LighthouseQuorumResponse {
Quorum quorum = 1;
}
service LighthouseService {
rpc Quorum (LighthouseQuorumRequest) returns (LighthouseQuorumResponse);
}
message ManagerQuorumRequest {
int64 rank = 1;
int64 step = 2;
string checkpoint_server_addr = 3;
}
message ManagerQuorumResponse {
int64 quorum_id = 1;
string address = 2;
string store_address = 3;
int64 max_step = 4;
int64 num_max = 5;
int64 replica_rank = 6;
int64 replica_world = 7;
bool heal = 8;
}
message CheckpointAddressRequest {
int64 rank = 1;
}
message CheckpointAddressResponse {
string checkpoint_server_address = 1;
}
message ShouldCommitRequest {
bool should_commit = 1;
int64 rank = 2;
int64 step = 3;
}
message ShouldCommitResponse {
bool should_commit = 1;
}
service ManagerService {
rpc Quorum (ManagerQuorumRequest) returns (ManagerQuorumResponse);
rpc CheckpointAddress(CheckpointAddressRequest) returns (CheckpointAddressResponse);
rpc ShouldCommit(ShouldCommitRequest) returns (ShouldCommitResponse);
}