README.md in capistrano-sidekiq-0.5.2 vs README.md in capistrano-sidekiq-0.5.3

- old
+ new

@@ -45,10 +45,11 @@ :sidekiq_role => :app :sidekiq_processes => 1 :sidekiq_options_per_process => nil :sidekiq_concurrency => nil :sidekiq_monit_templates_path => 'config/deploy/templates' + :sidekiq_monit_use_sudo => true :sidekiq_cmd => "#{fetch(:bundle_cmd, "bundle")} exec sidekiq" # Only for capistrano2.5 :sidekiqctl_cmd => "#{fetch(:bundle_cmd, "bundle")} exec sidekiqctl" # Only for capistrano2.5 ``` There is a known bug that prevents sidekiq from starting when pty is true @@ -67,20 +68,39 @@ ```ruby set :sidekiq_options_per_process, ["--queue high", "--queue default --queue low"] ``` +## Different number of processes per host + +You can configure how many processes you want to run on each host next way: + +```ruby +set :sidekiq_role, [:sidekiq_small, :sidekiq_big] +set :sidekiq_small_processes, 1 +set :sidekiq_big_processes, 4 +server 'example-small.com', roles: [:sidekiq_small] +server 'example-big.com', roles: [:sidekiq_big] +``` + ## Customizing the monit sidekiq templates If you need change some config in redactor, you can ``` bundle exec rails generate capistrano:sidekiq:monit:template ``` +If your deploy user has no need in `sudo` for using monit, you can disable it as follows: + +```ruby +set :sidekiq_monit_use_sudo, false +``` + ## Changelog +- 0.5.3: Custom count of processes per each host - 0.5.0: Multiple processes @mrsimo - 0.3.9: Restore daemon flag from Monit template - 0.3.8: * Update monit template: use su instead of sudo / permit all Sidekiq options @bensie * Unmonitor monit while deploy @Saicheg @@ -106,9 +126,12 @@ - [Jérémy Lecour] (https://github.com/jlecour) - [Fabien Penso] (https://github.com/penso) - [Alex Dunae] (https://github.com/alexdunae) - [andreygerasimchuk] (https://github.com/andreygerasimchuk) +- [Saicheg] (https://github.com/Saicheg) +- [Alex Yakubenko] (https://github.com/alexyakubenko) +- [Robert Strobl] (https://github.com/rstrobl) ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)