influxd inspect build-tsi
InfluxDB builds the index by reading all Time-Structured Merge tree (TSM) indexes and Write Ahead Log (WAL) entries in the TSM and WAL data directories. If the series file directory is missing, it rebuilds the series file. If the TSI index directory already exists, the command will fail.
--max-log-file-size
--max-log-file-size
determines how much of an index to store in memory before compacting it into memory-mappable index files. If you find the memory requirements of your TSI index are too high, consider decreasing this setting.
--max-cache-size
--batch-size
--batch-size
defines the size of the batches written into the index. Altering the batch size can improve performance but may result in significantly higher memory usage.