summaryrefslogtreecommitdiff
path: root/docs/configuration
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-05-20 18:41:00 +0300
committerGitHub <noreply@github.com>2026-05-20 18:41:00 +0300
commitba0141cec2911c7fb11507824f3cb9cc13597789 (patch)
treee795f142cf5186cb2f0c8f70f2c387f850d67a2a /docs/configuration
parent1fbea6323fdc1a5eafc13ac4d251755bec8b8966 (diff)
parentdc04c30291806195311e585450b490d0c672c356 (diff)
downloadvyos-documentation-ba0141cec2911c7fb11507824f3cb9cc13597789.tar.gz
vyos-documentation-ba0141cec2911c7fb11507824f3cb9cc13597789.zip
Merge pull request #2053 from natali-rs1985/T7059
high-availability: T7059: Add persistence-timeout option in virtual-server
Diffstat (limited to 'docs/configuration')
-rw-r--r--docs/configuration/highavailability/index.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/configuration/highavailability/index.md b/docs/configuration/highavailability/index.md
index dbd36f03..1e4f2aed 100644
--- a/docs/configuration/highavailability/index.md
+++ b/docs/configuration/highavailability/index.md
@@ -446,6 +446,20 @@ set high-availability virtual-server 203.0.113.1 algorithm 'least-connection'
set high-availability virtual-server 203.0.113.1 forward-method 'nat'
```
+### Persistence timeout
+
+Timeout in seconds for persistent connections. IPVS will forward all
+connections from the same source IP to the same real server for the
+duration of the timeout.
+Default value is 300 seconds.
+
+Set to `0` to disable persistence and allow the load-balancing
+algorithm to distribute every connection independently.
+
+```none
+set high-availability virtual-server 203.0.113.1 persistence-timeout '180'
+```
+
### Health-check
Custom health-check script allows checking real-server availability