Sha256: 0cd006c5569bf0f970516a409ddeec16458d65f2b45bf902c3e33c17f6dc9229
Contents?: true
Size: 830 Bytes
Versions: 2
Compression:
Stored size: 830 Bytes
Contents
God.watch do |w| w.name = 'child-polls' w.start = File.join(GOD_ROOT, *%w[test configs child_polls simple_server.rb]) + ' ' + ENV['RAILS_ENV'] w.interval = 5 w.grace = 2 w.start_if do |start| start.condition(:process_running) do |c| c.running = false end end w.restart_if do |restart| restart.condition(:cpu_usage) do |c| c.above = 30.percent c.times = [3, 5] end restart.condition(:memory_usage) do |c| c.above = 10.megabytes c.times = [3, 5] end end # lifecycle w.lifecycle do |on| on.condition(:flapping) do |c| c.to_state = [:start, :restart] c.times = 3 c.within = 60.seconds c.transition = :unmonitored c.retry_in = 10.seconds c.retry_times = 2 c.retry_within = 5.minutes end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
god-0.7.19 | test/configs/child_polls/child_polls.god |
god-0.7.18 | test/configs/child_polls/child_polls.god |