influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
29.05k stars 3.56k forks source link

Low ulimits cause bad experiences for some users on OSS 2.x #22896

Open lesam opened 3 years ago

lesam commented 3 years ago

Proposal: We should mitigate problems caused by low ulimits. Ideas:

Current behavior: Users start up a bucket with a 30 day retention policy and get daily shards. Many linux distros set the max ulimit -n to 1024 . 30 days * ~20 files per shard when TSI is enabled creates ~600 files, so with their first bucket users are right up against their ulimits.

Desired behavior: TBD

Alternatives considered: Document that users should increase their ulimits as part of setup

Use case: Many users get inscrutable "too many files" errors in the logs, which causes much frustration and also data issues as new files cannot be written.

lesam commented 2 years ago

See also https://github.com/influxdata/influxdb/issues/23246