InfluxDB configuration options

Customize your InfluxDB configuration by using influxd configuration flags, setting environment variables, or defining configuration options in a configuration file.

Configuration precedence

InfluxDB honors configuration settings using the following precedence:

  1. influxd flags
  2. Environment variables
  3. Configuration file settings

InfluxDB configuration file

When influxd starts, it checks for a file named config.* in the current working directory. The file extension depends on the syntax of the configuration file. InfluxDB configuration files support the following syntaxes:

  • YAML (.yaml, .yml)
  • TOML (.toml)
  • JSON (.json)

To customize the directory path of the configuration file, set the INFLUXD_CONFIG_PATH environment variable to your custom path.

  1. export INFLUXD_CONFIG_PATH=/path/to/custom/config/directory

On startup, influxd will check for a config.* in the INFLUXD_CONFIG_PATH directory.

Example configuration file

YAML TOML JSON

  1. query-concurrency: 20
  2. query-queue-size: 15
  3. secret-store: vault
  4. session-length: 120
  5. tls-cert: /path/to/influxdb.crt
  6. tls-key: /path/to/influxdb.key
  1. query-concurrency = 20
  2. query-queue-size = 15
  3. secret-store = "vault"
  4. session-length = 120
  5. tls-cert = "/path/to/influxdb.crt"
  6. tls-key = "/path/to/influxdb.key"
  1. {
  2. "query-concurrency": 20,
  3. "query-queue-size": 15,
  4. "secret-store": "vault",
  5. "session-length": 120,
  6. "tls-cert": "/path/to/influxdb.crt",
  7. "tls-key": "/path/to/influxdb.key"
  8. }

Only non-default settings need to be defined in the configuration file.

Configuration options

To configure InfluxDB, use the following configuration options when starting the influxd service:


assets-path

Override the default InfluxDB user interface (UI) assets by serving assets from the specified directory. Typically, InfluxData internal use only.

influxd flagEnvironment variableConfiguration key
—assets-pathINFLUXD_ASSETS_PATHassets-path
influxd flag
  1. influxd --assets-path=/path/to/custom/assets-dir
Environment variable
  1. export INFLUXD_ASSETS_PATH=/path/to/custom/assets-dir
Configuration file

YAML TOML JSON

  1. assets-path: /path/to/custom/assets-dir
  1. assets-path = "/path/to/custom/assets-dir"
  1. {
  2. "assets-path": "/path/to/custom/assets-dir"
  3. }

bolt-path

Path to the BoltDB database. BoltDB is a key value store written in Go. InfluxDB uses BoltDB to store data including organization and user information, UI data, REST resources, and other key value data.

Default: ~/.influxdbv2/influxd.bolt

influxd flagEnvironment variableConfiguration key
—bolt-pathINFLUXD_BOLT_PATHbolt-path
influxd flag
  1. influxd --bolt-path=~/.influxdbv2/influxd.bolt
Environment variable
  1. export INFLUXD_BOLT_PATH=~/.influxdbv2/influxd.bolt
Configuration file

YAML TOML JSON

  1. bolt-path: /users/user/.influxdbv2/influxd.bolt
  1. bolt-path = "/users/user/.influxdbv2/influxd.bolt"
  1. {
  2. "bolt-path": "/users/user/.influxdbv2/influxd.bolt"
  3. }

e2e-testing

Add a /debug/flush endpoint to the InfluxDB HTTP API to clear stores. InfluxData uses this endpoint in end-to-end testing.

influxd flagEnvironment variableConfiguration key
—e2e-testingINFLUXD_E2E_TESTINGe2e-testing
influxd flag
  1. influxd --e2e-testing
Environment variable
  1. export INFLUXD_E2E_TESTING=true
Configuration file

YAML TOML JSON

  1. e2e-testing: true
  1. e2e-testing = true
  1. {
  2. "e2e-testing": true
  3. }

engine-path

Path to persistent storage engine files where InfluxDB stores all Time-Structure Merge Tree (TSM) data on disk.

Default: ~/.influxdbv2/engine

influxd flagEnvironment variableConfiguration key
—engine-pathINFLUXD_ENGINE_PATHengine-path
influxd flag
  1. influxd --engine-path=~/.influxdbv2/engine
Environment variable
  1. export INFLUXD_ENGINE_PATH=~/.influxdbv2/engine
Configuration file

YAML TOML JSON

  1. engine-path: /users/user/.influxdbv2/engine
  1. engine-path = "/users/user/.influxdbv2/engine"
  1. {
  2. "engine-path": "/users/user/.influxdbv2/engine"
  3. }

http-bind-address

Bind address for the InfluxDB HTTP API. Customize the URL and port for the InfluxDB API and UI.

Default: :8086

influxd flagEnvironment variableConfiguration key
—http-bind-addressINFLUXD_HTTP_BIND_ADDRESShttp-bind-address
influxd flag
  1. influxd --http-bind-address=:8086
Environment variable
  1. export INFLUXD_HTTP_BIND_ADDRESS=:8086
Configuration file

YAML TOML JSON

  1. http-bind-address: ":8086"
  1. http-bind-address = ":8086"
  1. {
  2. "http-bind-address": ":8086"
  3. }

influxql-max-select-buckets

Maximum number of group by time buckets a SELECT statement can create. 0 allows an unlimited number of buckets.

Default: 0

influxd flagEnvironment variableConfiguration key
—influxql-max-select-bucketsINFLUXD_INFLUXQL_MAX_SELECT_BUCKETSinfluxql-max-select-buckets
influxd flag
  1. influxd --influxql-max-select-buckets=0
Environment variable
  1. export INFLUXD_INFLUXQL_MAX_SELECT_BUCKETS=0
Configuration file

YAML TOML JSON

  1. influxql-max-select-buckets: 0
  1. influxql-max-select-buckets = 0
  1. {
  2. "influxql-max-select-buckets": 0
  3. }

influxql-max-select-point

Maximum number of points a SELECT statement can process. 0 allows an unlimited number of points. This is only checked every second so queries will not be aborted immediately when hitting the limit.

Default: 0

influxd flagEnvironment variableConfiguration key
—influxql-max-select-pointINFLUXD_INFLUXQL_MAX_SELECT_POINTinfluxql-max-select-point
influxd flag
  1. influxd --influxql-max-select-point=0
Environment variable
  1. export INFLUXD_INFLUXQL_MAX_SELECT_POINT=0
Configuration file

YAML TOML JSON

  1. influxql-max-select-point: 0
  1. influxql-max-select-point = 0
  1. {
  2. "influxql-max-select-point": 0
  3. }

influxql-max-select-series

Maximum number of series a SELECT statement can return. 0 allows an unlimited number of series.

Default: 0

influxd flagEnvironment variableConfiguration key
—influxql-max-select-seriesINFLUXD_INFLUXQL_MAX_SELECT_SERIESinfluxql-max-select-series
influxd flag
  1. influxd --influxql-max-select-series=0
Environment variable
  1. export INFLUXD_INFLUXQL_MAX_SELECT_SERIES=0
Configuration file

YAML TOML JSON

  1. influxql-max-select-series: 0
  1. influxql-max-select-series = 0
  1. {
  2. "influxql-max-select-series": 0
  3. }

log-level

Log output level. InfluxDB outputs log entries with severity levels greater than or equal to the level specified.

Options: debug, info, error
Default: info

influxd flagEnvironment variableConfiguration key
—log-levelINFLUXD_LOG_LEVELlog-level
influxd flag
  1. influxd --log-level=info
Environment variable
  1. export INFLUXD_LOG_LEVEL=info
Configuration file

YAML TOML JSON

  1. log-level: info
  1. log-level = "info"
  1. {
  2. "log-level": "info"
  3. }

new-meta-store

Enable the new meta store.

Default: false

influxd flagEnvironment variableConfiguration key
—new-meta-storeINFLUXD_NEW_META_STOREnew-meta-store
influxd flag
  1. influxd --new-meta-store
Environment variable
  1. export INFLUXD_NEW_META_STORE=true
Configuration file

YAML TOML JSON

  1. new-meta-store: true
  1. new-meta-store = true
  1. {
  2. "new-meta-store": true
  3. }

new-meta-store-read-only

Toggle read-only mode for the new meta store. If true, reads are duplicated between old and new meta stores (if new meta store is enabled).

Default: true

influxd flagEnvironment variableConfiguration key
—new-meta-store-read-onlyINFLUXD_NEW_META_STORE_READ_ONLYnew-meta-store-read-only
influxd flag
  1. influxd --new-meta-store-read-only
Environment variable
  1. export INFLUXD_NEW_META_STORE_READ_ONLY=true
Configuration file

YAML TOML JSON

  1. new-meta-store-read-only: true
  1. new-meta-store-read-only = true
  1. {
  2. "new-meta-store-read-only": true
  3. }

no-tasks

Disable the task scheduler. If problematic tasks prevent InfluxDB from starting, use this option to start InfluxDB without scheduling or executing tasks.

Default: false

influxd flagEnvironment variableConfiguration key
—no-tasksINFLUXD_NO_TASKSno-tasks
influxd flag
  1. influxd --no-tasks
Environment variable
  1. export INFLUXD_NO_TASKS=true
Configuration file

YAML TOML JSON

  1. no-tasks: true
  1. no-tasks = true
  1. {
  2. "no-tasks": true
  3. }

query-concurrency

Number of queries allowed to execute concurrently.

Default: 10

influxd flagEnvironment variableConfiguration key
—query-concurrencyINFLUXD_QUERY_CONCURRENCYquery-concurrency
influxd flag
  1. influxd --query-concurrency=10
Environment variable
  1. export INFLUXD_QUERY_CONCURRENCY=10
Configuration file

YAML TOML JSON

  1. query-concurrency: 10
  1. query-concurrency = 10
  1. {
  2. "query-concurrency": 10
  3. }

query-initial-memory-bytes

Initial bytes of memory allocated for a query.

Default: equal to query-memory-bytes

influxd flagEnvironment variableConfiguration key
—query-initial-memory-bytesINFLUXD_QUERY_INITIAL_MEMORY_BYTESquery-initial-memory-bytes
influxd flag
  1. influxd --query-initial-memory-bytes=10485760
Environment variable
  1. export INFLUXD_QUERY_INITIAL_MEMORY_BYTES=10485760
Configuration file

YAML TOML JSON

  1. query-initial-memory-bytes: 10485760
  1. query-initial-memory-bytes = 10485760
  1. {
  2. "query-initial-memory-bytes": 10485760
  3. }

query-max-memory-bytes

Maximum total bytes of memory allowed for queries.

Default: equal to query-concurrency × query-memory-bytes

influxd flagEnvironment variableConfiguration key
—query-max-memory-bytesINFLUXD_QUERY_MAX_MEMORY_BYTESquery-max-memory-bytes
influxd flag
  1. influxd --query-max-memory-bytes=104857600
Environment variable
  1. export INFLUXD_QUERY_MAX_MEMORY_BYTES=104857600
Configuration file

YAML TOML JSON

  1. query-max-memory-bytes: 104857600
  1. query-max-memory-bytes = 104857600
  1. {
  2. "query-max-memory-bytes": 104857600
  3. }

query-memory-bytes

Maximum bytes of memory allowed for a single query.

Default: unlimited

Must be greater than or equal to query-initial-memory-bytes.

influxd flagEnvironment variableConfiguration key
—query-memory-bytesINFLUXD_QUERY_MEMORY_BYTESquery-memory-bytes
influxd flag
  1. influxd --query-memory-bytes=10485760
Environment variable
  1. export INFLUXD_QUERY_MEMORY_BYTES=10485760
Configuration file

YAML TOML JSON

  1. query-memory-bytes: 10485760
  1. query-memory-bytes = 10485760
  1. {
  2. "query-memory-bytes": 10485760
  3. }

query-queue-size

Maximum number of queries allowed in execution queue. When queue limit is reached, new queries are rejected.

Default: 10

influxd flagEnvironment variableConfiguration key
—query-queue-sizeINFLUXD_QUERY_QUEUE_SIZEquery-queue-size
influxd flag
  1. influxd --query-queue-size=10
Environment variable
  1. export INFLUXD_QUERY_QUEUE_SIZE=10
Configuration file

YAML TOML JSON

  1. query-queue-size: 10
  1. query-queue-size = 10
  1. {
  2. "query-queue-size": 10
  3. }

reporting-disabled

Disables sending telemetry data to InfluxData. The InfluxData telemetry page provides information about what data is collected and how InfluxData uses it.

Default: false

influxd flagEnvironment variableConfiguration key
—reporting-disabledINFLUXD_REPORTING_DISABLEDreporting-disabled
influxd flag
  1. influxd --reporting-disabled
Environment variable
  1. export INFLUXD_REPORTING_DISABLED=true
Configuration file

YAML TOML JSON

  1. reporting-disabled: true
  1. reporting-disabled = true
  1. {
  2. "reporting-disabled": true
  3. }

secret-store

Specifies the data store for secrets such as passwords and tokens. Store secrets in either the InfluxDB internal BoltDB or in Vault.

Options: bolt, vault
Default: bolt

influxd flagEnvironment variableConfiguration key
—secret-storeINFLUXD_SECRET_STOREsecret-store
influxd flag
  1. influxd --secret-store=bolt
Environment variable
  1. export INFLUXD_SECRET_STORE=bolt
Configuration file

YAML TOML JSON

  1. secret-store: bolt
  1. secret-store = "bolt"
  1. {
  2. "secret-store": "bolt"
  3. }

session-length

Specifies the Time to Live (TTL) in minutes for newly created user sessions.

Default: 60

influxd flagEnvironment variableConfiguration key
—session-lengthINFLUXD_SESSION_LENGTHsession-length
influxd flag
  1. influxd --session-length=60
