Upgrading to InfluxDB 1.7.x

We recommend enabling Time Series Index (TSI) (step 3 of Upgrade to InfluxDB 1.7.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 1.7.x

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

  2. Migrate configuration file customizations from your existing configuration file to the InfluxDB 1.7.x configuration file. Add or modify your environment variables as needed.

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

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

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

    c. Delete shard index directories (by default, located at /<shard_ID>/index).

    d. Convert TSM-based shards to TSI-based shards by running the influx_inspect buildtsi command.

    Note 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 between TSM and TSI indexes

After upgrading to InfluxDB 1.7.x, switch between using the TSM index and the TSI index as needed.

To switch from TSM to TSI

Complete step 3 and 4 in Upgrade to InfluxDB 1.7.x.

To switch from TSI to TSM

  1. In the InfluxDB configuration file, set index-version = "inmem".
  2. Delete all shard index directories (by default, located at /<shard_ID>/index).
  3. Restart the influxdb service.

Downgrade InfluxDB

To downgrade to an earlier version, complete the procedures above in Upgrade to InfluxDB 1.7.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.

This documentation is open source. See a typo? Please, open an issue.

Need help getting up and running? Get Support