← Back to team overview

graphite-dev team mailing list archive

Re: [Question #276143]: When will whisper delete the old data

 

Question #276143 on Graphite changed:
https://answers.launchpad.net/graphite/+question/276143

    Status: Open => Answered

Denis Zhdanov proposed the following answer:
Whisper is fixed size storage. When Graphite creates new metric it allocates space in advance, so, it will newer grow. 
So, disk usage can only grow when you create new metrics (and maybe even not update them anymore).
In that case you can simply delete old whisper files (non-updated in last 14 days, for example) and empty directories with simply cron job, e.g. :
find /opt/graphite/storage/whisper -type f -name '*.wsp' -mtime +14 -delete
find /opt/graphite/storage/whisper -type d -empty -delete

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.