Asentum

Run a Node

Monitoring & Logs

Keeping a validator healthy · Estimated read time: 5 minutes

Accurate as of node 0.8.1.

TL;DR

Every Asentum node writes its log to the systemd journal and answers a few HTTP status routes on its RPC port. Downtime is the #1 avoidable risk (seeSlashing Risks), and the most useful check is simple: is your node's height moving, and is it close to the public RPC's height?

Tailing logs

Nodes run under systemd. To tail the log live:

journalctl -fu asentum-validator

From the desktop app, use Settings → View logs. From theVPS installer, use asentum-validator logs.

Log lines are plain text with a tag in brackets, for example [v3-pull] or [epoch-entry]. Filter with grep.

Status endpoints

On a VPS the RPC is http://127.0.0.1:8545; in the Operator app it is http://127.0.0.1:9545. Full details are in theNode API Reference.

RouteUse it for
GET /v3/headsYour node's finalized height and tip: {"finalized":"571252","tip":"571255"}. The main sync check.
GET /validatorsYour validator's committeeState (signing, waiting_epoch_entry, dormant, pending_bond, tombstoned), lastVotedHeight and consecutiveMisses.
GET /participation?lookback=300How many of the last 300 blocks your validator signed (signedBlocks, status). Addresses here are 0x hex.
GET /healthOnly says the HTTP server is up: {"status":"ok"}. It does not check sync or signing.
GET /readyDo not use in 0.8.1: it always answers ready, even on a stalled node.

There is no Prometheus /metrics route. If you use Prometheus, export the numbers below with a small script (for example through the node_exporter textfile collector).

Scripted checks

Compare your node with the public RPC. Needs curl and jq:

#!/usr/bin/env bash
# Usage: ./check.sh ase1yourvalidatoraddress
ME=$1
LOCAL=http://127.0.0.1:8545
PUBLIC=https://testnet.asentum.com

mine=$(curl -s $LOCAL/v3/heads | jq -r .finalized)
net=$(curl -s $PUBLIC/v3/heads | jq -r .finalized)
echo "behind: $((net - mine)) blocks"

curl -s $LOCAL/validators | jq --arg me "$ME" \
  '.validators[] | select(.address == $me) | {committeeState, lastVotedHeight, consecutiveMisses}'

Run it twice a minute apart: the finalized height should move between runs. The VPS command asentum-validator status shows the same information.

What to watch

  • Sync lag. Your finalized height should stay within a few blocks of the public RPC. If it falls behind and keeps falling, check network, disk I/O and CPU. A height that does not move at all for minutes is a stall: restart the node, and on a VPS try asentum-validator resync if it stays stuck.
  • Port 9000. Blocks and votes travel over ANT on port 9000 to the network's core nodes. If outbound traffic on 9000 is blocked, the node falls behind. Your RPC port does not need to be reachable by other nodes.
  • committeeState. dormant means your validator missed too many votes in a row; waiting_epoch_entry means it is waiting for the next epoch's entry window. A growing consecutiveMisses while you are in the committee is the early warning. Missed votes cost rewards, and sustained downtime can lead todowntime slashing.
  • Tombstoned. tombstoned in /validators, or your address in /slashing/tombstones, is an emergency.

Alerting

The simplest alert is a cron job that runs the check above every minute and messages you when the lag passes a threshold or the height stops moving. Good starting points:

  • Behind the public RPC by more than 10 blocks for 2 minutes.
  • Finalized height unchanged for 2 minutes.
  • committeeState is dormant or tombstoned.

Send it to Telegram, Discord or whatever your team uses. You want to know within minutes, not days.

Read next