Some questions regarding TSM > TSI1 shard conversion

TSM is how we store the data, so there’s no compromise between TSI and TSM.

The indexing options are “inmem” and TSI. inmem is simple, it just reads all data in all TSM files when the process starts, stores the index in memory.

TSI is an on-disk index, so the process starts much faster because it doesn’t have to read every TSM file. TSI also uses less memory, and has other trickery that makes it faster than inmem in most cases.

1 - TSI is usually faster than inmem
2,3,4 - You’ll stop InfluxDB, change the config, create the TSI indexes, and restart InfluxDB
5 - Don’t delete any existing on-disk data. After the migration, you’ll see where the TSI index files are; everything else is either TSM, or series key indexes (which are automatically rebuilt if they are missing, but without sitting next to you, just don’t delete things and expect your life to be simple).

4 Likes