container entity-owners {
- // The entity-owner list contains a list of all entities which have been assigned an owner
- // Since an owner will be a cluster member it gives us a quick way to figure out all the entities
- // that will need to have new owners assigned on the failure of a given cluster member
- list entity-owner {
- key name;
- leaf name {
- type string;
- }
-
- // Group all entities of a given type together
- list entity-type {
- key type;
- leaf type {
- type string;
- }
-
- list entity {
- key id;
- leaf id {
- type string;
- }
- }
- }
- }
-
// A list of all entities grouped by type
list entity-type {
key type;
list entity {
key id;
+
leaf id {
type instance-identifier;
}
leaf owner {
type string;
}
-
+
// A list of all the candidates that would like to own the entity
list candidate {
key name;
+ ordered-by user;
+
leaf name {
type string;
}