Documentation

Upgrade to InfluxDB 1.11.x

This page documents an earlier version of InfluxDB OSS. InfluxDB OSS v2 is the latest stable version. See the InfluxDB v2 documentation.

We recommend enabling Time Series Index (TSI) (step 3 of Upgrade to InfluxDB 1.11.x). Switch between TSM and TSI as needed. To learn more about TSI, see:

Note: The default configuration continues to use TSM-based shards with in-memory indexes (as in earlier versions).

Upgrade to InfluxDB Enterprise

To upgrade from InfluxDB OSS to InfluxDB Enterprise, contact InfluxData Sales and see Migrate to InfluxDB Enterprise.

Upgrade to InfluxDB 1.11.x

  1. Download InfluxDB version 1.11.x and install the upgrade.

  2. 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.

  3. To enable TSI in InfluxDB 1.11.x, complete the following steps:

    1. If using the InfluxDB configuration file, find the [data] section, uncomment index-version = "inmem" and change the value to tsi1.

    2. If using environment variables, set INFLUXDB_DATA_INDEX_VERSION to tsi1.

    3. Delete shard index directories in your InfluxDB data/ directory. For example, in a Linux environment:

      /var/lib/influxdb/data/<db-name>/<rp-name>/<shard_ID>/index
      
      • Copy
      • Fill window
    4. 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.

  4. Restart the influxdb service.

Switch index types

Switch index types at any time by doing one of the following:

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.

Note: 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 InfluxDB Enterprise clusters

See Upgrading InfluxDB Enterprise clusters.


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB 3 Core and Enterprise are now in Beta

InfluxDB 3 Core and Enterprise are now available for beta testing, available under MIT or Apache 2 license.

InfluxDB 3 Core is a high-speed, recent-data engine that collects and processes data in real-time, while persisting it to local disk or object storage. InfluxDB 3 Enterprise is a commercial product that builds on Core’s foundation, adding high availability, read replicas, enhanced security, and data compaction for faster queries. A free tier of InfluxDB 3 Enterprise will also be available for at-home, non-commercial use for hobbyists to get the full historical time series database set of capabilities.

For more information, check out: