Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 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 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 at 22:25

2 Answers 2

Sure, check this thread here: https://github.com/gitlabhq/gitlabhq/issues/2780

Just edit the sidekiq config.yml, note the concurrency option: https://github.com/mperham/sidekiq/blob/master/examples/config.yml

share|improve this answer
1  
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 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

Change:

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
}

To:

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

 
discard

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.