Project

General

Profile

Actions

Bug #30789

closed

Possible database connection pool exhaustion

Added by Adam Ruzicka about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
Fixed in Releases:
Found in Releases:

Description

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
Actions

Also available in: Atom PDF