milvus/proto/metapb.proto
bigsheeper bb9c906ef6 Use go mod instead of GO_PATH and add more cgo interfeces
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2020-09-01 16:23:39 +08:00

30 lines
415 B
Protocol Buffer

syntax = "proto3";
package metapb;
message Cluster {
uint64 id = 1;
// max peer count for a region.
// pd will do the auto-balance if region peer count mismatches.
uint32 max_peer_count = 1024;
// more attributes......
}
enum PeerRole {
Master = 0;
Reader = 1;
Write = 2;
Proxyer = 3;
}
message Peer {
uint64 id = 1;
uint64 peer_id = 2;
PeerRole role = 3;
}