edgeLoadBalancingDataCenter


The Edge Load Balancing module allows you to specify groups of data centers that implement load balancing, session persistence, and real-time dynamic failover. Enabling ELB routes requests contextually based on location, device, or network, along with optional rules you specify.

This behavior specifies details about a data center, and needs to be paired in the same rule with an edge‚ÄčLoad‚ÄčBalancing‚ÄčOrigin behavior, which specifies its origin. An origin is an abstraction that helps group a logical set of a website or application. It potentially includes information about many data centers and cloud providers, as well as many end points or IP addresses for each data center. More than one data center can thus refer to the same origin.

OptionTypeDescriptionRequires
origin‚ÄčIdstring

Corresponds to the id specified by the edge‚ÄčLoad‚ÄčBalancing‚ÄčOrigin behavior associated with this data center.

{"displayType":"string","tag":"input","type":"text"}
descriptionstring

Provides a description for the ELB data center, for your own reference.

{"displayType":"string","tag":"input","type":"text"}
hostnamestring

Specifies the data center's hostname.

{"displayType":"string","tag":"input","type":"text"}
enable‚ÄčFailoverboolean

Allows you to specify failover rules.

{"displayType":"boolean","tag":"input","type":"checkbox"}
ipstring

Specifies this data center's IP address.

enable‚ÄčFailover is true
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"enableFailover","op":"eq","value":true}}
failover‚ÄčRulesobject array

Provides up to four failover rules to apply in the specified order.

enable‚ÄčFailover is true
{"displayType":"object array","tag":"input","todo":true}
{"if":{"attribute":"enableFailover","op":"eq","value":true}}
failover‚ÄčRules[].failover‚ÄčHostnamestring

The hostname of the data center to fail over to.

{"displayType":"string","tag":"input","type":"text"}
failover‚ÄčRules[].modify‚ÄčRequestboolean

Allows you to modify the request's hostname or path.

{"displayType":"boolean","tag":"input","type":"checkbox"}
failover‚ÄčRules[].override‚ÄčHostnameboolean

Overrides the request's hostname with the failover_hostname.

modify‚ÄčRequest is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"modifyRequest","op":"eq","value":true}}
failover‚ÄčRules[].context‚ÄčRootstring

Specifies the path to use in the forwarding request, typically the root (/) when failing over to a different data center, or a full path such as /static/error.‚Äčhtml when failing over to an error page.

modify‚ÄčRequest is true
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"modifyRequest","op":"eq","value":true}}
failover‚ÄčRules[].absolute‚ÄčPathboolean

When enabled, interprets the path specified by context_root as an absolute server path, for example to reference a site-down page. Otherwise when disabled, the path is appended to the request.

modify‚ÄčRequest is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"modifyRequest","op":"eq","value":true}}