Server pool

Also known as: backend pool · upstream group

On this page 7

A server pool is the named group of interchangeable backend servers to which a load balancer distributes client traffic for one service. In load balancing and wider networking practice, the same construct is called a backend pool in cloud platforms and an upstream group in reverse proxies such as NGINX, but the idea is constant: clients address a single virtual endpoint, and the balancer chooses one healthy member of the pool for each connection or request.

The pool is where capacity, redundancy and maintenance are actually managed. Adding a member increases throughput, removing a failed member preserves availability, and changing weights or draining a member allows upgrades without visible downtime.

How a server pool fits into the load balancing path

A server pool sits behind a virtual IP or listener that clients connect to. The load balancer accepts the connection, applies a load balancing algorithm such as round robin or least connections to the list of eligible members, and forwards the traffic to the selected server, either by proxying a new connection or by rewriting packet addresses.

Eligibility is decided continuously by health checks. A member that fails a configured number of consecutive probes is marked down and receives no new traffic; after a number of successful probes it is marked up again. The pool therefore behaves as a self-correcting set, not a static list of addresses.

The following table lists the components that a typical pool definition contains and what each one controls.

ElementTypical valueWhat it controls
Member addressIP address and port, or hostnameWhere traffic is forwarded
Weight1 to 100 or 1 to 256Relative share of new traffic
Health monitorTCP, HTTP or TLS probe every 2-10 sWhether a member is eligible
Thresholds2-3 failures down, 2-5 successes upSpeed of failover and recovery
Member stateEnabled, disabled, draining, backupAdministrative participation
Connection limitPer-member maximum, often hundreds to thousandsProtection against overload
Core elements of a server pool definition

Membership, weights and health states

Pool membership can be static, configured by an administrator, or dynamic, populated from service discovery, DNS records or an autoscaling group. Dynamic membership is standard in cloud and container platforms, where instances appear and disappear within minutes and manual lists would quickly become stale.

Weights express unequal capacity. A server with twice the CPU cores may receive a weight of 2 against a weight of 1 for older hardware, which is the basis of weighted round robin. Weights are proportions of new connections, not guarantees of equal utilization, because request cost varies widely between endpoints.

Each member moves between a small set of states, and the table below shows how traffic is treated in each one.

StateNew connectionsExisting connectionsTypical cause
UpAcceptedContinuePassing health checks
DownNoneUsually reset or left to failFailed health checks
DrainingNoneAllowed to finishPlanned maintenance or scale-in
DisabledNoneClosed or drained, per policyAdministrator action
BackupOnly if primaries failContinueStandby capacity
Member states and their effect on traffic

Connection draining is the critical state for zero-downtime operations. It lets long-lived sessions complete within a timeout, commonly 30 to 300 seconds, before the member is removed or restarted.

A server pool is the target of a load balancer, not the balancer itself, and confusion between these layers causes many design errors. The comparison below separates the pool from neighboring constructs that appear in the same configurations.

ConstructWhat it isRelation to the pool
Load balancerDevice or software that distributes trafficSelects members from one or more pools
Virtual server or listenerClient-facing IP, port and protocolMaps incoming traffic to a pool
Server clusterServers sharing state or coordinationMay be exposed through a pool
Target groupCloud term for a pool with its own health checksFunctional equivalent
Autoscaling groupRule set that adds or removes instancesFeeds membership into the pool
How a server pool differs from neighboring constructs

In Layer 7 load balancing, one listener often routes to several pools based on host name or URL path, so that /api requests reach application servers while /static requests reach a cache tier. In Layer 4 load balancing, a listener usually maps to exactly one pool, because the balancer does not inspect request content.

Designing and sizing a server pool

Pool sizing starts from peak demand plus failure headroom. The common rule is N+1 or N+2: the pool must carry peak load even after losing one or two members, or an entire availability zone when members are spread across zones.

Members of one pool should be functionally identical, running the same application version and configuration. Mixed versions are acceptable only during a controlled rolling deployment, and session state must live outside the servers, in a shared cache or database, unless sticky sessions are deliberately used.

The decision table below summarizes common design choices and the reasons behind them.

SituationRecommended choiceReason
Members with unequal hardwareAssign weightsPrevents overload of smaller servers
Long-lived connections such as WebSocketLeast connections algorithmBalances open sessions, not arrivals
Stateful legacy applicationSticky sessions with careKeeps users on one member
Multi-zone deploymentMembers in at least two zonesSurvives a zone outage
Frequent deploymentsDraining plus rolling updatesAvoids dropped requests
Design decisions for a server pool

Failure modes and common mistakes

Most pool incidents come from health checks that test the wrong thing. A TCP check confirms only that a port is open, so a server returning HTTP 500 errors can remain in rotation. Conversely, a deep check that queries a shared database can mark every member down at once when that database slows, turning a partial problem into a complete outage.

  • Too aggressive thresholds cause flapping, where members repeatedly leave and rejoin the pool under brief latency spikes.
  • Undersized pools collapse in cascade: when one member fails, its load shifts to the others, which then exceed capacity and fail in turn.
  • Cold members that just joined may need cache warm-up; slow-start features ramp their weight gradually over a short period.
  • Hidden single points of failure, such as all members sharing one hypervisor host or one network switch, defeat the redundancy that the pool appears to provide.

Some balancers offer a fail-open behavior that sends traffic to all members when every health check fails, on the assumption that the checks themselves are broken. This is a reasonable safeguard, but it must be a deliberate, documented setting, not an accidental default.

In plain words

A server pool is like the row of checkout counters in a supermarket. Shoppers see one store entrance, and a staff member sends each person to an open counter. The counters together are the pool.

If a counter closes, nobody is sent there, and the other counters take the extra shoppers. If the store gets busy, more counters open. The pool is what lets a website stay available when one computer breaks or needs an update.

A real-world example

An online retailer runs its checkout service on six application servers spread across two availability zones, three in each. A Layer 7 load balancer listens on HTTPS port 443 and forwards checkout traffic to a pool named checkout-pool, with an HTTP health check against /healthz every five seconds, three failures to mark a member down and two successes to mark it up.

During a weekday release, the operations team drains two members at a time with a 120-second timeout, upgrades them and returns them to the pool before moving on. Peak demand needs about four servers, so the pool keeps enough capacity throughout. When one zone later suffers a network fault, its three members fail their checks within fifteen seconds and the remaining three absorb the traffic with higher latency but no failed orders, because the pool was sized for the loss of a full zone.