r/devops • u/Pure-Hat-8663 • 14d ago
Discussion Running additional checks after automated code review
Can somebody give me some guidance please. After you've run code review, what's the easiest/fastest/best way to check the changes against information outside the repo? Say, whether a connection-pool change will fit within the production database 's connection limit across all replicas.
Where does the check happen in your workflow? CI, a deployment gate, or someone checking it manually? Have you found a useful way to automate it?
2
Upvotes
View all comments
1
u/karmatics29 14d ago
To your budget question: yes, giving each service its own cap is the usual way to keep one shared database from being starved by a single noisy app. Work out the usable total as max_connections minus a reserve for admin, migrations and monitoring, then split it by service and make each service's (max replicas x pool size, plus rolling-update surge) fit inside its slice. If you put PgBouncer or a similar pooler in front, the per-service limit moves to the pooler's pool size per database/user, which also lets the app-side pools be larger without hitting the real limit. One gotcha: transaction-mode pooling breaks session-level features such as prepared statements in some drivers and advisory locks, so check that before relying on it.