Jump to content
Welcome to our new Citrix community!
  • 0

How to Load Balance Storefront servers with Netscaler Gateway VSERVER


Jitendra Kumar

Question

Hi,

Good Day to All!

I am new to Netscaler. I have 2 Netscalers configured in HA. I have 2 strofront servers SF1 (192.168.0.20) and SF2 (192.168.0.21). I have added SF2 with SF1 Server group and propagated the changes. The base URL is https://storefront.testlab.test. I created a DNS A record for bases URL Storefront.testlab.test to point actual SF1 and SF2 IPs 192.168.0.20 and 192.168.0.21 to use as an DNS load balance and Internally I access storefront.testlab.test to access citrix. This helps if SF1 down then I can still be able to access storefront.testlab.test as its pointing to SF2 IP too.

 

Now I am trying to configure the Netscaler Gateway with URL https://netscaler.testlab.test  and during the Storefront configuration I put https://storefront.testlab.test for storefton URL and retrieve the store information which is getting successful and completed the configuration of  Netscaler Gateway.   After configuring the Netscaler Gateway successfully I am able to browse the https://netscaler.testlab.test and able to access the citrix resources. But I did notice that when I power off SF2 I can reach the netscaler URL can login on it but after login it did not redirect further to SF. I was expecting that the Base URL should be able to load balance the URL to point to other SF like its working internally. It seems that the Netscaler Gateway has only 1 SF information.

 

I wanted to to know how can I load balance Netscaler Gateway vserver with both storefront servers so that if SF1 is down then while logging on the Netscaler external link it can redirect to SF2. I did tried to search the articles on google and did found to load balance the Storefront but after creating the Monitors, service groups and servers etc...all are telling to create a vserver then under traffic management and bind with vserver created under traffic management but there is no such option to bind them with Netscaler Gateway vserver.

 

I am sorry for this long kind of story , I am new to Netscaler and I am struggling since 2 weeks to achieve this but unable to do so. Please could anyone help me to short out this.

Link to comment

5 answers to this question

Recommended Posts

  • 0

Hi,

 

You now have pointed https://storefront.testlab.test to the ip addresses of SF1 and SF2 in your DNS. So it is working with Roundrobin. 

To make use of the loadbalancing vServer, point https://storefront.testlab.test to the Virtual IP address of the vServer you created. 

 

After the change, when you browse to https://storefront.testlab.test you will be redirected to SF1 or SF2.

 

hope this helps. 

Link to comment
  • 0

Hi,

 

below the code how I always load balance SF:

 

add server SF01 1.1.1.1

add server SF02 1.1.1.2

 

add lb monitor MON-StoreFront STOREFRONT -Secure YES -storename Store

add serviceGroup svcgrp-StoreFront SSL -maxClient 0 -maxReq 0 -cip ENABLED X-Forwarded-For

bind serviceGroup svcgrp-StoreFront SF01 443

bind serviceGroup svcgrp-StoreFront SF02 443

bind serviceGroup svcgrp-StoreFront -monitorName MON-StoreFront

add lb vserver lbvip-StoreFront SSL 2.2.2.2 443  -persistenceType SOURCEIP -timeout 60

bind lb vserver lbvip-StoreFront svcgrp-StoreFront

bind ssl vserver lbvip-StoreFront -certkeyName storefront.testlab.test 

set ssl vserver lbvip-StoreFront -sslRedirect ENABLED -ssl3 DISABLED -tls1 DISABLED -tls11 DISABLED -tls12 ENABLED 

 

 

Maybe this helps you. First make sure you could use the Gateway as a Load Balancer, then we look at the Gateway Access. 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...