NetScaler – How to Configure GSLB in Active Passive Mode

Written by Thomas Poppelgaard on. Posted in Netscaler

Summary

This article contains information about how to configure Global Server Load Balancing (GSLB) in Active-Passive mode.

Procedure

To configure GSLB in Active-Passive mode complete the following procedures:

Configuring Site A as Active GLSB Site

Configuring Site B as Backup GLSB Site

Configuring Site A as Active GLSB Site

Complete the following steps, to configure site A as the active GSLB site:

  • Run the following command in the command line interface to enable the load balancing and GSLB features:
    enable ns feature LB GSLB
  • Run the following command to create an authoritative DNS service on the NetScaler MIP or SNIP:
    add service adns_svc 192.168.251.205 adns 53
  • Run the following commands to create local and remote GSLB site:
    add gslb site sitea 192.168.251.201 -publicIP 192.168.251.201
    add gslb site siteb 192.168.253.201 -publicIP 192.168.253.201
  • Run the following command to add the local GSLB virtual server for HTTP traffic with RTT as the lbmethod:
    add gslb vserver gvserver-a http -lbmethod RTT
  •  Run the following commands to create the virtual server for load balancing the local servers and services at site A and bind the service to the virtual server:
    add service server-a 192.168.152.10 HTTP 80
    add lb vserver vservera HTTP 192.168.251.202 80 -persistenceType NONE -cltTimeout 180

    bind lb vserver vservera server-a
  • Run the following command to add the GSLB service for the local site A:
    add gslb service gslb-svc-a 192.168.251.202 HTTP 80 -siteName sitea
    bind gslb vserver gvserver-a -serviceName gslb-svc-a

    Note: GSLB service monitoring is not required for a local service, because the load balancing virtual server status is used.
    Note
    : The local GSLB service should have the same IP address as the load balancing virtual server status just added at step 5.
    add gslb service gslb-svc-a 192.168.251.202 HTTP 80 -siteName sitea
    bind gslb vserver gvserver-a -serviceName gslb-svc-a

  • Run the following command to bind the domain to the primary GSLB virtual server:
    bind gslb vserver gvserver-a -domainName www.example.com
  • Run the following command to add the remote GSLB virtual server for HTTP traffic with RTT as the lbmethod
    add gslb vserver gvserver-b HTTP -lbMethod RTT
  • Run the following commands to add a GSLB service for the remote site B and bind it to the remote GSLB virtual server.
    add gslb service GSLB-svc-b 192.168.253.202 HTTP 80 -publicIP 192.168.253.205 -publicPort 80 -siteName siteb
    bind gslb vserver gvserver-b -serviceName GSLB-svc-b
  • Run the following command to setup the backup GSLB virtual server:
    set GSLB vserver gvserver-a -backupVServer gvserver-b

Configuring Site B as Backup GLSB Site

Complete the following steps, to configure site B as the backup GSLB site:

  • Run the following command to enable the load balancing and GSLB features:
    enable ns feature LB GSLB
  • Run the following command to add an authoritative DNS service on the NetScaler MIP or SNIP:
    add service adns_svc 192.168.253.205 adns 53
  • Run the following commands to add a remote and local GSLB site:
    add gslb site sitea 192.168.251.201 -publicIP 192.168.251.201
    add gslb site siteb 192.168.253.201 -publicIP 192.168.253.201
  • Run the following command to add the local GSLB virtual server for HTTP traffic with RTT as the lbmethod:
    add gslb vserver gvserver-b http -lbmethod RTT
  •  Run the following command to add the virtual server for load balancing the servers and services at site B and bind the service to the virtual server:
    add service server-b 192.168.152.11 HTTP 80
    add lb vserver vserverb HTTP 192.168.253.202 80 -persistenceType NONE –cltTimeout 180
    bind lb vserver vserverb server-b
  • Run the following command to add the GSLB service for the Local site B:
    add gslb service gslb-svc-b 192.168.253.202 HTTP 80 -siteName siteb
    bind gslb vserver gvserver-b -serviceName gslb-svc-b

    Note: GSLB service monitoring is not required for a local service since the load balancing virtual server status is used.
    Note:
     The local GSLB service should have the same IP address as the load balancing virtual server added at Step 5.

  • Run the following to add the remote GSLB virtual server for HTTP traffic with RTT as the lbmethod:
    add gslb vserver gvserver-a HTTP -lbMethod RTT
  • Run the following to add the GSLB service for the remote site A and bind it to the remote GSLB virtual server:
    add gslb service GSLB-svc-a 192.168.251.202 HTTP 80 -siteName sitea
    bind gslb vserver gvserver-a -serviceName GSLB-svc-a
  • Run the following command to bind the domain to the primary GSLB virtual server:
    bind gslb vserver gvserver-a -domainName www.example.com
  • Run the following command to set up the backup GSLB virtual server:
    set GSLB vserver gvserver-a -backupVServer gvserver-b

This article applies to:

Trackback from your site.

Leave a comment

Turn on pictures to see the captcha *

Recent Comments

Thomas Poppelgaard

|

Hi i have changed the colors. Is this better ?

I have also optimized the load of the articles (text, photo) compression it should be must faster now.

Let me hear your thoughts, thank you for using my site.
/Poppelgaard

ylzjyu

|

Hi:
Blog background is not comfortable

Like the old style

Edmund Fuerst

|

Really great job. Thank you!!!

Yusuf Assenjee

|

We have a model of the 3690 that does not have this setting in Uefi

infinite boot retry

we cannot get Xen 6 to boot.

Any hint?

ylzjyu

|

Hi,Poppelgaard
Thank you very much.
I like your site.

Feeds from Citrix Blog :