Breadth-first load balancing (Azure Virtual Desktop)
Concept
Breadth-first load balancing spreads new sessions across session hosts in a pooled Azure Virtual Desktop host pool. It picks randomly among the half of hosts with the fewest sessions. The maximum session limit defaults to 999999.
Relationships
Breadth-first load balancing (Azure Virtual Desktop) falls under the broader topic Host pool (Azure Virtual Desktop).
Description
Breadth-first is one of two load-balancing algorithms that Azure Virtual Desktop offers for pooled host pools; the other is depth-first. The algorithm decides which session host receives a session when a user starts a remote session. It does not apply to personal host pools, because there each user is mapped one to one to a session host. Only one algorithm can be active per pooled host pool at a time, and it can be changed at any time.
Learn describes the method as follows: the service first queries the session hosts that allow new connections and then picks one at random from the half of the available hosts with the fewest sessions. With nine hosts holding 11 to 19 sessions, a new session can therefore land on any of the five least loaded hosts. Because of this randomization, sessions are not always distributed perfectly evenly. Microsoft positions breadth-first for organizations that want the best user experience, since CPU, memory and disk on the session hosts are generally less contended. Depth-first, in contrast, fills one host after another up to the session limit and suits cost-conscious setups.
Breadth-first does not require a maximum session limit. When a host pool is created with it, the limit defaults to 999999, which is also the highest value possible. Autoscale scaling plans, however, need a custom limit, and their schedules can set the algorithm per phase, overriding the host pool setting; Learn recommends breadth-first for ramp-up. Both algorithms send returning users to their existing session, even on a host in drain mode, and skip drain-mode hosts for new sessions. Configuring it needs the Desktop Virtualization Host Pool Contributor role.
| Type | Concept |
|---|---|
| Kind | Method |
| Documentation | Breadth-first load balancing (Azure Virtual Desktop) – Microsoft Learn learn.microsoft.com |
Related topics in brief
Topics linked to Breadth-first load balancing (Azure Virtual Desktop), each briefly explained:
- Host pool (Azure Virtual Desktop) – Narrower topic of Azure Virtual Desktop · Broader topic
A host pool in Azure Virtual Desktop is a collection of Azure virtual machines registered as session hosts; host pools are either pooled, shared by multiple users, or personal, with a dedicated machine per user.
All relationships of Breadth-first load balancing (Azure Virtual Desktop), grouped by type of relationship:
Broader topic
Broader topics of Breadth-first load balancing (Azure Virtual Desktop):
Community wiki
Short info above, community knowledge below: add practical tips, examples or corrections. New contributions are reviewed first; trusted members publish directly.
Experts and companies for this topic
Nobody has listed this topic yet. Add it to your profile.
Experts on related topics
Experts on topics related to Breadth-first load balancing (Azure Virtual Desktop), each with the topic that connects them:
- Mirko Peters · via Host pool (Azure Virtual Desktop)
Sources
- Breadth-first load balancing (Azure Virtual Desktop) – Microsoft Learn learn.microsoft.com
Maintained by Mirko Peters (Microsoft MVP) · Last updated: