Hello, fellow Steemians,
Weekly Freeroll on Lucksacks Poker League
This weeks winner was @hopfarmnc. Congratulations on the win!
Weekly Delegation Project
The winner from last week was @spl, where the community has shown again that it is one of the best on Steem.
More details can be read here.
For this weeks contest we nominate following projects:
Feel free to nominate other projects for next week. We are happy to discover the ones that build up Steem and give it the special flair it aims to have.
Monitoring your witness is of paramount importance. We talked in the post from two weeks ago about a method to send an SMS with various system parameters, in case of failure, through a 3G modem, to the backup witness server which should react to the failure messages and start the broadcasting of keys.
As our servers are bare-metal, privately held locations, we need a way to offset the advantages of hosting them in a dedicated data center, thus creating a fail-safe mechanism which would react in time in case of:
- power outage longer than 45 minutes - which for our APC UPSes is the maximum at a standard load of 45% of its 2kW battery.
- sudden spike in local load.
- ISP related failures.
Power outage - monitor UPS - issue commands
For monitoring the UPS status, I use
nut. I won't go into the details of installing the package, as it is pretty straightforward. So I will use the AT commands in
upssched.conf to issue, based on UPS status, various actions, steps to be taken.
One example of
upssched.conf would be:
AT ONBATT * EXECUTE upsonbatt
AT ONBATT * START-TIMER disableandupdate 1800
AT ONLINE * EXECUTE upsonline
AT ONLINE * CANCEL-TIMER disableandupdate
Now, the first line from this configuration of
upssched.conf use the AT command
CMDSCRIPT to run a private script which has 2 variables wrapped in a
case logic. Then, it continues with AT commands based on UPS status
EXECUTE commands from the scrips. The command of
disableanduptate uses a timer, as I don't want to rush to disable the witness, sends SMS to the backup and update keys if the power mainlines resumes in 30 minutes. When power resumes, if <30 minutes since the
ONBATT status, the script will be aborted.
Now for the script part:
nano witnessmon.sh and paste the following and adapt to your own coordinates - email and phone number of the receiving 3G modem attached to the backup witness server.
case $1 in
mail -s "UPS on battery power" firstname.lastname@example.org
echo "Primary UPS on battery" | gsmsendsms -d /dev/ttyUSB0 -b 19200 sysadminphonenumber
mail -s "UPS on line power" email@example.com
echo "Primary UPS online" | gsmsendsms -d /dev/ttyUSB0 -b 19200 sysadminphonenumber
echo "Primary down" | gsmsendsms -d /dev/ttyUSB0 -b 19200 backupsrvnumber;sysadminphonenumber
mail -s "Primary disabled" firstname.lastname@example.org
So, in case of a power outage, that goes longer than 30 minutes, our primary witness server is disabled and our backup witness server is enabled.
Next week we will be covering other situations and parameters to monitor, and also how the backup witness server will interpret these messages received by SMS.
We will run a maintenance tomorrow from 09:00 am UTC, so if you see the server disconnected tomorrow is because of this.
During last weeks downtime, we lost only 1 block and managed to be back fats online with the version 0.19.5
At this moment of writing, we are on position 78 in the witness ranking. 74 for the active ones. We maintained our position in the active ones and have lost one in general. We produce at the moment 6 blocks a day.
Thank you for the support given and helping us reach this spot on the witness ranking.
How to vote for @ro-witness
You can vote either via the Steemit witness page or via steemconnect. Both options are presented here.
Or insert our name in the box and press vote.