Three load-balancing strategies
Round-robin (the default), weighted (assign higher weights to bigger servers) and sticky-cookie (session affinity for stateful workloads). Switch between them per service without redeploying.
Scale stateless services horizontally — round-robin, weighted or sticky-cookie — and let Traefik distribute traffic across replicas, with automatic health checks and per-server placement.
Round-robin (the default), weighted (assign higher weights to bigger servers) and sticky-cookie (session affinity for stateful workloads). Switch between them per service without redeploying.
Bump the replica count and Pier launches additional containers, registers them with Traefik, and starts routing traffic. Scale down and Pier drains containers cleanly.
When agents are connected, replicas spread across servers automatically. Per-replica server placement is recorded so you can see where every instance lives.
Traefik health-checks each replica; failed replicas stop receiving traffic until they recover. Combined with the agent_offline alert, you get end-to-end visibility into a degraded service.
Sticky-cookie session affinity covers most stateful HTTP workloads. For databases and other stateful services, Pier exposes the primary today; clustering primitives are tracked under the cluster-mode roadmap.
Each replica gets its own writable container layer. Named volumes default to per-replica today; shared read-only mounts for multi-replica setups are an upcoming follow-up to the load-balancing PR.
Traefik is the bundled reverse proxy and is what wires replicas together. You can disable it and front Pier with your own L7 proxy, but in that case load balancing becomes your responsibility.
One command installs Pier on any Ubuntu or Debian VPS.
curl -fsSL https://pier.sh/install | sudo bash