You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add options to 'oadm ipfailover' to configure the check script and
notify scripts and also control the period the check script runs.
Keepalived periodically checks whether the application is running
properly. In the default case the test is a simple verification
that something is listening on the watch port. This PR permits the
user to supply an additional check script that is run in the
ipfailover container context to verify that the application is
operating properly. For example, a web server can be tested by
accessing the watch port and verifying the response.
Whenever a node changes state to MASTER, BACKUP, or FAULT a notify
script can be called. This script has 3 parameters filled in by
keepalived:
$1 - "GROUP"|"INSTANCE"
$2 - name of group or instance
$3 - target state of transition ("MASTER"|"BACKUP"|"FAULT")
--check-script="check_script"
The check script is a script in the keepalived container that verifies
the service is running properly. These checks are in addition to verifying
that the watch port is listening.
--notify-script="notify_script"
The notify script is a script in the keepalived container that is
called whenever the keepalived state transitions to (MASTER|BACKUP|FAULT)
--check-interval=<n>
The check script is run every <n> seconds. Default is 2.
Note: the scripts name is the full path to the script.
Resolves 1362163
Signed-off-by: Phil Cameron <[email protected]>
0 commit comments