Skip to content
Browse files

Ping warden health check end point from monit.

Change-Id: I942ee0567b3924bd347d2cd5acd4cac767172e42
  • Loading branch information...
1 parent a9b234d commit 894b78d3e978851fb6c042e3200aeb1955575d2d @kowshik kowshik committed
Showing with 7 additions and 0 deletions.
  1. +4 −0 jobs/dea_next/monit
  2. +3 −0 jobs/dea_next/templates/warden.yml.erb
View
4 jobs/dea_next/monit
@@ -2,6 +2,10 @@ check process warden
with pidfile /var/vcap/sys/run/warden/warden.pid
start program "/var/vcap/jobs/dea_next/bin/warden_ctl start"
stop program "/var/vcap/jobs/dea_next/bin/warden_ctl stop"
+ if failed host 127.0.0.1 port 2345 protocol http
+ and request '/'
+ with timeout 5 seconds for 2 cycles
+ then restart
group vcap
check process dea_next
View
3 jobs/dea_next/templates/warden.yml.erb
@@ -13,6 +13,9 @@ logging:
<% end %>
level: debug
+health_check_server:
+ port: 2345
+
network:
pool_start_address: 10.254.0.0
pool_size: 256

0 comments on commit 894b78d

Please sign in to comment.
Something went wrong with that request. Please try again.