}
ldout(cct,20) << "worker waiting" << dendl;
- cct->get_heartbeat_map()->reset_timeout(hb, 4, 0);
- _cond.WaitInterval(cct, _lock, utime_t(2, 0));
+ cct->get_heartbeat_map()->reset_timeout(
+ hb,
+ cct->_conf->threadpool_default_timeout,
+ 0);
+ _cond.WaitInterval(cct, _lock,
+ utime_t(
+ cct->_conf->threadpool_empty_queue_max_wait, 0));
}
ldout(cct,1) << "worker finish" << dendl;
// determines whether PGLog::check() compares written out log to stored log
OPTION(osd_debug_pg_log_writeout, OPT_BOOL, false)
+// default timeout while caling WaitInterval on an empty queue
+OPTION(threadpool_default_timeout, OPT_INT, 60)
+// default wait time for an empty queue before pinging the hb timeout
+OPTION(threadpool_empty_queue_max_wait, OPT_INT, 2)
+
OPTION(leveldb_write_buffer_size, OPT_U64, 8 *1024*1024) // leveldb write buffer size
OPTION(leveldb_cache_size, OPT_U64, 128 *1024*1024) // leveldb cache size
OPTION(leveldb_block_size, OPT_U64, 0) // leveldb block size