This guide serves as a handy quick reference for Node operators to efficiently configure, monitor, and troubleshoot their Klaytn nodes. It covers common tasks like configuring nodes, understanding and analyzing logs, managing chaindata, and using essential commands. The guide aims to help Node operators smoothly run and maintain their blockchain nodes by equipping them with key information and best practices.
This document explains the configurable properties of the node. Klaytn node package ships with good defaults and requires very little configuration. If you changed any settings of a running node, you must restart the node to reflect the changes.
📄️ Node Log
This page details some important or frequently asked logs from Klaytn nodes.
📄️ Log operation
Configure Log Rotation
📄️ Frequently Used Commands
How to find the Klaytn Directory (Normally “Klaytn DIR”)
Where can I find a log file for the running Klaytn node using the Klaytn binary package?
📄️ Change Chaindata
💡 THIS GUIDE IS BASED ON Amazon Linux 2
📄️ Migrate Chaindata
💡 Run migration only for PN and EN nodes (not CN)
📄️ Link Full Node to Archive
In order to query the state of a random block to a node, the node must have the state trie of the block. Archive nodes store the state of all blocks in the database, but full nodes store the state of the latest 128 blocks and at a 128 block cycle. For example, a full node can query the balance for blocks multiple of 128.