TMAegis
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