<p>Yes, the failover setting will tell cgminer to mine on a secondary pool when the first pool is unavailable. 
Run cgminer with the following:</p>

<blockquote>
  <p>cgminer.exe --scrypt -o <a href="http://p2pool.org:9327" rel="nofollow">http://p2pool.org:9327</a> -u username -p password
  --failover-only -o <a href="http://backuppool.org" rel="nofollow">http://backuppool.org</a> -u username -p password</p>
</blockquote>

<p>This example mines LTC  at p2pool and will mine at another pool of your choice when p2pool is unavailable.</p>

CC BY-SA 3.0
2014-04-14T05:13:57.420Z
After failing-over to the backup, does it occasionally check that the primary pool is available again and then switch back to the primary?
michaelmoo
CC BY-SA 3.0
2014-04-14T13:53:09.957Z
It checks for the main pool very often and reconnects almost instantaneously once the main pool is back online.
Mark
CC BY-SA 3.0
2014-02-16T18:39:12.143Z
Asking for tips in posts is not allowed, but you may post your addresses in your profile. See the meta question here: [Is it okay to ask for money donations in an answer?](http://meta.bitcoin.stackexchange.com/q/460)
Murch
CC BY-SA 3.0
2014-02-16T17:52:58.980Z
2014-02-16T18:30:51.627Z
2014-02-16T18:30:51.627Z
Daniel
<p>I have been messing with a p2pool which I like (no fee) but has latency about every week causing the miner to stop mining altogether. I would like to employ some kind of failover strategy so that the miner will mine somewhere else if unable to connect to this free p2pool, but I would like to be mining on the primary pool as often as possible.</p>

<p>I have tried looking at the multipool settings, but they weren't very informative in terms of what happens when. If I set <code>failover</code> does that mean that it will only connect to the second if it can't connect to the first? If not, is there any way to set up cgminer this way?</p>

<cgminer><miner-configuration><p2pool>
How does the "failover" setting in cgminer work?
Mark
# How does the "failover" setting in cgminer work?

(Asked by: username_0 on 2014-02-10)

I have been messing with a p2pool which I like (no fee) but has latency about every week causing the miner to stop mining altogether. I would like to employ some kind of failover strategy so that the miner will mine somewhere else if unable to connect to this free p2pool, but I would like to be mining on the primary pool as often as possible.

I have tried looking at the multipool settings, but they weren't very informative in terms of what happens when. If I set `failover` does that mean that it will only connect to the second if it can't connect to the first? If not, is there any way to set up cgminer this way?

**Tags:** cgminer, miner-configuration, p2pool


---

## 1 answers

### Answer by username_1 on 2014-02-16. Score: 3 | Accepted answer

Yes, the failover setting will tell cgminer to mine on a secondary pool when the first pool is unavailable.
Run cgminer with the following:

> cgminer.exe --scrypt -o <http://p2pool.org:9327> -u username -p password
> --failover-only -o <http://backuppool.org> -u username -p password

This example mines LTC at p2pool and will mine at another pool of your choice when p2pool is unavailable.

> **Comments:**
> **username_3**: Asking for tips in posts is not allowed, but you may post your addresses in your profile. See the meta question here: [Is it okay to ask for money donations in an answer?](http://meta.bitcoin.stackexchange.com/q/460)  
> **username_2**: After failing-over to the backup, does it occasionally check that the primary pool is available again and then switch back to the primary?  
> **username_0**: It checks for the main pool very often and reconnects almost instantaneously once the main pool is back online.  

---

