Repository navigation
Release v0.18.0-rc3
Pre-releasev0.18.0-rc3 - Memory limits: a client that outgrows its share is restarted, not your machine
The fourth release candidate for v0.18.0. Ethereum clients and stack pods now have memory limits, and the cluster has a
memory cap with swap off. A client that runs out of memory is restarted on its own, without starving the rest of
your machine.
Warning
This software is early alpha, you could lose what you put in. Please use caution when it comes to non-testnet assets. Silver itself is alpha: try it on Hoodi or Sepolia first. Back up before upgrading: obol stack export --file backup.tar.gz.
Install / Upgrade
# Fresh install
curl -fsSL https://stack.obol.org/v0.18.0-rc3 | bash
obol stack init && obol stack up
# Upgrade an existing stack
curl -fsSL https://stack.obol.org/v0.18.0-rc3 | bash # offers to bring your running stack up to v0.18.0-rc3
obol doctor
# Apply the new memory settings to each node (restarts both of its clients once)
obol network sync ethereum/<id>Release Highlights
The cluster gets a memory cap
obol stack initcaps the cluster's memory. By default the cap is your machine's memory minus 4–8 GiB, which
is left for the OS and everything else you run. Set it with--node-memory <size|auto|off>orOBOL_NODE_MEMORY.
Machines under 12 GiB get no cap.- Swap is off for the cluster.
obol stack upturns it off on the cluster's container, so a cluster at its cap
restarts a pod instead of pushing the host into swap. - Existing clusters get the default cap on their next
obol stack up, unless one is already set. A cap you set
yourself withdocker updateis kept. Kubernetes only sees a cap added this way once the cluster is recreated.
Ethereum clients get requests and limits
- Sized per network, mode and client. Requests are a steady-state node; limits leave room for sync, backfill and
a beacon node with many validators attached.- Hoodi's beacon nodes get mainnet's limits: its validator set is as large as mainnet's.
- No CPU limits.
- Each client is told its limit, so it stays under it instead of being killed:
GOMEMLIMITfor geth, erigon and prysm;- heap sizes for Teku, Besu and Lodestar;
- Nethermind's memory hint;
- reth's cross-block cache.
--execution-memory/--consensus-memory(executionMemory/consensusMemory) now set the limit, not the
request. If yours is below what the client needs,obol network syncwarns, because the client would be OOM-killed
in a loop.obol network installandsyncwarn when requests won't fit. That's when the cluster's memory requests plus
the new node's would exceed the cluster's memory.
Every stack pod has a limit
Hermes and its sidecars, the remote-signer, the Prometheus operator and LiteLLM's setup step now have memory limits.
Prometheus's limit goes up to 2 GiB, so it can restart with a large backlog.
Upgrading an existing node
obol network sync ethereum/<id> restarts both clients once to apply their new requests and limits. Data is kept,
and they resume where they stopped. Sync says so before it starts.
Known issues
- Silver (alpha) still grows its memory over days. It will now be restarted at its 8 GiB limit, about every day or
two at today's rate, and an affected boot can take up to 30 minutes. - A cap added to an existing cluster isn't visible to Kubernetes until the cluster is recreated
(obol stack down && obol stack purge && obol stack init && obol stack up). Until then, the won't-fit warning
compares against your machine's full memory. - Nethermind and Besu keep part of their database memory outside the heap that the settings above control.
If one is OOM-killed, raise its limit withexecutionMemory.
What's Changed
- Replace ingress-nginx references with Traefik by @aly-obol in #908
- feat(stack): cap the k3d node's memory, without swap by @OisinKyne in #909
- feat(network): memory limits for the Ethereum clients, sized per network, mode and client by @OisinKyne in #910
- feat(stack): memory requests and limits on every stack container by @OisinKyne in #911
Full Changelog: v0.18.0-rc2...v0.18.0-rc3
