Disaster Recovery Guide for XenDesktop 5 using NetScaler

Disaster Recovery Guide for XenDesktop 5 using NetScaler

book

Article ID: CTX127563

calendar_today

Updated On:

Description

This article describes how to configure Disaster Recovery (DR) using NetScaler with XenDesktop 5.x.

Requirements

  • Four NetScaler with appropriate licenses (GSLB)

  • Four XenDesktop 5.x farms

Failover Options

A simple solution for site failover is to use the Web Interface RecoveryFarm setting. This feature allows Web Interface to direct the users to alternative farms should the issues arise with the main farms, such as network or power failures.

Complete the following procedure to enable this feature:

  1. Using a text editor, open the WebInterface.conf file.

  2. Add the following lines, configuring the settings for this parameter according to your environment:

  • RecoveryFarm1=backupfarm1.recovery.co.uk,Name:RecoveryFarm1,XMLPort:80,Transport:HTTP,SSLRelayPort:443,BypassDuration:60,LoadBalance:On,TicketTimeToLive:200,RADETicketTimeToLive:200

  • RecoveryFarm2=backupfarm2.recovery.co.uk,Name:RecoveryFarm2,XMLPort:80,Transport:HTTP,SSLRelayPort:443,BypassDuration:60,LoadBalance:On,TicketTimeToLive:200,RADETicketTimeToLive:200

Note: The second farm is used only if the first disaster recovery farm is inaccessible. Resources are not aggregated across both disaster recovery farms because they are for production farms. Instead, the Web Interface attempts to contact each disaster recovery farm in order and enumerates resources from the first farm with which communications are established.

However, this solution is rather limited. A more resilient solution is to use NetScaler features to detect site failure and to redirect the users to alternative sites. Combining both farms High Availability (HA) features and site failover creates fault tolerant configuration that allows users’ access to Desktops though multiple levels of failures.

User-added image

In this diagram, the Primary Site is running two farms, Data Center 1and Data Center 2. If Data Center 1 fails, then the Primary site NetScaler detects this and automatically re-directs the users to Data Center 2. The NetScalers in the DMZ monitors at the site level, and if a major power or network outage affects the Primary Site, it detects this and automatically re-directs the user to the Disaster Recovery Site. The NetScaler continues to monitor and redirects the users back to the Primary Site once it become available.


Instructions

  1. Create the XenDesktop farms: site1farm1, site1farm2, site2farm1, site2farm2 and publish a desktop group on each farm (refer to the XenDesktop 5 administrators guide for further information).

  2. Configure the NetScalers: NSsite1, NSsite2, NSdmz1, NSdmz2.

  3. NSsite1 provides load balancing and farm level failover for the primary site.

  4. Open the GUI Web tool for NSsite1 and log on.

  5. Create an XML monitor.

  6. Access the Virtual Servers and Services section of the GUI.

  7. Expand the tree and access Monitors.

  8. Select Add.

  9. Add a name, such as XML-monitor and set Type to CITRIX-XML-SERVICE then click Create, as displayed in the following screen shot:

    User-added image

  10. Create a Server entry for the brokers in farm1 and farm2.

    User-added image

    User-added image

  11. Create a Load Balance service for each site.

  12. Add the XML-monitor that was created earlier.

    User-added image

  13. Create the Virtual Server. This will be the IP address that Web Interface uses.

  14. Set the IP Address and select the services created earlier, in this case, LB-service-site1farm1 and LB-service-site1farm2.

  15. Configure load balancing type and session persistence methods and navigate to the Methods and Persistence tab.

    User-added image

  16. Set the LB method. Round Robin and Least Connection are safe easy-to-use methods. However, use what is appropriate for your environment. Select from the options to set Persistence. This procedure uses SOURCEIP and use the appropriate option for your particular environment. Set the IPv4 Netmask to a suitable address range for your clients. Click Create.

     User-added image

    Note: NetScaler monitors and automatically removes any failed servers from the Load Balancing available pool and re-adds them when the server comes back online.
  17. In the Web Interface for site,1 create a new Web Site and set the farm address to the IP address of the Virtual Server created in the preceding steps.

  18. Repeat the preceding steps for NSsite2.

  19. You now have configured basic farm level failover. Next, you must configure the DMZ NetScalers for Global Server Load Balancing (GSLB).

  20. Open the GUI administrative Website for NSdmz1 and log on. Repeat the preceding steps and create servers, services, and virtual-servers.

  21. Create the LB service and virtual server for the Web Interface server using the same process as explained in the preceding steps.

    Note: You will be binding these to the GSLB service.

    User-added image

  22. Create the local and remote GSLB sites. Ensure to set the Type to LOCAL and REMOTE, as displayed in the following screen shot:

    User-added image

  23. Create the local GSLB service; bind the local site and the Web Interface virtual IP address.

    User-added image

  24. Create the remote GSLB service; bind the remote site and the remote Web Interface virtual IP address.

  25. Create the GSLB virtual server.

    User-added image

  26. Bind the Web Interface LB virtual server IP address to the Web Interface service created earlier.

    User-added image

  27. Bind the GSLB virtual server to both the GSLB services created in the preceding steps:

    User-added image

  28. Bind the Domain Name to the GSLB virtual server, for example www.example.com, as displayed in the following screen shot:

    User-added image

  29. Add a service for Authoritative Domain Name Service (ADNS).

    User-added image

  30. Do the same for NSdmz2.

  31. Create the LB service and virtual server for the Web Interface server using the same process as explained in the preceding steps.

    Note: You will be binding this to the GSLB service.

  32. Create the local and remote GSLB sites. Ensure to set the Type to LOCAL and REMOTE.

  33. Create the local GSLB service; bind the local site and the Web Interface virtual IP address.

  34. Create the remote GSLB service; bind the remote site and the remote Web Interface virtual IP address.

  35. Create the GSLB virtual server.

  36. Bind the Web Interface LB virtual server IP address to the Web Interface service created earlier.

  37. Bind the GSLB virtual server to both the GSLB services created above.

  38. Bind the domain name to the GSLB virtual server, for example www.example.com.

Now you have a pair of GSLB enabled NetScalers, which direct the users to the Web Interface. Web Interface then communicates with another NetScaler that is load balancing the XML services on your XenDesktop 5 farms. Should a farm fail, the NetScaler fails over to the alternate farm. Should the GSLB NetScaler detect a failure, the users are diverted to the alternate site until the primary site comes online.

Issue/Introduction

A guide to configuring Disaster Recovery inconjuction with XenDesktop 5.x.

Additional Information

Citrix Documentation -  XenApp and XenDesktop

CTX123976 - Citrix NetScaler Global Server Load Balancing Primer: Theory and Implementation