This only applies to monitor events so renaming clarifies this.
Note that this change is not backward compatible. Users with
CTDB_SET_EventScriptTimeoutCount=<n>
in their configuration will get failures when starting CTDB but the
cause will be clearly logged.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
</refsect2>
<refsect2>
- <title>EventScriptTimeoutCount</title>
+ <title>MonitorTimeoutCount</title>
<para>Default: 20</para>
<para>
How many monitor events in a row need to timeout before a node
- is flagged as UNHEALTHY. This only applies to monitor events.
- This setting is useful if scripts can not be written so that
- they do not hang for benign reasons.
+ is flagged as UNHEALTHY. This setting is useful if scripts
+ can not be written so that they do not hang for benign
+ reasons.
</para>
</refsect2>
MonitorInterval = 15
TickleUpdateInterval = 20
EventScriptTimeout = 30
-EventScriptTimeoutCount = 1
+MonitorTimeoutCount = 1
RecoveryGracePeriod = 120
RecoveryBanPeriod = 300
DatabaseHashSize = 100001
uint32_t monitor_interval;
uint32_t tickle_update_interval;
uint32_t script_timeout;
- uint32_t script_timeout_count; /* allow dodgy scripts to hang this many times in a row before we mark the node unhealthy */
+ uint32_t monitor_timeout_count; /* allow dodgy scripts to hang this many times in a row before we mark the node unhealthy */
uint32_t script_unhealthy_on_timeout; /* obsolete */
uint32_t recovery_grace_period;
uint32_t recovery_ban_period;
ctdb->monitor->event_script_timeouts++;
if (ctdb->monitor->event_script_timeouts >=
- ctdb->tunable.script_timeout_count) {
+ ctdb->tunable.monitor_timeout_count) {
DEBUG(DEBUG_ERR,
("Maximum monitor timeout count %u reached."
" Making node unhealthy\n",
- ctdb->tunable.script_timeout_count));
+ ctdb->tunable.monitor_timeout_count));
} else {
/* We pretend this is OK. */
goto after_change_status;
{ "MonitorInterval", 15, offsetof(struct ctdb_tunable_list, monitor_interval), false },
{ "TickleUpdateInterval",20, offsetof(struct ctdb_tunable_list, tickle_update_interval), false },
{ "EventScriptTimeout", 30, offsetof(struct ctdb_tunable_list, script_timeout), false },
- { "EventScriptTimeoutCount", 20, offsetof(struct ctdb_tunable_list, script_timeout_count), false },
+ { "MonitorTimeoutCount", 20, offsetof(struct ctdb_tunable_list, monitor_timeout_count), false },
{ "EventScriptUnhealthyOnTimeout", 0, offsetof(struct ctdb_tunable_list, script_unhealthy_on_timeout), true },
{ "RecoveryGracePeriod", 120, offsetof(struct ctdb_tunable_list, recovery_grace_period), false },
{ "RecoveryBanPeriod", 300, offsetof(struct ctdb_tunable_list, recovery_ban_period), false },