support 2C in open_source

This commit is contained in:
nroskill 2021-12-19 20:31:47 +08:00 committed by LINxiansheng
parent d663911730
commit 9e79e15b18
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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.

View File

@ -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;