-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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' ```
- Loading branch information
1 parent
5d9d232
commit fccd573
Showing
7 changed files
with
99 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- include start from haproxy/timeout-check.xml.i --> | ||
<leafNode name="check"> | ||
<properties> | ||
<help>Timeout in seconds for established connections</help> | ||
<valueHelp> | ||
<format>u32:1-3600</format> | ||
<description>Check timeout in seconds</description> | ||
</valueHelp> | ||
<constraint> | ||
<validator name="numeric" argument="--range 1-3600"/> | ||
</constraint> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
14 changes: 14 additions & 0 deletions
14
interface-definitions/include/haproxy/timeout-client.xml.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- include start from haproxy/timeout-client.xml.i --> | ||
<leafNode name="client"> | ||
<properties> | ||
<help>Maximum inactivity time on the client side</help> | ||
<valueHelp> | ||
<format>u32:1-3600</format> | ||
<description>Timeout in seconds</description> | ||
</valueHelp> | ||
<constraint> | ||
<validator name="numeric" argument="--range 1-3600"/> | ||
</constraint> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
14 changes: 14 additions & 0 deletions
14
interface-definitions/include/haproxy/timeout-connect.xml.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- include start from haproxy/timeout-connect.xml.i --> | ||
<leafNode name="connect"> | ||
<properties> | ||
<help>Set the maximum time to wait for a connection attempt to a server to succeed</help> | ||
<valueHelp> | ||
<format>u32:1-3600</format> | ||
<description>Connect timeout in seconds</description> | ||
</valueHelp> | ||
<constraint> | ||
<validator name="numeric" argument="--range 1-3600"/> | ||
</constraint> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
14 changes: 14 additions & 0 deletions
14
interface-definitions/include/haproxy/timeout-server.xml.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- include start from haproxy/timeout-server.xml.i --> | ||
<leafNode name="server"> | ||
<properties> | ||
<help>Set the maximum inactivity time on the server side</help> | ||
<valueHelp> | ||
<format>u32:1-3600</format> | ||
<description>Server timeout in seconds</description> | ||
</valueHelp> | ||
<constraint> | ||
<validator name="numeric" argument="--range 1-3600"/> | ||
</constraint> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters