Setting up GSLB in a cluster
Note
Supported from NetScaler 10.5 Build 52.11 onwards.
To set up GSLB in a cluster you must bind the different GSLB entities to a node group. The node group must have a single member node.
Notes
- If you have configured the static proximity GSLB method, make sure that the static proximity database is present on all the cluster nodes. It happens by default if the database file is available at the default location. However, if the database file is maintained in a directory other than /var/netscaler/locdb/, you must manually synchronize the file to all the cluster nodes.
- The “show gslb domain” command is not supported in a cluster setup.
To set up GSLB in a cluster by using the command line interface:
Log on to the cluster IP address and perform the following operations at the command prompt:
Configure the different GSLB entities. For information, seeGSLB Configuration Entities.
Note
When creating the GSLB site, make sure that you specify the cluster IP address and public cluster IP address (needed only when the cluster is deployed behind a NAT device). While configuring a GSLB site, you must use the cluster IP address of the same site. These parameters are required to ensure the availability of the GSLB auto-sync functionality.
add gslb site
-publicIP -clip Create a cluster node group.
add cluster nodegroup
[-sticky ( YES | NO )] Note
Enable the sticky option if you want to set up GSLB based on VPN users.
Bind a single cluster node to the node group.
bind cluster nodegroup
-node Bind the local GSLB site to the nodegroup.
bind cluster nodegroup
-gslbSite Note
Make sure that the IP address of the local GSLB site IP address is striped (available across all cluster nodes).
Bind the ADNS (or ADNS-TCP) service or the DNS (or DNS-TCP) load balancing virtual server to the node group.
To bind the ADNS service:
```bind cluster nodegroup
-service **To bind the DNS load balancing virtual server:** ```bind cluster nodegroup
-vServer Bind the GSLB virtual server to the node group.
bind cluster nodegroup
-vServer [Optional] To set up GSLB based on VPN users, bind the VPN virtual server to the GSLB node group.
bind cluster nodegroup
-vServer Verify the configurations.
show gslb runningConfig
To set up GSLB in a cluster by using the graphical user interface:
Log on to the cluster IP address and perform the following operations in the Configuration tab:
Configure the GSLB entities.
Navigate toTraffic Management > GSLBto perform the required configurations.
Create a node group and perform other node group related configurations.
Navigate toSystem > Cluster > Node Groupsto perform the required configurations.
For the detailed configurations to be performed, see the description provided in the preceding CLI procedure.
Support for GSLB parent-child topology in a cluster
Starting with NetScaler 12.1 build 49.xx, GSLB parent-child topology is supported in cluster.
For more information about the parent-child topology, seeParent-child topology deployment using the MEP protocol.
建立GSLB父子在集群拓扑by using the CLI
Parent site
Perform the following configuration:
- Create a cluster node group.
add cluster nodegroup
Example:
add cluster nodegroup parentng
2./ Bind a single cluster node to the node group.
bind cluster nodegroup -node
Example:
bind cluster nodegroup parentng -node n2
3./ Bind the local GSLB site to the nodegroup.
bind cluster nodegroup -gslbSite
Example:
bind cluster nodegroup parentng -gslbSite site1
4./ Bind the ADNS (or ADNS-TCP) service or the DNS (or DNS-TCP) load balancing virtual server to the node group.
bind cluster nodegroup -service
Example:
bind cluster nodegroup parentng – service ADNS
5./ Bind the GSLB virtual server to the node group.
bind cluster nodegroup -vServer
Example:
bind cluster nodegroup parentng -vServce gslbvs1
Child site
Perform the following configuration:
1./ Create a cluster node group.
add cluster nodegroup
Example:
add cluster nodegroup childng
2./ Bind a single cluster node to the node group.
bind cluster nodegroup -node
Example:
bind cluster nodegroup childng -node -n3
3./ Bind the local GSLB site to the nodegroup.
bind cluster nodegroup -gslbSite
Example:
bind cluster nodegroup childng -gslbSite site1
Note
For parent and child sites to exchange aggregated statistics in metric-based load balancing methods, you must add local GSLB services on the child site. The metric-based load balancing methods are least connection, least bandwidth, and least packets.
建立GSLB父子在集群拓扑by using the GUI
1./ Configure the GSLB entities.
Navigate toTraffic Management>GSLBto perform the required configurations.
2./ Create a node group.
Navigate toSystem>Cluster>Node Groupsto perform the required configurations.
3./ In the Node Group page, select the node group to which you want to bind a node, clickEdit, and perform the following tasks. You can also perform these tasks when adding a node group.
Bind a node to the node group.
InAdvance Settings, clickCluster Nodesand perform the following tasks:
- InCluster Nodessection, clickNo Cluster Node.
- InSelect Cluster Node, click > and select the node that you want to bind to the node group. You can also add a new cluster node.
Bind the local GSLB site to the nodegroup.
InAdvance Settings, clickGSLB Sitesand perform the following tasks:
- In theGSLB Sitessection, click No GSLB Site.
- InSelect GSLB Site, click > and select the GSLB site that you want to bind to the node group. You can also add a new GSLB site.
Bind the GSLB virtual server to the node group.
InAdvance Settings, clickVirtual Serversand perform the following task:
- In theVirtual Serverspane, click +.
- InChoose Virtual Server, select the server that you want to bind to the node group.
Bind the ADNS (or ADNS-TCP) service or the DNS (or DNS-TCP) load balancing virtual server to the node group.
InAdvance Settings, clickServicesand perform the following tasks:
- InServicessection, click No Service.
- InSelect Service, select the service that you want to bind to the node group. You can also add a new service.
Note
For child sites, you only have to bind a cluster node and local GSLB site to the node group.