Possible problems - gottfrois/dashing-rails GitHub Wiki
PG::ConnectionBad: PQsocket() can't get socket descriptor:
If after a while running Dashing you get errors like:
PG::ConnectionBad: PQsocket() can't get socket descriptor:
It usually means that your app is exhausting the connection pool of the DB. There is not an easy solution for this, but using this configuration in database.yml worked for me:
pool: 5
reaping_frequency: 10
Maintain the pool low, as it set how many connection per process your app does. reaping_frequency is new in Rails 4, by default is set to nil. It try to close dead connection each N seconds.