You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improved CLI 2: explicit CLI flags for compaction settings (#7061)
Before:
```sh
$ RERUN_CHUNK_MAX_ROWS=4096 RERUN_CHUNK_MAX_BYTES=1048576 rerun rrd compact /my/recordings/*.rrd -o output.rrd
```
After:
```sh
$ rerun rrd compact --max-rows 4096 --max-bytes=1048576 /my/recordings/*.rrd -o output.rrd
```
```sh
$ rerun rrd compact --help
Compacts the contents of one or more .rrd/.rbl files and writes the result to a new file.
Uses the usual environment variables to control the compaction thresholds: `RERUN_CHUNK_MAX_ROWS`, `RERUN_CHUNK_MAX_ROWS_IF_UNSORTED`, `RERUN_CHUNK_MAX_BYTES`.
Unless explicit flags are passed, in which case they will override environment values.
Examples:
* `RERUN_CHUNK_MAX_ROWS=4096 RERUN_CHUNK_MAX_BYTES=1048576 rerun rrd compact /my/recordings/*.rrd -o output.rrd`
* `rerun rrd compact --max-rows 4096 --max-bytes=1048576 /my/recordings/*.rrd -o output.rrd`
Usage: rerun rrd compact [OPTIONS] --output <dst.(rrd|rbl)> [PATH_TO_INPUT_RRDS]...
Arguments:
[PATH_TO_INPUT_RRDS]...
Options:
-o, --output <dst.(rrd|rbl)>
--max-bytes <MAX_BYTES>
What is the threshold, in bytes, after which a Chunk cannot be compacted any further?
Overrides RERUN_CHUNK_MAX_BYTES if set.
--max-rows <MAX_ROWS>
What is the threshold, in rows, after which a Chunk cannot be compacted any further?
Overrides RERUN_CHUNK_MAX_ROWS if set.
--max-rows-if-unsorted <MAX_ROWS_IF_UNSORTED>
What is the threshold, in rows, after which a Chunk cannot be compacted any further?
This specifically applies to _non_ time-sorted chunks.
Overrides RERUN_CHUNK_MAX_ROWS_IF_UNSORTED if set.
-h, --help
Print help (see a summary with '-h')
```
- Part of #7048
0 commit comments