This section will showcase how to create a load-balanced web application. This section should be used as a template.
The following are the resources created on the Controller cluster:
Pool
Virtual Service
This reference application will be configured on an NSX-T Cloud Connector using overlay-backed NSX segment as the Service Engine data networks.
Prerequisites
NSX-T Cloud Connector for VI workload domain has been setup.
The Service Engine Group to host the application and Service Engines has been setup.
DHCP on NSX-T Data Center as been enabled for the Service Engine data networks (Recommended, not a requirement).
Create workload VMs in vCenter Server that are run a web server.
Configure a NSGroup in NSX Manager cluster for these web server VMs (Recommended, not a requirement).
Procedure
Create a Pool object on the Controller cluster.
In a web browser, log in to the Controller cluster VIP by using https://sfo-m01-avic01.sfo.rainpole.io/.
Navigate to CREATE POOL.
and click onSelect the appropriate NSX-T Cloud Connector from Select Cloud and click on Next.
Specify the Name for the Pool, for instance, Sample-WebPool.
Select the Tier1 Logical Router from the drop-down.
Click on Add Active Monitor and select System-HTTP Health Monitor from the Select a Health Monitor drop-down.
Select Enable real time metrics.
Note:Enable real time metrics is not available in basic license tier.
Click on Next to add backend (upstream) servers.
Option 1: Specify the range or list of IP Addresses of the web servers and click on Add Server.
Option 2: Click on Security Groups and from the NSX Security Groups drop-down, select the configured NSGroup in NSX Manager cluster for the web server VMs.
Click on Next.
Set Connection Ramp to 0.
Click on Next.
Click on Save.
Create a VirtualService object on the Controller cluster.
In a web browser, log in to the Controller cluster VIP by using https://sfo-m01-avic01.sfo.rainpole.io/.
Navigate to CREATE VIRTRUAL SERVICE and select Advanced Setup.
and click onSelect the appropriate NSX-T Cloud Connector from Select Cloud and click on Next.
Specify the Name for the Virtual Service, for instance, Sample-WebVS.
Specify the VIP IP in the FQDN or IPv4 Address box.
Select the Tier1 Logical Router from the drop-down.
Note:This should match what was selected for the ‘Sample-WebPool’.
Specify the following in the Services section (Click on Add Port to add the 2nd service):
Setting
Value
Service 1 (HTTP)
Port: 80
SSL: Unselected
HTTP2: Unselected
Service 2 (HTTPs)
Port: 443
SSL: Selected
HTTP2: Unselected
Select System-Secure-HTTP from the Application Profile drop-down.
Select the created Sample-WebPool from the Pool drop-down.
Select System-Default-Cert andSystem-Default-Cert-EC to the SSL Certificate.
Click on Next.
Click on Next.
Select Real time metrics and set it to 0.
Select Log all headers.
Set Non-significant log duration to 0.
Note:‘real time metrics’, ‘log all headers’ and, ‘non-significant logs’ are not available in Basic License Tier.
Click on Next.
Select a SE Group from the drop-down.
Click on Save.