Issue
Large LVE snapshot files in /var/lve/snapshots/*/
How to reduce snapshot files size?
How to reduce the number of LVE snapshot files?
Environment
- CloudLinux
- LVE Stats
Solution
-
To reduce LVE snapshot files size, the following configuration options can be tuned in
/etc/sysconfig/lvestats.config/SnapshotSaver.cfg
:snapshots_per_minute=1
max_snapshots_per_incident=5
compresslevel=5 -
"keep_history_days" parameter in the "
/etc/sysconfig/lvestats2
" can be used to set the number of days that snapshots will be stored on disk -
Restart lvestats service to apply the changes:
systemctl restart lvestats
Cause
Currently, the whole SQL query payload is stored in a snapshot when user hit some LVE limit. No matter how big it is.
Links:
https://docs.cloudlinux.com/shared/cloudlinux_os_components/#configuration
Comments
0 comments
Please sign in to leave a comment.