Hi All,
I have a really weird behaviour with postgres connection which fail intermittently without reason (shared postgres). I’m trying to do an import of a small set of data (around 50 rows) through an Hasura (2.0.0.beta.2).
I have a small private network on render.com with this hasura and an expressjs for internal logic, each running as docker container. Only the hasura is connected to the DB, and by default it support 50 concurrent connections, and have a wait queue in case of overload. Render.com says that the limit for postgres instances (whatever the plan) is 97 concurrent connections… which is almost twice what hasura could use, so we should be good. And of course, it was working yesterday.
So when I say intermittent, it’s because the import is failing roughly in the middle, each time. So it works a little bit then fails.
So here are logs (from hasura) :
{“type”:“http-log”,“timestamp”:"…",“level”:“error”,“detail”:{“operation”:{“user_vars”:{…},“error”:{“internal”:"no connection to the server\n",“path”:"$",“error”:“connection error”,“code”:“postgres-error”}
{“type”:“pg-client”,“timestamp”:"…",“level”:“warn”,“detail”:{“message”:“postgres connection failed, retrying(1).”}}
{“type”:“scheduled-trigger”,“timestamp”:"…",“level”:“error”,“detail”:{“internal”:“FATAL: the database system is in recovery mode\nFATAL: the database system is in recovery mode\n”,“path”:"$",“error”:“connection error”,“code”:“postgres-error”}}
{“type”:“http-log”,“timestamp”:"…",“level”:“error”,“detail”:{“operation”:{“user_vars”:{…},“error”:{“internal”:“no connection to the server\n”,“path”:"$",“error”:“connection error”,“code”:“postgres-error”},“request_id”:"…",“response_size”:106,“query”:…}
{“type”:“pg-client”,“timestamp”:"…",“level”:“warn”,“detail”:{“message”:“postgres connection failed, retrying(1).”}}
…
So it really looks like it’s coming from Postgres instance itself… especially : “FATAL: the database system is in recovery mode” which is clearly coming from PG.
Any clue ?
Thanks a lot.
(by the way, I’m not sur it’s here I need to post this but I do not find anywhere else to post)