Skip to content

Commit

Permalink
Add proxy protocol status to reload script output
Browse files Browse the repository at this point in the history
Proxy protocol errors are painful to debug.  I added the router proxy
protocol status to the reload message so that people will see it and
it may jog the thought to check that the upstream load balancer (if
present) is correctly configured.
  • Loading branch information
knobunc committed May 19, 2017
1 parent 2ceece1 commit ef436d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion images/router/haproxy/reload-haproxy
Expand Up @@ -23,7 +23,8 @@ function haproxyHealthCheck() {

local end_ts=$((start_ts + wait_time))

echo " - Checking HAProxy /healthz on port $port ..."
local proxy_proto="${ROUTER_USE_PROXY_PROTOCOL:-FALSE}"
echo " - Proxy protocol '${proxy_proto}'. Checking HAProxy /healthz on port $port ..."
while true; do
local httpcode=$(curl $timeout_opts -s -o /dev/null -I -w "%{http_code}" http://localhost:${port}/healthz)

Expand Down

0 comments on commit ef436d3

Please sign in to comment.