This is a basic setup with x.x.x.x and y.y.y.y representing the IP addresses of the stake pool operator's relays:
The Valency parameter determines the total number of connections to local roots. For instance, if you want a hot connection with both x.x.x.x and y.y.y.y relays, set Valency to 2.
Avoid using public roots in the block producer setup.
UseLedgerAfterSlot is configured to be -1 to ensure that ledger peers are never utilized on the block producer.
If you get an error about VRF keys:
****
VRF private key file /keylocation/vrf.skey has 'other' file permissions. Please remove all 'other' file permissions.``Fix it with:
``
chmod 0400 vrf.skey
OR
chmod og-rwx vrf.skey
Set up the Cardano node to run as systemd service
It will be useful to set your time zone to UTC:
sudo timedatectl set-timezone UTC
Create the cardano-node.service file. The example saves it on /etc/systemd/system/:
systemctl --help
systemctl [OPTIONS...] COMMAND ...
Query or send control commands to the system manager:
Unit commands:
list-units [PATTERN...] List units currently in memory
list-sockets [PATTERN...] List socket units currently in memory,
ordered by address
list-timers [PATTERN...] List timer units currently in memory,
ordered by next elapse
start UNIT... Start (activate) one or more units
stop UNIT... Stop (deactivate) one or more units
reload UNIT... Reload one or more units
restart UNIT... Start or restart one or more units
try-restart UNIT... Restart one or more units if active
reload-or-restart UNIT... Reload one or more units if possible,
otherwise, start or restart
try-reload-or-restart UNIT... If active, reload one or more units,
if supported, otherwise, restart
isolate UNIT Start one unit and stop all others
kill UNIT... Send a signal to processes of a unit
clean UNIT... Clean runtime, cache, state, logs or
configuration of a unit
is-active PATTERN... Check whether units are active
is-failed PATTERN... Check whether units are failed
status [PATTERN...|PID...] Show the runtime status of one or more units
For example:
sudo systemctl stop cardano-node.service
sudo systemctl start cardano-node.service
Use journalctl to inspect your node logs:
Follow the logs in real-time:
journalctl --unit=cardano-node --follow
Show only the actual message (pure node logs) without any metadata from journalctl: