1

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?

3

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.

  1. Setup mining_proxy.py on a linux machine
    1. 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 ./)
    2. setup each pool you want to mine with it's own script (same -sp (port) for each )
    3. point all your miners at the proxy server with the port you are using
    4. make sure all pools use the same worker names and passwords (since this is setup on the miners)
    5. start your chosen bash script (best to use screen so you can exit the session and leave it running)
    6. 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.
| improve this answer | |
  • This worked great - a few caveats to others, I had to set my server to static IP on the ubuntu machine so a power outage or router reboot wouldn't force me to have to mess with the miner's themselves. – However a few hours later and checking my pool stats, this DIDNT work it just caused a ton of invalid shares. I thought this could happen beforehand as you are trying to run stratum through stratum (Antminer has a stratum proxy built into cgminer. Basically my output on the pool was the equivalent of 300 GH for those 8 units so back to the drawing board for me – Frankenmint Feb 24 '14 at 15:32
  • When configuring stratum mining proxy, did you setup a stratum port (-sp). The proxy allows for both getwork and stratum ports to be used. Failing that, I wonder if you can set the ant miners to use getwork instead? – mcstar Feb 24 '14 at 19:51
  • Found a thread at bitcointalk.org/index.php?topic=405889.0 regarding this exact issue. Seems there are some limitations in the cgminer instance antminer's using (or breaking changes, not sure which). Either way, the only suggested fix is to use the cgminer api and some custom scripts to make the changes as needed. This is unfortunately because I recently ordered a couple of the antminers to supplement my other rigs, for which, this technique has worked flawlessly for some time. – mcstar Feb 24 '14 at 19:58
1

I would suggest creating a bash script for this. You could write a bash script that, when executed, asks what pool you would like to switch to. It then kills all of your miners and restarts them using the new pool.

| improve this answer | |
1

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.

| improve this answer | |
  • I forgot about this thread and ended up donating to and getting access of CG Remote which has been working well to manage everything together – Frankenmint Apr 12 '14 at 12:42
  • Ok, great to know; I just learned how to control my 8 Antminer S1s myself so thought I'd share my results. I was also looking at CG Remote, but was unsure how many units I could monitor and control with it, so have held off on trying it. – vnhyp0 Apr 12 '14 at 13:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.