Commit 8d8b8c5f authored by Kirill Smelkov's avatar Kirill Smelkov

X sidekiq draftly configured

parent da89a6b8
......@@ -66,6 +66,11 @@ configuration.backup_keep_time = 0
configuration.git_max_size =
configuration.git_timeout =
# sidekiq
configuration.sidekiq_shutdown_timeout = 4
# unicorn
configuration.unicorn_worker_timeout = 60
configuration.unicorn_worker_processes = 2
......
......@@ -23,7 +23,7 @@ parts =
service-gitlab-workhorse
service-unicorn
# service-sidekiq
service-sidekiq
service-nginx
service-postgresql
......@@ -460,6 +460,46 @@ command-line = ${gitlab-unicorn:wrapper-path}
${gitlab-root-shadow:location}/config.ru
#######################################
# sidekiq background jobs manager #
#######################################
[sidekiq-dir]
recipe = slapos.cookbook:mkdirectory
# XXX srv not used?
srv = ${directory:srv}/sidekiq
log = ${directory:log}/sidekiq
[sidekiq]
srv = ${sidekiq-dir:srv}
log = ${sidekiq-dir:log}
# NOTE see queue list here:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/Procfile
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/sv-sidekiq-run.erb
[service-sidekiq]
recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:service}/sidekiq
# XXX -q runner ? (present in gitlab-ce/Procfile but not in omnibus)
# XXX -P ?
# XXX -C ?
command-line = ${gitlab-sidekiq:wrapper-path}
-e production
-r ${gitlab-root-shadow:location}
-t ${instance-parameter:configuration.sidekiq_shutdown_timeout}
-L ${sidekiq:log}/sidekiq.log
-q post_receive
-q mailer
-q archive_repo
-q system_hook
-q project_web_hook
-q gitlab_shell
-q incoming_email
-q common
-q default
######################
# Nginx frontend #
######################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment