You can configure a load balancer after you have installed the Controller, and it is running in EC2. The load balancer distributes traffic across multiple ports on the Controller.   

If using HTTPS, an SSL certificate should be available. For testing, you can generate a self-signed certificate using Open SSL (described here). You can then import that certificate using AWS Certificate Manager (ACM). 

You can create a load balancer to align with your organization's standards.

Create a Load Balancer

To create a load balancer:

  1. Navigate to the Load Balancers page on the EC2 Dashboard in the AWS console.
  2. Select Create Load Balancer at the top left of the page.
    Create Load Balancer button
  3. Select Application Load Balancer as the load balancer type to terminate SSL at the ELB.
    Application Load Balancer type

  4. Enter a name for the new load balancer, and select HTTPS (Secure HTTP) as the load balancer protocol to accept HTTPS traffic only.
    Configure Load Balancer

  5. Select the availability zones to enable for the new load balancer. It should include the availability zone in which the Controller Appserver EC2 instance resides.
    Availability zones

  6. Select the certificate that was imported to the ACM.
    Configure Security Settings

  7. Specify the security group.
    Specify the security group

  8. For the initial configuration, set the load balancer to route all traffic to port 8090 using HTTP, and define the standard health check for the Controller.
    Configure Routing

  9. Add the Controller EC2 instance as a registered target.
    Register Targets

  10. Launch the new load balancer. It may take a few minutes before the load balance occurs.
  11. Verify that you can access the Controller UI through the load balancer.

    If your SSL cert is self-signed, a browser warning displays. You can ignore this warning if you are testing the UI. However for Agent traffic, you need a valid certificate that is trusted by the Agent.

Specify the External Load Balancer URL

Use the Enterprise Console UI to update the Controller configuration and specify the external load balancer URL.

  1. Open a browser and navigate to the UI: 

    http://<hostname>:<port>

    9191 is the default port.

  2. Navigate to AppServer Configurations by selecting the platform: Configurations > Controller Settings > Appserver Configurations.
  3. Enter the external load balancer URL in the appropriate field and select Save.

    After applying the optimizations, you should create an AMI.