anselal / antminer-monitor

Cryptocurrency ASIC mining hardware monitor using a simple web interface
GNU General Public License v3.0
228 stars 145 forks source link

Benchmark loading time #79

Open anselal opened 6 years ago

anselal commented 6 years ago

I need feedback on how much time it takes to load the page with as many miners as possible, from a couple hundred to a few thousand.

@shotaatosh @danter83 ? Can you give me some feedback ?

You can post here the number of miners and the time it takes to load the page. Also if you have changed the socket.timeout this info would also be useful.

Any feedback would help !!!

PS: The loading time also depends on the network setup.

UPDATED: Also inactive miners add a significant delay to the page depending on the socket timeout parameter

shotaatosh commented 6 years ago

I can gather no more than 60 miners in one place for now

anselal commented 6 years ago

@shotaatosh Fair enough

shotaatosh commented 6 years ago

updated to latest version, moved the db and everything is working, for now 44xS9s and 2xA3 also 44xD3s in another location, but I can't merge them fro now, but with VPN. loading time for S9s is quite fast, what exact info can I get for you?

gnanet commented 6 years ago

https://github.com/inconshreveable

loading time with a hugely mixed active-inactive list of 85 pcs of D3-s inactive: 49 active: 36 TTFB: 43.33sec

danter83 commented 6 years ago

I cant say how much time will it take as I need the version which supports port numbers so I can test - I have only remote access to my miners without access to LAN.

gnanet commented 6 years ago

this ttfb was measured over a distance with a sshtunnel from home to the mining farm, with antminer-monitor running at the farm

anselal commented 6 years ago

@gnanet If you remove the inactive miners the loading time with decrease significantly

gnanet commented 6 years ago

@anselal i know, but this was at least a real-world scenario, where last time i managed the ip list there were much more miners active, than dead or removed ;)

Is there a discussion about how to keep the list of miners uptodate, but not risking to miss alerts of failing miners. Kind of first alert about, then the failure could be acknowledged, at that point active monitoring shall not check the device, and after a configurable grace time the miner could be removed automatically.

Pavelivn commented 6 years ago

250 miners 1 inactive TTFB: 3.652 sec on server.

anselal commented 6 years ago

@gnanet Notifications will be part of this software in the next releases.

@Pavelivn Nice !!! What do you think about the time ? I think it is pretty quick but can be quicker if I change my code !!!

Pavelivn commented 6 years ago

You can change the code provided that there are no false positives. Sometimes 1-2 miners are displayed inactive, although they are active.

anselal commented 6 years ago

@Pavelivn I hear that for the first time. If the connection to the miner is lost then the miner is displayed as inactive. I guess if you refresh the page the miner appears as active again ?

Pavelivn commented 6 years ago

All right. There is a suggestion that miners, under certain conditions, respond with a delay.

anselal commented 6 years ago

@Pavelivn If this happens to your setup often you can try to increase the socket timeout in the lib/pycgminer.py file