Product SiteDocumentation Site

11.4. Allocation Details

11.4.1. Which node is preferred to be chosen to get consumed first on allocating resources?

  • 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.

11.4.1.1. Which node has more free capacity?

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.