Possible database connection pool exhaustion
By default, we configure the db pool to have 5 available connections. However, we also configure puma to spawn 2 workers with up to 16 threads each. It is possible that if hit with enough requests, puma can run out of connections, leading to errors like:
ActiveRecord::ConnectionTimeoutError: could not obtain a connection from the pool within 5.000 seconds (waited 5.003 seconds); all pooled connections were in use
#2 Updated by Ewoud Kohl van Wijngaarden 5 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset puppet-foreman:puppet-foreman|026d47434316b8ae318c5e42936edc12859ab475.