summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRuben Herold <ruben@puettmann.net>2026-10-06 11:18:10 +0200
committerRuben Herold <ruben@puettmann.net>2026-10-06 11:18:10 +0200
commit3081646df240b41f6b302452a1c5f626a0a9f9ca (patch)
tree13ef706b7d07a40692f4d1ff1cc8cdd9caca1166 /docs
parent70ffde48e951caea564b558dceeb049f94a37903 (diff)
downloadvyos-documentation-3081646df240b41f6b302452a1c5f626a0a9f9ca.tar.gz
vyos-documentation-3081646df240b41f6b302452a1c5f626a0a9f9ca.zip
haproxy: document backend http-server-close
Diffstat (limited to 'docs')
-rw-r--r--docs/configuration/loadbalancing/haproxy.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/configuration/loadbalancing/haproxy.md b/docs/configuration/loadbalancing/haproxy.md
index d60c5248..bdbcf591 100644
--- a/docs/configuration/loadbalancing/haproxy.md
+++ b/docs/configuration/loadbalancing/haproxy.md
@@ -145,6 +145,19 @@ Balance algorithms:
Configure backend *<name>* mode TCP or HTTP.
```
+```{cfgcmd} set load-balancing haproxy backend \<name\> http-server-close
+
+Close the connection to the backend servers after each response, while
+keeping HTTP keep-alive and pipelining on the client side. This gives the
+lowest latency for clients on slow networks and reuses server resources
+quickly.
+
+Some servers do not handle the `Connection: close` request header correctly.
+Keep-alive is then never used for them.
+
+The backend must be in `http` mode, otherwise the commit fails.
+```
+
```{cfgcmd} set load-balancing haproxy backend \<name\> server \<name\> address \<x.x.x.x\>
Set the address of the backend server that receives incoming traffic.