Enable InfluxDB TSI by default

The TSI is recommended for all users. Some of the key benefits are
a reduction in memory requirements and an increase in the maximum
number of time series. For more information see this link:

https://docs.influxdata.com/influxdb/v1.7/concepts/tsi-details/

Change-Id: I4b29eb5a4ae82f6c39059d0b6de41debdfd75508
This commit is contained in:
Doug Szumski 2019-06-19 16:23:17 +01:00
parent 8ce545e7b8
commit 015ddb6e37
3 changed files with 23 additions and 0 deletions

View File

@ -25,6 +25,14 @@ influxdb_services:
external: false
port: "{{ influxdb_http_port }}"
####################
# InfluxDB
####################
# Enable the disk based time series index (recommended for all users). For
# more information see here:
# https://docs.influxdata.com/influxdb/v1.7/concepts/time-series-index/
influxdb_enable_tsi: True
####################
# Docker

View File

@ -11,6 +11,11 @@ reporting-disabled = true
wal-dir = "/var/lib/influxdb/wal"
wal-logging-enabled = true
data-logging-enabled = true
{% if influxdb_enable_tsi | bool %}
index-version = "tsi1"
{% else %}
index-version = "inmem"
{% endif %}
[coordinator]
write-timeout = "10s"
max-concurrent-queries = 0

View File

@ -0,0 +1,10 @@
---
upgrade:
- InfluxDB TSI has been enabled by default. It is recommended for all
customers by InfluxData. If you do not want to enable it you can set
the variable 'influxdb_enable_tsi' to 'False' in 'globals.yml'.
Instructions to migrate existing data to the new, disk based format
can be found at
https://docs.influxdata.com/influxdb/v1.7/administration/upgrading/
If you do not follow the migration proceedure, InfluxDB should continue
to work, but this is not recommended.