stratum-mining-litecoin icon indicating copy to clipboard operation
stratum-mining-litecoin copied to clipboard

Improve Database Performances

Open nodapio opened this issue 11 years ago • 2 comments

I'm running a pool with hundreds of miners and MySQL is cunsuming a lot of CPU. I would like to know if there's a built-in feature in stratum that allows me to load-balance the queries on multiple servers. Also, is the latency between stratum and the mysql server important ? Because I have a good server at home that would handle the requests pretty well but he's at 150ms from the stratum server...

nodapio avatar Dec 11 '13 11:12 nodapio

You don't load balance writes, you balance reads.

You should analyze your SQL - if you run MPOS it is most likely the live dashboard that is used.

Latency is always an issue for pools.

Cheers, Sebastian

On 11.12.2013, at 12:13, nodapio [email protected] wrote:

I'm running a pool with hundreds of miners and MySQL is cunsuming a lot of CPU. I would like to know if there's a built-in feature in stratum that allows me to load-balance the queries on multiple servers. Also, is the latency between stratum and the mysql server important ? Because I have a good server at home that would handle the requests pretty well but he's at 150ms from the stratum server...

— Reply to this email directly or view it on GitHub.

TheSerapher avatar Dec 11 '13 11:12 TheSerapher

Ok thank you, I will disable the live dashboard and see what's happening. After I will try load-balancing for read requests.

nodapio avatar Dec 11 '13 11:12 nodapio