How To: NetScaler 10.1 Deployment Part 2: Load Balancing

In the part 1 of this 5 part series we covered the initial config of the NetScaler..getting it IP’d and licensed. In this 2nd part we will cover the load balancing config, specifically: load balance our DNS queries and LDAP queries.

If you would like to read the other parts in this article series please go to:

DNS Load Balancing

Step 1. Log onto your NetScaler and navigate to Traffic Management -> Load Balancing -> Servers

SNAG-0000

Step 2.  Input the name of one of your DNS servers, in my case this is a domain controller with Active Directory integrated DNS. Also enter the DNS server IP, make sure “Enable after Creating” is checked then click “Create”. Do this for each of your DNS servers you ultimately wish to load balance requests across.

SNAG-0001.jpg

Once complete, you should have a screen resembling this.

SNAG-0002

Step 3. Navigate to Traffic Management -> Load Balancing -> Monitors. Find the “dns” monitor and click “Open”.

SNAG-0004

Step 4. Modify the “interval” to 15 seconds, check the “LRTM” checkbox, and then go to the “Special Parameters” tab.

SNAG-0005

Step 5. Enter your local domain suffix into the “Query” field, query type “Address”, and enter in the IP it should resolve to and click “Add”,  then “Ok”.

SNAG-0006

Step 6. Navigate to Traffic Management -> Load Balancing -> Service Groups. Click “Add”.

SNAG-0007

Step 7. Enter a Service Group Name, change “Members” to “Server Based” and select then “Add” your listed domain controllers to the right-hand box of “Configured Members”. Click on the “Monitors” tab.

SNAG-0008

Step 8. Find the “dns” monitor and click “Add”. Insure the “Protocol” in the top right still shows DNS then click “Create” then “Close”.

SNAG-0009

Step 9. Navigate to Traffic Management -> Load Balancing -> Virtual Servers.  Click “Add”.

SNAG-0010

Step 10. Enter a vServer “Name”, set “Protocol” to DNS, input an IP for this new vServer, and enter 53 for the port. Select the “Service Groups” tab and you should see the previously created DNS service group, click the checkbox to mark it active. Click “Create” then “Close”.

SNAG-0011

Step 11. Navigate to Traffic Management -> DNS -> Name Servers. Click “Add”.

SNAG-0012

Step 12. Select “DNS Virtual Server”. Your vServer created in the prior steps should be listed. Click “Test”.

SNAG 0013

Step 13. Change the selection to “Send Custom Domain Request” and enter your local domain suffix and click “Run”.

SNAG 0014

You should be presented with a successful green checkmark and a message that the lookup was successful!

SNAG 0015

LDAP Load Balancing

Step 1. Navigate to Traffic Management -> Load Balancing -> Monitors. Click “Add”.

SNAG-0016

Step 2. Enter in a monitor name, change the type to “LDAP”, then click the “Special Parameters” tab.

SNAG-0017

Step 3. On the “Special Parameters” tab, click the “Browse” button next to “Script Name”.

SNAG-0018

Step 4. From the list, find and select “nsldap.pl”.

SNAG 0019

Step 5. Populate the Dispatcher IP as 127.0.0.1, Dispatcher port as 3013, base dn (i.e. dc=vmlab,dc=local),  a bind dn for a service account with sufficient permissions to query LDAP, filter cn=builtin, and finally the password for the service account. Once complete, click “Create” then “Close”.

SNAG-0020

Step 6. Navigate to Traffic Management -> Load Balancing -> Service Groups. Click “Add”.

SNAG-0021

Step 7. Enter a Service Group Name, protocol to “TCP”. Specify Server Based membership, port 389, and “Add” your domain controllers to the right hand box. When complete, select the “Monitors” tab.

SNAG-0022

Step 8. Find the monitor you created in the prior steps and “Add” it. Click “Create” then “Close”.
SNAG-0023

Step 9. Navigate to Traffic Management -> Load Balancing -> Virtual Servers. Click “Add”.

SNAG-0000

Step 10. Enter in a vServer name, IP, Protocol set to “TCP”, port 389.

SNAG 0024

Step 11. Navigate to the “Service Groups” tab. The LDAP service group created in prior steps should be listed. Click the checkbox next to it to activate. Once complete click “Create” then “Close.

SNAG 0025

Step 12. You should now show two Virtual Servers state Up and Effective State up. All green, good to go!

SNAG-0026

To be continued..in our next chapter we will cover load balancing XenApp and XenDesktop with the NetScaler.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s