Environment variable
  1. export INFLUXD_SESSION_LENGTH=60
Configuration file

YAML TOML JSON

  1. session-length: 60
  1. session-length = 60
  1. {
  2. "session-length": 60
  3. }

session-renew-disabled

Disables automatically extending a user’s session TTL on each request. By default, every request sets the session’s expiration time to five minutes from now. When disabled, sessions expire after the specified session length and the user is redirected to the login page, even if recently active.

Default: false

influxd flagEnvironment variableConfiguration key
—session-renew-disabledINFLUXD_SESSION_RENEW_DISABLEDsession-renew-disabled
influxd flag
  1. influxd --session-renew-disabled
Environment variable
  1. export INFLUXD_SESSION_RENEW_DISABLED=true
Configuration file

YAML TOML JSON

  1. session-renew-disabled: true
  1. session-renew-disabled = true
  1. {
  2. "session-renew-disabled": true
  3. }

storage-cache-max-memory-size

Maximum size (in bytes) a shard’s cache can reach before it starts rejecting writes.

Default: 1073741824

influxd flagEnvironment variableConfiguration key
—storage-cache-max-memory-sizeINFLUXD_STORAGE_CACHE_MAX_MEMORY_SIZEstorage-cache-max-memory-size
influxd flag
  1. influxd --storage-cache-max-memory-size=1073741824
Environment variable
  1. export INFLUXD_STORAGE_CACHE_MAX_MEMORY_SIZE=1073741824
Configuration file

YAML TOML JSON

  1. storage-cache-max-memory-size: 1073741824
  1. storage-cache-max-memory-size = 1073741824
  1. {
  2. "storage-cache-max-memory-size": 1073741824
  3. }

storage-cache-snapshot-memory-size

Size (in bytes) at which the storage engine will snapshot the cache and write it to a TSM file to make more memory available.

Default: 26214400)

influxd flagEnvironment variableConfiguration key
—storage-cache-snapshot-memory-sizeINFLUXD_STORAGE_CACHE_SNAPSHOT_MEMORY_SIZEstorage-cache-snapshot-memory-size
influxd flag
  1. influxd --storage-cache-snapshot-memory-size=26214400
Environment variable
  1. export INFLUXD_STORAGE_CACHE_SNAPSHOT_MEMORY_SIZE=26214400
Configuration file

YAML TOML JSON

  1. storage-cache-snapshot-memory-size: 26214400
  1. storage-cache-snapshot-memory-size = 26214400
  1. {
  2. "storage-cache-snapshot-memory-size": 26214400
  3. }

storage-cache-snapshot-write-cold-duration

Duration at which the storage engine will snapshot the cache and write it to a new TSM file if the shard hasn’t received writes or deletes.

Default: 10m0s

influxd flagEnvironment variableConfiguration key
—storage-cache-snapshot-write-cold-durationINFLUXD_STORAGE_CACHE_SNAPSHOT_WRITE_COLD_DURATIONstorage-cache-snapshot-write-cold-duration
influxd flag
  1. influxd --storage-cache-snapshot-write-cold-duration=10m0s
Environment variable
  1. export INFLUXD_STORAGE_CACHE_SNAPSHOT_WRITE_COLD_DURATION=10m0s
Configuration file

YAML TOML JSON

  1. storage-cache-snapshot-write-cold-duration: 10m0s
  1. storage-cache-snapshot-write-cold-duration = "10m0s"
  1. {
  2. "storage-cache-snapshot-write-cold-duration": "10m0s"
  3. }

storage-compact-full-write-cold-duration

Duration at which the storage engine will compact all TSM files in a shard if it hasn’t received writes or deletes.

Default: 4h0m0s

influxd flagEnvironment variableConfiguration key
—storage-compact-full-write-cold-durationINFLUXD_STORAGE_COMPACT_FULL_WRITE_COLD_DURATIONstorage-compact-full-write-cold-duration
influxd flag
  1. influxd --storage-compact-full-write-cold-duration=4h0m0s
Environment variable
  1. export INFLUXD_STORAGE_COMPACT_FULL_WRITE_COLD_DURATION=4h0m0s
Configuration file

YAML TOML JSON

  1. storage-compact-full-write-cold-duration: 4h0m0s
  1. storage-compact-full-write-cold-duration = "4h0m0s"
  1. {
  2. "storage-compact-full-write-cold-duration": "4h0m0s"
  3. }

storage-compact-throughput-burst

Rate limit (in bytes per second) that TSM compactions can write to disk.

Default: 50331648

influxd flagEnvironment variableConfiguration key
—storage-compact-throughput-burstINFLUXD_STORAGE_COMPACT_THROUGHPUT_BURSTstorage-compact-throughput-burst
influxd flag
  1. influxd --storage-compact-throughput-burst=50331648
