equihash-solomining icon indicating copy to clipboard operation
equihash-solomining copied to clipboard

Clustering

Open dlehenky opened this issue 7 years ago • 3 comments

I may be missing something, but it seems every thread is polling the daemon for work. Is that right? When I used z-nomp, I was also using "blocknotify", so I didn't notice the threads hammering the daemon the way they are now. I've turned "clustering" off, for the time being.

dlehenky avatar Mar 24 '17 00:03 dlehenky

Every thread polls so they're on the same page as the other ones since that's one area Node.js falls short. I made the default config to be really aggressive at 100ms but I haven't noticed any high cpu usage from it though.

WaveringAna avatar Mar 28 '17 02:03 WaveringAna

Well, they could be kept on the same page by having a single thread deal exclusively with the daemon, sinking and sourcing everything to/from the stratum threads.

On Mar 27, 2017, at 8:05 PM, Procrastinator [email protected] wrote:

Every thread polls so they're on the same page as the other ones since that's one area Node.js falls short. I made the default config to be really aggressive at 100ms but I haven't noticed any high cpu usage from it though.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aayanl/equihash-solomining/issues/4#issuecomment-289640552, or mute the thread https://github.com/notifications/unsubscribe-auth/AOexPasWFOkA-V4lJ3LZlWw5mkQ9UzC1ks5rqGrZgaJpZM4MniGV.

dlehenky avatar Mar 28 '17 02:03 dlehenky

https://nodejs.org/api/cluster.html#cluster_how_it_works

WaveringAna avatar Mar 28 '17 11:03 WaveringAna