@@ -59,6 +59,7 @@ These are the tools included and their functionality.
5959 * ** json** -- Convert newline separated lists to JSON arrays.
6060 * ** list** -- Discover and verify metrics.
6161 * ** locate** -- Calculate metric locations from the hash ring.
62+ * ** modify** -- Resize archive or change aggregation policy.
6263 * ** rebalance** -- Move inconsistent metrics to the correct location
6364 and delete the source immediately after successful backfill.
6465 * ** restore** -- Restore from a tar archive.
@@ -216,6 +217,33 @@ cron job similar to this:
216217This checks that the directory has not been modified in more than 1 day
217218which, in most cases, avoids race conditions.
218219
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+
219247Google Snappy Compression
220248-------------------------
221249
0 commit comments