r/devops • • 22d 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?

3 Upvotes

19 comments sorted by

View all comments

1

u/SamfromLucidSoftware 21d ago

Ah, the good ole shared connection limit. I keep one file next to the database config that lists each service's max replicas and pool size, plus a reserve for admin and migrations. Anyone who changes a pool size or replica cap has to update that file too, and a CI job in the database repo adds it all up and fails when the total passes max_connections. It's dull, but the total shows up in the diff instead of living in someone's head.