Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VRRP: Added additional information about scripting. #1565

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/configuration/highavailability/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,16 @@ execute custom checks in addition to the master router reachability. Transition
scripts are executed when VRRP state changes from master to backup or fault and
vice versa and can be used to enable or disable certain services, for example.

.. warning:: It is not recommended to change VRRP configuration inside health-check
and transition scripts.

Health check scripts
^^^^^^^^^^^^^^^^^^^^

There is the ability to run an arbitrary script at regular intervals according to health-check
parameters. If a script returns 0, it indicates success. If a script returns anything
else, it will indicate that the VRRP instance should enter the FAULT state.

This setup will make the VRRP process execute the
``/config/scripts/vrrp-check.sh script`` every 60 seconds, and transition the
group to the fault state if it fails (i.e. exits with non-zero status) three
Expand Down
Loading