Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot finish DB compaction on macOS due to open file limit #122

Open
dzdidi opened this issue Oct 16, 2024 · 0 comments
Open

Cannot finish DB compaction on macOS due to open file limit #122

dzdidi opened this issue Oct 16, 2024 · 0 comments

Comments

@dzdidi
Copy link

dzdidi commented Oct 16, 2024

Linux default ulimit -n is 1024 which is not enough.

Note that this is not the case for https://github.com/romanz/electrs, see https://github.com/Blockstream/electrs/blob/new-index/src%2Fnew_index%2Fdb.rs#L88C69-L88C76

I'm running it with systemd and adding LimitNOFILE=4096 to [SERVICE] section of systemd service file seem to help, based on the link above 100000 will be more reliable.

Alternatively user needs to execute ulimit -n 100000 before start

dzdidi added a commit to dzdidi/electrs that referenced this issue Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant