rewrite time limit
This commit is contained in:
1 parent
cf920dc76f
commit
7ed62d66e9
3 files changed
+32
-32
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# cleanup-smartcam-data 部署说明
|
||||
|
||||

|
||||

|
||||
|
||||
## 文件结构
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
cleanup-smartcam-data/
|
||||
├── README.md
|
||||
├── assets/
|
||||
│ ├── cleanup-smartcam-data-flow.svg
|
||||
│ └── cleanup-smartcam-data-flow.png(旧版兼容文件)
|
||||
│ ├── cleanup-smartcam-data-flow.svg(旧版源文件)
|
||||
│ └── cleanup-smartcam-data-flow.png(当前流程图)
|
||||
├── bin/
|
||||
│ └── cleanup-smartcam-data
|
||||
├── systemd/
|
||||
@@ -72,7 +72,7 @@ sudo ./scripts/install.sh
|
||||
|
||||
- 开机2分钟后首次检查;
|
||||
- 之后每60分钟检查一次;
|
||||
- `/userdata` 空闲低于10GiB时开始安全清理;
|
||||
- 每次定时检查都会安全清理已确认上传成功的数据,不以空闲空间阈值作为清理条件;
|
||||
- 只清理 `processed_files.log` 中确认成功、且超过60分钟的数据;
|
||||
- 同时删除同一任务的:
|
||||
|
||||
@@ -83,10 +83,9 @@ sudo ./scripts/install.sh
|
||||
```
|
||||
|
||||
- 超过60分钟的0字节 raw,如果未被进程占用,也会按上述三件套删除;
|
||||
- 空闲低于5GiB时暂停采集,Producer继续上传;
|
||||
- 空闲低于3GiB时暂停整个 `smart_camera` 进程(持续检测、录像和识别一起暂停),Producer继续上传,并输出 CRITICAL 告警;
|
||||
- 暂停期间每2分钟检查一次;
|
||||
- 空闲恢复到10GiB后自动恢复采集,并停止2分钟检查;
|
||||
- 空闲低于3GiB时输出 CRITICAL 告警;
|
||||
- 清理使空闲恢复到5GiB后自动恢复 `smart_camera`;程序重新持续检测,达到鸟类确认门控后再录像和识别,并停止2分钟快速检查;
|
||||
- 无法读取成功记录时不删除数据。
|
||||
|
||||
## 验证
|
||||
|
||||
Reference in new issue
Block a user