提交 9e79e15b 编写于 作者: N nroskill 提交者: LINGuanRen

support 2C in open_source

上级 d6639117
......@@ -69,7 +69,7 @@ const uint64_t CLOG_SWITCH_LEADER_ALLOW_THRESHOLD = 5000;
// ==== loop interval ====
// state change check interval
const int32_t CLOG_STATE_DRIVER_INTERVAL = 50 * 1000;
const int32_t CLOG_STATE_DRIVER_INTERVAL = 200 * 1000;
const int32_t CLOG_LOG_DELAY_STATICS_INTERVAL = 3 * 1000 * 1000;
const int32_t CLOG_CHECK_REPLICA_STATE_INTERVAL = 2 * 1000 * 1000;
const int64_t CLOG_CHECK_PARENT_INTERVAL = 3 * 1000 * 1000;
......
......@@ -113,7 +113,7 @@ public:
private:
const static int64_t DEFAULT_MEMSTORE_COUNT = 16;
const static int64_t TIMER_TASK_INTERVAL = 1000;
const static int64_t TIMER_TASK_INTERVAL = 100 * 1000; // 100ms
// PINNED_MEMORY_SIZE should set as ObIlogMemstore::CURSOR_SIZE_TRIGGER(32MB)
// however, in concurrent scenarios, it will causes that the size of
// ObIlogMemstore will exceed than ObIlogMemstore::CURSOR_SIZE_TRIGGER.
......
......@@ -73,7 +73,7 @@ void ObPartitionWorker::run1()
int ret = OB_SUCCESS;
int64_t total_time = 0;
int64_t loop_count = 0;
static const int64_t INTERVAL_US = 50 * 1000; // 50ms
int64_t INTERVAL_US = (lib::is_mini_mode() ? 500 : 50) * 1000; // 500ms or 50ms
lib::set_thread_name("PartWorker");
int64_t dump_elr_statistic_ts = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册