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>
Wed, 9 Mar 2011 23:37:01 +0000 (00:37 +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.

include/ctdb_private.h
server/ctdb_tunables.c

index dc04a22f061bbf0c83c0bc3e9dc00a5cd4e0a953..08c98783962cda059556770ce3ec0bf49b1e7b35 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) },