Last active
April 26, 2019 14:02
-
-
Save doitian/b0991368d91db3e7011733d6f812f592 to your computer and use it in GitHub Desktop.
gitlab supervisord config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:unicorn] | |
command=bash -c 'rm -f /home/git/gitlab/tmp/sockets/gitlab.socket /home/git/gitlab/tmp/pids/unicorn.pid && /home/git/gitlab/bin/web start_foreground' | |
autostart=true | |
autorestart=true | |
stopsignal=TERM | |
user=git | |
directory=/home/git/gitlab | |
environment=RAILS_ENV="production" | |
stdout_logfile=NONE | |
stderr_logfile=/home/git/gitlab/log/unicorn.stderr.log | |
stderr_logfile_maxbytes=0 | |
[program:sidekiq] | |
command=/home/git/gitlab/bin/background_jobs start_no_deamonize | |
autostart=true | |
autorestart=true | |
stopsignal=TERM | |
user=git | |
directory=/home/git/gitlab | |
environment=RAILS_ENV="production",SIDEKIQ_MEMORY_KILLER_GRACE_TIME=2000000 | |
redirect_stderr=true | |
stdout_logfile=NONE | |
stderr_logfile=/home/git/gitlab/log/sidekiq.stderr.log | |
stderr_logfile_maxbytes=0 | |
[program:workhorse] | |
command=/home/git/gitlab-workhorse/gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr /home/git/gitlab/tmp/sockets/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 -authSocket /home/git/gitlab/tmp/sockets/gitlab.socket -documentRoot /home/git/gitlab/public | |
autostart=true | |
autorestart=true | |
stopsignal=TERM | |
user=git | |
directory=/home/git/gitlab | |
environment=RAILS_ENV="production",PATH="/home/git/gitlab-workhorse:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" | |
redirect_stderr=true | |
stdout_logfile=/home/git/gitlab/log/gitlab-workhorse.log | |
stdout_logfile_maxbytes=0 | |
[program:mailroom] | |
command=/usr/local/bin/bundle exec mail_room -q -c /home/git/gitlab/config/mail_room.yml | |
autostart=true | |
autorestart=true | |
stopsignal=TERM | |
user=git | |
directory=/home/git/gitlab | |
environment=RAILS_ENV="production" | |
stdout_logfile=/home/git/gitlab/log/mail_room.log | |
stdout_logfile_maxbytes=0 | |
stderr_logfile=/home/git/gitlab/log/mail_room.stderr.log | |
stderr_logfile_maxbytes=0 | |
[group:gitlab] | |
programs=unicorn,sidekiq,workhorse,mailroom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Supervise gitlab using supervisord so SIDEKIQ_MEMORY_KILLER_GRACE_TIME can be set to enable sidekiq memory killer.