Environment variable
  1. export INFLUXD_STORAGE_COMPACT_THROUGHPUT_BURST=50331648
Configuration file

YAML TOML JSON

  1. storage-compact-throughput-burst: 50331648
  1. storage-compact-throughput-burst = 50331648
  1. {
  2. "storage-compact-throughput-burst": 50331648
  3. }

storage-max-concurrent-compactions

Maximum number of full and level compactions that can run concurrently. A value of 0 results in 50% of runtime.GOMAXPROCS(0) used at runtime. Any number greater than zero limits compactions to that value. This setting does not apply to cache snapshotting.

Default: 0

influxd flagEnvironment variableConfiguration key
—storage-max-concurrent-compactionsINFLUXD_STORAGE_MAX_CONCURRENT_COMPACTIONSstorage-max-concurrent-compactions
influxd flag
  1. influxd --storage-max-concurrent-compactions=0
Environment variable
  1. export INFLUXD_STORAGE_MAX_CONCURRENT_COMPACTIONS=0
Configuration file

YAML TOML JSON

  1. storage-max-concurrent-compactions: 0
  1. storage-max-concurrent-compactions = 0
  1. {
  2. "storage-max-concurrent-compactions": 0
  3. }

storage-max-index-log-file-size

Size (in bytes) at which an index write-ahead log (WAL) file will compact into an index file. Lower sizes will cause log files to be compacted more quickly and result in lower heap usage at the expense of write throughput.

Default: 1048576

influxd flagEnvironment variableConfiguration key
—storage-max-index-log-file-sizeINFLUXD_STORAGE_MAX_INDEX_LOG_FILE_SIZEstorage-max-index-log-file-size
influxd flag
  1. influxd --storage-max-index-log-file-size=1048576
Environment variable
  1. export INFLUXD_STORAGE_MAX_INDEX_LOG_FILE_SIZE=1048576
Configuration file

YAML TOML JSON

  1. storage-max-index-log-file-size: 1048576
  1. storage-max-index-log-file-size = 1048576
  1. {
  2. "storage-max-index-log-file-size": 1048576
  3. }

storage-retention-check-interval

Interval of retention policy enforcement checks.

Default: 30m0s

influxd flagEnvironment variableConfiguration key
—storage-retention-check-intervalINFLUXD_STORAGE_RETENTION_CHECK_INTERVALstorage-retention-check-interval
influxd flag
  1. influxd --storage-retention-check-interval=30m0s
Environment variable
  1. export INFLUXD_STORAGE_MAX_INDEX_LOG_FILE_SIZE=30m0s
Configuration file

YAML TOML JSON

  1. storage-retention-check-interval: 30m0s
  1. storage-retention-check-interval = "30m0s"
  1. {
  2. "storage-retention-check-interval": "30m0s"
  3. }

storage-series-file-max-concurrent-snapshot-compactions

Maximum number of snapshot compactions that can run concurrently across all series partitions in a database.

Default: 0

influxd flagEnvironment variableConfiguration key
—storage-series-file-max-concurrent-snapshot-compactionsINFLUXD_STORAGE_SERIES_FILE_MAX_CONCURRENT_SNAPSHOT_COMPACTIONSstorage-series-file-max-concurrent-snapshot-compactions
influxd flag
  1. influxd --storage-series-file-max-concurrent-snapshot-compactions=0
Environment variable
  1. export INFLUXD_STORAGE_SERIES_FILE_MAX_CONCURRENT_SNAPSHOT_COMPACTIONS=0
Configuration file

YAML TOML JSON

  1. storage-series-file-max-concurrent-snapshot-compactions: 0
  1. storage-series-file-max-concurrent-snapshot-compactions = 0
  1. {
  2. "storage-series-file-max-concurrent-snapshot-compactions": 0
  3. }

storage-series-id-set-cache-size

Size of the internal cache used in the TSI index to store previously calculated series results. Cached results are returned quickly rather than needing to be recalculated when a subsequent query with the same tag key/value predicate is executed. Setting this value to 0 will disable the cache and may decrease query performance.

Default: 100

This value should only be increased if the set of regularly used tag key/value predicates across all measurements for a database is larger than 100. An increase in cache size may lead to an increase in heap usage.

influxd flagEnvironment variableConfiguration key
—storage-series-id-set-cache-sizeINFLUXD_STORAGE_SERIES_ID_SET_CACHE_SIZEstorage-series-id-set-cache-size
influxd flag
  1. influxd --storage-series-id-set-cache-size=100
Environment variable
  1. export INFLUXD_STORAGE_SERIES_ID_SET_CACHE_SIZE=100
