You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a rails application that does many queries to the database.
We installed Pgcat and it's mostly working great, but we see many errors in some of our Kafka consumers that are making many requests in a short period of time together to create a payload for Kafka.
The errors we get are:
PG::ConnectionBad: PQsocket() can't get socket descriptor
PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
I could not figure out where they were coming from.
In Rails, we have a pool of 20 connections, and we set idle_timeout to 5 minutes (default), where the pgcat timeout is set to 1 hour; I want Rails to disconnect the connection and not pgcat.
Our pgcat is in front of an RDS Aurora cluster with autoscaling enabled, and it scales up/down very well.
I got the pgcat logs in TRACE, and I don't see anything that would indicate any issues.
We love pgcat but having issues overcoming this one; any help would be appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
We have a rails application that does many queries to the database.
We installed Pgcat and it's mostly working great, but we see many errors in some of our Kafka consumers that are making many requests in a short period of time together to create a payload for Kafka.
The errors we get are:
PG::ConnectionBad: PQsocket() can't get socket descriptor
PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
I could not figure out where they were coming from.
In Rails, we have a pool of 20 connections, and we set idle_timeout to 5 minutes (default), where the pgcat timeout is set to 1 hour; I want Rails to disconnect the connection and not pgcat.
Our pgcat is in front of an RDS Aurora cluster with autoscaling enabled, and it scales up/down very well.
I got the pgcat logs in TRACE, and I don't see anything that would indicate any issues.
We love pgcat but having issues overcoming this one; any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions