fixed 990, provide a parameter to assign the size of clog disk (#1003)

* fixed , provide a parameter to assign the size of clog disk

* fixed , remove redundant log

* fixed , modify codes accroding to comment

* fixed , change statfs to statvfs

* fixed #990, rename clog_disk_limit_size to log_disk_size

* fixed #990, merge master and add config to observer.include.yaml
This commit is contained in:
刘汉乙
2022-08-26 11:11:37 +08:00
committed by GitHub
parent 281285bde0
commit cc7f230ae5
9 changed files with 119 additions and 32 deletions

4
src/share/parameter/ob_parameter_seed.ipp Normal file → Executable file
View File

@ -762,6 +762,10 @@ DEF_INT(clog_disk_utilization_threshold, OB_CLUSTER_PARAMETER, "80", "[10, 100)"
"clog disk utilization threshold before reuse clog files, should be less than clog_disk_usage_limit_percentage. "
"Range: [10, 100)",
ObParameterAttr(Section::TRANS, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_CAP_WITH_CHECKER(log_disk_size, OB_CLUSTER_PARAMETER, "0G", common::ObConfigLogDiskSizeChecker,"[0G,)",
"maximum of clog disk size before reuse clog files, should be less than log_disk_size."
"Range: [0G, +∞)",
ObParameterAttr(Section::TRANS, Source::DEFAULT, EditLevel::STATIC_EFFECTIVE));
DEF_TIME(election_blacklist_interval, OB_CLUSTER_PARAMETER, "1800s", "[0s, 24h]",
"If leader_revoke, this replica cannot be elected to leader in election_blacklist_interval"