TMAegisBeta
更多 tdsql 规则

TDSQL

TMA-TDSQL-12.7

Ensure ZooKeeper Orphan Node Cleanup Is Configured

低级别 1人工审核tdsql

说明

TDSQL creates many task/alert/state ZNodes in ZooKeeper. Abnormal exits or network jitter can produce orphan nodes, and long-term accumulation causes: ZK memory bloat, affecting overall availability Residual alert/task nodes leaking historical sensitive information Historical credential/password fields remaining readable long-term TDSQL provides two cleanup mechanisms: <clear_zknode value="15"/> - cleans up ordinary ...

检查方式

审计方法: 人工审核

此项建议无法自动检查。当您传入 --include-manual 时,扫描结果会列出该项并附带这些说明。

# Check scheduler.xml grep -E '(clear_zknode|alarm_zknode)' /path/to/tdsql/conf/scheduler.xml # Check for residual historical nodes in ZK (should not exceed recent counts) zkCli.sh -server <zk_ip>:<port> ls /tdsql/job ls /tdsql/alarm

修复方式

修复方法: 操作指南或基础设施补丁

<!-- Enable orphan node cleanup (retain 15 days) --> <clear_zknode value="15"/> <!-- Enable alert node cleanup (24-hour expiration, checked hourly) --> <alarm_zknode open_clear="1" expire_time="86400" check_interval="3600"/>

属性

操作系统
任意
标签
tdsqlzookeeper
参考
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 12.7 Ensure ZooKeeper Orphan Node Cleanup Is Configured