From 9e79e15b18a7148936278151f88a2bfebb22e5dd Mon Sep 17 00:00:00 2001 From: nroskill Date: Sun, 19 Dec 2021 20:31:47 +0800 Subject: [PATCH] support 2C in open_source --- src/clog/ob_clog_config.h | 2 +- src/clog/ob_ilog_store.h | 2 +- src/storage/ob_partition_worker.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clog/ob_clog_config.h b/src/clog/ob_clog_config.h index 71a12f069..c5f639950 100644 --- a/src/clog/ob_clog_config.h +++ b/src/clog/ob_clog_config.h @@ -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; diff --git a/src/clog/ob_ilog_store.h b/src/clog/ob_ilog_store.h index bbf37130c..03dd13118 100644 --- a/src/clog/ob_ilog_store.h +++ b/src/clog/ob_ilog_store.h @@ -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. diff --git a/src/storage/ob_partition_worker.cpp b/src/storage/ob_partition_worker.cpp index 521de4a8a..d59326e10 100644 --- a/src/storage/ob_partition_worker.cpp +++ b/src/storage/ob_partition_worker.cpp @@ -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;