diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2026-04-27 16:10:26 +0300 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2026-04-27 18:18:47 +0300 |
| commit | c2fa136a3589c30d98cffa49c9dd7682c81c2002 (patch) | |
| tree | da9dc3917afda283da2b8eabfc6e3ea2139b9087 /interface-definitions/high-availability.xml.in | |
| parent | 0cc2bbfc54370cce2d2c7540fb155e464207f1be (diff) | |
| download | vyos-1x-c2fa136a3589c30d98cffa49c9dd7682c81c2002.tar.gz vyos-1x-c2fa136a3589c30d98cffa49c9dd7682c81c2002.zip | |
T8293: Add ability to set timeout for high-availability health-check
Setting a timeout allows VRRP health-check scripts to run longer than the set interval.
Without timeout, keepalived considers the script as failed after interval seconds.
With timeout set higher than interval, the script has more time to complete
before being marked as failed and transitioning VRRP to FAULT state.
Diffstat (limited to 'interface-definitions/high-availability.xml.in')
| -rw-r--r-- | interface-definitions/high-availability.xml.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/interface-definitions/high-availability.xml.in b/interface-definitions/high-availability.xml.in index bb132e337..70ac308a3 100644 --- a/interface-definitions/high-availability.xml.in +++ b/interface-definitions/high-availability.xml.in @@ -170,6 +170,18 @@ </constraint> </properties> </leafNode> + <leafNode name="timeout"> + <properties> + <help>Health check script timeout in seconds</help> + <valueHelp> + <format>u32</format> + <description>Timeout in seconds</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--positive"/> + </constraint> + </properties> + </leafNode> </children> </node> <leafNode name="hello-source-address"> @@ -393,6 +405,18 @@ </constraint> </properties> </leafNode> + <leafNode name="timeout"> + <properties> + <help>Health check script timeout in seconds</help> + <valueHelp> + <format>u32</format> + <description>Timeout in seconds</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--positive"/> + </constraint> + </properties> + </leafNode> </children> </node> #include <include/vrrp-transition-script.xml.i> |
