FEATURE: config placeholder for data_disk_write_limit_percentage

This commit is contained in:
obdev
2024-02-10 11:01:03 +00:00
committed by ob-robot
parent 63f21d3cde
commit 773bb8a3f1
2 changed files with 7 additions and 0 deletions

View File

@ -401,6 +401,12 @@ DEF_INT(freeze_trigger_percentage, OB_TENANT_PARAMETER, "20", "(0, 100)",
DEF_INT(writing_throttling_trigger_percentage, OB_TENANT_PARAMETER, "60", "(0, 100]", DEF_INT(writing_throttling_trigger_percentage, OB_TENANT_PARAMETER, "60", "(0, 100]",
"the threshold of the size of the mem store when writing_limit will be triggered. Rang:(0,100]. setting 100 means turn off writing limit", "the threshold of the size of the mem store when writing_limit will be triggered. Rang:(0,100]. setting 100 means turn off writing limit",
ObParameterAttr(Section::TRANS, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); ObParameterAttr(Section::TRANS, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_INT(data_disk_write_limit_percentage, OB_CLUSTER_PARAMETER, "0", "[0, 100)",
"used to stop user write operations. "
"When the user data disk reaches this watermark, SQL requests will report that the disk is full. "
"The configuration should be greater than data_disk_usage_limit_percentage, "
"with the recommended setting being: (1 - memstore_limit_size / data_disk_size) * 100%",
ObParameterAttr(Section::TENANT, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_INT(_tx_share_memory_limit_percentage, OB_TENANT_PARAMETER, "0", "[0, 100)", DEF_INT(_tx_share_memory_limit_percentage, OB_TENANT_PARAMETER, "0", "[0, 100)",
"Used to control the percentage of tenant memory limit that multiple modules in the transaction layer can collectively use. " "Used to control the percentage of tenant memory limit that multiple modules in the transaction layer can collectively use. "
"This primarily includes user data (MemTable), transaction data (TxData), etc. " "This primarily includes user data (MemTable), transaction data (TxData), etc. "

View File

@ -59,6 +59,7 @@ datafile_next
datafile_size datafile_size
data_dir data_dir
data_disk_usage_limit_percentage data_disk_usage_limit_percentage
data_disk_write_limit_percentage
data_storage_error_tolerance_time data_storage_error_tolerance_time
data_storage_warning_tolerance_time data_storage_warning_tolerance_time
ddl_thread_score ddl_thread_score