@@ -59,6 +59,7 @@ These are the tools included and their functionality.
59
59
* ** json** -- Convert newline separated lists to JSON arrays.
60
60
* ** list** -- Discover and verify metrics.
61
61
* ** locate** -- Calculate metric locations from the hash ring.
62
+ * ** modify** -- Resize archive or change aggregation policy.
62
63
* ** rebalance** -- Move inconsistent metrics to the correct location
63
64
and delete the source immediately after successful backfill.
64
65
* ** restore** -- Restore from a tar archive.
@@ -216,6 +217,33 @@ cron job similar to this:
216
217
This checks that the directory has not been modified in more than 1 day
217
218
which, in most cases, avoids race conditions.
218
219
220
+ Modify command
221
+ --------------
222
+
223
+ Modify command supports two operations: resize, or update aggregation policy.
224
+
225
+ Resize mode allows user to resize one archive at a time. It only change the
226
+ targeting archive and does not affect other archives. Use ` -index ` to specify
227
+ resized archives. Use ` -retention ` to specify new policy (with the same format in whisper
228
+ configuration). To resize to bigger time range, modify command upsample data
229
+ from lower-resolution archives.
230
+
231
+ Example:
232
+
233
+ $ bucky modify -index 1 -retention 1m:30d -f 100_olddata.wsp
234
+
235
+ Change aggregation policy.
236
+ Other than changing policy, this command would also
237
+ try to correct data if it's changing policy from average -> sum, or sum -> average.
238
+ For other types of changes, it would only do a simple data copy.
239
+
240
+ Example:
241
+
242
+ $ bucky modify -f small.wsp.new -agg average
243
+
244
+ By default, both tool would copy the original whisper file as a new back in the
245
+ same location.
246
+
219
247
Google Snappy Compression
220
248
-------------------------
221
249
0 commit comments