Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f0a7b2b9d |
6
rpc.yml
6
rpc.yml
@@ -45,7 +45,7 @@ services:
|
|||||||
- "prometheus-scrape.port=8082"
|
- "prometheus-scrape.port=8082"
|
||||||
- "prometheus-scrape.job_name=traefik"
|
- "prometheus-scrape.job_name=traefik"
|
||||||
logging:
|
logging:
|
||||||
driver: json-file
|
|
||||||
options:
|
options:
|
||||||
max-size: "512m"
|
max-file: '1'
|
||||||
max-file: "2"
|
compress: 'false'
|
||||||
|
driver: local
|
||||||
|
|||||||
21
scripts/worldchain-mainnet-snapshot-finish.sh
Executable file
21
scripts/worldchain-mainnet-snapshot-finish.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# Bench helper: extract a downloaded worldchain-mainnet op-reth snapshot into the node volume.
|
||||||
|
# Run after the background download to /slowdisk/worldchain-mainnet-snapshot/ completes.
|
||||||
|
# For wipe+re-extract recovery, use worldchain-mainnet-snapshot-reseed.sh instead.
|
||||||
|
|
||||||
|
DATADIR="${DATADIR:-/var/lib/docker/volumes/rpc_worldchain-mainnet-op-reth-pruned-trace/_data}"
|
||||||
|
SNAP="${SNAP:-/slowdisk/worldchain-mainnet-snapshot/reth_full.tar.lz4}"
|
||||||
|
|
||||||
|
if [ ! -f "$SNAP" ]; then
|
||||||
|
echo "worldchain-mainnet-snapshot-finish: snapshot not found: $SNAP" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "$DATADIR"
|
||||||
|
|
||||||
|
echo "worldchain-mainnet-snapshot-finish: extracting $SNAP -> $DATADIR (--strip-components=1)"
|
||||||
|
tar --directory "$DATADIR" -I lz4 -xf "$SNAP" --strip-components=1
|
||||||
|
|
||||||
|
echo "worldchain-mainnet-snapshot-finish: done"
|
||||||
Reference in New Issue
Block a user