@ro-witness - Witness Update 10th of July '18

in #witness6 years ago

Hello, fellow Steemians,

<p dir="auto"><a href="https://steemit.com/witness/@ro-witness/ro-witness-the-newest-witness-on-the-steem-blockchain" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">introduction post.<span>here is the weekly witness update from <a href="/@ro-witness">@ro-witness. You can read about us in our <hr /> <h4>Weekly Freeroll on Lucksacks Poker League <p dir="auto"><span>This weeks winner was <a href="/@hopfarmnc">@hopfarmnc. Congratulations on the win! <p dir="auto"><span>Visit <a href="https://www.lucksacks.com" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://www.lucksacks.com and follow <a href="/@tuck-fheman">@tuck-fheman and <a href="/@spl">@spl for the poker-related news. <hr /> <h4>Weekly Delegation Project <p dir="auto"><span>The winner from last week was <a href="/@spl">@spl, where the community has shown again that it is one of the best on Steem. <p dir="auto"><center><img src="https://images.hive.blog/768x0/https://i.imgur.com/05PluRO.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/05PluRO.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/05PluRO.png 2x" /> <p dir="auto">More details can be read <a href="https://steemit.com/witness/@ro-witness/ro-witness-witness-update-1st-of-july-18" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here. <p dir="auto">For this weeks contest we nominate following projects: <ul> <li><span><a href="/@steemromania">@steemromania <li><span><a href="/@dach-support">@dach-support <li><span><a href="/@steemitbd">@steemitbd (thanks <a href="/@azizbd">@azizbd for the nomination) <li><span><a href="/@photomatic">@photomatic <li><span><a href="/@steembay">@steembay <p dir="auto">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. <h4>Technical Update <p dir="auto">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. <p dir="auto">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: <ul> <li>power outage longer than 45 minutes - which for our APC UPSes is the maximum at a standard load of 45% of its 2kW battery. <li>sudden spike in local load. <li>ISP related failures. <h5>Power outage - monitor UPS - issue commands <hr /> <p dir="auto">For monitoring the UPS status, I use <code>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 <code>upssched.conf to issue, based on UPS status, various actions, steps to be taken. <p dir="auto">One example of <code>upssched.conf would be: <p dir="auto"><code>CMDSCRIPT /bin/witnessmon.sh<br /> AT ONBATT * EXECUTE upsonbatt<br /> AT ONBATT * START-TIMER disableandupdate 1800<br /> AT ONLINE * EXECUTE upsonline<br /> AT ONLINE * CANCEL-TIMER disableandupdate <hr /> <p dir="auto">Now, the first line from this configuration of <code>upssched.conf use the AT command <code>CMDSCRIPT to run a private script which has 2 variables wrapped in a <code>case logic. Then, it continues with AT commands based on UPS status <code>ONBATT or <code>ONLINE to <code>EXECUTE commands from the scrips. The command of <code>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 <code>ONBATT status, the script will be aborted. <p dir="auto">Now for the script part: <code>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. <p dir="auto"><code>#!/bin/bash<br /> case $1 in<br /> upsonbatt)<br /> mail -s "UPS on battery power" rowitness@rowitness.com<br /> echo "Primary UPS on battery" | gsmsendsms -d /dev/ttyUSB0 -b 19200 sysadminphonenumber<br /> ;;<br /> upsonline)<br /> mail -s "UPS on line power" rowitness@rowitness.com<br /> echo "Primary UPS online" | gsmsendsms -d /dev/ttyUSB0 -b 19200 sysadminphonenumber<br /> ;;<br /> disableandupdate )<br /> ./pathtorunsh/run.sh stop<br /> echo "Primary down" | gsmsendsms -d /dev/ttyUSB0 -b 19200 backupsrvnumber;sysadminphonenumber<br /> mail -s "Primary disabled" rowitness@rowitness.com<br /> ;;<br /> esac <p dir="auto">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. <p dir="auto">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. <h4>Maintenance <p dir="auto">We will run a maintenance tomorrow from 09:00 am UTC, so if you see the server disconnected tomorrow is because of this. <p dir="auto">During last weeks downtime, we lost only 1 block and managed to be back fats online with the version 0.19.5 <h3>Rank <p dir="auto">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. <p dir="auto">Thank you for the support given and helping us reach this spot on the witness ranking. <h3><span>How to vote for <a href="/@ro-witness">@ro-witness <p dir="auto">You can vote either via the Steemit witness page or via steemconnect. Both options are presented here. <p dir="auto"><center><span><a href="https://steemit.com/~witnesses" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://steemit.com/~witnesses <p dir="auto"><center><img src="https://images.hive.blog/768x0/https://i.imgur.com/IuHV8CC.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/IuHV8CC.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/IuHV8CC.png 2x" /> <p dir="auto">Or insert our name in the box and press vote. <p dir="auto"><center><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmQFH3Y47jET9REDoxc4Za6PY46aQBZ8jnDxrc6aLHmMHd/image.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmQFH3Y47jET9REDoxc4Za6PY46aQBZ8jnDxrc6aLHmMHd/image.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmQFH3Y47jET9REDoxc4Za6PY46aQBZ8jnDxrc6aLHmMHd/image.png 2x" /> <p dir="auto"><center><a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=ro-witness&approve=1" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote via Steemconnect