whisper-resize.py fails with error message

Asked by Jeff Wasilko

We're running carbon-0.9.8 and I started with the default storage schema and changed it to:

[everything_1min_13months]
priority = 100
pattern = .*
retentions = 60:565920

I restarted carbon-cache and then ran whisper-resize on one of the databases but got this error:

<email address hidden>[/opt/graphite/storage/whisper/nfs/vg8_bo3/server_2] whisper-resize.py 60:565920 average_write_kb_sec.wsp
Traceback (most recent call last):
  File "/usr/bin/whisper-resize.py", line 70, in ?
    new_archives = [ parseRetentionDef(retentionDef) for retentionDef in args[1:] ]
  File "/usr/bin/whisper-resize.py", line 19, in parseRetentionDef
    (precision, points) = retentionDef.strip().split(':')
ValueError: need more than 1 value to unpack

Question information

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

You've got the args backwards, try this:

whisper-resize.py average_write_kb_sec.wsp 60:565920

Revision history for this message
Jeff Wasilko (jwasilko) said :
#2

Thanks chrismd, that solved my question.

Revision history for this message
Jeff Wasilko (jwasilko) said :
#3

Thanks! Not sure where I picked up that arg order!