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:

  1. Pool

  2. Virtual Service

Note:

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

  1. Create a Pool object on the Controller cluster.

    1. In a web browser, log in to the Controller cluster VIP by using https://sfo-m01-avic01.sfo.rainpole.io/.

    2. Navigate to Applications > Pools  and click on CREATE POOL.

    3. Select the appropriate NSX-T Cloud Connector from Select Cloud and click on Next.

    4. Specify the Name for the Pool, for instance, Sample-WebPool.

    5. Select the Tier1 Logical Router from the drop-down.

    6. Click on Add Active Monitor and select System-HTTP Health Monitor from the Select a Health Monitor drop-down.

    7. Select Enable real time metrics.

      Note:

      Enable real time metrics is not available in basic license tier.

    8. Click on Next to add backend (upstream) servers.

    9. Option 1: Specify the range or list of IP Addresses of the web servers and click on Add Server.

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

    11. Click on Next.

    12. Set Connection Ramp to 0.

    13. Click on Next.

    14. Click on Save.

  2. Create a VirtualService object on the Controller cluster.

    1. In a web browser, log in to the Controller cluster VIP by using https://sfo-m01-avic01.sfo.rainpole.io/.

    2. Navigate to Applications > Virtual Services and click on CREATE VIRTRUAL SERVICE and select Advanced Setup.

    3. Select the appropriate NSX-T Cloud Connector from Select Cloud and click on Next.

    4. Specify the Name for the Virtual Service, for instance, Sample-WebVS.

    5. Specify the VIP IP in the FQDN or IPv4 Address box.

    6. Select the Tier1 Logical Router from the drop-down.

      Note:

      This should match what was selected for the ‘Sample-WebPool’.

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

    8. Select System-Secure-HTTP from the Application Profile drop-down.

    9. Select the created Sample-WebPool from the Pool drop-down.

    10. Select System-Default-Cert andSystem-Default-Cert-EC to the SSL Certificate.

    11. Click on Next.

    12. Click on Next.

    13. Select Real time metrics and set it to 0.

    14. Select Log all headers.

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

    16. Click on Next.

    17. Select a SE Group from the drop-down.

    18. Click on Save.