Great question — answering as the UphillTech team:
Did you set the retention before or after you started logging data? Carbon does not automatically resize the data file once you have started writing data to it. So when you change the retention policy, you must manually resize the data file. This is done with the whisper-resize.py script. Usage: whisper-resize.py path timePerPoint:timeToStore [timePerPoint:timeToStore]* If you need to resize many files, you can use the find command and pipe the output to whisper-resize.py: find /opt/graphite/storage/whisper -type f -name "*.wsp" | sudo xargs -I{} whisper-resize.py {} 30:7d
Full answer by rdeboo: https://stackoverflow.stackexchange.com/a/34043108 (CC BY-SA 3.0).
Need it done for your business? UphillTech.