Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add health check for my_fr2

  • Loading branch information...
commit eb4441e2ccd5c05c629e496a23424c488eaf7672 1 parent 1f9ad04
andrewcarpenter authored
1  varnish/attributes/varnish.rb
@@ -24,6 +24,7 @@
24 24 default[:varnish][:app_proxy_host] = '127.0.0.1'
25 25 default[:varnish][:app_proxy_port] = '8080'
26 26 default[:varnish][:app_proxy_host_probe_url] = '/status'
  27 +default[:varnish][:my_fr2_proxy_host_probe_url] = '/my/status'
27 28 default[:varnish][:static_proxy_host] = '127.0.0.1'
28 29 default[:varnish][:static_proxy_port] = '8080'
29 30
9 varnish/templates/default/default.vcl.erb
@@ -24,6 +24,15 @@ backend app_server_<%= i+1 %> {
24 24 backend my_fr2_server_<%= i+1 %> {
25 25 .host = "<%= host %>";
26 26 .port = "<%= @node[:varnish][:my_fr2_proxy_port] %>";
  27 + <% unless @node[:chef][:roles].include?('vagrant') %>
  28 + .probe = {
  29 + .url = "<%= @node[:varnish][:my_fr2_proxy_host_probe_url] %>";
  30 + .interval = 5s;
  31 + .timeout = 1 s;
  32 + .window = 5;
  33 + .threshold = 3;
  34 + }
  35 + <% end %>
27 36 }
28 37 <% end %>
29 38

0 comments on commit eb4441e

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