Skip to content

Commit 10a90dd

Browse files
authored
deployment planners documentation
Adding a section on deployment planners to include detailed descriptions of available planners and their behaviors.
1 parent efb7a71 commit 10a90dd

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

source/adminguide/deployment_planners.rst

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,81 @@
1717
Deployment Planners
1818
======================
1919

20+
Deployment Planners
21+
===================
22+
23+
Deployment planners determine *how and where instances* are placed across clusters within a zone.
24+
A planner builds and orders a *list of candidate clusters* based on a placement strategy such as available capacity, user dispersion, or pod concentration.
25+
This ordered list is then passed to the *host allocator*, which attempts to deploy the instance following the planner’s priority order.
26+
27+
Administrators can configure the global setting ``vm.deployment.planner`` to define the default deployment planner for the environment.
28+
This can also be overridden per *Compute Offering*, allowing flexible control over how instances are distributed across the infrastructure.
29+
30+
Available Planners
31+
------------------
32+
33+
FirstFitPlanner
34+
~~~~~~~~~~~~~~~
35+
36+
The ``FirstFitPlanner`` ranks all clusters in a zone by their *available (free) capacity*, placing clusters with the most available resources at the top of the list.
37+
This approach prioritizes capacity-driven placement, ensuring efficient utilization of resources across the zone.
38+
39+
UserDispersingPlanner
40+
~~~~~~~~~~~~~~~~~~~~~
41+
42+
The ``UserDispersingPlanner`` aims to *spread a user’s instances across multiple clusters*, reducing the impact of any single cluster failure on that user.
43+
44+
#. The planner counts the number of instances in the *Running* or *Starting* state for the user’s account in each cluster.
45+
#. Clusters are sorted in **ascending order** based on this count, so clusters with fewer instances from the user are preferred.
46+
#. The global setting ``vm.user.dispersion.weight`` (default: ``1``) controls how strongly dispersion affects ordering:
47+
* ``1``: Ranking is based entirely on dispersion.
48+
* ``< 1``: Available capacity has more influence in placement decisions.
49+
50+
Lowering the dispersion weight allows a balance between *even distribution* and *efficient capacity usage*.
51+
52+
UserConcentratedPodPlanner
53+
~~~~~~~~~~~~~~~~~~~~~~~~~~
54+
55+
The ``UserConcentratedPodPlanner`` focuses on *pod-level affinity*, preferring pods where the user already has active instances.
56+
57+
#. The planner identifies all pods in the zone that contain *Running* instances for the user’s account.
58+
#. Pods are sorted in **descending order** by the number of user instances — pods with more user instances come first.
59+
#. Clusters from these pods are then added to the top of the list in that order, so deployment is biased toward pods where the user is already active.
60+
#. Clusters within each pod are *not* further sorted by capacity or instance count.
61+
#. If no pods contain user instances, the cluster order remains unchanged.
62+
63+
Summary of Planner Behavior
64+
---------------------------
65+
66+
.. list-table::
67+
:header-rows: 1
68+
69+
* - Planner
70+
- Placement Focus
71+
- Ordering Criteria
72+
- Typical Use Case
73+
* - FirstFitPlanner
74+
- Capacity
75+
- Descending by available resources
76+
- Capacity-optimized or general-purpose placement
77+
* - UserDispersingPlanner
78+
- Dispersion
79+
- Ascending by user instance count (optionally weighted with capacity)
80+
- Distribute user instances evenly across clusters
81+
* - UserConcentratedPodPlanner
82+
- Pod Affinity
83+
- Descending by user instance count per pod
84+
- Keep user instances within the same pod for locality or data proximity
85+
86+
Pod-Level vs Cluster-Level Allocation
87+
------------------------------------
88+
89+
When ``apply.allocation.algorithm.to.pods = true``:
90+
The allocation algorithm (for example, *FirstFit*) is applied at *pod granularity* first.
91+
The planner will evaluate or rank pods according to the allocation heuristics — for *FirstFit*, that means prioritizing pods with more available capacity according to the FirstFit capacity checks.
92+
After pods are ordered, the planner then considers clusters *inside each pod* — typically evaluating clusters within the selected pod in order (or applying cluster-level heuristics only within that pod).
93+
In other words, *pod-level ordering happens before cluster selection*.
94+
95+
When ``apply.allocation.algorithm.to.pods = false`` (the default in many deployments):
96+
The allocation algorithm operates at the *cluster level* across the entire zone.
97+

0 commit comments

Comments
 (0)