Skip to content
Load Balancing
Visit Load Balancing on GitHub
Set theme to dark (⇧+D)



A Cloudflare Load Balancing pool represents a group of origin servers, each identified by their IP address or hostname. You can configure multiple pools, as well as failover priority (Pool A-> Pool B-> Pool C). If you're familiar with DNS terminology, think of a pool as a “record set,” except we only return addresses that are considered healthy. You can attach health checks to individual pools to tailor monitoring for collections of origin servers.

Important notes

When working with pools, note the following:

When adding origin servers to a pool, you can identify the origin by hostname or IP address.

The order of pools in the load balancer determines the standard failover priority. When the number of healthy origins in a pool drops below the configured threshold, Load Balancing routes traffic to the next available pool.

By default, pools are ordered by date created. You can reorder them from the Load Balancing dashboard and via Cloudflare API (use the Update Pools command to set a new origins array).

Dynamic Steering uses Round Trip Time (RTT) profiles to determine pool priority. If there is no RTT data for a pool in a region or colocation center, Load Balancing will use pool order to determine failover priority.

Geo Steering directs traffic to pools based on the client’s region or point of presence. If there is no Geo Steering configuration for a region or pool, the load balancer will use pool order to determine failover priority.


Cloudflare Pool objects have the following properties:

Name / typeDescription / exampleConstraints

A list of regions from which to run health checks. Null means every Cloudflare data center.





string (date-time)
Creation time

Read only

A human-readable description of the pool

"This pool is for"

Set to true to enable the pool; false, to disable.

Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers associated with the pool to failover to the next pool (if any).

Default value: true

Valid values: true, false

API item identifier tag for the pool

Max. length: 32 bytes

Read only

The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and the load balancer will failover to the next available pool.


string (date-time)
Last modification time

Read only

The ID of the monitor to use for health checking origins within this pool

Max. length: 32 bytes

Read only

A short name (tag) for the pool. Only alphanumeric characters, hyphens and underscores are allowed.


The email address to which health status notifications are sent. This can be an individual mailbox or a mailing list.


The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy.



"name": "app-server-1",

"address": "",

"enabled": true,

"weight": 0.56



Per origin Host header override

To balance traffic across multiple hosts, add Host headers to individual origins within the same pool.

For example, you might have a pool with origins hosted in multiple AppEngine projects or Amazon S3 buckets. You also might want to set up specific failover origins within a pool.

Since these examples require specific hostnames per origin, your load balancer could not properly route traffic without a Host header override.

If you need an origin Host header override, add it when creating or editing a pool. For security reasons, this header also needs to be a subdomain of the overall zone. See Configure Cloudflare and Heroku for more details.

For details about how origin and monitor Host headers interact, see Host header prioritization.

Managing pools via the Cloudflare API


Pool endpoints are available in the Cloudflare API at both the user and account level, respectively:

  • user/load_balancers/pools
  • accounts/:account_identifier/load_balancers/pools


The Cloudflare API supports the following commands. For more detail, see Cloudflare API: Load Balancer Pools.

Create PoolPOSTuser/load_balancers/pools
Delete PoolDELETEuser/load_balancers/pools/:identifier
List PoolsGETuser/load_balancers/pools
Pool DetailsGETuser/load_balancers/pools/:identifier
Pool Health DetailsGETuser/load_balancers/pools/:identifier/health
Update PoolPUTuser/load_balancers/pools/:identifier