Services running on the Patroni cluster need to have their limits matching omnibus
gitlab-omnibus runs all of its services with bumped limits. We are using custom cookbooks to install pgbouncer and PostgreSQL on the Patroni cluster, so we need to have a way to apply the same limits these services.
Things to take into consideration:
- PostgreSQL is not managed by systemd or the likes, rather, it's spawned by Patroni so we may need to apply the limits to the Patroni service to be inherited by PostgreSQL.
- Bumping such limits will likely need the services to be restarted, which can cause brief disruption of service, so careful planning is needed for production roll-out.