Bitcoin Forum
December 17, 2017, 04:26:01 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How can I efficiently switch pools on lots of miners at once?  (Read 3153 times)
TwinTurbo
Member
**
Offline Offline

Activity: 89


View Profile
May 14, 2013, 08:44:19 AM
 #1

So I have a few miners spread across three different physical locations. Each location has its own independent internet connection. Occasionally, I like to switch pools to mine different altcoin currencies, get better stability, better stats, whatever.

My machines all run on Windows and re-imaging and installing them is not an option. They all run CGMiner from batch files.

BAMT seemed appealing at one time, but seems the setup would be pretty laborious on 20 machines.

Ideally what I would like is something, perhaps a webpage hosted on a central computer, where I can proxy all of my miners through to whatever pool I specify on the server.

Any suggestions, ideas, etc are greatly appreciated.
1513527961
Hero Member
*
Offline Offline

Posts: 1513527961

View Profile Personal Message (Offline)

Ignore
1513527961
Reply with quote  #2

1513527961
Report to moderator
1513527961
Hero Member
*
Offline Offline

Posts: 1513527961

View Profile Personal Message (Offline)

Ignore
1513527961
Reply with quote  #2

1513527961
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513527961
Hero Member
*
Offline Offline

Posts: 1513527961

View Profile Personal Message (Offline)

Ignore
1513527961
Reply with quote  #2

1513527961
Report to moderator
1513527961
Hero Member
*
Offline Offline

Posts: 1513527961

View Profile Personal Message (Offline)

Ignore
1513527961
Reply with quote  #2

1513527961
Report to moderator
bigb0096
Newbie
*
Offline Offline

Activity: 7


View Profile
May 28, 2013, 05:32:53 PM
 #2

Have you looked into the CGMiner API? https://github.com/ckolivas/cgminer/blob/master/API-README

I have a setup that uses the API to keep an eye on things for me. You can pull stats at intervals, monitor temperatures, change pools, etc. with the API.

If you look in the CGMiner codebase, you'll find a couple example programs for accessing the API. Alternatively, it's pretty easy to roll your own since it's a simple JSON interface.
eleuthria
Legendary
*
Offline Offline

Activity: 1750



View Profile
May 28, 2013, 05:55:04 PM
 #3

If the pools all use Stratum, you could run a Stratum proxy on a central server.  Then whenver you want to move, just restart the proxy with a new pool address.  The miners should reconnect and now start sending work at the new pool.  You'll get a few rejects due to the miners submitting work from the prior server, but it shouldn't last very long.

RIP BTC Guild, April 2011 - June 2015
iCEBREAKER
Legendary
*
Offline Offline

Activity: 1862


WARNING FOR NOOBS: Dash is an Instamined scam coin


View Profile WWW
May 28, 2013, 06:04:16 PM
 #4

If the pools all use Stratum, you could run a Stratum proxy on a central server.  Then whenver you want to move, just restart the proxy with a new pool address.  The miners should reconnect and now start sending work at the new pool.  You'll get a few rejects due to the miners submitting work from the prior server, but it shouldn't last very long.

Won't the login name/password and format have to the be the same on all the pools?

EG: Some pools expect icebreaker.1 and some expect icebreaker_1.

Here's a hack I've considered using to get around this problem:  when you want to disable a pool, log in to that pool and change your worker password.  Then the miners can't connect so they'll move down to the next one.  To re-enable it, change the password back to the one set in your miners.

It would be nice if cgminer could change between scrypt to sha pools without restarting.  But Con might finally lose it and flip out if I requested that feature....   Grin


██████████
█████████████████
██████████████████████
█████████████████████████
████████████████████████████
████
████████████████████████
█████
███████████████████████████
█████
███████████████████████████
██████
████████████████████████████
██████
████████████████████████████
██████
████████████████████████████
██████
███████████████████████████
██████
██████████████████████████
█████
███████████████████████████
█████████████
██████████████
████████████████████████████
█████████████████████████
██████████████████████
█████████████████
██████████

Monero
"The difference between bad and well-developed digital cash will determine
whether we have a dictatorship or a real democracy." 
David Chaum 1996
"Fungibility provides privacy as a side effect."  Adam Back 2014
Buy and sell XMR near you
P2P Exchange Network
Buy XMR with fiat
eleuthria
Legendary
*
Offline Offline

Activity: 1750



View Profile
May 28, 2013, 06:13:27 PM
 #5

Actually, I missed the part about altcoins.  As far as I'm aware, you can't swap cgminer from SHA256 to SCrypt altcoins without restarting it, so my solution wouldn't work anyways.

If it wasn't for Windows, I'm sure a quick shell/python script could be written to ping a central website for a signal to restart cgminer with different arguments.  It's possible with Windows too, but would be much easier in a Linux system.

RIP BTC Guild, April 2011 - June 2015
iCEBREAKER
Legendary
*
Offline Offline

Activity: 1862


WARNING FOR NOOBS: Dash is an Instamined scam coin


View Profile WWW
May 28, 2013, 06:23:01 PM
 #6

Actually, I missed the part about altcoins.  As far as I'm aware, you can't swap cgminer from SHA256 to SCrypt altcoins without restarting it, so my solution wouldn't work anyways.

If it wasn't for Windows, I'm sure a quick shell/python script could be written to ping a central website for a signal to restart cgminer with different arguments.  It's possible with Windows too, but would be much easier in a Linux system.

Good point.

The solution is to run two concurrent instances of cgminer, one for each type coin you wish to mine (scrypt and sha).

Break the worker passwords for the instance you wish to disable/idle, so the other active one gets full resources.  Reverse when profitability changes.


██████████
█████████████████
██████████████████████
█████████████████████████
████████████████████████████
████
████████████████████████
█████
███████████████████████████
█████
███████████████████████████
██████
████████████████████████████
██████
████████████████████████████
██████
████████████████████████████
██████
███████████████████████████
██████
██████████████████████████
█████
███████████████████████████
█████████████
██████████████
████████████████████████████
█████████████████████████
██████████████████████
█████████████████
██████████

Monero
"The difference between bad and well-developed digital cash will determine
whether we have a dictatorship or a real democracy." 
David Chaum 1996
"Fungibility provides privacy as a side effect."  Adam Back 2014
Buy and sell XMR near you
P2P Exchange Network
Buy XMR with fiat
ISAWHIM
Hero Member
*****
Offline Offline

Activity: 504



View Profile
May 29, 2013, 04:53:40 AM
 #7

If you want to just log-in to multiple pools, it is easier. The program does all the work.

Use the "--load-balance" option. That will log-in to pool A, B, and C all at the same time... the ones "alive" will give work, and the dead ones will be skipped. The work spreads to any available thread/process/GPU. Distributing to the "fastest responding server", (AKA: Most efficient) with the largest portion of the load.

Not wise to switch from scrypt coins to sha256 coins. All that "resetting" of your cards will just cause errors, and make it hard to get a stable program running. The cards were not intended to constantly switch setup profiles. Run one computer with multi-pool scrypt, and one with multi-poo sha256.
Trongersoll
Hero Member
*****
Offline Offline

Activity: 490



View Profile
May 29, 2013, 01:56:53 PM
 #8

You could just train a bunch of Monkeys to push the buttons at the right time. (sorry, i couldn't resist)
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!