Correct procedure to transition to tsi1

I have InfluxDB 1.7 running on an Ubuntu 18.04 machine. It is using the default inmem index-version but I want to convert it to use tsi1. The documentation says that I can use influx_inspect buildtsi to convert to the TSI format, but also says Note: For offline conversion only.

Am I correct in thinking that this is the correct sequence to convert my installation to use TSI?

  1. sudo systemctl stop influxdb
  2. Change index-version to tsi1 in /etc/influxdb/influxdb.conf
  3. sudo -u influxdb influx_inspect buildtsi -datadir /var/lib/influxdb/data/ -waldir /var/lib/influxdb/wal/
  4. sudo systemctl start influxdb
1 Like

Hello @TaborKelly,
Yes that’s close, I think you’re just missing a couple of steps. Have you had a chance to look at the documentation?

As a last step with the influx-inspect you would probably want to either:

  • Convert all shards for a database
$ influx_inspect buildtsi -database mydb -datadir ~/.influxdb/data -waldir ~/.influxdb/wal


  • Convert all shards on a node
$ influx_inspect buildtsi -datadir ~/.influxdb/data -waldir ~/.influxdb/wal

Does that help at all?

1 Like

I couldn’t run the above commands in docker. Let’s say I’m installing an influxdb instance from zero with no older data in docker.

Is it OK to edit the config as tsi1 then run the container and skip influx_inspect command since there are no shards to convert?

Yes you can enable TSI from the start. I believe it is automatically enabled in v1.7.6+ . These commands are only really valuable to those looking to upgrade.

1 Like