Add a Load Balancer

You can add a load balancer to an existing Oracle WebLogic Server for OCI domain that was originally created without a load balancer.

Note:

You cannot use this procedure on a domain that was created before June 29, 2020.

If you enabled autoscaling for your domain and did not configure the load balancer on stack creation, you must add the load balancer when you edit the stack.

Oracle WebLogic Server for OCI configures the new load balancer to distribute application traffic to the managed servers in your domain.

Edit the load balancer variables for the stack and then run an Apply job.

  1. Sign in to the Oracle Cloud Infrastructure Console.
  2. Click the navigation menu Navigation Menu icon, select Developer Services. Under the Resource Manager group, click Stacks.
  3. Select the Compartment that contains your stack.
  4. Click the name of your stack.
  5. Click Variables.
  6. Click Edit Variables.
  7. Select Provision Load Balancer.
  8. Configure the load balancer as follows:
    • If you chose to create a new VCN or use an existing VCN with new subnets:
      1. Select Create New Load Balancer.
      2. Select Private Load Balancer, if you do not want to assign a public IP address to the load balancer.

        This option is available only if you use a private subnet for WebLogic Server. You cannot create a private load balancer in a public subnet.

      3. Select Load Balancer with Reserved Public IP, if you want to use a public load balancer with a reserved public IP. Then, specify the OCID of the public IP for the load balancer.
      4. Select a minimum and maximum flexible load balancer shape. By default, the minimum bandwidth size is set to 10Mbps and maximum to 400Mbps.

        Note:

        You can update the shape to a maximum of 8000Mbps. Before you select the maximum bandwidth, ensure to check the available service limit for the flexible load balancer bandwidth.
      5. Configure the load balancer network.
        • If you want to use an existing regional subnet for WebLogic Server, then select an existing regional subnet from the list of regional and availability domain-specific subnets. A load balancer can have only one regional subnet, which is shared between both nodes.
        • If you are creating a regional subnet for WebLogic Server, then specify a CIDR for the new load balancer subnet.
      6. If you are using existing network security groups (NSGs) for an existing subnet, specify the NSG that is assigned to the load balancer.
    • If you chose to use an existing VCN and an existing subnet:
      1. Select Use Existing Load Balancer.
      2. Specify the OCID for the existing load balancer.
      3. Enter the name of the backend set for the existing load balancer that has a routing policy associated with the backend set. The backend set should not have backends. See Configure the Load Balancer.
      4. If you are using existing network security groups (NSGs), specify the NSG that is assigned to the load balancer.
  9. Click Next.
  10. Click Save Changes.
  11. On the Stack Details page, click Apply.
  12. In the Apply panel, enter a name for the job and click Apply.
  13. Periodically monitor the progress of the Apply job until it is finished.
  14. Click Outputs.
  15. Identify the IP address of the load balancer in the updated stack.

If your domain includes the sample application, you can access it using the load balancer. See Access the Sample Application.