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.
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 for random steering. When the steering_policy="random"
, a random pool is selected with probability proportional to these pool weights.
A set containing mappings of region codes to a list of pool IDs (ordered by their failover priority) for the given region.
Specifies the type of session affinity the load balancer should use unless specified as none
or ""
(default). With value cookie
, on the first request to a proxied load balancer, a cookie is generated, encoding information of which origin the request will be forwarded to. Subsequent requests, by the same client to the same load balancer, will be sent to the origin server the cookie encodes, for the duration of the cookie and as long as the origin server remains healthy. If the cookie has expired or the origin server is unhealthy then a new origin server is calculated and used. Value ip_cookie
behaves the same as cookie
except the initial origin selection is stable and based on the client's IP address. Available values: ""
, none
, cookie
, ip_cookie
. Defaults to none
.
See session_affinity_attributes
.
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 ""
maps to geo
if you use pop_pools
/country_pools
/region_pools
otherwise off
. Available values: off
, geo
, dynamic_latency
, random
, proximity
, ""
Defaults to ""
.