Merge pull request from influxdata/cli/compact-series-file

Added 'compact-series-file' command
pull/831/head
Scott Anderson 2020-03-12 10:22:19 -06:00 committed by GitHub
commit 98651d7d40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 12 deletions
content/v2.0/reference/cli/influxd/inspect

View File

@ -18,7 +18,8 @@ influxd inspect [subcommand]
## Subcommands
| Subcommand | Description |
|:---------- |:----------- |
| [build-tsi](/v2.0/reference/cli/influxd/inspect/build-tsi/) | Rebuild the TSI index and series file. |
| [build-tsi](/v2.0/reference/cli/influxd/inspect/build-tsi/) | Rebuild the TSI index and series file |
| [compact-series-file](/v2.0/reference/cli/influxd/inspect/compact-series-file) | Compact the series file |
| [dump-tsi](/v2.0/reference/cli/influxd/inspect/dump-tsi/) | Output low level TSI information |
| [dumpwal](/v2.0/reference/cli/influxd/inspect/dumpwal/) | Output TSM data from WAL files |
| [export-blocks](/v2.0/reference/cli/influxd/inspect/export-blocks/) | Export block data |

View File

@ -0,0 +1,27 @@
---
title: influxd inspect compact-series-file
description: >
The `influxd inspect compact-series-file` command compacts the series file by
removing deleted series.
v2.0/tags: [inspect]
menu:
v2_0_ref:
parent: influxd inspect
weight: 301
---
The `influxd inspect compact-series-file` command compacts the [series file](/v2.0/reference/glossary/#series-file)
by removing deleted series.
## Usage
```sh
influxd inspect compact-series-file [flags]
```
## Flags
| Flag | Description | Input Type |
|:---- |:----------- |:----------:|
| `--concurrency` | Number of workers to dedicate to compaction (default = `GOMAXPROCS`, max `8`) | integer |
| `-h`, `--help` | Help for the `compact-series-file` command | |
| `--sfile-path` | Path to the series file directory (default: `~/.influxdbv2/engine/_series`) | string |
| `--tsi-path` | Path to the TSI index directory (default: `~/.influxdbv2/engine/index`) | string |