Skip to content

Commit

Permalink
Reduce maximum topic size to 50MB
Browse files Browse the repository at this point in the history
1GB per topic seems way to large. Instead make it 50MB. Topic data will
never be deleted until at least 1 data node has replicated the data.
  • Loading branch information
otoolep committed May 1, 2015
1 parent 2320241 commit 8ed9e68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cmd/influxd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion etc/config.sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8ed9e68

Please sign in to comment.