User avatar
andreafs
Lisker
Posts: 166
Joined: Tue Mar 29, 2016 8:26 pm

Liskit - Autorebuilder and reloader in JS

Fri Dec 02, 2016 12:07 pm

Hi all.
I've developed and tested the following script:

https://github.com/andreafspeziale/lisk ... orebuilder

It basically select the better node with open API for:
1) check if you have forged in the last round (if not rebuild)
2) check if your blockchain height is 4 blocks behind (if it is reload - at the moment I'm only printing the diff result, I'm testing it)

A lot of users are using it and ask me some infos, you can find me on the lisk chat (:

Screen of the tail -f forever-autorebuild.log logger
Schermata 2016-12-02 alle 13.01.29.png
Schermata 2016-12-02 alle 13.01.29.png (122.08 KiB) Viewed 460 times


Cheers and vote for liskit (:
Delegate name: liskit
My delegate proposal

Keep in touch: Twitter | @liskit

User avatar
Splatters
Lisker
Posts: 63
Joined: Wed Mar 16, 2016 4:59 pm
Location: italy
Contact: Twitter

Re: Liskit - Autorebuilder and reloader in JS

Fri Dec 02, 2016 12:18 pm

Andrea did a great job with this script, easy to be installed and he's making new fix and addition to make it better.
It works and I saw it launch a rebuild after my node missed one block this morning.
I told him to fix this because as we know in this release of lisk could happen to lose 1 block but forge the next one, so it's not necessary a rebuild only after 1 lost block. especially if the node is synced with the chain.


User avatar
Ondin
Lisker
Posts: 61
Joined: Tue Apr 05, 2016 7:31 am

Re: Liskit - Autorebuilder and reloader in JS

Fri Dec 02, 2016 12:29 pm

Great Andrea! Thank you :)
Delegate name : ondin
LISK Address : 765057514163296046L


Delegate name: Ondin
Check my Lisk delegate proposal

Contacts: Bitcointalk | @Ondin on Telegram

User avatar
andreafs
Lisker
Posts: 166
Joined: Tue Mar 29, 2016 8:26 pm

Re: Liskit - Autorebuilder and reloader in JS

Fri Dec 02, 2016 12:50 pm

Thank you all guys!

Here you can see how is comparing also the height
Schermata 2016-12-02 alle 13.44.13.png
Schermata 2016-12-02 alle 13.44.13.png (136.35 KiB) Viewed 451 times


Schermata 2016-12-02 alle 13.51.44.png
Schermata 2016-12-02 alle 13.51.44.png (192.83 KiB) Viewed 451 times
Delegate name: liskit
My delegate proposal

Keep in touch: Twitter | @liskit

User avatar
redsn0w
Global Moderator
Posts: 201
Joined: Sat Apr 02, 2016 8:41 am
Contact: Website Twitter

Re: Liskit - Autorebuilder and reloader in JS

Fri Dec 02, 2016 1:27 pm

I'm also using it and it is awesome, well done @andreafs !

User avatar
andreafs
Lisker
Posts: 166
Joined: Tue Mar 29, 2016 8:26 pm

Re: Liskit - Autorebuilder and reloader in JS

Mon Dec 05, 2016 5:28 pm

HI all,
I've made 2 videos on how to install and use my javascript rebuilder!

In the first video you can see how I setup it (0-4min) and how I manually caused a fork to my testnet node (4min).
The script will autorebuild (23.55min), enable the forging and at the finish of the video forge a block.
For this video I've manually deactivate the checkHeight function of the script for demo purposes.

https://youtu.be/lZxj3h-Zm8E

In the second video all the script checks are activated and as you can see when a blockchain height problem is detected (node dead or delayed of N blocks) the script reload or restart automatically the node.

https://youtu.be/SsMfO_bOidE

The script enable itself the forging when the sync is finished.
I'm using it right now on mainet and testnet :)

In the repository there are 3 main branch

- master (script handle 1 node self rebuild and reload based on missed delegate round and blockchain height)
- testnet (script handle 1 node self rebuild and reload based on missed delegate round and blockchain height)
- switch-forging (script handle 2 node self rebuild and reload based on missed delegate round and blockchain height and it switch the forging btw the master and slave node if the master is inadaquate to forge) --> still testing it

Please let me know if do you need help and consider to vote my delegates LISKIT!
Delegate name: liskit
My delegate proposal

Keep in touch: Twitter | @liskit

User avatar
Splatters
Lisker
Posts: 63
Joined: Wed Mar 16, 2016 4:59 pm
Location: italy
Contact: Twitter

Re: Liskit - Autorebuilder and reloader in JS

Mon Dec 05, 2016 5:33 pm

Outstanding!

User avatar
dakk
Lisker
Posts: 41
Joined: Tue Nov 08, 2016 8:41 am
Location: Sardinia, Italy
Contact: Website Twitter

Re: Liskit - Autorebuilder and reloader in JS

Tue Dec 06, 2016 8:38 am

it's a really useful tools, I don't miss blocks anymore

Return to “Tools & Scripts”

Who is online

Users browsing this forum: No registered users and 2 guests