TMAegis
Thêm quy tắc cho tdsql

TDSQL

TMA-TDSQL-2.11

Ensure Adequate Disk Space Monitoring Is Configured

Trung bìnhCấp 1Xem xét thủ côngtdsql

Mô tả

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).

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --include-manual.

# 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

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
tdsqlmonitoring
Tham chiếu
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 2.11 Ensure Adequate Disk Space Monitoring Is Configured