OCI Load Balancer Configuration: 503 Service Unavailable scenarios for Backend Instance
I'm building a feature where I've been researching this but I've looked through the documentation and I'm still confused about I'm currently working with a 503 Service Unavailable behavior when trying to access my web application hosted on an OCI Load Balancer. I've set up the load balancer to distribute traffic to two backend compute instances running Nginx. When I try to hit the load balancer's public IP, I receive the behavior, which makes me think the backend instances aren't reachable or properly configured. I've ensured that both backend instances are running and can serve requests independently. I verified that the security lists allow traffic on the required ports (80 for HTTP and 443 for HTTPS), and the health checks for the load balancer are configured to check the `/health` endpoint on port 80. However, the health check status shows 'Failed'. I've also checked the logs on the Nginx instances, and there doesn't seem to be any relevant errors. Here's the configuration I used for the load balancer: ```json { "loadBalancer": { "name": "MyLoadBalancer", "compartmentId": "ocid1.compartment.oc1..example", "shape": "100Mbps", "backendSets": [ { "name": "MyBackendSet", "backends": [ {"ipAddress": "10.0.0.1", "port": 80}, {"ipAddress": "10.0.0.2", "port": 80} ], "healthChecker": { "protocol": "HTTP", "urlPath": "/health", "port": 80, "intervalInMillis": 30000, "timeoutInMillis": 20000, "healthyThreshold": 2, "unhealthyThreshold": 2 } } ], "listeners": [ { "name": "MyListener", "port": 80, "protocol": "HTTP", "defaultBackendSetName": "MyBackendSet" } ] } } ``` I'm unsure how to troubleshoot this further. Are there additional configurations or checks I should perform on the Nginx instances? Any insights on why the health checks might be failing would be greatly appreciated! I'm working on a application that needs to handle this. I'm working in a Windows 11 environment. Thanks for your help in advance! The stack includes Json and several other technologies.