- The node that is most healthy (which has the highest node weight) gets consumed first.
- If their weights are equal:
- If
`placement-strategy="default|utilization"`

, the node that has the least number of allocated resources gets consumed first.- If their numbers of allocated resources are equal, the first eligible node listed in cib gets consumed first.

- If
`placement-strategy="balanced"`

, the node that has more free capacity gets consumed first.- If the free capacities of the nodes are equal, the node that has the least number of allocated resources gets consumed first.
- If their numbers of allocated resources are equal, the first eligible node listed in cib gets consumed first.

- If
`placement-strategy="minimal"`

, the first eligible node listed in cib gets consumed first.

This will be quite clear if we only define one type of

`capacity`

. While if we define multiple types of `capacity`

, for example:
- If
`nodeA`

has more free`cpus`

,`nodeB`

has more free`memory`

, their free capacities are equal. - If
`nodeA`

has more free`cpus`

, while`nodeB`

has more free`memory`

and`storage`

,`nodeB`

has more free capacity.