Add a tunable VacuumFastPathCount.
authorMichael Adam <obnox@samba.org>
Mon, 20 Dec 2010 16:42:25 +0000 (17:42 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 14 Mar 2011 12:35:47 +0000 (13:35 +0100)
This will control how many fast-path vacuuming runs wil have to
be done, before a full vacuuming will be triggered, i.e. one with
a db-traversal.

(This used to be ctdb commit 0d997ec7e61a7bee2cb05456f9c7d5e6f7a44797)

ctdb/include/ctdb_private.h
ctdb/server/ctdb_tunables.c

index 6cd49850e86a42f8a2ab3f68edf654a4a4fc9102..f960e205ee322a81b9e8f96a25dff737d3dad574 100644 (file)
@@ -119,6 +119,7 @@ struct ctdb_tunable {
        uint32_t allow_unhealthy_db_read;
        uint32_t stat_history_interval;
        uint32_t deferred_attach_timeout;
+       uint32_t vacuum_fast_path_count;
 };
 
 /*
index 0f8d7c8c77503e91fd6dbe05de67ff07f644103f..00ab899146afdac584a6f23ffbcab3d49558234b 100644 (file)
@@ -62,6 +62,7 @@ static const struct {
        { "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) },
+       { "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) },
        { "AllowUnhealthyDBRead", 0,  offsetof(struct ctdb_tunable, allow_unhealthy_db_read) },