Skip to content

LimitNOFILE env var in systemd should be higher #1390

@jbowen93

Description

@jbowen93

This is the page they should update: https://docs.celestia.org/nodes/systemd

What Happens?

  • badgerdb uses extensive files to run
    • Badger keeps the file descriptors open for SST and vlog files.
    • badger doesn't release the file descriptors until the db (or the file) is closed.
  • Celestia Docs for systemd set the ulimit at 4096 LimitNOTFILE=4096
  • Badger themselves say it needs a lot of open files to run properly in production (>1million)
  • Even if you set DefaultLimitNoFILE to a large number for ALL processes, by setting the value in systemd it will use the systemd limit

From our bridge node, current open files in badgerDB - 1330736

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdependenciesPull requests that update a dependency filedocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions