Load Balancers

On Compute Cloud@Customer, load balancing is the method of sharing a workload equally among servers. It prevents clients from overwhelming certain servers.

The Load Balancer service provides automated traffic distribution from one entry point to multiple servers reachable from your virtual cloud network (VCN). The service offers a load balancer with your choice of a public or private IP address.

Two major types of load balancers are available on Compute Cloud@Customer:

  • Load Balancer as a Service – This type of load balancer operates at all protocol layers, including the application. When the term "load balancer" (LB) appears without qualification, the statement refers to LBaaS.
  • Network Load Balancing – This type of load balancer operates on protocol layers below the application itself, at the Network Layer. The term "network load balancer" (NLB) always refers to a network load balancer, not to LBaaS.

The verb "load balancing" refers to the actions of both LBs and NLBs. The term "load balancer" can refer to both LBs and NLBs. When you need to be specific, use LB and NLB.

A load balancer (both LBs and NLBs) can be either private or public.

  • Private: A private load balancer is isolated from the network outside the Oracle Compute Cloud@Customer. A private load balancer is assigned a private IP address from the address block of the specified private subnet. This private IP address is used as a front end for incoming internal VCN traffic, to balance that traffic across all backend servers.

    For a private LB you need a VCN with at least one private subnet. The subnet must have security rules that allow the intended traffic. The backend servers must be reachable from the selected VCN.

  • Public: A public load balancer accepts traffic from a network location outside of the appliance. A public load balancer can be assigned a public IP address from a public subnet of a VCN that has a NAT gateway and an internet gateway (IGW) configured, or you can select the public IP address from a list. This public IP address is used as the entry point for incoming traffic, to balance that traffic across all backend servers. You can associate the public IP address with a friendly DNS name through any DNS provider.

    For a public LB, you need a VCN with at least one public subnet. The subnet must have security rules that allow the intended traffic. The backend servers must be reachable from the selected VCN.

    You can select a public IP address from a list, or you can let the system assign an IP address.

The following table summarizes these major differences.

LBaaS and NLB Major Characteristics Compared
Major Characteristic LBaaS NLB
Visibility Public or Private Public or Private
IP Address Ephemeral or Reserved IP address Ephemeral or Reserved IP address
Policy Parameters Weighted Round Robin, IP hash, Least Connections IP hash mapped from 5, 3, or 2 header fields
Layer 4 Functioning Yes Yes
Layer 7 Functioning Yes No
TLS Support Yes No

If a VCN uses network security groups (NSGs), you can associate the load balancer with an NSG. An NSG has a set of security rules that controls allowed types of inbound and outbound traffic. The rules apply only to the resources in the group. An NSG isn't a security list, where the rules apply to all the resources in any subnet that uses the list. See Controlling Traffic with Network Security Groups.

If you prefer to use security lists for the VCN, see Controlling Traffic with Security Lists.

Other differences are of an operational nature, or involved in configuration limits. Many of the NLB limitations are because of the functioning at Layer 4 and no higher. These differences are listed in the following table.

Other LBaaS and NLB Characteristics Compared
Characteristic LBaaS NLB
Routing of Requests Yes No
Persistence of Sessions No (as of June 2025) No
SSL Certificates Yes No
Cipher Suites Yes No
Listener Protocol HTTP, HTTP2, TCP, HTTPS TCP
Health Check Protocol HTTP, TCP HTTP, HTTPS, TCP
IP Address Limit 1 1
Backend Set Limit 16 4
Backend Servers per Backend Set 512 512
Total Backend Servers Limit 512 1024
Maximum Listeners 16 50
Certificate Support Yes No

Depending on the type of load balancer you want to use, see one of these sections: