Upstream change: v6.0.0 adopts open files limit, TSI index and ports #4

Closed
opened 2026-11-02 10:44:42 +00:00 by tim · 2 comments
Owner

Found during the weekly code maintenance run (2026-11-02). Upstream (hassio-addons/addon-influxdb, now app-influxdb) is still maintained: v6.0.0 was released 2026-09-17 and renovate bumps continue (debian-base 9.5.1 on 2026-10-22, already in our 5.2.0).

v6.0.0 items that touch the InfluxDB part (which this fork keeps):

  • "Adopt community contributions: open files limit, TSI index and ports" (hassio-addons/app-influxdb#417).
  • "Make clear this app provides InfluxDB v1" (documentation).

Items that do not apply: nginx auth_request / ingress (this fork dropped Chronograf, Kapacitor and nginx), the Add-on to App rename.

Why it may matter: the TSI index (index-version = "tsi1") keeps memory use bounded with many series, which the default in-memory index does not. The open files limit matters for larger data sets. Both are config choices in influxdb/rootfs/etc/influxdb/influxdb.conf and the run script. Our config today sets only the data dirs, auth and reporting.

Not done: switching the index type on an existing data directory needs a conversion (influx_inspect buildtsi), so this is a decision, not a drive-by change.

Close this issue if you do not want it. Comment ok to approve it for implementation.

Found during the weekly code maintenance run (2026-11-02). Upstream (`hassio-addons/addon-influxdb`, now `app-influxdb`) is still maintained: v6.0.0 was released 2026-09-17 and renovate bumps continue (debian-base 9.5.1 on 2026-10-22, already in our 5.2.0). **v6.0.0 items that touch the InfluxDB part (which this fork keeps):** - "Adopt community contributions: open files limit, TSI index and ports" (hassio-addons/app-influxdb#417). - "Make clear this app provides InfluxDB v1" (documentation). **Items that do not apply:** nginx `auth_request` / ingress (this fork dropped Chronograf, Kapacitor and nginx), the Add-on to App rename. **Why it may matter:** the TSI index (`index-version = "tsi1"`) keeps memory use bounded with many series, which the default in-memory index does not. The open files limit matters for larger data sets. Both are config choices in `influxdb/rootfs/etc/influxdb/influxdb.conf` and the run script. Our config today sets only the data dirs, auth and reporting. **Not done:** switching the index type on an existing data directory needs a conversion (`influx_inspect buildtsi`), so this is a decision, not a drive-by change. Close this issue if you do not want it. Comment `ok` to approve it for implementation.
Author
Owner

Ok.

Ok.
tim closed this issue 2026-11-03 11:39:18 +00:00
Author
Owner

Shipped as v5.3.0 (PR #5), image git.timstoop.nl/tim/influxdb/aarch64:5.3.0. Not deployed.

Adopted: index-version = "tsi1", ulimits: nofile: 65535 (Supervisor 2025.10 or newer; older ones ignore the key, so the run script also raises the soft limit up to the hard limit and logs Open files limit: N). The Chronograf, Kapacitor, port and nginx parts of upstream's change do not apply to this fork.

Because the issue called the index switch a decision, I tested it on InfluxDB 1.13.2 (the same package) instead of trusting the upstream PR text:

  • Updating alone converts nothing. All old data stayed readable, writes into old shards worked, new shards get the on-disk index, and InfluxDB logs Mixed shard index types while both exist. The memory benefit therefore only grows as new shards replace old ones.
  • Converting needs the add-on stopped and influx_inspect buildtsi -datadir /data/influxdb/data -waldir /data/influxdb/wal -v, run as the user owning the files (root in the add-on). On the test data it took under a second and every shard got an index directory.
  • Rolling back the config on a converted data directory works (TSI shards keep working).

Not measured: conversion time and extra disk on a real data volume, and a real Supervisor (the effect of ulimits on the container). Details in influxdb/DOCS.md and the release notes.

Shipped as v5.3.0 (PR #5), image `git.timstoop.nl/tim/influxdb/aarch64:5.3.0`. Not deployed. Adopted: `index-version = "tsi1"`, `ulimits: nofile: 65535` (Supervisor 2025.10 or newer; older ones ignore the key, so the run script also raises the soft limit up to the hard limit and logs `Open files limit: N`). The Chronograf, Kapacitor, port and nginx parts of upstream's change do not apply to this fork. Because the issue called the index switch a decision, I tested it on InfluxDB 1.13.2 (the same package) instead of trusting the upstream PR text: - Updating alone converts nothing. All old data stayed readable, writes into old shards worked, new shards get the on-disk index, and InfluxDB logs `Mixed shard index types` while both exist. The memory benefit therefore only grows as new shards replace old ones. - Converting needs the add-on stopped and `influx_inspect buildtsi -datadir /data/influxdb/data -waldir /data/influxdb/wal -v`, run as the user owning the files (root in the add-on). On the test data it took under a second and every shard got an index directory. - Rolling back the config on a converted data directory works (TSI shards keep working). Not measured: conversion time and extra disk on a real data volume, and a real Supervisor (the effect of `ulimits` on the container). Details in `influxdb/DOCS.md` and the release notes.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/hass-influxdb#4
No description provided.