config.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. bind-address = "0.0.0.0"
  2. [logging]
  3. level = "debug"
  4. file = "/opt/influxdb/shared/data/influxdb.log" # stdout to log to standard out
  5. [admin]
  6. port = 8083 # binding is disabled if the port isn't set
  7. assets = "/opt/influxdb/current/admin"
  8. [api]
  9. port = 8086 # binding is disabled if the port isn't set
  10. read-timeout = "5s"
  11. [input_plugins]
  12. [input_plugins.graphite]
  13. enabled = true
  14. port = 2004
  15. database = "graphite" # store graphite data in this database
  16. [raft]
  17. port = 8090
  18. dir = "/opt/influxdb/shared/data/raft"
  19. [storage]
  20. dir = "/opt/influxdb/shared/data/db"
  21. # How many requests to potentially buffer in memory. If the buffer gets filled then writes
  22. # will still be logged and once the local storage has caught up (or compacted) the writes
  23. # will be replayed from the WAL
  24. write-buffer-size = 10000
  25. default-engine = "rocksdb"
  26. max-open-shards = 0
  27. point-batch-size = 100
  28. write-batch-size = 5000000
  29. retention-sweep-period = "10m"
  30. [storage.engines.rocksdb]
  31. max-open-files = 1000
  32. lru-cache-size = "200m"
  33. [storage.engines.leveldb]
  34. max-open-files = 1000
  35. lru-cache-size = "200m"
  36. [cluster]
  37. protobuf_port = 8099
  38. protobuf_timeout = "2s" # the write timeout on the protobuf conn any duration parseable by time.ParseDuration
  39. protobuf_heartbeat = "200ms" # the heartbeat interval between the servers. must be parseable by time.ParseDuration
  40. protobuf_min_backoff = "1s" # the minimum backoff after a failed heartbeat attempt
  41. protobuf_max_backoff = "10s" # the maxmimum backoff after a failed heartbeat attempt
  42. write-buffer-size = 10000
  43. ax-response-buffer-size = 100000
  44. oncurrent-shard-query-limit = 10
  45. [sharding]
  46. replication-factor = 1
  47. [sharding.short-term]
  48. duration = "7d"
  49. split = 1
  50. [sharding.long-term]
  51. duration = "30d"
  52. split = 1
  53. # split-random = "/^Hf.*/"
  54. [wal]
  55. dir = "/opt/influxdb/shared/data/wal"
  56. flush-after = 1000 # the number of writes after which wal will be flushed, 0 for flushing on every write
  57. bookmark-after = 1000 # the number of writes after which a bookmark will be created
  58. index-after = 1000
  59. requests-per-logfile = 10000