数据保留策略​

数据保留策略 ​Simple IoT 定期清理历史数据,防止磁盘膨胀。

清理任务 ​每天凌晨 3:00(Asia/Shanghai)自动执行,由 DataRetentionService 调度。

PostgreSQL 数据 ​数据默认保留配置项已清除告警90 天simple.iot.retention.alarm-days推送日志30 天simple.iot.retention.push-log-days规则执行日志30 天simple.iot.retention.rule-exec-log-daysInfluxDB 遥测数据 ​数据默认保留配置项设备遥测(属性)180 天simple.iot.retention.telemetry-daysponytail: 硬删除,无降采样。查询性能下降时再加 CQ 或降采样任务。

配置示例 ​yamlsimple:

iot:

retention:

alarm-days: 90

push-log-days: 30

rule-exec-log-days: 30

telemetry-days: 180手动触发 ​清理任务基于 Spring @Scheduled,可通过管理接口或重启服务触发下一次执行。

Copyright © 2088 影月电竞大师赛 - 赛事与排位攻略 All Rights Reserved.
友情链接