mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
bb9c906ef6
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
30 lines
415 B
Protocol Buffer
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;
|
|
}
|