increase the upper limit of memory_limit_percentage to 95

This commit is contained in:
obdev
2023-08-31 13:40:49 +00:00
committed by ob-robot
parent 386d16f1a1
commit a7aa01b993
2 changed files with 3 additions and 2 deletions

View File

@ -200,8 +200,8 @@ DEF_BOOL(enable_syslog_recycle, OB_CLUSTER_PARAMETER, "False",
"specifies whether log file recycling is turned on. " "specifies whether log file recycling is turned on. "
"Value: True:turned on; False: turned off", "Value: True:turned on; False: turned off",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_INT(memory_limit_percentage, OB_CLUSTER_PARAMETER, "80", "[10, 90]", DEF_INT(memory_limit_percentage, OB_CLUSTER_PARAMETER, "80", "[10, 95]",
"the size of the memory reserved for internal use(for testing purpose). Range: [10, 90]", "the size of the memory reserved for internal use(for testing purpose). Range: [10, 95]",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_CAP(cache_wash_threshold, OB_CLUSTER_PARAMETER, "4GB", "[0B,]", DEF_CAP(cache_wash_threshold, OB_CLUSTER_PARAMETER, "4GB", "[0B,]",
"size of remaining memory at which cache eviction will be triggered. Range: [0,+∞)", "size of remaining memory at which cache eviction will be triggered. Range: [0,+∞)",

View File

@ -5686,6 +5686,7 @@ int ObPartTransCtx::switch_to_follower_gracefully(ObIArray<ObTxCommitCallback> &
if (pending_write_) { if (pending_write_) {
TRANS_LOG(INFO, "current tx is executing stmt", K(*this)); TRANS_LOG(INFO, "current tx is executing stmt", K(*this));
mt_ctx_.wait_pending_write(); mt_ctx_.wait_pending_write();
timeguard.click();
need_submit_log = true; need_submit_log = true;
} else if (!is_committing_()) { } else if (!is_committing_()) {
need_submit_log = true; need_submit_log = true;