As title says, I have 8 identical mining machines I just want to be able to point them at the same pool all at once, is this possible with a combination of python and ssh? If someone else already invented something could you point me to that? If not, could you give me a basic idea on how I would tackle this myself?
Here are the instructions for setting a mining proxy which allows all your miners to connect via the proxy instead of via their own config. This way you only have to stop then start a single process on the proxy to change pools instead of messing with each miner to do the switch.
- Setup mining_proxy.py on a linux machine
- pont slush's mining_proxy.py at a pool of your choosing using a bash script file (remember to chmod 755 so you can run the bash script with ./)
- setup each pool you want to mine with it's own script (same -sp (port) for each )
- point all your miners at the proxy server with the port you are using
- make sure all pools use the same worker names and passwords (since this is setup on the miners)
- start your chosen bash script (best to use screen so you can exit the session and leave it running)
- miners can be switched by ssh via screen -d -r , then ctrl-c (to kill the proxy), now just run the correct bash script to switch to the next pool.
Along with starting a proxy to control which pool you mine at, you can force the proxy to control the username and password for each pool, allowing different worker names at different pools and mining towards BTC addresses, Dwolla accounts, etc.
To do this, start the proxy using the -cu and -cp commands for the worker name and password, respectively.
For example, using "-cu worker1 -cp x" will force any work through the proxy to submit it under the username worker1 pw x, even if cgminer or other mining program uses other names).
Also, it helps to add the -nm option if your connection is poor or the pool is giving really low difficulty shares to fast miners. This can cause huge network lag from TONs of low diff shares being submitted. Just a problem I ran into on a pool giving me diff1 shares at 1.4TH, so thought I'd share the info if your moving around pools a lot.