Adaptive routing
Last updated Sep 10, 2026 Adaptive routing controls features that modify the routing of requests to pools and endpoints in response to dynamic conditions, such as during the interval between active health monitoring requests.
Zero-downtime failover will trigger a single retry only if there is another healthy endpoint in the pool and a 521, 522, 523, 525 or 526 error code is occurring. No other error codes will trigger a zero-downtime failover operation.
Failover across pools
When there are no healthy endpoints in the same pool, failover across pools extend the zero-downtime failover of requests to healthy endpoints in alternate pools according to the failover order defined by traffic and endpoint steering.
Geo-steering limitation
When using geo-steering, failover across pools only considers pools within the same geographic grouping. If your NA pool becomes unhealthy, traffic will not automatically fail over to your EU pool — it will go to the global fallback pool instead.
To enable cross-region failover, include the desired fallback pool as an additional pool within each region's pool list.
Alternatively, pool sets accept a fallback pool for each location, so traffic that exhausts the pools for one location fails over to a pool you choose for that location instead of the global fallback pool.
Enable failover across pools
- In the Cloudflare dashboard, go to the Load Balancing page. Go to Load Balancing ↗
- Navigate to your Load Balancers and select Edit.
- From Adaptive Routing, enable Failover across pools.
HTTP/2 GOAWAY handling
When an origin sends a GOAWAY frame, Cloudflare stops sending new requests on that connection but does not mark the endpoint as unhealthy. Safe-to-retry requests (typically GET) are automatically retried on a new connection. Non-idempotent requests (such as POST or PUT) may not be retried unless the request was not yet sent on the closing connection.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/load-balancing/understand-basics/adaptive-routing/#page","headline":"Adaptive routing","description":"Route traffic based on origin health and latency.","url":"https://developers.cloudflare.com/load-balancing/understand-basics/adaptive-routing/","inLanguage":"en","image":"https://developers.cloudflare.com/load-balancing/understand-basics/adaptive-routing/og.png?v=1c2dae2fc6226c72","dateModified":"2026-09-10","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: How endpoints and pools become unhealthy. title: How endpoints and pools become unhealthy image: https://developers.cloudflare.com/load-balancing/understand-basics/health-details/og.png?v=f44567b317aacd17
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/load-balancing/llms.txt
Use this file to discover all available pages before exploring further.
Docs