diff --git a/src/observer/omt/ob_tenant.cpp b/src/observer/omt/ob_tenant.cpp index 7066ba2d4b..431219257e 100644 --- a/src/observer/omt/ob_tenant.cpp +++ b/src/observer/omt/ob_tenant.cpp @@ -380,7 +380,7 @@ void ObResourceGroup::check_worker_count() { ObTenantConfigGuard tenant_config(TENANT_CONF(tenant_->id())); enable_dynamic_worker = tenant_config.is_valid() ? tenant_config->_ob_enable_dynamic_worker : true; - threshold = tenant_config.is_valid() ? tenant_config->_worker_long_stall_threshold : 3 * 1000; + threshold = tenant_config.is_valid() ? tenant_config->_stall_threshold_for_dynamic_worker : 3 * 1000; } DLIST_FOREACH_REMOVESAFE(wnode, workers_) { const auto w = static_cast(wnode->get_data()); @@ -1378,7 +1378,7 @@ void ObTenant::check_worker_count() { ObTenantConfigGuard tenant_config(TENANT_CONF(id_)); enable_dynamic_worker = tenant_config.is_valid() ? tenant_config->_ob_enable_dynamic_worker : true; - threshold = tenant_config.is_valid() ? tenant_config->_worker_long_stall_threshold : 3 * 1000; + threshold = tenant_config.is_valid() ? tenant_config->_stall_threshold_for_dynamic_worker : 3 * 1000; } // assume that high priority and normal priority were busy. DLIST_FOREACH_REMOVESAFE(wnode, workers_) { diff --git a/src/share/parameter/ob_parameter_seed.ipp b/src/share/parameter/ob_parameter_seed.ipp index 315c331b80..f56feab64a 100755 --- a/src/share/parameter/ob_parameter_seed.ipp +++ b/src/share/parameter/ob_parameter_seed.ipp @@ -1542,6 +1542,6 @@ DEF_BOOL(_enable_system_tenant_memory_limit, OB_CLUSTER_PARAMETER, "True", "specifies whether allowed to limit the memory of tenant 500", ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); #endif -DEF_TIME(_worker_long_stall_threshold, OB_TENANT_PARAMETER, "3ms", "[0ms,)", +DEF_TIME(_stall_threshold_for_dynamic_worker, OB_TENANT_PARAMETER, "3ms", "[0ms,)", "threshold of dynamic worker works", ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); diff --git a/tools/deploy/mysql_test/test_suite/inner_table/r/mysql/all_virtual_sys_parameter_stat.result b/tools/deploy/mysql_test/test_suite/inner_table/r/mysql/all_virtual_sys_parameter_stat.result index 32b9574d51..e1cf1e2e0b 100644 --- a/tools/deploy/mysql_test/test_suite/inner_table/r/mysql/all_virtual_sys_parameter_stat.result +++ b/tools/deploy/mysql_test/test_suite/inner_table/r/mysql/all_virtual_sys_parameter_stat.result @@ -348,6 +348,7 @@ _server_standby_fetch_log_bandwidth_limit _session_context_size _sort_area_size _sqlexec_disable_hash_based_distagg_tiv +_stall_threshold_for_dynamic_worker _storage_meta_memory_limit_percentage _temporary_file_io_area_size _trace_control_info @@ -361,7 +362,6 @@ _tx_result_retention _upgrade_stage _wait_interval_after_truncate _with_subquery -_worker_long_stall_threshold _xa_gc_interval _xa_gc_timeout _xsolapi_generate_with_clause