-
Notifications
You must be signed in to change notification settings - Fork 20.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
`DatabaseHandles' in ethconfig.Config cannot be set through TOML #24148
Comments
thanks - seems we need to add it to the TOML - as a workaround you can set it via CLI |
How? Could you please provide this command here? |
hello, I have the same problem, but I don't see an option to set this parameter via CLI? |
RIght, no that's true, it's not settabie, not via config nor cli. It's calculated on the fly, |
I think a valid solution would be, not to set the max database handles explicitly, but rather to override the max file limit. So instead of geth checking the max file limit and deriving the db handle limit from that, we'd check use the smallest of |
This comment was marked as spam.
This comment was marked as spam.
Hello holiman, I would like to solve this issue. go-ethereum/cmd/utils/flags.go Lines 1058 to 1070 in fb3a652
but, how can I derive the db handle limit from the smallest of |
@eval-exec , I think this issue only arises on very busy nodes running under restricted enviroments like AWS. Using the minimum value between |
* eth, cmd: allow FdLimit to be set in config/command line (#24148) * eth/ethconfig: format code * cmd, eth/ethconfig: simplify fdlimit arg, disallow toml * cnd/utils: make fdlimit setting nicer on the logs Co-authored-by: Gary Rong <[email protected]> Co-authored-by: Péter Szilágyi <[email protected]>
* eth, cmd: allow FdLimit to be set in config/command line (ethereum#24148) * eth/ethconfig: format code * cmd, eth/ethconfig: simplify fdlimit arg, disallow toml * cnd/utils: make fdlimit setting nicer on the logs Co-authored-by: Gary Rong <[email protected]> Co-authored-by: Péter Szilágyi <[email protected]>
* eth, cmd: allow FdLimit to be set in config/command line (ethereum#24148) * eth/ethconfig: format code * cmd, eth/ethconfig: simplify fdlimit arg, disallow toml * cnd/utils: make fdlimit setting nicer on the logs Co-authored-by: Gary Rong <[email protected]> Co-authored-by: Péter Szilágyi <[email protected]>
open |
Closed by #24477. |
* eth, cmd: allow FdLimit to be set in config/command line (ethereum#24148) * eth/ethconfig: format code * cmd, eth/ethconfig: simplify fdlimit arg, disallow toml * cnd/utils: make fdlimit setting nicer on the logs Co-authored-by: Gary Rong <[email protected]> Co-authored-by: Péter Szilágyi <[email protected]>
System information
Geth
Version: 1.10.13-stable
Git Commit: 7a0c19f
Architecture: amd64
Go Version: go1.17.3
Operating System: linux
GOPATH=
GOROOT=go
Expected behaviour
Close files that aren't in use / have a settable limit
Actual behaviour
Every database file it opens stays open for the duration of the sync
Steps to reproduce the behaviour
Snap sync the blockchain on an AWS EFS volume
Backtrace
I use @holiman recomendation from issue #23922
but i get error:
"Fatal: /root/.ethereum/config.toml, line 13: field corresponding to `DatabaseHandles' in ethconfig.Config cannot be set through TOML"
My config.toml:
Any idea how to fix this?
The text was updated successfully, but these errors were encountered: