X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Finfluxdb.git;a=blobdiff_plain;f=influxdb%2Ffiles%2Finfluxdb.conf;h=9cd94375f093ce5b896ba895ef19ebb5a459e7b0;hp=605ed62491c5d452be17c00d7c55bdfaa0093e23;hb=d1c9268814508a317acfdf53085e1135b3b8b2db;hpb=d6fa6abc29b84593006f3b3a340ca74f854abcc7 diff --git a/influxdb/files/influxdb.conf b/influxdb/files/influxdb.conf index 605ed62..9cd9437 100644 --- a/influxdb/files/influxdb.conf +++ b/influxdb/files/influxdb.conf @@ -21,6 +21,7 @@ reporting-disabled = false ### about the InfluxDB cluster. ### +{%- if server.meta.enabled %} [meta] # Where the metadata/raft database is stored dir = "/var/lib/influxdb/meta" @@ -33,6 +34,14 @@ reporting-disabled = false # The default duration for leases. lease-duration = "1m0s" +{%- else %} +[meta] + enabled = false +{%- endif %} + {%- if server.get('meta', {}).bind is defined %} + bind-address = "{{ server.meta.bind.address }}:{{ server.admin.bind.port }}" + http-bind-address = "{{ server.meta.bind.http_address }}:{{ server.admin.bind.http_port }}" + {%- endif %} ### ### [data] @@ -43,6 +52,7 @@ reporting-disabled = false ### defaults should work for most systems. ### +{%- if server.data.enabled %} [data] # Controls if this node holds time series data shards in the cluster enabled = true @@ -86,22 +96,25 @@ reporting-disabled = false # block in a TSM file. Larger numbers may yield better compression # but could incur a performance penalty when querying # max-points-per-block = 1000 +{%- else %} +[data] + enabled = false +{%- 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] @@ -198,6 +211,19 @@ reporting-disabled = 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]] ###