Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Looking at htop output on my server I see 25 sidekiq processes spawned by Gitlab. I use Gitlab privately, so there is never going to be any load, so I doubt all of those processes are required, but I cannot see how to configure their number.

Is there actually any point for me to bother about that on a resource-restricted server?

share|improve this question
Did you solved this? I'm having the same issue. – Alejandro Piad Jul 16 '14 at 23:27
No, I'm afraid I left it be the way it is. Mostly because I couldn't figure out how to set the sidekiq config for gitlab like @md_5 suggested in his answer. – Alexander Filatov Jul 17 '14 at 7:25
I solved my memory issue (Gitlab & Node.js) by increasing the swap, but I still have the 25 Sidekiq processes there, so if there is any advances, I'd be happy to know. – Alejandro Piad Jul 17 '14 at 22:25

Sure, check this thread here:

Just edit the sidekiq config.yml, note the concurrency option:

share|improve this answer
Hi, I'm also using Gitlab, and as of version 6.7.3 there is no config file that I know of specifically for Sidekiq. Is there a workaround for this? – Alejandro Piad Jul 16 '14 at 23:06

I edited the Sidekiq startup arguments. In GitLab <7.0.0 it's under scripts/background_jobs but in >7.0.0 it's under bin/background_jobs


function start_sidekiq
  bundle exec sidekiq -q post_receive -q mailer -q system_hook -q project_web_hook -q gitlab_shell -q common -q default -e $RAILS_ENV -P $sidekiq_pidfile $@ >> $sidekiq_logfile 2>&1


function start_sidekiq
  bundle exec sidekiq -c 10 -q post_receive -q mailer -q system_hook -q project_web_hook -q gitlab_shell -q common -q default -e $RAILS_ENV -P $sidekiq_pidfile $@ >> $sidekiq_logfile 2>&1

Notice the -c 10. Change that to whatever you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.