Load Balancing: Geographic Regions

Our Load Balancing service supports geographic routing: directing users in a specific region to a specific origin server (or pool of servers) as specified in your configuration. This complements Cloudflare's own Anycast network, where clients connect to the closest Cloudflare datacenter.

We currently define 13 regions across the world. The "region" of a client is determined by the region of the Cloudflare data center their DNS query is answered by. A map of our data center locations can be found here: https://www.cloudflare.com/network-map/

Region Code Region
WNAM Western North America
ENAM Eastern North America
WEU Western Europe
EEU Eastern Europe
NSAM Northern South America
SSAM Southern South America
OC Oceania
ME Middle East
NAF Northern Africa
SAF Southern Africa
IN India
SEAS Southeast Asia
NEAS Northeast Asia


An example of configuring geographic routing is below: each region takes a list of Pools—sorted by your failover priority.

  • If all of the Pools in a specified region are unhealthy ("down"), then we will use the fallback_pool
  • If a region is not explicitly defined, we will use the default_pools instead. In the example below, queries in Oceania ("OC") would use the default_pools, and would not gravitate towards the "West North America", "East North America" or "Europe" pools. 

Dashboard:

Screen_Shot_2017-02-24_at_7.24.40_AM.png

 

API:

#PUT/zones/:zone_id/load_balancers/:load_balancer_id
{ "description": "Load Balancer for www.example.com", "name": "www.example.com", "ttl": 30, "proxied": true, "fallback_pool": "ff02c959d17f7bb2b1184a202e3c0af7", "default_pools": [ "17b5962d775c646f3f9725cbc7a53df4", "ff02c959d17f7bb2b1184a202e3c0af7" ],
"region_pools": { "WNAM": [ "17b5962d775c646f3f9725cbc7a53df4", "ff02c959d17f7bb2b1184a202e3c0af7" ], "ENAM": [ "17b5962d775c646f3f9725cbc7a53df4", "ff02c959d17f7bb2b1184a202e3c0af7" ], "EU": [ "ff02c959d17f7bb2b1184a202e3c0af7", "17b5962d775c646f3f9725cbc7a53df4" ] } }
Still not finding what you need?

The Cloudflare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk