OCI Load Balancer: 504 Gateway Timeout When Accessing Backend Services via Ingress
I'm stuck trying to I've encountered a strange issue with I'm experiencing a 504 Gateway Timeout error when trying to access my backend services through an OCI Load Balancer....... My setup includes a Load Balancer that routes traffic to multiple Compute instances running a Node.js Express application. The Load Balancer is configured to check the health of the backend services using HTTP GET requests on the `/health` endpoint. However, even though all services are healthy, I'm getting a timeout when I attempt to make requests through the Load Balancer. I've verified that the security lists and network security groups allow traffic on the necessary ports (80 and 443). The backend services are up and can be accessed directly via their public IPs. Here’s the relevant part of my Load Balancer configuration: ```json { "loadBalancer": { "backendSets": { "myBackendSet": { "backends": [ { "ipAddress": "<instance_ip>", "port": 3000, "weight": 1 } ], "healthChecker": { "protocol": "HTTP", "urlPath": "/health", "port": 3000, "intervalInMillis": 30000, "timeoutInMillis": 25000, "healthyThreshold": 1, "unhealthyThreshold": 1 } } } } } ``` I also checked the Load Balancer logs and saw several entries indicating that requests are timing out. From the logs, it seems like the requests are not reaching the backend instances at all. Here’s a snippet of my Node.js server: ```javascript const express = require('express'); const app = express(); const PORT = 3000; app.get('/health', (req, res) => { res.status(200).send('OK'); }); app.listen(PORT, () => { console.log(`Server is running on port ${PORT}`); }); ``` I’ve tried increasing the Load Balancer’s timeout settings in the configuration, but it doesn’t seem to help. Could this issue be related to the way OCI handles internal networking, or is there something I might have missed in my configuration? Any insights would be greatly appreciated. My development environment is Windows. Is there a better approach? For context: I'm using Javascript on Linux. How would you solve this? This is for a web app running on CentOS. Any ideas what could be causing this?