Configure a Load Balancer

You have the option to create a load balancer to distribute application traffic to the WebLogic Managed Servers. You can also use an existing load balancer for an existing VCN and an existing subnet, to distribute application traffic to the WebLogic Managed Servers.

Note:

If you enable autoscaling for WebLogic instances, you must configure a load balancer in Oracle Cloud Infrastructure when you create a stack, else the stack provisioning fails with a validation error.

Note:

Ensure that you have set up the user group polices and dynamic group polices that are applicable for the configuration. See User Group Policies and Dynamic Group Policies.

Configure New Load Balancer

Specify the parameters to configure a new load balancer.

  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.

Configure an Existing Load Balancer

Specify the parameters to configure an existing load balancer.

You can use an existing load balancer only if you are using an existing VCN and existing subnet. If you use an existing load balancer, you must create a backend set, listener, and routing policy. See Configure the Load Balancer.

Note:

The existing load balancer must be in the network compartment, which can be same as the stack compartment, and must be in the same VCN as the existing VCN chosen for the stack.
  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.