Files
computer-playbook/roles/web-app-gitlab/templates/env.j2
kevinveenbirkenbachandClaude Opus 4.8 e7be00aa60 fix(gitlab): slow the CNG dependency-check loop to stop draining postgres
WAIT_FOR_TIMEOUT is an iteration count, not seconds, and CNG wait-for-deps leaks one postgres connection per iteration (establish_connection, never disconnected). At 1800 iterations of the 1s default the dedicated instance's non-superuser slots filled with idle gitlab connections before migrations could claim one, deadlocking the deploy. 60 iterations of 30s keeps the 30-minute budget at a thirtieth of the leak rate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-18 01:11:48 +02:00

11 lines
310 B
Django/Jinja

{% include 'roles/sys-svc-container/templates/env.j2' %}
GITLAB_HOST={{ GITLAB_HOSTNAME }}
GITLAB_PORT={{ GITLAB_WEB_PORT }}
GITLAB_SSH_PORT={{ GITLAB_SSH_PORT }}
WAIT_FOR_TIMEOUT=60
SLEEP_DURATION=30
SIDEKIQ_TIMEOUT=25
ENABLE_BOOTSNAP=true
GITLAB_ROOT_PASSWORD={{ GITLAB_INIT_ROOT_PASSWORD | dotenv_quote }}