Configuration file

YAML TOML JSON

  1. storage-series-id-set-cache-size: 100
  1. storage-series-id-set-cache-size = 100
  1. {
  2. "storage-series-id-set-cache-size": 100
  3. }

storage-shard-precreator-advance-period

The time before a shard group’s end-time that the successor shard group is created.

Default: 30m0s

influxd flagEnvironment variableConfiguration key
—storage-shard-precreator-advance-periodINFLUXD_STORAGE_SHARD_PRECREATOR_ADVANCE_PERIODstorage-shard-precreator-advance-period
influxd flag
  1. influxd --storage-shard-precreator-advance-period=30m0s
Environment variable
  1. export INFLUXD_STORAGE_SHARD_PRECREATOR_ADVANCE_PERIOD=30m0s
Configuration file

YAML TOML JSON

  1. storage-shard-precreator-advance-period: 30m0s
  1. storage-shard-precreator-advance-period = "30m0s"
  1. {
  2. "storage-shard-precreator-advance-period": "30m0s"
  3. }

storage-shard-precreator-check-interval

Interval of pre-create new shards check.

Default: 10m0s

influxd flagEnvironment variableConfiguration key
—storage-shard-precreator-check-intervalINFLUXD_STORAGE_SHARD_PRECREATOR_CHECK_INTERVALstorage-shard-precreator-check-interval
influxd flag
  1. influxd --storage-shard-precreator-check-interval=10m0s
Environment variable
  1. export INFLUXD_STORAGE_SHARD_PRECREATOR_CHECK_INTERVAL=10m0s
Configuration file

YAML TOML JSON

  1. storage-shard-precreator-check-interval: 10m0s
  1. storage-shard-precreator-check-interval = "10m0s"
  1. {
  2. "storage-shard-precreator-check-interval": "10m0s"
  3. }

storage-tsm-use-madv-willneed

Inform the kernel that InfluxDB intends to page in mmap’d sections of TSM files.

Default: false

influxd flagEnvironment variableConfiguration key
—storage-tsm-use-madv-willneedINFLUXD_STORAGE_TSM_USE_MADV_WILLNEEDstorage-tsm-use-madv-willneed
influxd flag
  1. influxd --storage-tsm-use-madv-willneed
Environment variable
  1. export INFLUXD_STORAGE_TSM_USE_MADV_WILLNEED=true
Configuration file

YAML TOML JSON

  1. storage-tsm-use-madv-willneed: true
  1. storage-tsm-use-madv-willneed = true
  1. {
  2. "storage-tsm-use-madv-willneed": true
  3. }

storage-validate-keys

Validate incoming writes to ensure keys have only valid unicode characters.

Default: false

influxd flagEnvironment variableConfiguration key
—storage-validate-keysINFLUXD_STORAGE_VALIDATE_KEYSstorage-validate-keys
influxd flag
  1. influxd --storage-validate-keys
Environment variable
  1. export INFLUXD_STORAGE_VALIDATE_KEYS=true
Configuration file

YAML TOML JSON

  1. storage-validate-keys: true
  1. storage-validate-keys = true
  1. {
  2. "storage-validate-keys": true
  3. }

storage-wal-fsync-delay

Duration a write will wait before fsyncing. A duration greater than 0 batches multiple fsync calls. This is useful for slower disks or when WAL write contention is present.

Default: 0s

influxd flagEnvironment variableConfiguration key
—storage-wal-fsync-delayINFLUXD_STORAGE_WAL_FSYNC_DELAYstorage-wal-fsync-delay
influxd flag
  1. influxd --storage-wal-fsync-delay=0s
Environment variable
  1. export INFLUXD_STORAGE_WAL_FSYNC_DELAY=0s
Configuration file

YAML TOML JSON

  1. storage-wal-fsync-delay: 0s
  1. storage-wal-fsync-delay = "0s"
  1. {
  2. "storage-wal-fsync-delay": "0s"
  3. }

store

Specifies the data store for REST resources.

Options: bolt, memory
Default: bolt

memory is meant for transient environments, such as testing environments, where data persistence does not matter. InfluxData does not recommend using memory in production.

influxd flagEnvironment variableConfiguration key
—storeINFLUXD_STOREstore
influxd flag
  1. influxd --store=bolt
Environment variable
  1. export INFLUXD_STORE=bolt
Configuration file

YAML TOML JSON

  1. store: bolt
  1. store = "bolt"
  1. {
  2. "store": "bolt"
  3. }

tls-cert

Path to TLS certificate file. Requires the tls-key to be set.

For more information, see Enable TLS encryption.

influxd flagEnvironment variableConfiguration key
—tls-certINFLUXD_TLS_CERTtls-cert
influxd flag
  1. influxd --tls-cert=/path/to/influxdb.crt
