How to Set Up and Run a K2 Validator Table of Contents Run a K2 Validator Validator Requirements Minimum Koii requirements Hardware requirements Pre-requisites setup 1. Ensure system is up-to-date 2. User setup 3. Koii cli setup 4. Key pairs creation 5. Network configuration 6. Systuning setup Validator setup 1. Systemd service setup 2. Create a vote account 3. Enable and Start the Koii validator 4. Configure the…
K2 is the current settlement layer within Koii and provides the functionality of a message hub to other systems in the network. Thanks to the incredible work of the Solana Labs team, K2 is able to use Proof of History to achieve 0.2-second transaction times and thousands of transactions per second.
There is no minimum amount of KOII required to stake and participate in the voting process.
To participate in the voting process you must configure your system, start a validator, and configure your voting and stake accounts. This guide will show you how to do this.
Hardware requirements
Here are the minimum hardware requirements for running a K2 Validator in terms of memory, computing, storage, and your operating system:
Memory
256GB, or more for consensus validator nodes
512GB, or more for RPC nodes
Compute
12 cores / 24 threads, or more @ minimum of 2.8GHz for consensus validator nodes
16 cores / 32 threads, or more for RPC nodes
Storage
For consensus validators:
PCIe Gen3 x4 NVME SSD, or better
Accounts: 500GB, or larger. High TBW (Total Bytes Written)
Ledger: 2TB or larger. High TBW suggested
For RPC nodes:
A larger ledger disk if longer transaction history is required, accounts and ledger should not be stored on the same disk
GPUs are not strictly necessary
Network: 1 Gbps uplink and downlink speed, must be unshaped and unmetered
Operating System
Currently, we are testing our binaries for Ubuntu 22.04. We do provide binaries for other operating systems however the operation of these binaries is not guaranteed.
Once a properly sized Ubuntu 22.04 system is available we can begin to configure the system for operation of a validator node.
Pre-requisites setup
All following steps need to be run on the validator server, unless mentioned otherwise.
1. Ensure system is up-to-date
Ensure your Ubuntu system is up-to-date and has all the base packages required
sudo adduser koii
sudo usermod -aG sudo koii
sudo su koii
cd ~
3. Koii cli setup
Required both on your secure computer for keypair generation and on the validator
sh -c "$(curl -sSfL https://raw.githubusercontent.com/koii-network/k2-release/master/k2-install-init_v1.16.6.sh)"
# You may need to update PATH variable for the cli to be available
echo 'export PATH="/home/koii/.local/share/koii/install/active_release/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Set the koii config to point to the testnet
koii config set --url https://mainnet.koii.network
4. Key pairs creation
Run commands for only this step on a secure computerseparate from the validator server
You need to install Koii cli on this secure computer as well, to be able to use the commands below
We will be creating the following 4 key pairs:
koii-keygen new --outfile ~/validator-keypair.json
koii-keygen new --outfile ~/vote-account-keypair.json
koii-keygen new --outfile ~/stake-account-keypair.json
koii-keygen new --outfile ~/authorized-withdrawer-keypair.json
# To print your Public key(i.e. Wallet address) for any keypairs
# koii-keygen pubkey <Path to Keypair>
validator-keypair.json : Identity of the validator on the network
Copy this to the remote validator server at /home/koii/validator-keypair.json
vote-account-keypair.json : Voting account on the network
Copy this to the remote validator server at /home/koii/vote-account-keypair.json
stake-account-keypair.json : Keypair for your staking wallet
Keep this secure since this will hold the wallet that you delegate stake from
authorized-withdrawer-keypair.json : Authorized withdrawer keypair, allowd to withdraw funds from your validator vote account ****
5. Network configuration
If you have firewall software installed you will need to allow traffic on the following ports:
4. Configure the Commission Rate for Your Validator
The commission rate determines the percentage of staking rewards allocated to the validator as a fee for their services, with the remainder distributed to the stakers. The commission rate must be a valid percentage between 0 and 100.
To update the commission rate for your validator’s vote account, use the following command:
Your validator will not show up in the koii validators list for 12 to 24 hours, you can check your stake to make sure it is properly delegated by running the following command
koii stake-account ~/stake-account-keypair.json
Expected output:
Balance: <Amount of KOII>
Rent Exempt Reserve: <Amount of KOII>
Delegated Stake: <Amount of KOII>
Activating Stake: <Amount of KOII>
Delegated Vote Account Address: <pubkey>
Stake Authority: <pubkey>
Withdraw Authority: <pubkey>
If you see a value in “Activating Stake” then you should be successfully voting within 24 hours
评论