From 51ba55d30088bdc1646fbe6992a4ffbda297fae3 Mon Sep 17 00:00:00 2001 From: goldsquid Date: Thu, 19 Jun 2025 16:29:39 +0700 Subject: [PATCH] add pruning to nitro --- arb/nitro/alephzero-mainnet-nitro-pruned-pebble-path.yml | 1 + arb/nitro/alephzero-sepolia-nitro-pruned-pebble-path.yml | 1 + arb/nitro/arbitrum-nova-nitro-pruned-pebble-hash.yml | 1 + .../arbitrum-one-nitro-pruned-pebble-hash--fireeth.yml | 1 + arb/nitro/arbitrum-one-nitro-pruned-pebble-hash.yml | 1 + arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml | 1 + arb/nitro/connext-sepolia-nitro-pruned-pebble-path.yml | 1 + arb/nitro/everclear-mainnet-nitro-pruned-pebble-path.yml | 1 + .../opencampuscodex-sepolia-nitro-pruned-pebble-path.yml | 1 + arb/nitro/playblock-mainnet-nitro-pruned-pebble-path.yml | 1 + arb/nitro/real-mainnet-nitro-pruned-pebble-path.yml | 1 + fantom/sonic/fantom-mainnet-sonic-archive.yml | 6 ++++++ fantom/sonic/fantom-testnet-sonic-archive.yml | 6 ++++++ hyperliquid/visor/hyperliquid-mainnet-visor-pruned.yml | 6 ++++++ hyperliquid/visor/hyperliquid-testnet-visor-pruned.yml | 6 ++++++ sonic/sonic/sonic-mainnet-sonic-archive.yml | 6 ++++++ 16 files changed, 41 insertions(+) diff --git a/arb/nitro/alephzero-mainnet-nitro-pruned-pebble-path.yml b/arb/nitro/alephzero-mainnet-nitro-pruned-pebble-path.yml index 05bb0702..5ebea3aa 100644 --- a/arb/nitro/alephzero-mainnet-nitro-pruned-pebble-path.yml +++ b/arb/nitro/alephzero-mainnet-nitro-pruned-pebble-path.yml @@ -60,6 +60,7 @@ services: - --http.port=8545 - --http.vhosts=* - --init.download-path=/tmp + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/alephzero-sepolia-nitro-pruned-pebble-path.yml b/arb/nitro/alephzero-sepolia-nitro-pruned-pebble-path.yml index ba759574..9acf7533 100644 --- a/arb/nitro/alephzero-sepolia-nitro-pruned-pebble-path.yml +++ b/arb/nitro/alephzero-sepolia-nitro-pruned-pebble-path.yml @@ -60,6 +60,7 @@ services: - --http.port=8545 - --http.vhosts=* - --init.download-path=/tmp + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/arbitrum-nova-nitro-pruned-pebble-hash.yml b/arb/nitro/arbitrum-nova-nitro-pruned-pebble-hash.yml index 671e665a..d983969a 100644 --- a/arb/nitro/arbitrum-nova-nitro-pruned-pebble-hash.yml +++ b/arb/nitro/arbitrum-nova-nitro-pruned-pebble-hash.yml @@ -59,6 +59,7 @@ services: - --http.vhosts=* - --init.download-path=/tmp - --init.latest=pruned + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/arbitrum-one-nitro-pruned-pebble-hash--fireeth.yml b/arb/nitro/arbitrum-one-nitro-pruned-pebble-hash--fireeth.yml index c6005dc9..37d1268b 100644 --- a/arb/nitro/arbitrum-one-nitro-pruned-pebble-hash--fireeth.yml +++ b/arb/nitro/arbitrum-one-nitro-pruned-pebble-hash--fireeth.yml @@ -60,6 +60,7 @@ services: - --http.vhosts=* - --init.download-path=/tmp - --init.latest=pruned + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/arbitrum-one-nitro-pruned-pebble-hash.yml b/arb/nitro/arbitrum-one-nitro-pruned-pebble-hash.yml index 5198ccae..6cf021e7 100644 --- a/arb/nitro/arbitrum-one-nitro-pruned-pebble-hash.yml +++ b/arb/nitro/arbitrum-one-nitro-pruned-pebble-hash.yml @@ -59,6 +59,7 @@ services: - --http.vhosts=* - --init.download-path=/tmp - --init.latest=pruned + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml b/arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml index 71bded73..c2fe4f93 100644 --- a/arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml +++ b/arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml @@ -59,6 +59,7 @@ services: - --http.vhosts=* - --init.download-path=/tmp - --init.latest=pruned + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/connext-sepolia-nitro-pruned-pebble-path.yml b/arb/nitro/connext-sepolia-nitro-pruned-pebble-path.yml index bc7b1566..7b4ac394 100644 --- a/arb/nitro/connext-sepolia-nitro-pruned-pebble-path.yml +++ b/arb/nitro/connext-sepolia-nitro-pruned-pebble-path.yml @@ -60,6 +60,7 @@ services: - --http.port=8545 - --http.vhosts=* - --init.download-path=/tmp + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/everclear-mainnet-nitro-pruned-pebble-path.yml b/arb/nitro/everclear-mainnet-nitro-pruned-pebble-path.yml index c00f6a67..a3f1f766 100644 --- a/arb/nitro/everclear-mainnet-nitro-pruned-pebble-path.yml +++ b/arb/nitro/everclear-mainnet-nitro-pruned-pebble-path.yml @@ -60,6 +60,7 @@ services: - --http.port=8545 - --http.vhosts=* - --init.download-path=/tmp + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/opencampuscodex-sepolia-nitro-pruned-pebble-path.yml b/arb/nitro/opencampuscodex-sepolia-nitro-pruned-pebble-path.yml index d05f5d58..0c829079 100644 --- a/arb/nitro/opencampuscodex-sepolia-nitro-pruned-pebble-path.yml +++ b/arb/nitro/opencampuscodex-sepolia-nitro-pruned-pebble-path.yml @@ -60,6 +60,7 @@ services: - --http.port=8545 - --http.vhosts=* - --init.download-path=/tmp + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/playblock-mainnet-nitro-pruned-pebble-path.yml b/arb/nitro/playblock-mainnet-nitro-pruned-pebble-path.yml index 5f3c9e95..1e646ddf 100644 --- a/arb/nitro/playblock-mainnet-nitro-pruned-pebble-path.yml +++ b/arb/nitro/playblock-mainnet-nitro-pruned-pebble-path.yml @@ -60,6 +60,7 @@ services: - --http.port=8545 - --http.vhosts=* - --init.download-path=/tmp + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/arb/nitro/real-mainnet-nitro-pruned-pebble-path.yml b/arb/nitro/real-mainnet-nitro-pruned-pebble-path.yml index c4a4a197..3cf7bdbb 100644 --- a/arb/nitro/real-mainnet-nitro-pruned-pebble-path.yml +++ b/arb/nitro/real-mainnet-nitro-pruned-pebble-path.yml @@ -60,6 +60,7 @@ services: - --http.port=8545 - --http.vhosts=* - --init.download-path=/tmp + - --init.prune=full - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 diff --git a/fantom/sonic/fantom-mainnet-sonic-archive.yml b/fantom/sonic/fantom-mainnet-sonic-archive.yml index e5e39443..5f8d8c90 100644 --- a/fantom/sonic/fantom-mainnet-sonic-archive.yml +++ b/fantom/sonic/fantom-mainnet-sonic-archive.yml @@ -4,6 +4,12 @@ x-logging-defaults: &logging-defaults options: max-size: "10m" max-file: "3" +# To fix the database after corruption through restart run +# +# docker compose stop fantom-mainnet +# docker compose run -it --rm --entrypoint sonictool fantom-mainnet --datadir heal /var/sonic +# docker compose start fantom-mainnet +# # Usage: # diff --git a/fantom/sonic/fantom-testnet-sonic-archive.yml b/fantom/sonic/fantom-testnet-sonic-archive.yml index 7e035ffb..22bd9dc1 100644 --- a/fantom/sonic/fantom-testnet-sonic-archive.yml +++ b/fantom/sonic/fantom-testnet-sonic-archive.yml @@ -4,6 +4,12 @@ x-logging-defaults: &logging-defaults options: max-size: "10m" max-file: "3" +# To fix the database after corruption through restart run +# +# docker compose stop fantom-testnet +# docker compose run -it --rm --entrypoint sonictool fantom-testnet --datadir heal /var/sonic +# docker compose start fantom-testnet +# # Usage: # diff --git a/hyperliquid/visor/hyperliquid-mainnet-visor-pruned.yml b/hyperliquid/visor/hyperliquid-mainnet-visor-pruned.yml index 78f22683..10199d92 100644 --- a/hyperliquid/visor/hyperliquid-mainnet-visor-pruned.yml +++ b/hyperliquid/visor/hyperliquid-mainnet-visor-pruned.yml @@ -4,6 +4,12 @@ x-logging-defaults: &logging-defaults options: max-size: "10m" max-file: "3" +# Beware that the port range is fixed to 4000-4010. +# effectively only 4001,4002 are used +# the actual source of truth seems to be running in Tokio +# everyone else may be a slave to the truth +# +# the client should actually be named "node" but I'm going to fix the naming later... or not. # Usage: # diff --git a/hyperliquid/visor/hyperliquid-testnet-visor-pruned.yml b/hyperliquid/visor/hyperliquid-testnet-visor-pruned.yml index 867f8c7c..4e96194d 100644 --- a/hyperliquid/visor/hyperliquid-testnet-visor-pruned.yml +++ b/hyperliquid/visor/hyperliquid-testnet-visor-pruned.yml @@ -4,6 +4,12 @@ x-logging-defaults: &logging-defaults options: max-size: "10m" max-file: "3" +# Beware that the port range is fixed to 4000-4010. +# effectively only 4001,4002 are used +# the actual source of truth seems to be running in Tokio +# everyone else may be a slave to the truth +# +# the client should actually be named "node" but I'm going to fix the naming later... or not. # Usage: # diff --git a/sonic/sonic/sonic-mainnet-sonic-archive.yml b/sonic/sonic/sonic-mainnet-sonic-archive.yml index 3813d3f2..f9f2ca05 100644 --- a/sonic/sonic/sonic-mainnet-sonic-archive.yml +++ b/sonic/sonic/sonic-mainnet-sonic-archive.yml @@ -4,6 +4,12 @@ x-logging-defaults: &logging-defaults options: max-size: "10m" max-file: "3" +# To fix the database after corruption through restart run +# +# docker compose stop sonic-mainnet +# docker compose run -it --rm --entrypoint sonictool sonic-mainnet --datadir heal /var/sonic +# docker compose start sonic-mainnet +# # Usage: #