Skip to content

Allow adding headroom to the connection pool

Bob Van Landuyt requested to merge bvl-db-pool-headroom into master

What does this MR do?

This allows setting the DB_POOL_HEADROOM env variable to add a number of connections to the pool.

In normal situations, these connections should not be used, but it allows us to investigate the problem without degrading the service.

We'll set this to an acceptable number for GitLab.com, and alert when we start using those spare connections.

Required for gitlab-com/gl-infra/scalability#401 (closed) Since we're already using connections we weren't expecting: gitlab-com/gl-infra/scalability#409 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Bob Van Landuyt

Merge request reports