Upgrade to InfluxDB 1.11.x
This page documents an earlier version of InfluxDB OSS. InfluxDB 3 Core is the latest stable version.
Upgrade to the latest version of InfluxDB OSS v1.
Upgrade to InfluxDB 1.11.x
Download InfluxDB version 1.11.x and install the upgrade.
Migrate configuration file customizations from your existing configuration file to the InfluxDB 1.11.x configuration file. Add or modify your environment variables as needed.
Choose your index type
InfluxDB 1.11.x supports two index types:
- Time Series Index (TSI) - Recommended for most users. Removes RAM-based limits on series cardinality and provides better performance for high-cardinality datasets.
- In-memory index (inmem) - Default option that maintains compatibility with earlier versions but is limited by available system RAM (series cardinality is limited by available RAM).
When to use TSI:
- General purpose production instances.
- Especially recommended for:
- High-cardinality datasets (many unique tag combinations)
- Experiencing high memory usage or out-of-memory errors
- Large production deployments
When to use inmem:
- Small datasets when memory is not a constraint
- Ephemeral deployments such as development or testing environments
To learn more about TSI, see Time Series Index overview and TSI details.
Optional: To enable TSI in InfluxDB 1.11.x, complete the following steps:
If using the InfluxDB configuration file, find the
[data]
section, uncommentindex-version = "inmem"
and change the value totsi1
.If using environment variables, set
INFLUXDB_DATA_INDEX_VERSION
totsi1
.Delete shard
index
directories in your InfluxDBdata/
directory. For example, in a Linux environment:/var/lib/influxdb/data/<db-name>/<rp-name>/<shard_ID>/index
Build TSI by running the influx_inspect buildtsi command.
Run the
buildtsi
command using the user account that you are going to run the database as, or ensure that the permissions match afterward.
Restart the
influxdb
service.
Switch index types anytime
The default configuration continues to use TSM-based shards with in-memory indexes (as in earlier versions). You can switch between TSI and inmem index types at any time.
Switch index types
You can switch between index types at any time after upgrading:
Switch from inmem to TSI:
- Complete steps 3 and 4 in Upgrade to InfluxDB 1.11.x
- Recommended when experiencing high memory usage or out-of-memory errors with high-cardinality data
Switch from TSI to inmem:
- Change
tsi1
toinmem
by completing steps 3a-3c and 4 in Upgrade to InfluxDB 1.11.x - Suitable for small datasets where memory is not a constraint
Downgrade InfluxDB
To downgrade to an earlier version, complete the procedures above in Upgrade to InfluxDB 1.11.x, replacing the version numbers with the version that you want to downgrade to. After downloading the release, migrating your configuration settings, and enabling TSI or TSM, make sure to rebuild your index.
Some versions of InfluxDB may have breaking changes that impact your ability to upgrade and downgrade. For example, you cannot downgrade from InfluxDB 1.3 or later to an earlier version. Please review the applicable version of release notes to check for compatibility issues between releases.
Upgrade to InfluxDB Enterprise
To upgrade from InfluxDB OSS to InfluxDB Enterprise, contact InfluxData Sales.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.