...
message Volume {
…
// To inform the edge-node if the device receives this Volume is
// responsible to create volume, convert PVC or not
String DesignateNodeID;
// replicated to devices with UUID array, number arrange from 0 to 2
repeated string ReplicaNodeID;
}
App Info Message API
enum ZInfoClusterNodeStatus {
Node_Status_INVALID;
Node_Status_READY; // cluster reports our node is ready
Node_Status_NOTREADY; // cluster reports our node is ready
Node_Status_UNKNOWN; // cluster API server can not be reached
}
message ZInfoClusterNode {
ZInfoClusterNodeStatus node_status;
}
message ZInfoMsg {
oneof InfoContent {
...
ZInfoClusterNode cluster_node;
}
}
message ZInfoApp {
…
// Report Node status of this Node in the cluster
Message ZInfoApp {
…
// The App in cluster mode is currently running on this edge-node
bool ClusterAppRunning;
…
}
...