Protecting the content switching setup against failure
Configuring a backup virtual server
To set up a backup content switching virtual server by using the CLI
set cs vserver <name> -backupVserver <string> -disablePrimaryOnDown (ON|OFF)
Example
set cs vserver Vserver-CS-1 -backupVserver Vserver-CS-2 -disablePrimaryOnDown ON
To set up a backup content switching virtual server by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, configure a virtual server, and specify the protocol as MYSQL.
-
In Advanced Settings, select Protection, and specify a Backup Virtual Server.
Diverting excess traffic to a backup virtual server
To configure a content switching virtual server to divert new connections to a backup virtual server by using the CLI
set cs vserver <name> -soMethod <methodType> -soThreshold <thresholdValue> -soPersistence <persistenceValue> -soPersistenceTimeout <timeoutValue>
Example
set cs vserver Vserver-CS-1 -soMethod Connection -soThreshold 1000 -soPersistence enabled -soPersistenceTimeout 2
To set a content switching virtual server to divert new connections to a backup virtual server by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, configure a virtual server, and specify the protocol as MYSQL.
-
In Advanced Settings, select Protection, and configure spillover.
Configuring a redirection URL
www.example.com/ instead of a relative URL. A relative URL redirection might result in the vulnerability scanner reporting a false positive.
To configure a redirect URL for when the content switching virtual server is unavailable by using the CLI
set cs vserver <name> -redirectURL <URLValue>
Example
set cs vserver Vserver-CS-1 -redirectURL http://www.newdomain.com/mysite/maintenance
To configure a redirect URL for when the content switching virtual server is unavailable by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, configure a virtual server, and specify the protocol as MYSQL.
-
In Advanced Settings, select Protection, and specify a Redirect URL.
Configuring the state update option
To configure the state update option by using the CLI
add cs vserver <name> <protocol> <ipAddress> <port> -stateUpdate ENABLED
Example
add cs vserver csw_vserver HTTP 10.18.250.154 80 -stateupdate ENABLED -cltTimeout 180
To configure the state update option by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, configure a virtual server, and specify the protocol as MYSQL.
-
In Advanced Settings, select Traffic Settings, and then select State Update.
Flushing the surge queue
To flush a surge queue by using the CLI
-
You can specify the name of a service, service group, or virtual server whose surge queue has to be flushed.
-
If you specify a name while running the command, the surge queue of the specified entity is flushed. If more than one entity has the same name, the appliance flushes the surge queues of all those entities.
-
If you specify the name of a service group, and a server name and port while running the command, the appliance flushes the surge queue of only the specified service group member.
-
You cannot directly specify a service group member (
<serverName>and<port>) without specifying the name of the service group (<name>) and you cannot specify<port>without a<serverName>. Specify the<serverName>and<port>if you want to flush the surge queue for a specific service group member. -
If you run the command without specifying any names, the appliance flushes the surge queues of all the entities present on the appliance.
-
If a service group member is identified with a server name, you must specify the server name in this command; you cannot specify its IP address.
flush ns surgeQ [-name <name>] [-serverName <serverName> <port>].
Examples
1. flush ns surgeQ –name SVC1ANZGB –serverName 10.10.10.1 80
The above command flushes the surge queue of the service or virtual server that is named SVC1ANZGB and has IP address as 10.10.10
2. flush ns surgeQ
The above command flushes all the surge queues on the appliance.