diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bf8ca41ac..e1d9d20990 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Features - [#2410](https://github.com/influxdb/influxdb/pull/2410): If needed, brokers respond with data nodes for peer shard replication. +- [#2469](https://github.com/influxdb/influxdb/pull/2469): Reduce default max topic size from 1GB to 50MB. ### Bugfixes - [#2446] (https://github.com/influxdb/influxdb/pull/2446): Correctly count number of queries executed. Thanks @neonstalwart diff --git a/cmd/influxd/config.go b/cmd/influxd/config.go index f464cf1c5b..c393c3c91c 100644 --- a/cmd/influxd/config.go +++ b/cmd/influxd/config.go @@ -53,12 +53,12 @@ const ( // DefaultBrokerTruncationInterval is the default period between truncating topics. DefaultBrokerTruncationInterval = 10 * time.Minute - // DefaultMaxTopicSize is the default maximum size in bytes a topic can consume on disk of a broker. - DefaultBrokerMaxTopicSize = 1024 * 1024 * 1024 - // DefaultMaxTopicSize is the default maximum size in bytes a segment can consume on disk of a broker. DefaultBrokerMaxSegmentSize = 10 * 1024 * 1024 + // DefaultMaxTopicSize is the default maximum size in bytes a topic can consume on disk of a broker. + DefaultBrokerMaxTopicSize = 5 * DefaultBrokerMaxSegmentSize + // DefaultRaftApplyInterval is the period between applying commited Raft log entries. DefaultRaftApplyInterval = 10 * time.Millisecond diff --git a/etc/config.sample.toml b/etc/config.sample.toml index e011129252..40d1304b9c 100644 --- a/etc/config.sample.toml +++ b/etc/config.sample.toml @@ -77,7 +77,7 @@ enabled = true # Where the Raft logs are stored. The user running InfluxDB will need read/write access. dir = "/var/opt/influxdb/raft" truncation-interval = "10m" -max-topic-size = 1073741824 +max-topic-size = 52428800 max-segment-size = 10485760 # Raft configuration. Controls the distributed consensus system.