Node Configuration


2. Modify data/log directory, network, discovery, boot node, reward base and log level information.
1) Your kcnd.conf should be modified as shown below.

** kcnd.conf is located at /etc/kcnd/conf/kcnd.conf for Option 1 (Yum Repo), and <DOWNLOADED_PATH>/kcn-linux-amd64/conf/kcnd.conf for Option 2 (Archive). Please change the path of the egrep command below for Option 2.

$ egrep "^NETWORK|^DATA_DIR|^LOG_DIR|^VERBOSITY|NO_DISCOVER|BOOTNODES|REWARDBASE|ADDITIONAL" /etc/kcnd/conf/kcnd.conf
NETWORK="mainnet"
NETWORK_ID=
VERBOSITY=1
DATA_DIR=/kaia/kcnd/data
LOG_DIR=/kaia/kcnd/logs
NO_DISCOVER=0 # setting 1 to disable discovery
BOOTNODES="kni://b286e4140aea469992146c299f8915e34d59a014c29a045de41e578014761114176f42dece34a54ce1e37f92ab981fe1bb14e54fe23576e1182778c40e6272a2@ston146.node.kaia.io:32323?ntype=bn,kni://a6b61ee786952e3f8b681867d2535485622e80d0b9b7b89f26b2c631e59a4246b5f879487fbde7c324c3308ece0cdb1d7738430bdffce4f7f8c4f5a09eef80a3@ston738.node.kaia.io:32323?ntype=bn,kni://b25838727eb6b4631c8f8910b4f6376fe28041f251ee21129078a61d18d62d0dc2601be5a97eab8bdb5772309f861fddb7192935483813ef20e5716a34266f16@ston903.node.kaia.io:32323?ntype=bn"
REWARDBASE="" # ADD YOUR REWARDS ADDRESS GENERATED BY KEYTOOL
ADDITIONAL="--state.trie-cache-limit 5000 --state.live-pruning --vmodule blockchain=3"

** DATA_DIR and LOG_DIR are the directories created in 1-B. Data Disk and Directories.
** Fill REWARDBASE with your rewards address generated by keytool.

2) Log level

VERBOSITY=1 keeps only error logs, and --vmodule in ADDITIONAL raises the level of some modules. Because they are set in kcnd.conf, they are kept after kcnd restarts.

OptionEffect
VERBOSITY=1Default log level: error only (0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail)
--vmodule blockchain=3Keeps the Inserted a new block info logs used in 5-C. Check the services

** You can also change the log level of a running kcnd without restarting it, but the change is lost when kcnd restarts:

$ sudo kcn attach --exec 'debug.verbosity(1)' /kaia/kcnd/data/klay.ipc
$ sudo kcn attach --exec 'debug.vmodule("blockchain=3")' /kaia/kcnd/data/klay.ipc


If you finish this step, please click the next button > on the right side of this page.