Add a new entry to configuration.json: ht_resize_interval. This
controls how often the HashtableResizerTask should be scheduled to
check if the HashTables need resizing.
Change-Id: Icf312269079956a52bbe1ccdce358804839c4ff9
Reviewed-on: http://review.couchbase.org/77711
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
"default": "47",
"type": "size_t"
},
+ "ht_resize_interval": {
+ "default": "60",
+ "descr": "Interval in seconds to wait between HashtableResizerTask executions.",
+ "type": "size_t"
+ },
"ht_size": {
"default": "0",
"type": "size_t"
#include "config.h"
+#include "ep_engine.h"
#include "htresizer.h"
-
#include "kv_bucket_iface.h"
#include <phosphor/phosphor.h>
#include <memory>
-static const double FREQUENCY(60.0);
-
/**
* Look at all the hash tables and make sure they're sized appropriately.
*/
"Hashtable resizer",
TaskId::HashtableResizerVisitorTask);
- snooze(FREQUENCY);
+ snooze(engine->getConfiguration().getHtResizeInterval());
return true;
}
"ep_hlc_drift_ahead_threshold_us",
"ep_hlc_drift_behind_threshold_us",
"ep_ht_locks",
+ "ep_ht_resize_interval",
"ep_ht_size",
"ep_initfile",
"ep_item_num_based_new_chk",
"ep_hlc_drift_ahead_threshold_us",
"ep_hlc_drift_behind_threshold_us",
"ep_ht_locks",
+ "ep_ht_resize_interval",
"ep_ht_size",
"ep_initfile",
"ep_io_compaction_read_bytes",