<

How To Drain Services on Netscaler 9.3 or Greater

Published on
4,666 Points
1,566 Views
1 Endorsement
Last Modified:
I am writing this article to help others who have been trying to find clear answers on how to drain a service in Citrix Netscaler 9.3 or greater. The content in this article is from both my hands on experience and from Citrix support

When you need to take a server out of service for maintenance, I recommend opening a SSH session to the Netscaler and typing in the command: stat service to list the number of connections each service hosted by the server has open. The service name needs to be the name listed for the service on the Netscaler, for example: stat service WebServer-http.

You can find the number of connections used by the service by looking at the current client connections and current server connection lines. This is good information to have when you start so you know how many connections are present. Below is a screen shot of what the output from the stat service command would look like.
screenshot1.png

In the Netsclaer GUI, open the service. By default the “Down State Flush” is selected. What this does is if you disable the service without using a Graceful shutdown, all sessions using the service will be dropped instantly and the service will be marked “Out Of Service”. Citrix support recommends leaving this at its default setting of enabled. Click the Disable button; this will then open a window that will allow you to select Graceful shutdown and Wait Time value in seconds.

When you select Graceful shutdown, all current connections are honored and not dropped and no new connections are permitted. When you set the Wait Time value to 0 this means the service will wait until the last session is closed before it marks the Service as “Out Of Service” For example, if you set the Wait Time value to 3600 seconds, this means the Netscaler will wait 3600 seconds (one hour) before setting the service as "Out Of Service". Any remaining connections would be dropped hard.
screenshot2.pngscreenshot3.pngBack on the GUI you will see the service listed as “Going Out Of Service” if there are connections currently using the service.
 
1
Comment
Author:compdigit44
  • 2
2 Comments
 
LVL 20

Author Comment

by:compdigit44
Yes.. how can I make my articles status change to recommended and listed on the weekly E.E Newsfeeds email that goes out.
0
 
LVL 20

Author Comment

by:compdigit44
Good to know ..

Thanks for your help.. :-)
0

Join & Write a Comment

How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month