vacuum: change all Vacuum*Interval tunables to default to 10
authorMichael Adam <obnox@samba.org>
Mon, 20 Dec 2010 20:43:41 +0000 (21:43 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Mar 2011 23:37:02 +0000 (00:37 +0100)
So, by default we have a fastpath vacuuming every 10 seconds and
full blown db-traverse vacuuming once every 10 minutes.

server/ctdb_tunables.c

index 00ab899146afdac584a6f23ffbcab3d49558234b..52fc22a364b14ca26502755ade6f630604141cce 100644 (file)
@@ -56,12 +56,12 @@ static const struct {
        { "RecLockLatencyMs",  1000,  offsetof(struct ctdb_tunable, reclock_latency_ms) },
        { "RecoveryDropAllIPs", 120,  offsetof(struct ctdb_tunable, recovery_drop_all_ips) },
        { "VerifyRecoveryLock",   1,  offsetof(struct ctdb_tunable, verify_recovery_lock) },
-       { "VacuumDefaultInterval", 300,  offsetof(struct ctdb_tunable, vacuum_default_interval) },
+       { "VacuumDefaultInterval", 10,  offsetof(struct ctdb_tunable, vacuum_default_interval) },
        { "VacuumMaxRunTime",     30,  offsetof(struct ctdb_tunable, vacuum_max_run_time) },
        { "RepackLimit",      10000,  offsetof(struct ctdb_tunable, repack_limit) },
        { "VacuumLimit",       5000,  offsetof(struct ctdb_tunable, vacuum_limit) },
-       { "VacuumMinInterval",   60,  offsetof(struct ctdb_tunable, vacuum_min_interval) },
-       { "VacuumMaxInterval",  600,  offsetof(struct ctdb_tunable, vacuum_max_interval) },
+       { "VacuumMinInterval",   10,  offsetof(struct ctdb_tunable, vacuum_min_interval) },
+       { "VacuumMaxInterval",   10,  offsetof(struct ctdb_tunable, vacuum_max_interval) },
        { "VacuumFastPathCount", 60, offsetof(struct ctdb_tunable, vacuum_fast_path_count) },
        { "MaxQueueDropMsg",  1000000, offsetof(struct ctdb_tunable, max_queue_depth_drop_msg) },
        { "UseStatusEvents",     0,  offsetof(struct ctdb_tunable, use_status_events_for_monitoring) },