Skip to content
MisterShell
11 / 27 Exit tour

Worker high availability

Many workers, one location

Location · Paris DC

Core

routes each new session

Worker A 3 active
Worker B 2 active
Worker C offline

Next session → B (fewest active)

Resources

in Paris DC

Load-balanced

Work goes to the online worker with the fewest active tasks.

Redundant

Lose a worker and new sessions go to its peers.

Scale out

Stateless workers: add one to add capacity.

mistershell.com

Notes

High availability doesn’t stop at the cores. Several workers can serve the same location. Work for that location — sessions included — is dispatched to an online worker there, with ties broken by the fewest active tasks, so session traffic is spread across them. If a worker goes offline, new sessions go to the remaining workers; sessions that were running through it end and can simply be reopened. With no online worker in a location, work falls back to workers in the parent location. Because workers are stateless, adding capacity is just registering another worker in the location.