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

fine tune the number of ballot/vote consumers #95

Open
2 tasks
JMLX42 opened this issue Nov 5, 2016 · 1 comment
Open
2 tasks

fine tune the number of ballot/vote consumers #95

JMLX42 opened this issue Nov 5, 2016 · 1 comment

Comments

@JMLX42
Copy link
Owner

JMLX42 commented Nov 5, 2016

Each ballot/vote consumer will connect to the ethereum node.
It implies using file descriptors (at least for sockets).
Having a lot of consumers might make the ethereum node crash because it won't have any file descriptor left.

When it happens, the geth logs show the following message:

http: Accept error: accept tcp 127.0.0.1:8545: accept: too many open files; retrying in 10ms

To make sure it doesn't happen:

  • augment the maximum number of file/socket descriptors for geth
  • make sure ballot_consumer_count, vote_consumer_count and the queue prefetch value won't cause a file desriptor shortage
@JMLX42
Copy link
Owner Author

JMLX42 commented Nov 5, 2016

Related issue: ethereum/go-ethereum#2358

@JMLX42 JMLX42 mentioned this issue Nov 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant