server/files/etc/god/system.god in pauldowman-ec2onrails-0.9.10.1 vs server/files/etc/god/system.god in pauldowman-ec2onrails-0.9.10.2

- old
+ new

@@ -10,25 +10,28 @@ # lifecycle w.lifecycle do |on| on.condition(:disk_usage) do |c| c.mount_point = "/" c.above = 75 + c.notify = {:contacts => ['default'], :category => "RAILS_ENV=#{Ec2onrails::Utils.rails_env}"} end on.condition(:disk_usage) do |c| c.mount_point = "/mnt" c.above = 75 + c.notify = {:contacts => ['default'], :category => "RAILS_ENV=#{Ec2onrails::Utils.rails_env}"} end - # on.condition(:memory_usage) do |c| - # c.above = 170.megabytes - # c.times = [3, 5] # 3 out of 5 intervals - # end + on.condition(:memory_usage) do |c| + c.above = 80.percent + c.times = [3, 5] # 3 out of 5 intervals + c.notify = {:contacts => ['default'], :category => "RAILS_ENV=#{Ec2onrails::Utils.rails_env}"} + end on.condition(:cpu_usage) do |c| c.above = 90.percent c.times = [5, 8] - end - + c.notify = {:contacts => ['default'], :category => "RAILS_ENV=#{Ec2onrails::Utils.rails_env}"} + end end end