cd /root
docker-compose exec web /bin/bash
su - gitlab-psql
psql -h /var/opt/gitlab/postgresql/ gitlabhq_production
SELECT current_setting('max_connections');
SELECT * FROM pg_stat_activity;
cd /root
docker-compose exec web /bin/bash
su - gitlab-psql
psql -h /var/opt/gitlab/postgresql/ gitlabhq_production
SELECT current_setting('max_connections');
SELECT * FROM pg_stat_activity;
cat /dev/urandom | tr -dc '[:alnum:]' | fold -w ${1:-20} | head -n 1