Lost Postgres DB connection

Hey there,

I took a look at your logs and am seeing:

2021-12-14T02:21:29.791 proxy[0dfeb2a3] cdg [error] error.code=2008 error.message="App instance hard limit reached"
2021-12-14T02:21:30.508 proxy[0dfeb2a3] cdg [error] error.code=2008 error.message="App instance hard limit reached"
2021-12-14T02:21:31.558 proxy[0dfeb2a3] cdg [error] error.code=2008 error.message="App instance hard limit reached"
2021-12-14T02:21:32.288 proxy[0dfeb2a3] cdg [error] error.code=2008 error.message="App instance hard limit reached"

I would try pulling down your app’s configuration file and adjusting your services concurrency settings.

Here are the steps to do that:

  1. Pull down config file
    fly config save --app <postgres-app>

  2. Update concurrency settings.
    App Configuration (fly.toml)

  3. Redeploy
    fly deploy . --app <postgres-app> --image flyio/postgres:<major-pg-version>

Let me know if that helps!

1 Like