diff --git a/cmd/influxd/launcher/cmd.go b/cmd/influxd/launcher/cmd.go index 12b92b8a36e..3f2a523a9f7 100644 --- a/cmd/influxd/launcher/cmd.go +++ b/cmd/influxd/launcher/cmd.go @@ -539,6 +539,11 @@ func (o *InfluxdOpts) BindCliOpts() []cli.Opt { Flag: "storage-compact-full-write-cold-duration", Desc: "The duration at which the engine will compact all TSM files in a shard if it hasn't received a write or delete.", }, + { + DestP: &o.StorageConfig.Data.CompactThroughput, + Flag: "storage-compact-throughput", + Desc: "The rate limit in bytes per second that we will allow TSM compactions to write to disk. This option overwrites throughput-burst when throughput > throughput-burst", + }, { DestP: &o.StorageConfig.Data.CompactThroughputBurst, Flag: "storage-compact-throughput-burst", diff --git a/cmd/influxd/upgrade/config.go b/cmd/influxd/upgrade/config.go index abedd66a7fa..88a117a36e1 100644 --- a/cmd/influxd/upgrade/config.go +++ b/cmd/influxd/upgrade/config.go @@ -26,6 +26,7 @@ var passthroughConfigRules = map[string]string{ "data.cache-snapshot-memory-size": "storage-cache-snapshot-memory-size", "data.cache-snapshot-write-cold-duration": "storage-cache-snapshot-write-cold-duration", "data.compact-full-write-cold-duration": "storage-compact-full-write-cold-duration", + "data.compact-throughput": "storage-compact-throughput", "data.compact-throughput-burst": "storage-compact-throughput-burst", "data.max-concurrent-compactions": "storage-max-concurrent-compactions", "data.max-index-log-file-size": "storage-max-index-log-file-size",