FREE Citrix XenApp Training

Are you setting up a new Proof of Concept
or a Production Environment?

I'll coach you through the configurations step-by-step with Real World Best Practices.

  • Microsoft Active Directory and Group Policy...
  • Install and Configure Citrix XenApp...
  • Citrix Web Interface and Licensing...
  • And Much Much More...

I respect your privacy. I'll NEVER sell, rent or share your email address. That's more than a policy, it's my personal guarantee!

How to Load Balance Citrix Web Interface with NLB

Every Citrix Web Interface Server (WI) without any form of load balancing is a potential single point of failure in your environment. Network Load Balancing is available in both the Standard and Enterprise Editions of Windows 2008 so there shouldn’t be to many excuses for not implementing. This picture tutorial will take you through the process of creating a Network Load Balancing Cluster for your Citrix Web Interface Servers.

IP Address Overview :

winlb1.ctxlab.local    10.0.10.40
winlb2.ctxlab.local    10.0.10.41
nlb.ctxlab.local         10.0.10.42

Configure Citrix Web Interface :

  1. Assign static IP Address to both nodes in the NLB Cluster
  2. Install and create a Site on Citrix WI on Node A
  3. Install and create a Site on Citrix WI on Node B
  4. Customize, test and replicate WI Site from Node A to Node B
  5. RoboCopy c:\inetpub\wwwroot\Citrix \winlb2\c$\inetpub\wwwroot\Citrix /MIR

Configure Network Load Balancing :

Network Load Balancing NLB 01 300x189 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 02 300x279 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 03 300x279 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 04 300x279 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 05 300x279 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 061 300x278 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 07 243x300 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 08 300x279 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 09 300x189 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 10 300x279 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 11 300x279 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 12 300x279 How to Load Balance Citrix Web Interface with NLB

Network Load Balancing NLB 13 300x188 How to Load Balance Citrix Web Interface with NLB

Prepare For Your Next Citrix Exam with FREE Training
Enter you email to Get Instant Access to Citrix Training and blog post updates directly to your inbox. Over 14644 people have already enjoyed this comprehensive training.

{ 23 comments… read them below or add one }

bpaul May 3, 2010 at 11:55

Very informative and its nice!

Reply

Tom May 4, 2010 at 22:10

Check ‘Retain suspended state …’ to avoid a webserver kicking in after rebooting during controlled maintenance

Reply

admin May 4, 2010 at 22:39

Thanks Tom, that’s correct, but this can easily be set in the Cluster Properties after if somebody missed it.

Eric

Reply

Tom May 5, 2010 at 19:10

Yes, but if you for example also are running CSG on the boxes, and are just ‘looking’ on these settings afterwards, you’ll end up disconnecting the CSG sessioms.
That’s why its a good idea to set it up first, before we are getting user sessions in.
Anyway, nice documented feature of the NLB setup.
People are not always aware that this is available.

Reply

Joshua May 27, 2010 at 17:35

How about linking the two xenapp webinterface URLs to the nlb.ctxlab.local?

Reply

admin May 27, 2010 at 17:51

Hi Joshua,

When you have the WI working on node A and Node B separately, you should make a DNS entry e.g. nlb.ctxlab.local

Eric

Reply

Joshua May 31, 2010 at 17:01

Well, i am on VMware virtual machine. I have tried with both unicast and multicast options but both fails. The two nodes in NLB can talk to each other in muticast mode but not any other clients. In unicast mode only one node in the NLB works not the other node. However, all the clients can talk to this one node.

Reply

admin June 1, 2010 at 14:19

Hi,

Seems like you have routing problems. I have seen this before and I fixed this by using 5 instead of 3 IP-addresses. Which means ProdA, NLBA, ProdB, NLBB and NLBCluster IP. Then I needed to set the GW on NLBA & NLBB Nic’s.

For more information check out this resources :
Configuring Network Load Balancing (NLB) on Windows 2008 for Exchange CAS Servers
Emulating a Redirecting Load Balancer for WI and PNAgent

Eric

Reply

Joshua June 3, 2010 at 15:39

I already have the 5 IP scenario in multicast mode but clients are not able to talk to NLB. Any client machine can talk to the NLB in unicast mode but the two nodes in the cluster are not able to talk to each other so I am not sure clients are talking to which node in the cluster.

We are planning to do some switch reconfiguration next week and see if it helps.

Reply

Joshua June 8, 2010 at 09:28

It works now with modification on switch level configuration for arp resolution.

Thanks

Reply

Vikash Kumar September 13, 2010 at 07:49

For NLB to work on VMWare , you should have NLB in Multicast mode and ARP entry into router switch for the NLB IP. I have implemented this at many place and it works like a charm.

Thanks,
Vikash Kumar Roy

Reply

Trond Eirik Haavarstein September 13, 2010 at 14:59

Thanks for the feeback Vikash

Reply

Menno Bernardt December 15, 2010 at 11:51

Some tips:

When using VMWare, vmware will do a reverse ARP. You have to publish the MAC address of the cluster in the switches.

Use IGMP Multicast, this is more efficient.

Check the clustersettings for Affinety settings.
If you are using, for example, the secure gateway also in NLB mode, be sure which host is talking to your NLB. If that’s a shared IP, the NLB mchanism will not work if your affinety settings is not right. Really check out your network design!

Also keep in mind: NLB will only redirect NEW sessions to another host if one of the nodes fails! Exisiting session will not be reidrected! Also note that NLB only saves you from hostfailures, not application failures.

Reply

Trond Eirik Haavarstein December 15, 2010 at 12:06

Menno, thanks for sharing you LB and network knowledge.

Reply

Suchith April 27, 2011 at 07:42

Hi Trond,
Can we do a round robin method for WI load balancing?

Regards,
Suchith

Reply

Trond Eirik Haavarstein April 27, 2011 at 14:02

Hi Suchith,

If you use Round Robin this will fail every second time and the user experience would not be any good.

Reply

Dave G May 16, 2011 at 23:03

Trond,
I have experienced the round robin failure every second time issue as you mentioned. What is the recommended way to configure WI load balancing? Thanks, Dave G.

Reply

Trond Eirik Haavarstein May 17, 2011 at 13:05

Hi Dave,

If you are only using Round Robin you will experience this. The best free solution is to use Microsoft Network Load Balancing (NLB) as described in the article above.

Reply

bhaskar July 21, 2011 at 13:39

in xenapp 6 which component does load balancing ?

Reply

Trond Eirik Haavarstein July 21, 2011 at 15:40

Hi, what we’re discussing is this article is using Microsoft Load Balancing to provide DR/HA for our Citrix Web Interface Servers.

Reply

bf2mad November 17, 2011 at 22:39

I had some issues getting this working within VMware, this post helped me out

http://www.geekshangout.com/content/configuring-windows-network-load-balancing-top-vmware-vsphere

Reply

Cliff Hogan April 18, 2013 at 06:43

I see this setup discussed here in relation to VMware/vSphere and the resolution to that particular hypervisor. I am wondering if there is any solution to a similar setup based on Citrix XenServer.

Reply

Trond Eirik Haavarstein April 18, 2013 at 07:02

The setup is the same for VMware/XenServer/Hyper-V. VMware is only discussed in the comments regarding some issues.

Reply

Leave a Comment

{ 1 trackback }

Previous post:

Next post: