Giter VIP home page Giter VIP logo

quicksync-kava's Introduction

quicksync-kava

Playbooks to install a Kava node with Chainlayer Quicksync

Prerequisites

  • on your local machine install ansible
  • make sure you have ssh-key access to the target machine with either root or a user with sudo rights

Usage

git clone https://github.com/chainlayer/quicksync-kava.git
# edit group_vars/kava.yml file
vim group_vars/kava.yml
# edit ansible-hosts.yml file
vim ansible-hosts.yml
cd quicksync-kava
./quicksync

Troubleshooting

Cancelled downloads

If for whatever reason the download is cancelled, you can resume it manually (assuming default variables):

sudo su - kavauser
cd /home/kavauser
aria2c --continue -x 5 https://get.quicksync.io/kava-7-pruned.20210624.0210.tar.lz4
cd .kvd
tar -I lz4 -xf /home/kavauser/kava-7-pruned.20210624.0210.tar.lz4
exit
# enable and start kava with sudo
sudo systemctl enable kvd
sudo systemctl start kvd

Feedback during downloads

Downloading the blockchain using the quicksync option can take a long time! Ansible will not give you any feedback unfortunately. You can check if aria2c is still working by checking top on the host or checking the aria.log file in the download dir for progress

Disk space needed

You need enough harddisk space to store the download as well as the unpacked chain, lz4's compression rate is roughly 30% so you would need at least 2,4 time the download size in disk space. A variable called cl_download_dir can be used to specify a different download directory, that way you could add a temporary second disk for the download and remove it afterwards.

A word on idempotency

Normally Ansible playbooks are idempotent meaning you can run them multiple times with the same result. This playbook should be idempotent as well however running it a second time will download the whole quicksync another time and is therefore not recommended.

quicksync-kava's People

Contributors

tyrion70 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.