In this post will cover the load balancing of PSC servers with Netscaler. If you are new to Netscaler or wanted to refresh on some basic concepts of Netscaler please view my Netscaler series here.
Contents of the Post
Pre-requisites for Load Balancer
- Names and IP of First and Second PSC nodes. vcenter-psc01.sslab.com , vcenter-psc02.sslab.com
- One free IP used for load balanced virtual IP for PSC nodes.
- DNS record to be created for PSC LB pointing to this virtual IP. vcenter-psclb01.sslab.com
- Communication from Netscaler SNIP to both PSC nodes on ports 443, 389, 636, 2012, 2014 and 2020.
- No certificate needs to be installed on Netscaler for this activity as we are using only TCP virtual servers.
Add PSC servers in Netscaler
First we need to both PSC nodes as servers in Netscaler.
Navigate to Configuration > Traffic Management > Load Balancing > Servers.
Provide Name and IP of First PSC
Similarly create the second PSC server. Both the PSC servers needs to be added as shown below.
Create Services for PSC
VCenter PSC nodes will work on ports 443, 389, 636, 2012, 2014 and 2020. Hence we need to create services for both PSC servers for all the 6 ports. So by the end of this section a total of 12 services will be created for both PSC nodes.
Navigate to Configuration > Traffic Management > Load Balancing > Services
Enter Service Name
Select Existing Server
Select the First PSC server
Click Protocol and select TCP
enter port no 443
Click OK to create the service, Click Done in the service overview page.
Note: Similarly create separate services with ports 389, 636, 2012, 2014 and 2020 with first PSC.
Now all the 6 services for PSC1 will show for ports 443, 389, 636, 2012, 2014 and 2020.
Similarly create services for Second PSC for ports 443, 389, 636, 2012, 2014 and 2020. At the end a total of 12 services will be visible with status UP as below.
Create Load Balancing Virtual Servers
As each PSC is working on ports 443, 389, 636, 2012, 2014 and 2020, so we need to create 6 virtual servers with same IP for each of these ports. Respective services created before for both PSC will be added to the virtual servers.
We need on Free IP which will be called the Virtual IP used for creating virtual servers. Same IP will be used with different ports for creating the virtual servers. The Subnet IP of the netscaler should be able to reach the PSC nodes on ports 443, 389, 636, 2012, 2014 and 2020 for successful communication.
Navigate to Configuration > Traffic Management > Load Balancing > Virtual Servers.
Enter a Name for virtual server
Click Protocol and then select TCP
Enter the Virtual IP Address
Click Port , enter 443
Select load balancing virtual service binding
Select the respective services from PSC1 and PSC2. Like for virtual server 443 add services with port 443 only.
Click Bind to bind the services to virtual server.
Click Continue to create the virtual server
Review and Click Done.
Similarly create virtual servers for ports 389, 636, 2012, 2014 and 2020 and respective services. All the virtual servers status will show up and greeen as below.
Create Persistency Group for virtual servers
We need to create a persistency group with higher value like 1440 to make the vcenter to PSC session stable.
Navigate to Configuration > Traffic Management > Load Balancing > Persistency Groups
provide a name
Persistence select SOURCEIP
Time-out enter 1440.
Beside virtual server click the ADD or + button
Click the > button to move all six PSC virtual Servers to right as shown
Persistency group is created as below.
Verify virtual servers and its services
Now verify all the virtual servers are up and correct services with ports are bound to it. Click on each virtual server and verify the persistency is present as well.
With with load balancing PSC servers is completed will mode to next step of Installing vCenter server and pointing to psc load balanced DNS record.
Hope this post is helpful.
Quick Links for vCenter 6.7 Installation Series
Links to all the posts in vCenter 6.7 VCHA installation with External load balanced PSC