Skip to content

Instantly share code, notes, and snippets.

@paukul
Created March 22, 2010 23:41
Show Gist options
  • Save paukul/340674 to your computer and use it in GitHub Desktop.
Save paukul/340674 to your computer and use it in GitHub Desktop.
# an extract from the deploy.rb with duty_free configured monit watches
duty_free_plugin.configure do |monit|
monit.role :log_aggregator, :monit_template => 'general_deamon' do |r|
r.watch :amqp_log_aggregator
end
monit.role :amqp_broker do |r|
r.watch :rabbitmq_server
end
monit.role :amqp_worker, :monit_template => 'amqp_worker_daemon', :count => 4 do |r|
r.watch :amqp_worker_x, :only => :production
r.watch :amqp_worker_y, :only => [:production, :jobs_qa]
r.watch :amqp_worker_z, :unless => :production
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment