Phoenix1969
Lisker
Posts: 108
Joined: Sat Apr 02, 2016 6:21 pm
Location: Hawaii
Contact: Website

Basic Lisk Army Knife Failover install for Newbs

Tue Dec 06, 2016 7:10 am

liskak - Lisk Army Knife - Forging failover and command line lisk by hmachado
**************************************************************************************

To start, just go to your main home user directory and enter the following commands:

1.

Code: Select all

git clone https://github.com/filipealmeida/liskak.git


2.

Code: Select all

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -


3.

Code: Select all

sudo apt-get install -y nodejs


4.

Code: Select all

cd liskak && npm install


5.

Code: Select all

cd src/ && nano liskak.json

and enter your passphrase and be sure "proto" is set to correct
"http" or "https" then Ctrl-X, Y, Enter

6.

Code: Select all

nano liskak_mainnet.json

enter your passphrase AGAIN, and be sure "proto" is set to correct http or https again
then Ctrl-X, Y, Enter

7.

Code: Select all

nano monitorMain.sh

and enter your node ip info like this: (replacing with your node ip's)
    HOST1="http://127.0.0.1:8000" home node liskak is on. (This ip stays same as written.)
    HOST2="https://124.267.0.217" backup 1 replace ip with yours on these backup ip's
    HOST3="" backup 2 only list as many nodes as you have
    HOST4="" backup 3 make sure if http they have :8000
    HOST5="" You can have as many backups as you want, just list them like I did
    HOST6="" here and don't forget to add them to the line at the bottom
    CONFIG="src/liskak_mainnet.json" If you only have 1 backup, just leave the other host fields blank
    LOG_FILE="logs/forgingMain.log"
    pkill -f $HOST1 -9
    nohup bash liskak.sh -c $CONFIG -f $HOST1 $HOST2 $HOST3 $HOST4 $HOST5 $HOST6 > $LOG_FILE 2>&1&
then Ctrl-X, Y, Enter

*at This point be sure to:
    Remove passphrase from all lisk config.json files (not removing the pass will cause forks)
    and whitelist main host ip liskak is on in all lisk config.jsons of backup/slave servers



and remember to:

Code: Select all

bash lisk.sh reload

on any server you alter the config.json file on in lisk

So now start it:
from the liskak host server directory:

Code: Select all

bash monitorMain.sh start
starts liskak

THEN:

Code: Select all

tail -f logs/forgingMain.log
to see the logs (Ctrl-C gets you out of logs)

Code: Select all

pkill -f src/liskak.js -9
to stop liskak



advanced feature(s):

Code: Select all

./liskak.sh -q
enables broadhash consensus minimums


Delegate hmachado made liskak, please remember to donate. 8858064098621060602L
Last edited by Phoenix1969 on Tue Dec 06, 2016 10:46 am, edited 11 times in total.
Vote for Phoenix1969

User avatar
joeri
Lisker
Posts: 31
Joined: Mon Nov 28, 2016 2:49 pm
Location: Netherlands
Contact: Website Twitter Skype

Re: Basic Lisk Army Knife Failover install for Newbs

Tue Dec 06, 2016 10:07 am

This is awesome. I want to make a video to show people how to do this.

check out my delegate proposal please. I'ma video maker and I want to continue to explain and promote Lisk

viewtopic.php?f=48&t=1202&p=9645#p9645

Return to “Guides”

Who is online

Users browsing this forum: No registered users and 1 guest