Skip to content

Commit 79ac78d

Browse files
jmencakahardin-rh
authored andcommitted
[enterprise-3.9] Optimizations for HAProxy reloads
(cherry picked from commit 253c88d) xref:openshift#6744
1 parent 1a65149 commit 79ac78d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scaling_performance/routing_optimization.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,18 @@ accepted by load balancers provided by many public cloud providers. However,
125125
this affects the total memory use, especially when large numbers of connections
126126
are open. With very large numbers of open connections, the memory usage will be
127127
nearly proportionate to the increase of this tunable parameter.
128+
129+
[[optimizations-for-haproxy-reloads]]
130+
==== Optimizations for HAProxy Reloads
131+
132+
Long-lasting connections, such as WebSocket connections, combined with
133+
long client/server HAProxy timeouts and short HAProxy
134+
reload intervals, can cause instantiation of many HAProxy processes.
135+
These processes must handle old connections, which were started
136+
before the HAProxy configuration reload. A large number of these processes is
137+
undesirable, as it will exert unnecessary load on the system and can
138+
lead to issues, such as out of memory conditions.
139+
140+
xref:../architecture/topics/router_environment_variables.adoc#[Router environment variables] affecting this
141+
behavior are `ROUTER_DEFAULT_TUNNEL_TIMEOUT`, `ROUTER_DEFAULT_CLIENT_TIMEOUT`,
142+
`ROUTER_DEFAULT_SERVER_TIMEOUT`, and `RELOAD_INTERVAL` in particular.

0 commit comments

Comments
 (0)