-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
gaiad: opens many files while synching and can exceed standard Linux limits #1394
Comments
More descriptive issue title |
I fixed this problem editing the file |
I was looking https://godoc.org/github.com/syndtr/goleveldb/leveldb/opt#Options and it seems like each leveldb isntance we open might open as many as 500 cache files. This could explain why we are seeing so many open file. |
I think we might be able to limit this by passing in options https://github.com/tendermint/tendermint/blob/07747de305ba80144ff0d4ad9109068bc486dedd/libs/db/go_level_db.go#L32 |
Please may want to be able specify higher levels of caching for validators etc and then less caching for standard full nodes |
This should go in a Gaia config file (#1662). |
Closing, believed to have been fixed upstream, please reopen if this can be replicated. |
I set up a new node (4GB ram, 4cpu, 80gb disk DO). It syncs with gaia-6002. I ran it from block 0 until around 410,000 and it crashed with too many open files. 46657 and 46658 are blocked so it's not an RPC issue.
It seems that the database opens too many files.
I think we need to determine a way to limit the number of open files on the system.
Currently any user would have to increase the number of open files according to this guide: https://www.tecmint.com/increase-set-open-file-limits-in-linux/
The text was updated successfully, but these errors were encountered: