Skip to content

Commit

Permalink
influxdb.conf: Reduce write load
Browse files Browse the repository at this point in the history
  • Loading branch information
christianTF authored Feb 7, 2022
1 parent 76ff0eb commit 39b4db1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/influxdb/influxdb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
# disks or when WAL write contention is seen. A value of 0s fsyncs every write to the WAL.
# Values in the range of 0-100ms are recommended for non-SSD disks.
# wal-fsync-delay = "0s"
wal-fsync-delay = "0s"


# The type of shard index to use for new shards. The default is an in-memory index that is
Expand Down Expand Up @@ -89,18 +90,21 @@
# which the engine will snapshot the cache and write it to
# a new TSM file if the shard hasn't received writes or deletes
# cache-snapshot-write-cold-duration = "10m"
cache-snapshot-write-cold-duration = "20m"

# CompactFullWriteColdDuration is the duration at which the engine
# will compact all TSM files in a shard if it hasn't received a
# write or delete
# compact-full-write-cold-duration = "4h"
compact-full-write-cold-duration = "24h"

# The maximum number of concurrent full and level compactions that can run at one time. A
# value of 0 results in 50% of runtime.GOMAXPROCS(0) used at runtime. Any number greater
# than 0 limits compactions to that value. This setting does not apply
# to cache snapshotting.
# max-concurrent-compactions = 0

max-concurrent-compactions = 1

# CompactThroughput is the rate limit in bytes per second that we
# will allow TSM compactions to write to disk. Note that short bursts are allowed
# to happen at a possibly larger value, set by CompactThroughputBurst
Expand Down Expand Up @@ -137,6 +141,7 @@
# Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
# Values without a size suffix are in bytes.
# max-index-log-file-size = "1m"
max-index-log-file-size = "5m"

# The size of the internal cache used in the TSI index to store previously
# calculated series results. Cached results will be returned quickly from the cache rather
Expand Down

0 comments on commit 39b4db1

Please sign in to comment.