I have an app that heavily relies on background processing and I would like to have the delayed_job workers on a separate Linode instance for performance reasons. I have found this really helpful post about being able to run DJ workers on a different server without having to boot Apache and it looks like that's how I'll be setting things up.
My question is how do I go about configuring Capistrano to deploy my app to both servers, only running the actual web facing end from one, and using the other one for DJ? Would I do something like this?
role :web, "domain.com"
role :app, "domain.com", "workers.domain.com"
role :db, "domain.com", :primary => true