summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdbd.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2010-06-22 22:52:34 +0930
committerRusty Russell <rusty@rustcorp.com.au>2010-06-22 22:52:34 +0930
commit8946028a0748c048dad5407e83e7dd61e2d9fa4b (patch)
treeaaa6d1c2003c045df86d152720547aba95a53749 /ctdb/server/ctdbd.c
parented31caffabd71b61269b2a33dfdd3322d397bbe1 (diff)
downloadsamba-8946028a0748c048dad5407e83e7dd61e2d9fa4b.tar.gz
samba-8946028a0748c048dad5407e83e7dd61e2d9fa4b.tar.xz
samba-8946028a0748c048dad5407e83e7dd61e2d9fa4b.zip
speed startup: add --sloppy-start.
The extra recovery interval wait was introduced in 821333afb458 but no explanation was provided in that message. Nonetheless, if starting the entire cluster for the first time, it should be safe to skip this. We use the commandline arg --sloppy-start which should discourage people from using it outside testing. Seconds between ctdbd first log message and node healthy: BEFORE: 16.10 AFTER: 4.03 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 509e2e89ae233a0e91998d95267bf62f296a73cd)
Diffstat (limited to 'ctdb/server/ctdbd.c')
-rw-r--r--ctdb/server/ctdbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c
index 12e754e1ba..e20a742f56 100644
--- a/ctdb/server/ctdbd.c
+++ b/ctdb/server/ctdbd.c
@@ -64,6 +64,7 @@ static struct {
};
int script_log_level;
+bool fast_start;
/*
called by the transport layer when a packet comes in
@@ -144,6 +145,7 @@ int main(int argc, const char *argv[])
&options.max_persistent_check_errors, 0,
"max allowed persistent check errors (default 0)", NULL },
{ "log-ringbuf-size", 0, POPT_ARG_INT, &log_ringbuf_size, DEBUG_ERR, "Number of log messages we can store in the memory ringbuffer", NULL },
+ { "sloppy-start", 0, POPT_ARG_NONE, &fast_start, 0, "Do not perform full recovery on start", NULL },
POPT_TABLEEND
};
int opt, ret;