This document explains the configurable properties of the Endpoint 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.
kend.conf for configuring the Endpoint Node
The configuration file is located in the
conf directory, whose default location depends on whether or not the installation is from an archive distribution (
tar.gz) or a package distribution (RPM).
For the archive distribution, the config directory location defaults to
For the package distribution, the config directory defaults to
Below is a sample configuration file for the EN that participates in the
cypress network and stores the blockchain data in the default location, which is
~/kend_home with the archive distribution,
/var/kend/data with the package distribution.
# Configuration file for the kend# cypress, baobab is only available if you don't specify NETWORK_ID.NETWORK="cypress"# if you specify NETWORK_ID, a private network is created.NETWORK_ID=PORT=32323SERVER_TYPE="fasthttp"SYNCMODE="full"VERBOSITY=3MAXCONNECTIONS=10# LDBCACHESIZE=10240...DATA_DIR=LOG_DIR=$DATA_DIR/logs
The recommended txpool sizes for EN are as follows.
The configuration file has the following configurable properties.
Network name that this node will join. This value is used when NETWORK_ID is not defined. ("cypress", "baobab")
Klaytn network ID. If you create a local private network, you will define the network ID for your own. Following IDs are reserved for pre-configured networks. 8217 : Cypress (Main network) 1000 : Aspen test network 1001 : Baobab test network
JSON RPC server type. ("http", "fasthttp")
Blockchain sync mode. ("fast", "full")
Logging verbosity. (0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail)
Maximum number of physical connections. All single-channel peers can have up to MAXCONNECTIONS peers. All multi-channel peers can have up to MAXCONNECTIONS/2 peers. Network connection is disabled if it is set to 0.
Size of in-memory cache in LevelDB (MiB).
Maximum number of executable transaction slots for all accounts.
Maximum number of non-executable transaction slots for all accounts.
Number of executable transaction slots guaranteed per account.
Maximum number of non-executable transaction slots guaranteed per account.
Maximum amount of time non-executable transactions is queued.
Enable the HTTP-RPC server if it is set to 1.
Comma-separated list of APIs offered over the HTTP-RPC interface. (admin, debug, klay, miner, net, personal, rpc, txpool, web3)
HTTP-RPC server listening port.
HTTP-RPC server listening interface.
Comma-separated list of domains from which to accept cross-origin requests (browser enforced)
Comma-separated list of virtual hostnames from which to accept requests (server enforced). Accepts '*' wildcard.
Enable the WS-RPC server if it is set to 1.
APIs offered over the WS-RPC interface. (admin, debug, klay, miner, net, personal, rpc, txpool, web3)
WS-RPC server listening interface.
WS-RPC server listening port.
Origins from which to accept websockets requests.
Enable main bridge service if it is set to 1. Used for service chain configuration.
Main bridge listens on this port.
Enable storing transaction hash of child chain transactions for fast access to child chain data if it is set to 1.
Enable metrics collection and reporting if it is set to 1.
Enable prometheus exporter if it is set to 1.
Disable parallel writes of block data to persistent database if it is set to 1.
Create a dedicated channel for block propagation if it is set to 1.
Listening sub port number if multichannel option is enabled.
Turn off the discovery option if it is set to 1.
Comma-separated kni addresses of bootstrap nodes.
For additional command-line options. e.g) --txpool.nolocals
Klaytn blockchain data folder path.
Log folder path.