Build OCI Load Balancer backend set, listener, and health check configurations.
Last verified: May 2026
Build OCI Load Balancer backend sets, listeners, and health checker configurations.
Required Fields
compartmentIddisplayNameshapeNamebackendSetslistenersOutput will appear here...OCI offers two load balancer types — a flexible Load Balancer (Layer 4 and Layer 7) and a Network Load Balancer (Layer 4 only with ultra-low latency). Configuring either requires specifying listeners, backend sets, health checks, routing policies, SSL certificates, and shape parameters. The Load Balancer Config Builder walks you through each component, generating configurations that include bandwidth shapes, session persistence settings, path-based routing rules, and certificate bundles. It outputs configurations compatible with Terraform, the OCI CLI, and the OCI SDK.
Your team is migrating an HTTPS API from AWS ALB to OCI Load Balancer. The builder helps you replicate the architecture: HTTPS listener on 443 with TLS 1.2+ cipher suite, path-based routing (/api → api-backend-set, /admin → admin-backend-set, default → web-backend-set), HTTP-to-HTTPS redirect listener on 80, health checks with 10s interval. Migration completes in 1 day; the resulting OCI LB costs ~$25/month for the 100 Mbps shape vs the previous $50/month AWS ALB.
Always size load balancers using flexible bandwidth shapes. The minimum bandwidth (e.g., 100 Mbps) is what you pay for; the max bandwidth is your burst headroom. A 100 Mbps min / 1 Gbps max LB at $0.0306/hr is dramatically cheaper than a fixed 1 Gbps LB at $0.30/hr — and handles the same peak traffic.
Network Load Balancer (Layer 4) preserves source IP by default, which is crucial for applications that do IP-based access control or geo-IP analytics. The Application Load Balancer (Layer 7) replaces source IP with the LB's IP unless you enable XFF headers and configure your app to trust them.
Health check intervals matter for failover speed. Default is every 30 seconds with 3 failures = 90 seconds before unhealthy. For latency-critical services, drop interval to 10s and failures to 2 = 20 seconds to detect failures. The cost of more health checks is negligible.
The builder constructs OCI Load Balancer or Network Load Balancer configurations: listener (port, protocol, SSL config), backend set (load balancing policy, session persistence, health check), backends (instance OCIDs or IP addresses with ports/weights), routing policies (path rules, host rules), and SSL certificate references. Output is generated as oci CLI commands and Terraform oci_load_balancer / oci_network_load_balancer resources.
Was this tool helpful?
Disclaimer: This tool runs entirely in your browser. No data is sent to our servers. Always verify outputs before using them in production. AWS, Azure, and GCP are trademarks of their respective owners.