summaryrefslogtreecommitdiffstats
path: root/ctdb/include/ctdb_private.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2008-06-13 13:18:06 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2008-06-13 13:18:06 +1000
commit779468ab3f0dfdda57230fafb51aa4510818780c (patch)
treed6fac209bd63130b015b0bf4984ef3c897ee0122 /ctdb/include/ctdb_private.h
parent30535c815dc0cd1503312a76e0b9dcd439aff7c4 (diff)
downloadsamba-779468ab3f0dfdda57230fafb51aa4510818780c.tar.gz
samba-779468ab3f0dfdda57230fafb51aa4510818780c.tar.xz
samba-779468ab3f0dfdda57230fafb51aa4510818780c.zip
if the event scripts hangs EventScriptsBanCount consecutive times in a row
the node will ban itself for the default recovery ban period (This used to be ctdb commit 7239d7ecd54037b11eddf47328a3129d281e7d4a)
Diffstat (limited to 'ctdb/include/ctdb_private.h')
-rw-r--r--ctdb/include/ctdb_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index e78b683905..b19012f1ec 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -102,6 +102,7 @@ struct ctdb_tunable {
uint32_t monitor_interval;
uint32_t tickle_update_interval;
uint32_t script_timeout;
+ uint32_t script_ban_count; /* ban after this many consec timeouts*/
uint32_t recovery_grace_period;
uint32_t recovery_ban_period;
uint32_t database_hash_size;
@@ -410,6 +411,7 @@ struct ctdb_context {
struct ctdb_monitor_state *monitor;
struct ctdb_log_state *log;
int start_as_disabled;
+ uint32_t event_script_timeouts; /* counting how many consecutive times an eventscript has timedout */
TALLOC_CTX *eventscripts_ctx; /* a context to hold data for the RUN_EVENTSCRIPTS control */
};