Environment variable
  1. export INFLUXD_TLS_CERT=/path/to/influxdb.crt
Configuration file

YAML TOML JSON

  1. tls-cert: /path/to/influxdb.crt
  1. tls-cert = "/path/to/influxdb.crt"
  1. {
  2. "tls-cert": "/path/to/influxdb.crt"
  3. }

tls-key

Path to TLS key file. Requires the tls-cert to be set.

For more information, see Enable TLS encryption.

influxd flagEnvironment variableConfiguration key
—tls-keyINFLUXD_TLS_KEYtls-key
influxd flag
  1. influxd --tls-key=/path/to/influxdb.key
Environment variable
  1. export INFLUXD_TLS_KEY=/path/to/influxdb.key
Configuration file

YAML TOML JSON

  1. tls-key: /path/to/influxdb.key
  1. tls-key = "/path/to/influxdb.key"
  1. {
  2. "tls-key": "/path/to/influxdb.key"
  3. }

tls-min-version

Minimum accepted TLS version.

Default: 1.2

influxd flagEnvironment variableConfiguration key
—tls-min-versionINFLUXD_TLS_MIN_VERSIONtls-min-version
influxd flag
  1. influxd --tls-min-version=1.2
Environment variable
  1. export INFLUXD_TLS_MIN_VERSION=1.2
Configuration file

YAML TOML JSON

  1. tls-min-version: "1.2"
  1. tls-min-version = "1.2"
  1. {
  2. "tls-min-version": "1.2"
  3. }

tls-strict-ciphers

Restrict accepted TLS ciphers to:

  • ECDHE_RSA_WITH_AES_256_GCM_SHA384
  • ECDHE_RSA_WITH_AES_256_CBC_SHA
  • RSA_WITH_AES_256_GCM_SHA384
  • RSA_WITH_AES_256_CBC_SHA

Default: false

influxd flagEnvironment variableConfiguration key
—tls-strict-ciphersINFLUXD_TLS_STRICT_CIPHERStls-strict-ciphers
influxd flag
  1. influxd --tls-strict-ciphers
Environment variable
  1. export INFLUXD_TLS_STRICT_CIPHERS=true
Configuration file

YAML TOML JSON

  1. tls-strict-ciphers: true
  1. tls-strict-ciphers = true
  1. {
  2. "tls-strict-ciphers": true
  3. }

tracing-type

Enable tracing in InfluxDB and specifies the tracing type. Tracing is disabled by default.

Options: log, jaeger

influxd flagEnvironment variableConfiguration key
—tracing-typeINFLUXD_TRACING_TYPEtracing-type
influxd flag
  1. influxd --tracing-type=log
Environment variable
  1. export INFLUXD_TRACING_TYPE=log
Configuration file

YAML TOML JSON

  1. tracing-type: log
  1. tracing-type = "log"
  1. {
  2. "tracing-type": "log"
  3. }

vault-addr

Specifies the address of the Vault server expressed as a URL and port. For example: https://127.0.0.1:8200/.

influxd flagEnvironment variableConfiguration key
—vault-addrVAULT_ADDRvault-addr
influxd flag
  1. influxd --vault-addr=https://127.0.0.1:8200/
Environment variable
  1. export VAULT_ADDR=https://127.0.0.1:8200/
Configuration file

YAML TOML JSON

  1. vault-addr: https://127.0.0.1:8200/
  1. vault-addr = "https://127.0.0.1:8200/"
  1. {
  2. "vault-addr": "https://127.0.0.1:8200/"
  3. }

vault-cacert

Specifies the path to a PEM-encoded CA certificate file on the local disk. This file is used to verify the Vault server’s SSL certificate. This setting takes precedence over the --vault-capath setting.

influxd flagEnvironment variableConfiguration key
—vault-cacertVAULT_CACERTvault-cacert
influxd flag
  1. influxd --vault-cacert=/path/to/ca.pem
Environment variable
  1. export VAULT_CACERT=/path/to/ca.pem
Configuration file

YAML TOML JSON

  1. vault-cacert: /path/to/ca.pem
  1. vault-cacert = "/path/to/ca.pem"
  1. {
  2. "vault-cacert": "/path/to/ca.pem"
  3. }

vault-capath

Specifies the path to a directory of PEM-encoded CA certificate files on the local disk. These certificates are used to verify the Vault server’s SSL certificate.

influxd flagEnvironment variableConfiguration key
—vault-capathVAULT_CAPATHvault-capath
influxd flag
  1. influxd --vault-capath=/path/to/certs/
Environment variable
  1. export VAULT_CAPATH=/path/to/certs/
Configuration file

YAML TOML JSON

  1. vault-capath: /path/to/certs/
  1. vault-capath = "/path/to/certs/"
  1. {
  2. "vault-capath": "/path/to/certs/"
  3. }

vault-client-cert

Specifies the path to a PEM-encoded client certificate on the local disk. This file is used for TLS communication with the Vault server.

influxd flagEnvironment variableConfiguration key
—vault-client-certVAULT_CLIENT_CERTvault-client-cert
influxd flag
  1. influxd --vault-client-cert=/path/to/client_cert.pem
Environment variable
  1. export VAULT_CLIENT_CERT=/path/to/client_cert.pem
Configuration file

YAML TOML JSON

  1. vault-client-cert: /path/to/client_cert.pem
  1. vault-client-cert = "/path/to/client_cert.pem"
  1. {
  2. "vault-client-cert": "/path/to/client_cert.pem"
  3. }

vault-client-key

Specifies the path to an unencrypted, PEM-encoded private key on disk which corresponds to the matching client certificate.

influxd flagEnvironment variableConfiguration key
—vault-client-keyVAULT_CLIENT_KEYvault-client-key
influxd flag
  1. influxd --vault-client-key=/path/to/private_key.pem
Environment variable
  1. export VAULT_CLIENT_KEY=/path/to/private_key.pem
Configuration file

YAML TOML JSON

  1. vault-client-key: /path/to/private_key.pem
  1. vault-client-key = "/path/to/private_key.pem"
  1. {
  2. "vault-client-key": "/path/to/private_key.pem"
  3. }

vault-max-retries

Specifies the maximum number of retries when encountering a 5xx error code. The default is 2 (for three attempts in total). Set this to 0 or less to disable retrying.

Default: 2

influxd flagEnvironment variableConfiguration key
—vault-max-retriesVAULT_MAX_RETRIESvault-max-retries
influxd flag
  1. influxd --vault-max-retries=2
Environment variable
  1. export VAULT_MAX_RETRIES=2
Configuration file

YAML TOML JSON

  1. vault-max-retries: 2
  1. vault-max-retries = 2
  1. {
  2. "vault-max-retries": 2
  3. }

vault-client-timeout

Specifies the Vault client timeout.

Default: 60s

influxd flagEnvironment variableConfiguration key
—vault-client-timeoutVAULT_CLIENT_TIMEOUTvault-client-timeout
influxd flag
  1. influxd --vault-client-timeout=60s
Environment variable
  1. export VAULT_CLIENT_TIMEOUT=60s
Configuration file

YAML TOML JSON

  1. vault-client-timeout: 60s
  1. vault-client-timeout = "60s"
  1. {
  2. "vault-client-timeout": "60s"
  3. }

vault-skip-verify

Skip certificate verification when communicating with Vault. Setting this variable voids Vault’s security model and is not recommended.

Default: false

influxd flagEnvironment variableConfiguration key
—vault-skip-verifyVAULT_SKIP_VERIFYvault-skip-verify
influxd flag
  1. influxd --vault-skip-verify
Environment variable
  1. export VAULT_SKIP_VERIFY=true
Configuration file

YAML TOML JSON

  1. vault-skip-verify: true
  1. vault-skip-verify = true
  1. {
  2. "vault-skip-verify": true
  3. }

vault-tls-server-name

Specifies the name to use as the Server Name Indication (SNI) host when connecting via TLS.

influxd flagEnvironment variableConfiguration key
—vault-tls-server-nameVAULT_TLS_SERVER_NAMEvault-tls-server-name
influxd flag
  1. influxd --vault-tls-server-name=secure.example.com
Environment variable
  1. export VAULT_TLS_SERVER_NAME=secure.example.com
Configuration file

YAML TOML JSON

  1. vault-tls-server-name: secure.example.com
  1. vault-tls-server-name = "secure.example.com"
  1. {
  2. "vault-tls-server-name": "secure.example.com"
  3. }

vault-token

Specifies the Vault authentication token use when authenticating with Vault.

influxd flagEnvironment variableConfiguration key
—vault-tokenVAULT_TOKENvault-token
influxd flag
  1. influxd --vault-token=exAmple-t0ken-958a-f490-c7fd0eda5e9e
Environment variable
  1. export VAULT_TOKEN=exAmple-t0ken-958a-f490-c7fd0eda5e9e
Configuration file

YAML TOML JSON

  1. vault-token: exAmple-t0ken-958a-f490-c7fd0eda5e9e
  1. vault-token = "exAmple-t0ken-958a-f490-c7fd0eda5e9e"
  1. {
  2. "vault-token": "exAmple-t0ken-958a-f490-c7fd0eda5e9e"
  3. }

Related articles