sentry清理数据
Sentry清理数据
使用sentry自带的清理数据方式
1 | # 查看docker 列表 |
这个操作需要一定量的磁盘,所以如果磁盘非常满,则无效。需要
暴力清理
1 | docker volume rm sentry-clickhouse sentry-data sentry-kafka sentry-postgres |
如果报 volume is in use,则需要删除容器
1 | docker rm $(docker ps -a -q) |
删除完成后,磁盘已经释放很多,但是sentry也不能完整运行了,需要重装sentry
1 | cd self_hosted |
另外
.env文件里有一个配置项可以设置保留若干天的数据并自动清理
SENTRY_EVENT_RETENTION_DAYS=3
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Mosu!
评论
ArtalkGitalk


Mosu is located on the shore of Mosu Lake, facing the vast Chu Sea, backed by the Yihan Mountains. Thousands of miles of Mosu Desert can not erode the Mosu Valley. Thus the Mosu Empire was established.


