How to configure persistence in GSLB
-
Persistence on GSLB virtual server
-
Site persistence on GSLB services
Persistence on GSLB virtual server
Site persistence on GSLB services
Configure persistence based on source IP address
-
The source IP in the IP header of the incoming DNS request packet
-
The ECS option in the DNS request For more information on ECS, see Use the EDNS0 client subnet option for Global Server Load Balancing.
To configure persistence based on source IP address by using the CLI
set gslb vserver <name> -persistenceType (SOURCEIP|NONE) -persistenceId <positive_integer> [-persistMask <netmask>] –[timeout <mins>]
set gslb vserver vserver-GSLB-1 -persistenceType SOURCEIP -persistenceId 23 -persistMask 255.255.255.255 –timeout 2
To configure persistence based on source IP address by using the GUI
-
Navigate to Traffic Management > GSLB > Virtual Servers and double-click the GSLB virtual server whose method you want to change (for example, vserver-GSLB-1).
-
Click the Persistence section and, from the Persistence drop-down list, select SOURCEIP and set the following parameters:
-
Persistence Id—persistenceID
-
Time-out—timeout
-
IPv4 Netmask or IPv6 Mask length—persistMask
-
Configure site persistence based on HTTP cookies
-
When the domain name in the host header matches one of the GSLB domains
-
When site persistence is enabled on the GSLB service that represents the virtual server receiving the application traffic.
-
Connection Proxy
-
HTTP redirect
Connection Proxy
-
Creates a connection to the GSLB site that inserted the site cookie.
-
Proxies the client request to the original site.Note:The proxy server establishes connection with the original site using the following details:
-
The SNIP of the new site is the source IP address.
-
The GSLB service public IP address of the original site is the destination IP address.
-
An ephemeral port is the source port and GSLB service port is the destination port.
-
Uses either HTTP or HTTPS protocols depending on the GSLB service type.
-
-
Receives a response from the original GSLB site.
-
Relays that response back to the client.
-
Closes the connection.
HTTP redirect
-
Requests are sent for a domain participating in GSLB. The domain is obtained from the URL/Host header.
-
The local GSLB service has connection proxy enabled.
-
The request includes a valid cookie that contains the IP address of an active remote GSLB service.
To set persistence based on HTTP cookies by using the CLI
set gslb service <serviceName> -sitePersistence (ConnectionProxy [-sitePrefix <prefix>] | HTTPredirect -sitePrefix <prefix>)
set gslb service service-GSLB-1 -sitePersistence ConnectionProxy
set gslb service service-GSLB-1 -sitePersistence HTTPRedirect -sitePrefix vserver-GSLB-1
To set persistence based on cookies by using the GUI
-
Navigate to Traffic Management > GSLB > Services and select the service that you want to configure for site persistence (for example, service-GSLB-1).
-
Click the Site Persistence section and set persistence based on cookies.