[FEAT MERGE] Merge syslog user experience improvement to master
Co-authored-by: Charles0429 <xiezhenjiang@gmail.com> Co-authored-by: tino247 <tino247@126.com> Co-authored-by: chaser-ch <chaser.ch@antgroup.com>
This commit is contained in:
@ -128,6 +128,12 @@ int ObServerReloadConfig::operator()()
|
||||
{
|
||||
GMEMCONF.reload_config(GCONF);
|
||||
const int64_t limit_memory = GMEMCONF.get_server_memory_limit();
|
||||
OB_LOGGER.set_info_as_wdiag(GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_4_1_0_0);
|
||||
// reload log config again after get MIN_CLUSTER_VERSION
|
||||
if (OB_FAIL(ObReloadConfig::operator()())) {
|
||||
real_ret = ret;
|
||||
LOG_WARN("ObReloadConfig operator() failed", K(ret));
|
||||
}
|
||||
const int64_t reserved_memory = GCONF.cache_wash_threshold;
|
||||
const int64_t reserved_urgent_memory = GCONF.memory_reserved;
|
||||
LOG_INFO("set limit memory", K(limit_memory));
|
||||
@ -247,6 +253,8 @@ int ObServerReloadConfig::operator()()
|
||||
// syslog bandwidth limitation
|
||||
share::ObTaskController::get().set_log_rate_limit(
|
||||
GCONF.syslog_io_bandwidth_limit.get_value());
|
||||
share::ObTaskController::get().set_diag_per_error_limit(
|
||||
GCONF.diag_syslog_per_error_limit.get_value());
|
||||
|
||||
get_unis_global_compat_version() = GET_MIN_CLUSTER_VERSION();
|
||||
lib::g_runtime_enabled = true;
|
||||
|
||||
Reference in New Issue
Block a user