summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-10-16 20:47:14 +0300
committerGitHub <noreply@github.com>2026-10-16 20:47:14 +0300
commit63dbad680619f119341fe5189f0d0d8d2619cfa7 (patch)
treed3ff717193b2873d4f3c7cac0e8a6642f7488af2 /docs
parentff3a2771ba7c9a9daf7430ee0862c734b275fea0 (diff)
parent3081646df240b41f6b302452a1c5f626a0a9f9ca (diff)
downloadvyos-documentation-63dbad680619f119341fe5189f0d0d8d2619cfa7.tar.gz
vyos-documentation-63dbad680619f119341fe5189f0d0d8d2619cfa7.zip
Merge pull request #2334 from ruben-herold/docs-haproxy-http-server-close
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.