summaryrefslogtreecommitdiff
path: root/interface-definitions/load-balancing_haproxy.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2025-02-22 15:44:34 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2025-02-24 10:28:33 +0000
commitfe20eae99ebdb7781f74ada3a7c13a848ea75bcc (patch)
tree987fea738165fdc67ea9d2ca58ffb33c1b0660ac /interface-definitions/load-balancing_haproxy.xml.in
parent5d9d232fd93ad5bf89ba44a2d0ec3b196599fa74 (diff)
downloadveeos-1x-fe20eae99ebdb7781f74ada3a7c13a848ea75bcc.tar.gz
veeos-1x-fe20eae99ebdb7781f74ada3a7c13a848ea75bcc.zip
T7190: Add haproxy default timeout options configurable
Add the ability to configurate default timeout and frontend client timeout ``` set load-balancing haproxy service web timeout client '600' set load-balancing haproxy timeout check '4' set load-balancing haproxy timeout client '600' set load-balancing haproxy timeout connect '12' set load-balancing haproxy timeout server '120' ```
Diffstat (limited to 'interface-definitions/load-balancing_haproxy.xml.in')
-rw-r--r--interface-definitions/load-balancing_haproxy.xml.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/interface-definitions/load-balancing_haproxy.xml.in b/interface-definitions/load-balancing_haproxy.xml.in
index ca089d3f0..b95e02337 100644
--- a/interface-definitions/load-balancing_haproxy.xml.in
+++ b/interface-definitions/load-balancing_haproxy.xml.in
@@ -48,6 +48,14 @@
<valueless/>
</properties>
</leafNode>
+ <node name="timeout">
+ <properties>
+ <help>Timeout options</help>
+ </properties>
+ <children>
+ #include <include/haproxy/timeout-client.xml.i>
+ </children>
+ </node>
<node name="http-compression">
<properties>
<help>Compress HTTP responses</help>
@@ -368,6 +376,29 @@
</leafNode>
</children>
</node>
+ <node name="timeout">
+ <properties>
+ <help>Timeout options</help>
+ </properties>
+ <children>
+ #include <include/haproxy/timeout-check.xml.i>
+ <leafNode name="check">
+ <defaultValue>5</defaultValue>
+ </leafNode>
+ #include <include/haproxy/timeout-connect.xml.i>
+ <leafNode name="connect">
+ <defaultValue>10</defaultValue>
+ </leafNode>
+ #include <include/haproxy/timeout-client.xml.i>
+ <leafNode name="client">
+ <defaultValue>50</defaultValue>
+ </leafNode>
+ #include <include/haproxy/timeout-server.xml.i>
+ <leafNode name="server">
+ <defaultValue>50</defaultValue>
+ </leafNode>
+ </children>
+ </node>
#include <include/interface/vrf.xml.i>
</children>
</node>