Load Balancing Health Monitors, Analytics, and Pool Steering
How health monitors, pool steering, analytics, and alerts work in Cloudflare Load Balancing for origins and private endpoints.
This page summarizes Cloudflare Load Balancing documentation on probing origin health, steering traffic across pools, observing request flow, and wiring alerts. It is aimed at operators who need to know why traffic moved, whether failover was health-based or fallback, and how to configure checks for public and private origins.
Load balancing: health checks and traffic steering
Section titled “Load balancing: health checks and traffic steering”Cloudflare Load Balancing distributes traffic across origins by running regular health monitors and applying the steering policies you define. At a high level, monitors probe endpoints continuously and unhealthy servers are removed from rotation while steering chooses which pool serves each request.
Monitor origin server health and availability. Learn more about health checks.
Health monitoring - Continuously probe origins and automatically remove unhealthy servers from rotation
— Cloudflare, Balance traffic across origins
Cloudflare Load Balancing allows you to intelligently distribute traffic across your origins by issuing regular monitors (that assess origin health) and following the traffic steering policies you define.
— Cloudflare, Use with other Cloudflare products
Steering can be global or location-specific (pool sets, custom rules). Health can be global or regional. Analytics and logs show how those decisions played out in production.
Health monitors: protocols and how success is judged
Section titled “Health monitors: protocols and how success is judged”Monitors are configured per protocol. The Monitors reference lists HTTP/HTTPS, TCP, ICMP ping, UDP-ICMP, and SMTP probes for public and, where noted, private or tunnel endpoints.
| Monitor type | Typical use | Unhealthy when |
|---|---|---|
| HTTP/HTTPS | Application endpoints with method, headers, body checks | Criteria not met within timeout and retries |
| TCP | Port reachability | TCP connection cannot be established in time |
| ICMP Ping | Layer 3 reachability (L3 must allow ICMP) | No echo reply in time |
| UDP-ICMP | UDP services after ICMP succeeds | ICMP Port Unreachable received |
| SMTP | Mail availability | HELO/QUIT codes not 250/221 in time |
HTTP monitors keep the TCP connection alive with keep-alives during the timeout even if no response arrives yet. For Dedicated CDN Egress IPs, turning on Simulate Zone in monitor settings helps match what monitors see with what origin traffic sees.
Create and change monitors in the dashboard under Load Balancing → Monitors, or with the API (POST/PATCH/PUT on accounts/:account_id/load_balancers/monitors). See Create monitors for dashboard steps; use List Monitors and Update Monitors when fixing header mismatches described in Common error codes.
Zone settings on monitoring requests
Section titled “Zone settings on monitoring requests”Monitors can load and apply settings from a specific zone on probes to origins (for example Authenticated Origin Pulls, Aegis Egress IP Pools, Argo Smart Routing, HTTP/2 to Origin). That path was moved to new infrastructure for reliability:
All zone monitors have been tested against the new infrastructure. There should be no change to health monitoring results of currently healthy and active pools. Newly created or re-enabled pools may need validation of their monitor zone settings before being introduced to service, especially regarding correct application of mTLS.
— Cloudflare, Improvements to Monitoring Using Zone Settings
Unrelated CDN or WAF changes should not affect pool health from this migration, but re-enabled pools deserve a deliberate monitor validation pass.
Monitor Groups: combine checks for smarter failover
Section titled “Monitor Groups: combine checks for smarter failover”Monitor Groups aggregate several monitors into one logical health result for a pool—useful when both an API gateway and a critical path such as /login must be up before traffic is sent.
Group multiple health monitors together to create sophisticated health checks for your applications, ensuring more intelligent and resilient traffic steering.
— Cloudflare, Monitor Groups
Combine Multiple Monitors: Group different health monitors (for example, HTTP, TCP) that check various application components, like a primary API gateway and a specific /login service.
Isolate Monitors for Observation: Mark a monitor as “monitoring only” to receive alerts and data without it affecting a pool’s health status or traffic steering.
Improve Steering Intelligence: Latency for Dynamic Steering is automatically averaged across all active monitors in a group, providing a more holistic view of an origin’s performance.
— Cloudflare, Monitor Groups for Advanced Health Checking With Load Balancing
Fields such as must_be_healthy and monitoring_only on each monitor in a group control whether a failed check affects origin health or is observability-only. Load balancing analytics Logs can include a monitors array on each health event when a Monitor Group is attached to a pool.
Regional health: when reachability differs by path
Section titled “Regional health: when reachability differs by path”Regional health lets each Cloudflare region decide pool health independently so one bad network path does not drain a pool globally.
Each Cloudflare region can make an independent health decision for a pool. When pool reachability differs by region, traffic can avoid an unreachable pool without removing it from service elsewhere.
— Cloudflare, Load Balancing now supports regional health
Set health_sources on a pool to ["regional", "global"] to prefer regional decisions and fall back to global health when no regional decision exists. Pools without health_sources keep prior behavior. This fits multi-region deployments and failures that affect specific paths only.
Pool sets and Custom Rules: location and network steering
Section titled “Pool sets and Custom Rules: location and network steering”pool sets: per-location pools and steering
Section titled “pool sets: per-location pools and steering”Pool sets (API) match traffic by Cloudflare data center, country, or region, then supply candidate pools, weights, fallback pool, and steering policy. Cloudflare evaluates pool_sets in array order and uses the first match:
{ "pool_sets": [ { "name": "germany-lowest-latency", "match": { "topology": { "countries": ["DE"] } }, "overrides": { "pools": [ "0930eec54a4c7ae6616985b79f678210", "c8b4f5a6d7e84910a2b3c4d5e6f70819" ], "steering_policy": "dynamic_latency" } } ]}Use cases include active-active distribution, location-specific failover, and regional policies. For proxied traffic, a pool set can return a fixed HTTP response instead of selecting a pool. Details: Load Balancing now supports pool sets. Map countries to Load Balancer regions with the Regions API when designing topology matches.
Custom Rules: steer by AS Num (ASN)
Section titled “Custom Rules: steer by AS Num (ASN)”Custom Rules can match the request’s Autonomous System Number to send ISP or enterprise traffic to dedicated pools—for performance or compliance. In the load balancer, create a Custom Rule and choose AS Num as the field. See Steer Traffic by AS Number in Load Balancing Custom Rules.
Load Balancing analytics: metrics, filters, and logs
Section titled “Load Balancing analytics: metrics, filters, and logs”Using load balancing analytics, you can:
Evaluate traffic flow. Assess the health status of endpoints in your pools. Review changes in pools and pool health over time.
— Cloudflare, Load balancing analytics
Overview metrics count requests routed to pools (add filters for pools, time, regions, endpoints). Latency shows an interactive map of slow or unhealthy pools by region. Logs record endpoint status changes (healthy ↔ unhealthy), not every probe tick; with Monitor Groups, each event can list per-monitor results.
Load balancing requests are uncached requests issued by the load balancer. Resolved origin IPs are cached up to about five seconds by default—so analytics totals often differ from Caching or other dashboards. That discrepancy is expected; see Load Balancing FAQ.
Pool name filter and fallback traffic labels
Section titled “Pool name filter and fallback traffic labels”The pool filter now queries by the pool name shown in the dropdown (not internal pool ID), affecting Requests over time, Pool distribution, Top endpoints, and Latency—not Logs health-event filtering. See Load balancing analytics now filters by pool name.
Fallback traffic is labeled separately as pool-name (Fallback) when the same pool is both a normal steering target and the fallback pool—so you can tell health-based routing from last-resort fallback (fallback pools ignore health):
Because the fallback pool ignores health, that distinction matters when you are diagnosing an outage or reviewing how much traffic was shed.
— Cloudflare, See fallback pool traffic separately in load balancing analytics
For load shedding, review Overview metrics after shedding default traffic; shedding is percentage-based, so a traffic spike increases absolute volume reaching the pool even at the same shed rate (Load shedding).
Private Load Balancers and L3/L4 monitors
Section titled “Private Load Balancers and L3/L4 monitors”The account-level Load Balancing UI centralizes public and Private Load Balancers for internal apps (with WARP, Magic WAN, and Zero Trust). Private endpoints can use UDP and ICMP health monitors when HTTP/TCP probes are a poor fit (DNS, VoIP, custom UDP, basic reachability). See New Account-Level Load Balancing UI and Private Load Balancers and UDP and ICMP Monitor Support for Private Load Balancing Endpoints.
Health notifications and PagerDuty
Section titled “Health notifications and PagerDuty”Health monitor notifications are moving to Cloudflare’s centralized Notifications Service (Health monitor notifications). Alerts are now stateful: an unhealthy pool or endpoint opens an incident; recovery matched to the same pool or endpoint resolves it automatically, and recovery notifications are sent as well.
A recovery notification is matched to the earlier unhealthy notification for the same pool or endpoint. Renaming an endpoint while an incident is open prevents the match, so that incident stays open until you close it.
— Cloudflare, Load Balancing health notifications now resolve automatically
Route Load Balancing health events to PagerDuty for visibility—see Additional configuration (integrate with third parties). Do not rename endpoints during open incidents if you rely on auto-resolve.
Common mistakes
Section titled “Common mistakes”- Comparing Load Balancing analytics request counts to zone HTTP totals without accounting for the ~5s resolved-IP cache and “uncached load balancer requests” definition.
- Treating a single pool series as “all healthy steering” when the pool is also your fallback—use the
(Fallback)series. - Expecting Monitor Group configuration or full fidelity in the dashboard on Enterprise API-only groups.
- Skipping Simulate Zone on monitors when using Dedicated CDN Egress IPs and seeing monitor vs traffic mismatches.
- Renaming endpoints during an open PagerDuty incident and leaving incidents stuck open.
How to check this on your site
Section titled “How to check this on your site”-
In the Cloudflare dashboard, open Traffic → Load Balancing Analytics for your zone (or the account-level load balancer view) and confirm Overview, Latency, and Logs reflect the pools you expect. Use the Load balancing analytics reference for metric definitions.
-
Filter by a specific pool name and verify Requests over time, Pool distribution, Top endpoints, and Latency align with that pool; if you use a fallback pool, confirm whether traffic appears as
name (Fallback). -
Trigger or review a recent health change in Logs and, if Monitor Groups are attached, inspect per-monitor
failure_reasonfields on the event. -
Confirm monitor settings (including Simulate Zone if you use dedicated egress) via Load Balancing → Monitors or the List Monitors API; fix headers per Common error codes if probes fail.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match your configuration or the linked Cloudflare docs, email yimasynthetic@gmail.com with the page URL and the exact statement you believe is wrong so it can be corrected or clarified.