Hey Render team,
I have a two services both deployed with docker and sharing a single database
- A public server exposing an API
- A private service used by the public server
- Postgres database accessed by both
The problem I’m having is that service 1 sometimes crashes because it cannot reach service 2 or the database with errors like:
HTTP connection error: URL: http://rudderstack-transformer:9090/v0/... Error: Post http://rudderstack-transformer:9090/v0/...: dial tcp: lookup rudderstack-transformer on 10.131.0.10:53: no such host
The common line to the error logs is:
dial tcp: lookup rudderstack-transformer on 10.131.0.10:53: no such host dial tcp: lookup dpg-..... on 10.131.0.10:53: no such host
It seems like the DNS isn’t resolving, I’m really not sure if this is a problem with how I’ve deployed or if this is due to containers being created/destroyed.
Any help would be appreciated.