9z0b3t1c / capistrano-resque

Capistrano integration for Resque

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expand README

supairish opened this issue · comments

The README doesn't make it clear that you can assign specific servers (via roles) to work on completely separate resque queues. For example

role :worker_server_A,  <server-ip-A>
role :worker_servers_B_and_C,  [<server-ip-B>, <server-ip-C>]

set :workers, {
  worker_server_A: {
    "queue-1" => 1,
    "queue-2" => 5
  },
  worker_servers_B_and_C: {
    "queue-3" => 1,
    "queue-4" => 9
  }
}

This is a great feature that I'm glad I found by looking through the source. Thanks!