This article describes how to configure a virtual server and the associated services and servers to drop new connection requests while keeping existing connections active at a specific connection level.
The customer tried to use the maximum client connections parameter configured on a service. But, the load balancing virtual server continued to accept connections and place them in the surge queue for processing when new connections are available or until the connection times out.
Complete the following procedure, to configure the appliance to drop the connections as required:
Configure the backend server to accept a maximum number of TCP connections.
Note: This configuration must be completed on the server and not on the NetScaler appliance. The procedure is different for each type of server. For Apache, this involves changing the MaxClients setting.
Run the following command to disable downstateflush on a service:
>set service <service name> -downStateFlush DISABLED
Or
>add service <name> (<IP> | <serverName>) <serviceType> <port> -downStateFlush DISABLED
Run the following command to disable downstateflush on the virtual server:
>set lb vserver <name> -downStateFlush DISABLED
Or
>add lb vserver <name> <serviceType> (<IPAddress> <port>) -downStateFlush DISABLEDIn the Configuration Utility, ensure that the Down State Flush option is cleared for the service and the virtual server as shown in the following screen shots:
Service
Virtual Server