githubEdit

Troubleshooting Database Connection Issues Between Tenants

When connecting services between different tenants to access databases, connection timeouts may occur due to incorrect environment variables or networking configurations. Here are the key steps to troubleshoot: Check Environment Variables Verify that the correct database host is configured in your environment variables. Different tenants may require different database endpoints (e.g., tempread vs publicread) depending on the networking setup. Verify Network Connectivity If you experience connection timeouts, verify: The correct port is being used (typically 3306 for RDS databases) The database endpoint is accessible from your service's network (you can test using nc -vz hostname 3306 ) The database host is in the correct subnet (public vs private) for your use case Note: When testing connectivity, remember that tools like wget default to port 80, which may not be the correct port for your database connection.

Last updated

Was this helpful?