Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Service Sidekiq

ZeroC0D3 Team edited this page Jan 10, 2018 · 2 revisions

Sidekiq Service

  • Configuration Sidekiq in config/sidekiq.yml
:concurrency: 5
:pidfile: tmp/pids/sidekiq.pid
:logfile: ./log/sidekiq.log

development:
  :concurrency: 10
test:
  :concurrency: 10
staging:
  :concurrency: 10
production:
  :concurrency: 20

:queues:
  - default
  • Running Sidekiq
# Standard running
bundle exec sidekiq -d -e [environment] -C [config_sidekiq] -L [log_sidekiq]

# With daemon running
bundle exec sidekiq --queue default --index 0 --pidfile [pid_sidekiq] --environment [environment] --logfile [log_sidekiq] --concurrency 10 --daemon
  • Stop Sidekiq
ps aux | grep -i sidekiq | awk {'print $2'} | sudo xargs kill -9
Clone this wiki locally