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

Rules for Cloudflare Load Balancing

Use Load Balancing rules to customize the behavior of your load balancer. For example, create a Load Balancing rule that selects an origin pool based on the URI path of an HTTP request.

You can create Load Balancing rules whenever you create or edit a load balancer in Traffic.

Create Custom Rule card in Traffic app

As with Cloudflare Firewall rules, each Load Balancing rule is a combination of two elements: an expression and an action. Expressions define the criteria for an HTTP request to trigger an action. The action tells Cloudflare how to handle the request.

When building expressions for Load Balancing rules, refer to Supported fields and operators for definitions and usage.