Post
Topic
Board CPU/GPU Bitcoin mining hardware
Re: Smartcoin Linux mining administration. [NEW LOCKUP DETECTION & FAILOVER SUPPORT]
by
jondecker76
on 23/07/2011, 01:27:51 UTC
Hello,

  I am not sure if it is something I am going wrong but I am unable to trigger the failover

I have a profiles setup to mine on 3 different server on the same pool and I have tried simulating an outage using /etc/hosts file but it never fails over is there any specific data that might help in locating this.. ? it is a fresh smartcoin install

Smartcoin r495s

here is the failover order
1 was a deleted profile

2) BTCGuild All
3) BTCGuild US
4) BTCGuild USWest
5) BTCGuild USEast
6) BitClockers


/etc/hosts is not the correct way to do this for testing (I think it will work with a reboot, but still a real pain)

Use iptables to fake a domain being down.  Here is an example to add a rule to block things to X8S:

Block:
Code:
sudo iptables -A OUTPUT -p tcp -m string --string "x8s.de" --algo kmp -j DROP
(in my experience, it will take 30 seconds or so sometimes before the packets will start dropping, and you see <>> in the smartcoin display)


To unblock it after testing, first you have to get an index  number:
Code:
sudo iptables -L OUTPUT --line-numbers
make note of the number of the rule to delete for the next command...
then remove the rule by:
Code:
sudo iptables -D OUTPUT #
(replace # above with the rule number to delete)



For testing failover,  the first criteria is that an instance shows "<<>>" for the number of iterations listed in the settings (default 10).  This is about a minute or so...