When will whisper delete the old data

Asked by Radu

The configs that I am using for storage-schemas.conf:

pattern = .*
retentions = 30s:14d

But the disk usage for whisper keeps going up and the data was not destroyed after 14 days and any time after that?

Using the current EPEL RPMs 0.9.12 and keeping an eye on:
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-b73b1ba5d5

Thank you for your help!

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Denis Zhdanov
Solved:
Last query:
Last reply:
Revision history for this message
Best Denis Zhdanov (deniszhdanov) said :
#1

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

Revision history for this message
Radu (radu-db) said :
#2

Thanks Denis Zhdanov, that solved my question.