Extdev Jump Start

Purpose

This page shows you how to launch an Extdev Testnet node from the jump start.

#Hardware Requirements

The minimum hardware requirements are as follows: 2 CPU, 16 GB RAM, NVMe SSD. Example: AWS i3.large.

#Download the Latest Extdev Stable Build

wget https://downloads.zeknd.io/zeknd/linux/extdev-stable/zeknd
chmod +x zeknd

#Download the Jump Start Archive

There are two available locations where you can download it from, USA or Singapore. Choose the location closest to you. The Singapore location is automatically replicated from the USA location so it might be a while before it becomes available when we update the archive.

#United States

  • Archive: http://zeknd-share.s3-website.us-east-2.amazonaws.com/extdev-plasma-us1-jump-start-min.tar.gz

  • MD5: http://zeknd-share.s3-website.us-east-2.amazonaws.com/extdev-plasma-us1-jump-start-min.tar.gz.md5sum

#Singapore

  • Archive: http://zeknd-share-sg.s3-website.ap-southeast-1.amazonaws.com/extdev-plasma-us1-jump-start-min.tar.gz

  • MD5: http://zeknd-share-sg.s3-website.ap-southeast-1.amazonaws.com/extdev-plasma-us1-jump-start-min.tar.gz.md5sum

#Extract the Archive

tar xfvz extdev-plasma-us1-jump-start.tar.gz

#Generate the Unique Config

mkdir blank
cd blank
cp ../zeknd-jump-start/zeknd.yml .
../zeknd init
cp chaindata/config/{priv_validator.json,node_key.json} ../zeknd-jump-start/chaindata/config/
cd ../zeknd-jump-start

#Start the Node

NOTE: Check the open files limit on your system before starting the node! See Open Files Limit.

Now, let's start the node by running:

../zeknd run --persistent-peers tcp://[email protected]:46656,tcp://[email protected]:46656,tcp://[email protected]:46656,tcp://[email protected]:46656

#Finally

The non-validator node will now sync with the validator nodes. Status can be queried at http://localhost:46658/rpc/status

#Run zeknd as a Service on Ubuntu 16.04 (Optional)

Create /etc/systemd/system/zekndservice

[Unit]
Description=zeknd
After=network.target

[Service]
Type=simple
User=<user that runs zeknd>
WorkingDirectory=<working directory of zeknd>
ExecStart=<path to zeknd>/zeknd run --persistent-peers tcp://[email protected]:46656,tcp://[email protected]:46656,tcp://[email protected]:46656,tcp://[email protected]:46656
Restart=always
RestartSec=2
StartLimitInterval=0
LimitNOFILE=500000
StandardOutput=syslog
StandardError=syslog

[Install]
WantedBy=multi-user.target

#Reload the Config

systemctl daemon-reload

#Run zeknd on Boot

systemctl enable zeknd.service

#To start/stop/restart the Service

systemctl (start/stop/restart) zeknd.service

#Inspect the Logs (Method 1)

tail -f /var/log/syslog

#Inspect the Logs (Method 2)

sudo journalctl -u zeknd.service -f

#The Open Files Limit

When using systemd, the open files limit is taken care of by the LimitNOFILE directive. It will not, however, be applied when running zeknd manually.

#The system-wide Limit

Add the following lines to /etc/sysctl.conf

fs.file-max=500000

To activate it immediately:

sudo sysctl -p

To check whether it is active:

cat /proc/sys/fs/file-max

#For a Specific User

Add the following lines to the /etc/security/limits.conf file:

username        hard nofile 500000
username        soft nofile 500000

Note: The user needs to re-login to have it active

To check whether it is active:

# check soft limit
ulimit -Sn

# check hard limit
ulimit -Hn

Last updated