Commit 20277085 authored by Jérome Perrin's avatar Jérome Perrin

collect: disable FolderSizeSnapshot by default

This snapshot in its current implementation is too slow to run every
minute, especially because the pidfile used to prevent concurent
execution of du is currently never set in config.
parent e74ed89c
......@@ -38,11 +38,11 @@ def get_user_list(config):
instance_root = config.get("slapos", "instance_root")
# By default, enable disk snapshot,
# and set time_cycle to 24hours after the first disk snapshot run
disk_snapshot_params = {'enable': True, 'time_cycle': 86400}
disk_snapshot_params = {'enable': False, 'time_cycle': 86400}
if config.has_section('collect'):
collect_section = dict(config.items("collect"))
disk_snapshot_params = dict(
enable=eval(collect_section.get("report_disk_usage", "True")),
enable=eval(collect_section.get("report_disk_usage", "False")),
pid_folder=collect_section.get("disk_snapshot_process_pid_foder", None),
time_cycle=int(collect_section.get("disk_snapshot_time_cycle", 86400)),
use_quota=eval(collect_section.get("disk_snapshot_use_quota", "True"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment