TMAegis
Weitere Regeln für tdsql

TMA-TDSQL-2.11

Ensure Adequate Disk Space Monitoring Is Configured

MittelStufe 1Manuelle Prüfungtdsql

Beschreibung

Disk space monitoring with alerting should be configured for all TDSQL partitions (data, log, backup, temporary directories). TDSQL includes a built-in log cleanup mechanism: OSS logs are retained for up to 30 days / 100 GB (cleaned every 12 hours), and Manager logs up to 20 GB (cleaned every 3 minutes).

So wird geprüft

Prüfmethode: Manuelle Prüfung

Diese Empfehlung kann nicht automatisch geprüft werden. Ein Scan führt sie mit diesen Anweisungen auf, wenn Sie --include-manual übergeben.

# Check current disk usage df -h /data/tdsql/ /tdsqlbackup/ /data/home/zkback/ 2>/dev/null # Check the TDSQL log cleanup configuration grep -A3 'log_clean' /path/to/tdsql/conf/scheduler.xml grep -A3 'clear_log' /path/to/tdsql/conf/scheduler.xml

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

1. Configure disk alerts at 80% and 90% thresholds. 2. Verify that TDSQL log cleanup is enabled: <log_clean enable="1" max_save_days="30" max_size="100000000000" hz="12"/> <clear_log enable="on" resv_capacity="20" distance_time="3" /> 3. Deploy external monitoring (Prometheus, Zabbix) covering all TDSQL partitions.

Eigenschaften

Betriebssysteme
Beliebig
Tags
tdsqlmonitoring
Referenz
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 2.11 Ensure Adequate Disk Space Monitoring Is Configured