Skip to content

Commit 49100d9

Browse files
Merge pull request #18385 from knobunc/bug/bz1464657-seamless-handover-haproxy-reload
Automatic merge from submit-queue (batch tested with PRs 18390, 18389, 18290, 18377, 18385). Make haproxy pass open sockets when reloading This changes the way we do a reload to take advantage of haproxy 1.8's seamless reload feature (described in https://www.haproxy.com/blog/truly-seamless-reloads-with-haproxy-no-more-hacks/) Fixes bug 1464657 (https://bugzilla.redhat.com/show_bug.cgi?id=1464657)
2 parents 1fef218 + 98f7fc6 commit 49100d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

images/router/haproxy/conf/haproxy-config.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ global
4040
{{- end}}
4141
ca-base /etc/ssl
4242
crt-base /etc/ssl
43-
stats socket /var/lib/haproxy/run/haproxy.sock mode 600 level admin
43+
stats socket /var/lib/haproxy/run/haproxy.sock mode 600 level admin expose-fd listeners
4444
stats timeout 2m
4545

4646
# Increase the default request size to be comparable to modern cloud load balancers (ALB: 64kb), affects

images/router/haproxy/reload-haproxy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ if [ -n "$old_pids" ]; then
105105
fi
106106
fi
107107

108-
/usr/sbin/haproxy -f $config_file -p $pid_file -sf $old_pids
108+
/usr/sbin/haproxy -f $config_file -p $pid_file -x /var/lib/haproxy/run/haproxy.sock -sf $old_pids
109109
reload_status=$?
110110

111111
if [[ "$installed_iptables" == 1 ]]; then

0 commit comments

Comments
 (0)