ConnectionError: timeout exceeded when trying to connect, at Object.createConnection

We're thinking that this may be due to a Central issue with the database connection pool. I think it's possible that the behavior you're seeing is related to this post:

We're currently investigating the issue further. I have a couple of questions about your query of pg_stat_activity:

  • When is the count if you specify where state <> 'idle' ?
  • When you first start or restart the server, what is the count?