How to Configure GSLB in Active-Passive Mode on NetScaler Appliance

Configuring disaster recovery in an active-passive setup consists of the following tasks.

  • Create the active data center.
    • Add a local GSLB site.
    • Bind the domain to the GSLB virtual server.
    • Add GSLB services and bind the services to active GSLB virtual server.
    • Add a GSLB virtual server, which represents the active data center.
  • Create the passive data center.
    • Add a remote GSLB site.
    • Add GSLB services which represents standby data center and bind the services to the standby GSLB virtual server.
    • Add a GSLB virtual server, which represents standby data center.
    • Designate the standby data center by configuring the standby GSLB virtual server as the backup virtual server for the active GSLB virtual server.


User-added image


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

  1. Configuring Site A as Active GLSB Site

  2. 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:

Note: You can follow the screenshots in this article to configure GSLB using NetScaler GUI.

  1. Run the following command in the command line interface to enable the load balancing and GSLB features:

    enable ns feature LB GSLB

    User-added image

  2. 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

    User-added image

  3. 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

    Note:
    If the type is not specified, the appliance automatically detects and sets the type on the basis of the IP address being assigned to the site. If the specified site IP address is owned by the appliance (for example, a MIP address or SNIP address), the site is a local site. Otherwise, it is a remote site.

    User-added image

    User-added image

  4. 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

    User-added image

    User-added image

  5. Run the following commands to create the local servers and services at site A:

    add service server-a 192.168.152.10 HTTP 80

    User-added image

    Run the following commands to create a virtual server for load balancing:

    add lb vserver vservera HTTP 192.168.251.202 80 -persistenceType NONE -cltTimeout 180

    User-added image

    Run the following commands to bind service-A to load balancing virtual server vservera:

    bind lb vserver vservera server-a

  6. 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

    User-added image

    Note: GSLB service monitoring is not required for a local service, because the load balancing virtual server status is used.

    The local GSLB service should have the same IP address as the load balancing virtual server status added in Step 5.

  7. Run the following command to bind the domain to the primary GSLB virtual server:

    bind gslb vserver gvserver-a -domainName www.example.com

  8. 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

  9. 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.202 -publicPort 80 -siteName siteb

    bind gslb vserver gvserver-b -serviceName GSLB-svc-b

  10. Run the following command to set up the backup GSLB virtual server:

    set GSLB vserver gvserver-a -backupVServer gvserver-b

    User-added image

Configuring Site B as Backup GLSB Site

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

  1. Run the following command to enable the load balancing and GSLB features:

    enable ns feature LB GSLB

  2. 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

  3. 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

  4. 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

  5. Run the following command to add the virtual server for load balancing the servers and services at site B.

    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 the service to the virtual server by running the following command:

    bind lb vserver vserverb server-b

  6. 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 because the load balancing virtual server status is used. The local GSLB service should have the same IP address as the load balancing virtual server added in Step 5.

  7. Run the following command to add the remote GSLB virtual server for HTTP traffic with RTT as the lbmethod:

    add gslb vserver gvserver-a HTTP -lbMethod RTT

  8. 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

  9. Run the following command to bind the domain to the primary GSLB virtual server:

    bind gslb vserver gvserver-a -domainName www.example.com

  10. Run the following command to set up the backup GSLB virtual server:

    set gslb vserver gvserver-a -backupVServer gvserver-b

Related:

  • No Related Posts

Leave a Reply