Everything not listed in this document should behave the same as upstream Nimbus. If a feature, setting, or behavior is not mentioned here, the upstream documentation is accurate and fully applicable — see the Documentation section of
instructions.mdfor links.
StartOS service package for Nimbus, a lightweight Ethereum consensus (beacon chain) client.
- Image and Container Runtime
- Volume and Data Layout
- File Models
- Dependencies
- Network Access and Interfaces
- Installation and First-Run Flow
- Actions
- Tasks
- Health Checks
- Backups and Restore
- Limitations and Differences
- Quick Reference for AI Consumers
This package runs the unmodified upstream multi-architecture statusim/nimbus-eth2 container image directly with a custom command line tailored for StartOS. The manifest requires at least 24 GiB of RAM (hardwareRequirements.ram) to exclude 8 GB and 16 GB devices while allowing 32 GB+ hosts after StartOS's memory reserve and integrated GPU carve-outs (64 GB+ preferred when running alongside other heavy services).
| Property | Value |
|---|---|
| Image source | Upstream unmodified (statusim/nimbus-eth2) |
| Architectures | x86_64, aarch64 (emulateMissing: false) |
| Entrypoint | Custom command (/home/user/nimbus_beacon_node with StartOS flags) |
- Subcontainers:
nimbus: Long-lived subcontainer runningprepare-nimbus(oneshot creating/chain/nimbusand settinguser:userownership) and thenimbusdaemon (sigtermTimeout: 60_000so SQLite/chaindag state flushes cleanly on stop).checkpoint-sync: Temporary subcontainer (sdk.SubContainer.withTemp) created only while running the Checkpoint Sync action.
- Runtime resource scaling: On every startup,
computeResourceBudget()inspects container RAM (os.totalmem()) and logical CPUs (os.availableParallelism()) to set--num-threads(half of CPUs, clamped 1–4),--rest-statecache-size(1below 20 GiB container RAM,3otherwise),--rest-statecache-ttl(30s /60s), and caps--max-peers(100below 20 GiB container RAM,250otherwise). Nimbus runs with--network=mainnet --history=prune --netkey-file=/chain/nimbus/netkey --insecure-netkey-password --enr-auto-update=true, preserving its libp2p Peer ID across restarts and updates so Ethereum peers can reconnect inbound immediately. At boot,main.tsreads any enabled public IP matching the active outbound gateway once (.once(), never.const()) to seed--nat=extip:<ip>(falling back to--nat=none), so both discv5 and libp2p advertise the public address from second zero while StartTunnel ↔ WAN switches still never force restarts. - Live thermal throttling: Rather than restarting Nimbus when temperatures climb, the
thermalshealth check runstaskset -acpandioniceinside thenimbussubcontainer against all threads of/home/user/nimbus_beacon_node(comm=nimbus_beacon_n), scaling CPU core affinity and I/O priority smoothly and reversibly without interrupting sync.
Persistent settings live on an internal config volume, while the consensus database is mounted at /chain from either the internal chain volume or a user-selected StartOS shared volume.
| Volume / Source | Mount Path | Purpose |
|---|---|---|
config |
StartOS-managed | Stores store.json and transient log-health.json telemetry |
chain / shared volume |
/chain |
Consensus database stored under /chain/nimbus (pruned history) |
nethermind:engine-auth |
/run/engine-auth |
Read-only mount providing Nethermind's jwt.hex for Engine API |
The package owns one Zod-typed JSON file model on the config volume (store.json) and one rolling diagnostic telemetry file (log-health.json, not a file model).
config/store.json(z.looseObject): Holds StartOS-side configuration (storage,consensusPort,quicPort,consensusPeers,checkpointUrl,trustedBlockRoot,thermalProtection) andfullySynced. Seeded with defaults on init viastoreJson.merge(effects, {}). Written by theconfigureandcheckpoint-syncactions, and updated withfullySynced: trueonce initial sync completes. Hand edits to undeclared keys survive because the schema usesz.looseObject, while declared keys are validated/repaired on merge. Startup (main.ts).const()s only startup-relevant fields — updatingthermalProtectionorfullySyncednever restarts Nimbus.config/log-health.json: Written atomically (.tmp+ rename) byLogHealthMonitorduring runtime with rolling 15-minute error counts, recent notable log lines, and active thermal throttle state. Excluded from backups.
Nimbus requires a running execution client on the same StartOS server to validate execution payloads over the authenticated Engine API.
nethermind(required,kind: 'running', health checknethermind): Supplies the Engine API on internal port8551(resolved dynamically over the StartOS bridge viasdk.host.getBridgeAddress, host IDengine-api) and theengine-authvolume mounted read-only at/run/engine-authforjwt.hex. If Nethermind's bridge address cannot be resolved, Nimbus does not start and surfaces a failingexecution-connectionhealth check.
Nimbus binds its REST Beacon API privately for bridge-local consumers and exposes its adjacent P2P TCP/UDP and QUIC UDP ports as one grouped range interface.
| Interface / Host ID | Type | Port(s) | Protocol | Purpose |
|---|---|---|---|---|
beacon-api |
— | 5052 |
TCP | Unexported bridge-only Beacon REST API (--rest-address=0.0.0.0) |
peer-network |
api |
9000–9001 (configurable, 2 contiguous ports) |
TCP + UDP | Grouped range for peer TCP + discovery UDP (base port) and QUIC UDP (+1); Nimbus does not listen on QUIC TCP |
- Changing the peer port retires the previous range binding via
MultiHost.retirePort()and resets public address selections. main.tsdoes not.const()the outbound gateway or interface host, so switching between gateways (for example, StartTunnel and local WAN) never forces intermediate restarts; thepeer-portshealth check reacts via.onChange()andsdk.host.getAddressGateways(), and--enr-auto-update=truerefreshes Nimbus's advertised IP automatically.- Legacy non-adjacent port configs fall back to separate
consensus-peers(p2p) andconsensus-quic(p2p) interfaces until saved with adjacent ports.
On install, init seeds config/store.json with defaults (storage: null, thermalProtection: 'auto') and raises a critical task requiring storage selection before Nimbus can start.
- Install and start Nethermind first so the
netherminddependency, bridge Engine API, andengine-authJWT volume are present. - Run Configuration → Settings to select either the StartOS data drive (must be at least 150 GiB) or a writable, available shared volume, choose an initial checkpoint sync source, and set peer ports/limits.
- Start Nimbus. When
/chain/nimbus/dbis empty and a checkpoint URL is configured, Nimbus bootstraps via--external-beacon-api-url(and optional--trusted-block-root) in minutes.
Every action below is user-facing (visibility: 'enabled'). No hidden actions exist.
configure(Configuration → Settings):- When to run: Required before first start to choose storage, or whenever changing checkpoint sync defaults, peer port, peer cap, or thermal protection mode.
- What it changes: Updates
config/store.jsonand retires the old port range if the peer port changes. - Cost: Instant. Changing only
thermalProtectionapplies live without restarting Nimbus; changing any other setting restarts the daemon. - Repeat safety: Idempotent. Changing
storagedoes not migrate existing chain data.
checkpoint-sync(Maintenance → Checkpoint Sync):- When to run: To recover from consensus database corruption or switch an already-initialized genesis sync to a recent finalized checkpoint.
- What it changes: Deletes
/chain/nimbus/db(leaving validator keys intact), runsnimbus_beacon_node trustedNodeSync --backfill=falsein temporary subcontainercheckpoint-sync, and updatescheckpointUrl,trustedBlockRoot, andfullySynced: falseinstore.json. - Cost: Typically 1–3 minutes (10-minute command timeout); requires the service to be stopped.
- Repeat safety: Destructive to
/chain/nimbus/db, safe to repeat whenever a fresh finalized state is desired.
log-summary(Maintenance → System & Log Summary):- When to run: When diagnosing sync delays, high temperatures, memory pressure, or
Log Healthwarnings/failures. - What it changes: Read-only; samples live
/sys/class/hwmon,/sys/class/thermal,/procresources, andconfig/log-health.json. - Cost: Sub-second, zero service impact.
- Repeat safety: Idempotent.
- Outputs: Copyable/downloadable plain-text diagnostics report (
nimbus-diagnostics.txt).
- When to run: When diagnosing sync delays, high temperatures, memory pressure, or
connected-peers(Explorer → Connected Peers):- When to run: When inspecting connected consensus peers, client diversity, TCP vs. QUIC usage, geographic distribution, or copying your node's ENR/Peer ID.
- What it changes: Read-only; queries
/eth/v1/node/peers?state=connected,/eth/v1/node/identity, and performs an on-demand batch GeoIP lookup (ip-api.com/batch, degrading cleanly if offline). - Cost: 1–2 seconds, zero service impact.
- Repeat safety: Idempotent.
- Outputs: Markdown summary (countries, Community Helper badge, residential vs. datacenter split, TCP/QUIC breakdown, consensus client diversity chart) plus copyable peer table (
nimbus-peers.txt), ENR, and Peer ID.
beacon-pulse(Explorer → Beacon Pulse):- When to run: When viewing live Beacon Chain finality, epoch liveness, sync committee participation, PeerDAS blobs, recent validator graffiti, slashing radar, and your node's BLS/state verification scorecard.
- What it changes: Read-only; queries local Beacon API endpoints and reads ephemeral
/tmp/nimbus-session-stats.json(100% local, zero external network calls). - Cost: Sub-second, zero service impact.
- Repeat safety: Idempotent.
- Outputs: Markdown dashboard plus copyable recent beacon blocks table (
nimbus-pulse.txt) and client identity.
The package creates one dynamic task in init/seed.ts (watchStorage) and fires informational/alert StartOS notifications during operation.
- Choose storage (
configure):- What raises it:
store.jsonhasstorage: null, or the selected shared volume grant is missing, read-only, orunavailable. - Severity:
critical(blocks service startup). - What clears it: Selecting the StartOS data drive or an available read/write shared volume in
configure, or restoring availability/read-write access to the previously selected shared volume. Returns automatically if the volume grant is later revoked or unplugged.
- What raises it:
- Notifications (non-blocking): Sent for initial
Consensus Sync Complete,Server Overheating(2h cooldown),Critically Low Server Memory(2h cooldown),Nimbus Disk Space Low/Critical(24h / 6h cooldown), and once-per-run critical log alerts (db-disk,fatal-oom,jwt-auth,clock-drift).
Nine health checks surface live Beacon API, execution link, sync progress, network/ENR, peer counts, hardware temperature, system resources, disk space, and log telemetry.
nimbus(Consensus API): ProbesGET /eth/v1/node/versionon port5052(120s grace period; tolerates one transient timeout after initial readiness while port5052remains listening). Failure after startup means Nimbus crashed, is deadlocked, or port5052is down — inspect logs andSystem & Log Summary.execution-connection(Execution RPC): Probesel_offlinevia/eth/v1/node/syncing(requires: ['nimbus'], or immediate failure if Nethermind's bridge address is missing).loadingmeans Nethermind is starting, offline, or rejecting JWT auth; verify Nethermind is healthy and checkLog Healthfor JWT mismatch errors.consensus-sync(Consensus Sync): Combines/eth/v1/node/syncingwith liveSlot startlog telemetry (ConsensusLogTracker) to report sync stage, percentage, slot rate, ETA, backfill progress, thermal throttle state, and synced slot/epoch/finalized epoch. Failure after two consecutive API errors means Nimbus's Beacon API is unresponsive.peer-ports(Peer Network): Reactive check (peerNetworkTrigger) verifying external port assignment,sdk.host.getAddressGateways()inbound/outbound alignment, and live ENR IP from/eth/v1/node/identity. Failure means StartOS reassigned the external port away from Settings — update the external port on Peer Network to match.loadingindicates an inbound/outbound gateway mismatch or pending ENR update.peers(Peers): Queries/eth/v1/node/peers?state=connectedand displays total vs target plus inbound/outbound counts.loadingat0peers indicates initial discovery or blocked outbound traffic; failure after two consecutive errors means the Beacon API is unreachable.thermals(Temperature): Reactive check (thermalTrigger) reading/sys/class/hwmon(and/sys/class/thermalfallback) for CPU and NVMe temperatures and applying hysteresis-controlledtaskset/ionicethrottling (auto: Level 1 at 80°C CPU / 68°C NVMe, Level 2 at 88°C / 74°C;quiet: baseline Level 1, Level 2 at 82°C / 70°C;off: monitor only).disabledwhen hardware exposes no sensors (exceptquietmode, which still applies core caps).loadingwhen auto-throttling is active or temps run hot with throttling off.failureat critical overheat (≥ 95°C CPU / ≥ 80°C NVMe sustained, or ≥ 98°C / ≥ 83°C immediate) — check airflow, fans, and cooling immediately.resources(System Resources): Samples host-wide/proc/stat,/proc/loadavg,/proc/meminfo,/proc/pressure/{cpu,memory,io}, and Nimbus'sVmRSSinside thenimbussubcontainer (bypassing parent-container LXCFS virtualization so RAM pressure from Nethermind and other services is accurately detected). Reports informationalsuccessnotices for high disk I/O (iowait >= 35%or IO PSIfullAvg60 >= 25%) or sustained high CPU (>= 90%orload1m > 1.25 * CPUs).loadingsignals high RAM (>= 88%,< 2 GiBfree, or memory PSIsomeAvg60 >= 15%).failuresignals critically low RAM (>= 95%and< 768 MiBfree, or memory PSIfullAvg60 >= 25%) — stop other heavy services or lowerTarget consensus peers.storage(Disk Space): Checks/chainfree/total space and percentage used (statfsfor local volume,df -PB1 /chainfor shared volumes). Warns in message + notification below 40 GiB free and reportsfailurebelow 15 GiB free — free space or switch to a larger volume.log-health(Log Health): Real-time sliding-window log analyzer filtering benign StartOS startup/NAT messages while tracking minor warnings and actionable categories (db-disk,fatal-oom,jwt-auth,engine-api,clock-drift,high-load,other-error). Failure requires action per the message andSystem & Log Summaryoutput (drive check, Checkpoint Sync, NTP check, or restarting Nimbus/Nethermind).
Backups use sdk.Backups.ofVolumes('config') to copy only the config volume while excluding transient log-health.json and log-health.json.tmp files.
- The
chainvolume (and any shared volume holding/chain/nimbus) is deliberately excluded because the pruned beacon chain database is large and reconstructible in minutes via Checkpoint Sync. - Shared volumes are backed up separately by StartOS; after restoring a shared volume, re-grant read/write access to Nimbus and select the restored volume in Configuration → Settings.
- If Nethermind was restored and generated a new JWT secret, restart Nimbus so it reloads
/run/engine-auth/jwt.hex.
- Single execution client dependency: Currently wires only
nethermindas the required execution provider; other execution clients require explicit dependency support. - Pruned history only: Runs with
--history=prune; archive beacon state and full historical backfill are not exposed as configuration options. - No built-in validator client: Validator key management, slashing protection, and fee recipient configuration are not included.
- Hardware sensor dependence: Automatic thermal throttling requires Linux sysfs sensors (
/sys/class/hwmonor/sys/class/thermal); VMs without exposed sensors reportTemperatureasdisabledunlessLow Heat / Quietmode is selected.
package_id: nimbus
image: statusim/nimbus-eth2
architectures: [x86_64, aarch64]
subcontainers: [nimbus, checkpoint-sync]
volumes:
config: startos-managed
chain: /chain
file_models:
- config/store.json
startos_managed_env_vars: []
dependencies: [nethermind]
interfaces:
peer-network: { type: api, port: 9000, port_range: 2 }
actions:
- configure
- connected-peers
- beacon-pulse
- checkpoint-sync
- log-summary
tasks:
- { action: configure, severity: critical }
health_checks:
- nimbus
- execution-connection
- consensus-sync
- peer-ports
- peers
- thermals
- resources
- storage
- log-health