{%- if server.meta.enabled %}
[meta]
# Where the metadata/raft database is stored
- dir = "/var/lib/influxdb/meta"
+ dir = "{{ server.meta.dir }}"
retention-autocreate = true
# Controls if this node holds time series data shards in the cluster
enabled = true
- dir = "/var/lib/influxdb/data"
+ dir = "{{ server.data.dir }}"
# These are the WAL settings for the storage engine >= 0.9.3
- wal-dir = "/var/lib/influxdb/wal"
+ wal-dir = "{{ server.data.wal_dir }}"
wal-logging-enabled = true
data-logging-enabled = true
{%- endif %}
###
-### [cluster]
+### [coordinator]
###
-### Controls non-Raft cluster behavior, which generally includes how data is
-### shared across shards.
+### Controls the clustering service configuration.
###
-[cluster]
- shard-writer-timeout = "5s" # The time within which a remote shard must respond to a write request.
- write-timeout = "10s" # The time within which a write request must complete on the cluster.
- max-concurrent-queries = 0 # The maximum number of concurrent queries that can run. 0 to disable.
- query-timeout = "0s" # The time within a query must complete before being killed automatically. 0s to disable.
- max-select-point = 0 # The maximum number of points to scan in a query. 0 to disable.
- max-select-series = 0 # The maximum number of series to select in a query. 0 to disable.
- max-select-buckets = 0 # The maximum number of buckets to select in an aggregate query. 0 to disable.
+[coordinator]
+ write-timeout = "10s"
+ max-concurrent-queries = 0
+ query-timeout = "0"
+ log-queries-after = "0"
+ max-select-point = 0
+ max-select-series = 0
+ max-select-buckets = 0
###
### [retention]
[http]
enabled = true
bind-address = "{{ server.http.bind.address }}:{{ server.http.bind.port }}"
+ {%- if server.admin.get('user', {}).get('enabled', False) %}
+ auth-enabled = true
+ {%- else %}
auth-enabled = false
- log-enabled = true
+ {%- endif %}
+ log-enabled = {{ server.http.log_enabled | lower }}
write-tracing = false
pprof-enabled = false
{%- if server.http.get('ssl', {}).get('enabled', False) %}
enabled = false
{%- endif %}
+###
+### [subscriber]
+###
+### Controls the subscriptions, which can be used to fork a copy of all data
+### received by the InfluxDB host.
+###
+
+[subscriber]
+ enabled = false
+ # http-timeout = "30s"
+ # write-concurrency = 40
+ # write-buffer-size = 1000
+
###
### [[graphite]]
###
###
{%- if server.udp.enabled %}
-[udp]
+[[udp]]
enabled = true
bind-address = "{{ server.udp.bind.address }}:{{ server.udp.bind.port }}"
# database = "udp"
]
{%- endif %}
{%- else %}
-[udp]
+[[udp]]
enabled = false
{%- endif %}