Enabling sticky gslb, Configuring the sticky gslb session life time – Brocade Virtual ADX Global Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 71
Brocade Virtual ADX Global Server Load Balancing Guide
61
53-1003245-01
Site persistence in GSLB using stickiness
1
Enabling sticky GSLB
Enabling sticky GSLB is the minimum required configuration.
On the GSLB controller, to enable Sticky GSLB globally for all the domains, enter commands such
as the following.
SLB-Ctrl-Virtual ADX(config)#gslb policy
SLB-Ctrl-Virtual ADX(config-gslb-policy)#sticky
On the GSLB controller, to enable Sticky GSLB for a specific host, enter commands such as the
following.
SLB-Ctrl-Virtual ADX(config)#gslb-host-policy test
SLB-Ctrl-Virtual ADX(config-gslb-host-policy-test)#sticky
SLB-Ctrl-Virtual ADX(config)#gslb dns zone example1.com
SLB-Ctrl-Virtual ADX(config-gslb-dns-example1.com)#host-info www gslb-policy test
This example defines a host policy, then applies that policy to the specific host www. The sticky is
one function within the host policy.
Syntax: [no] sticky
NOTE
No special CLI commands need to be issued on the site ADX device.
Allowing sticky sessions for a specific prefix length
You can allow sticky sessions for a specific prefix length (not all hosts). For added granularity of the
sessions, specify the prefix length for the client IPs. The default is 32 bits.
To allow sticky sessions for a specific prefix length, enter commands such as the following.
SLB-Ctrl-Virtual ADX(config)#gslb-host-policy test
SLB-Ctrl-Virtual ADX(config-gslb-host-policy-test)#sticky 24
Syntax: [no] sticky { prefix-length | ipv6-prefix-length prefix-length }
The variableprefix-length specifies the IPv4 prefix length. The default is 32 bits.
The ipv6-prefix-length parameter specifies that an IPv6 prefix length. The default is 128 bits.
Configuring the sticky GSLB session life time
The Sticky GSLB session life time (age) prevents sessions from hanging for extended periods of
time. Sometimes clients do not accept DNS servers, thus creating stale sessions. Use the sticky
age command to make session resources available to other clients. By default, idle sessions are
timed out after 5 minutes.
To configure the Sticky GSLB session life time (age), enter commands such as the following.
SLB-Ctrl-Virtual ADX(config)#gslb-host-policy test
SLB-Ctrl-Virtual ADX(config-gslb-host-policy-test)#stick age 5
Syntax: [no] sticky age value
The value is the number of minutes before sticky session is cleared.