Load Balancer Rule Override Args
Constructors
Properties
Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests.
A set containing mappings of country codes to a list of pool IDs (ordered by their failover priority) for the given country.
A list of pool IDs ordered by their failover priority. Used whenever pop_pools
/country_pools
/region_pools
are not defined.
The pool ID to use when all other pools are detected as unhealthy.
Controls location-based steering for non-proxied requests.
A set containing mappings of Cloudflare Point-of-Presence (PoP) identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). This feature is only available to enterprise customers.
Configures pool weights. When steering_policy="random"
, a random pool is selected with probability proportional to pool weights. When steering_policy="least_outstanding_requests"
, pool weights are used to scale each pool's outstanding requests. When steering_policy="least_connections"
, pool weights are used to scale each pool's open connections.
A set containing mappings of region codes to a list of pool IDs (ordered by their failover priority) for the given region.
Configure attributes for session affinity.
Configure attributes for session affinity. Note that the property drain_duration
is not currently supported as a rule override.
Time, in seconds, until this load balancer's session affinity cookie expires after being created. This parameter is ignored unless a supported session affinity policy is set. The current default of 82800
(23 hours) will be used unless session_affinity_ttl
is explicitly set. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. Valid values are between 1800
and 604800
.
The method the load balancer uses to determine the route to your origin. Value off
uses default_pool_ids
. Value geo
uses pop_pools
/country_pools
/region_pools
. For non-proxied requests, the country
for country_pools
is determined by location_strategy
. Value random
selects a pool randomly. Value dynamic_latency
uses round trip time to select the closest pool in default_pool_ids
(requires pool health checks). Value proximity
uses the pools' latitude and longitude to select the closest pool using the Cloudflare PoP location for proxied requests or the location determined by location_strategy
for non-proxied requests. Value least_outstanding_requests
selects a pool by taking into consideration random_steering
weights, as well as each pool's number of outstanding requests. Pools with more pending requests are weighted proportionately less relative to others. Value least_connections
selects a pool by taking into consideration random_steering
weights, as well as each pool's number of open connections. Pools with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections. Value ""
maps to geo
if you use pop_pools
/country_pools
/region_pools
otherwise off
. Available values: off
, geo
, dynamic_latency
, random
, proximity
, least_outstanding_requests
, least_connections
, ""
Defaults to ""
.