op: add kona consensus-client variants for 13 OP-stack chains
Generate --kona compose profiles for base, mode, zircuit, fraxtal, zora, metal, hashkeychain, superseed, swell, bnb, manta-pacific, blast, and xlayer so production nodes can migrate off stock op-node before DRPC deprioritizes it. Each kona variant shares the same EL data volume as its op-node sibling. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
182
op/reth/base-mainnet-op-reth-archive-trace--kona.yml
Normal file
182
op/reth/base-mainnet-op-reth-archive-trace--kona.yml
Normal file
@@ -0,0 +1,182 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/base-mainnet-op-reth-archive-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/base-mainnet-op-reth \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
base-mainnet-op-reth:
|
||||
image: ${BASE_RETH_IMAGE:-ghcr.io/base/node-reth}:${BASE_MAINNET_RETH_VERSION:-v1.1.1}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
ports:
|
||||
- 14221:14221
|
||||
- 14221:14221/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [/app/base-reth-node, node]
|
||||
command:
|
||||
- --chain=base
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --engine.cross-block-cache-size=${BASE_MAINNET_RETH_STATE_CACHE:-4096}
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --nat=extip:${IP}
|
||||
- --port=14221
|
||||
- --rollup.sequencer-http=https://mainnet-sequencer.base.org
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${BASE_MAINNET_OP_RETH_ARCHIVE_TRACE_DATA:-base-mainnet-op-reth-archive-trace}:/root/.local/share/reth
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-mainnet-op-reth-archive-trace-stripprefix.stripprefix.prefixes=/base-mainnet-op-reth
|
||||
- traefik.http.services.base-mainnet-op-reth-archive-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-archive-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-archive-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-archive-trace.rule=Host(`$DOMAIN`) && (Path(`/base-mainnet-op-reth`) || Path(`/base-mainnet-op-reth/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.base-mainnet-op-reth-archive-trace.rule=Path(`/base-mainnet-op-reth`) || Path(`/base-mainnet-op-reth/`)}
|
||||
- traefik.http.routers.base-mainnet-op-reth-archive-trace.middlewares=base-mainnet-op-reth-archive-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
base-mainnet-op-reth-node:
|
||||
image: ${BASE_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${BASE_MAINNET_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 19221:19221
|
||||
- 19221:19221/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${BASE_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=8453
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://base-mainnet-op-reth:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=19221
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=19221
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
base-mainnet-op-reth:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-mainnet-op-reth-archive-trace-node-stripprefix.stripprefix.prefixes=/base-mainnet-op-reth/node
|
||||
- traefik.http.services.base-mainnet-op-reth-archive-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-archive-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-archive-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-archive-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/base-mainnet-op-reth/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.base-mainnet-op-reth-archive-trace-node.rule=PathPrefix(`/base-mainnet-op-reth/node`)}
|
||||
- traefik.http.routers.base-mainnet-op-reth-archive-trace-node.middlewares=base-mainnet-op-reth-archive-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
base-mainnet-op-reth-archive-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: base
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
182
op/reth/base-mainnet-op-reth-minimal-trace--kona.yml
Normal file
182
op/reth/base-mainnet-op-reth-minimal-trace--kona.yml
Normal file
@@ -0,0 +1,182 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/base-mainnet-op-reth-minimal-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/base-mainnet-op-reth-minimal \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
base-mainnet-op-reth-minimal:
|
||||
image: ${BASE_RETH_IMAGE:-ghcr.io/base/node-reth}:${BASE_MAINNET_RETH_VERSION:-v1.1.1}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
ports:
|
||||
- 11240:11240
|
||||
- 11240:11240/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [/app/base-reth-node, node]
|
||||
command:
|
||||
- --chain=base
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --engine.cross-block-cache-size=${BASE_MAINNET_RETH_STATE_CACHE:-4096}
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --nat=extip:${IP}
|
||||
- --port=11240
|
||||
- --rollup.sequencer-http=https://mainnet-sequencer.base.org
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${BASE_MAINNET_OP_RETH_MINIMAL_TRACE_DATA:-base-mainnet-op-reth-minimal-trace}:/root/.local/share/reth
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-mainnet-op-reth-minimal-trace-stripprefix.stripprefix.prefixes=/base-mainnet-op-reth-minimal
|
||||
- traefik.http.services.base-mainnet-op-reth-minimal-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-minimal-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-minimal-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-minimal-trace.rule=Host(`$DOMAIN`) && (Path(`/base-mainnet-op-reth-minimal`) || Path(`/base-mainnet-op-reth-minimal/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.base-mainnet-op-reth-minimal-trace.rule=Path(`/base-mainnet-op-reth-minimal`) || Path(`/base-mainnet-op-reth-minimal/`)}
|
||||
- traefik.http.routers.base-mainnet-op-reth-minimal-trace.middlewares=base-mainnet-op-reth-minimal-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
base-mainnet-op-reth-minimal-node:
|
||||
image: ${BASE_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${BASE_MAINNET_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 16240:16240
|
||||
- 16240:16240/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${BASE_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=8453
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://base-mainnet-op-reth-minimal:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=16240
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=16240
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
base-mainnet-op-reth-minimal:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-mainnet-op-reth-minimal-trace-node-stripprefix.stripprefix.prefixes=/base-mainnet-op-reth-minimal/node
|
||||
- traefik.http.services.base-mainnet-op-reth-minimal-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-minimal-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-minimal-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-minimal-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/base-mainnet-op-reth-minimal/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.base-mainnet-op-reth-minimal-trace-node.rule=PathPrefix(`/base-mainnet-op-reth-minimal/node`)}
|
||||
- traefik.http.routers.base-mainnet-op-reth-minimal-trace-node.middlewares=base-mainnet-op-reth-minimal-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
base-mainnet-op-reth-minimal-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: base
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
183
op/reth/base-mainnet-op-reth-pruned-trace--kona.yml
Normal file
183
op/reth/base-mainnet-op-reth-pruned-trace--kona.yml
Normal file
@@ -0,0 +1,183 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/base-mainnet-op-reth-pruned-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/base-mainnet-op-reth-pruned \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
base-mainnet-op-reth-pruned:
|
||||
image: ${BASE_RETH_IMAGE:-ghcr.io/base/node-reth}:${BASE_MAINNET_RETH_VERSION:-v1.1.1}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
ports:
|
||||
- 14759:14759
|
||||
- 14759:14759/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [/app/base-reth-node, node]
|
||||
command:
|
||||
- --chain=base
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --engine.cross-block-cache-size=${BASE_MAINNET_RETH_STATE_CACHE:-4096}
|
||||
- --full
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --nat=extip:${IP}
|
||||
- --port=14759
|
||||
- --rollup.sequencer-http=https://mainnet-sequencer.base.org
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${BASE_MAINNET_OP_RETH_PRUNED_TRACE_DATA:-base-mainnet-op-reth-pruned-trace}:/root/.local/share/reth
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-mainnet-op-reth-pruned-trace-stripprefix.stripprefix.prefixes=/base-mainnet-op-reth-pruned
|
||||
- traefik.http.services.base-mainnet-op-reth-pruned-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-pruned-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-pruned-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/base-mainnet-op-reth-pruned`) || Path(`/base-mainnet-op-reth-pruned/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.base-mainnet-op-reth-pruned-trace.rule=Path(`/base-mainnet-op-reth-pruned`) || Path(`/base-mainnet-op-reth-pruned/`)}
|
||||
- traefik.http.routers.base-mainnet-op-reth-pruned-trace.middlewares=base-mainnet-op-reth-pruned-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
base-mainnet-op-reth-pruned-node:
|
||||
image: ${BASE_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${BASE_MAINNET_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 19759:19759
|
||||
- 19759:19759/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${BASE_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=8453
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://base-mainnet-op-reth-pruned:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=19759
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=19759
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
base-mainnet-op-reth-pruned:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-mainnet-op-reth-pruned-trace-node-stripprefix.stripprefix.prefixes=/base-mainnet-op-reth-pruned/node
|
||||
- traefik.http.services.base-mainnet-op-reth-pruned-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-pruned-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-pruned-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-mainnet-op-reth-pruned-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/base-mainnet-op-reth-pruned/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.base-mainnet-op-reth-pruned-trace-node.rule=PathPrefix(`/base-mainnet-op-reth-pruned/node`)}
|
||||
- traefik.http.routers.base-mainnet-op-reth-pruned-trace-node.middlewares=base-mainnet-op-reth-pruned-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
base-mainnet-op-reth-pruned-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: base
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
183
op/reth/base-sepolia-op-reth-archive-trace--kona.yml
Normal file
183
op/reth/base-sepolia-op-reth-archive-trace--kona.yml
Normal file
@@ -0,0 +1,183 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/base-sepolia-op-reth-archive-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/base-sepolia-op-reth \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
base-sepolia-op-reth:
|
||||
image: ${BASE_RETH_IMAGE:-ghcr.io/base/node-reth}:${BASE_SEPOLIA_RETH_VERSION:-v1.1.0}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
ports:
|
||||
- 11390:11390
|
||||
- 11390:11390/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [/app/base-reth-node, node]
|
||||
command:
|
||||
- --chain=base-sepolia
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --engine.cross-block-cache-size=${BASE_SEPOLIA_RETH_STATE_CACHE:-4096}
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --nat=extip:${IP}
|
||||
- --port=11390
|
||||
- --rollup.sequencer-http=https://sepolia-sequencer.base.org
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${BASE_SEPOLIA_OP_RETH_ARCHIVE_TRACE_DATA:-base-sepolia-op-reth-archive-trace}:/root/.local/share/reth
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-sepolia-op-reth-archive-trace-stripprefix.stripprefix.prefixes=/base-sepolia-op-reth
|
||||
- traefik.http.services.base-sepolia-op-reth-archive-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-archive-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-archive-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-archive-trace.rule=Host(`$DOMAIN`) && (Path(`/base-sepolia-op-reth`) || Path(`/base-sepolia-op-reth/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.base-sepolia-op-reth-archive-trace.rule=Path(`/base-sepolia-op-reth`) || Path(`/base-sepolia-op-reth/`)}
|
||||
- traefik.http.routers.base-sepolia-op-reth-archive-trace.middlewares=base-sepolia-op-reth-archive-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
base-sepolia-op-reth-node:
|
||||
image: ${BASE_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${BASE_SEPOLIA_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 16390:16390
|
||||
- 16390:16390/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_SEPOLIA_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${BASE_SEPOLIA_L1_EXECUTION_RPC:-${ETHEREUM_SEPOLIA_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_SEPOLIA_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=84532
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://base-sepolia-op-reth:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_OVERRIDE_PECTRA_BLOB_SCHEDULE=1742486400
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=16390
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=16390
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
base-sepolia-op-reth:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-sepolia-op-reth-archive-trace-node-stripprefix.stripprefix.prefixes=/base-sepolia-op-reth/node
|
||||
- traefik.http.services.base-sepolia-op-reth-archive-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-archive-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-archive-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-archive-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/base-sepolia-op-reth/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.base-sepolia-op-reth-archive-trace-node.rule=PathPrefix(`/base-sepolia-op-reth/node`)}
|
||||
- traefik.http.routers.base-sepolia-op-reth-archive-trace-node.middlewares=base-sepolia-op-reth-archive-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
base-sepolia-op-reth-archive-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: base-sepolia
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
183
op/reth/base-sepolia-op-reth-minimal-trace--kona.yml
Normal file
183
op/reth/base-sepolia-op-reth-minimal-trace--kona.yml
Normal file
@@ -0,0 +1,183 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/base-sepolia-op-reth-minimal-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/base-sepolia-op-reth-minimal \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
base-sepolia-op-reth-minimal:
|
||||
image: ${BASE_RETH_IMAGE:-ghcr.io/base/node-reth}:${BASE_SEPOLIA_RETH_VERSION:-v1.1.0}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
ports:
|
||||
- 12165:12165
|
||||
- 12165:12165/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [/app/base-reth-node, node]
|
||||
command:
|
||||
- --chain=base-sepolia
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --engine.cross-block-cache-size=${BASE_SEPOLIA_RETH_STATE_CACHE:-4096}
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --nat=extip:${IP}
|
||||
- --port=12165
|
||||
- --rollup.sequencer-http=https://sepolia-sequencer.base.org
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${BASE_SEPOLIA_OP_RETH_MINIMAL_TRACE_DATA:-base-sepolia-op-reth-minimal-trace}:/root/.local/share/reth
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-sepolia-op-reth-minimal-trace-stripprefix.stripprefix.prefixes=/base-sepolia-op-reth-minimal
|
||||
- traefik.http.services.base-sepolia-op-reth-minimal-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-minimal-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-minimal-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-minimal-trace.rule=Host(`$DOMAIN`) && (Path(`/base-sepolia-op-reth-minimal`) || Path(`/base-sepolia-op-reth-minimal/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.base-sepolia-op-reth-minimal-trace.rule=Path(`/base-sepolia-op-reth-minimal`) || Path(`/base-sepolia-op-reth-minimal/`)}
|
||||
- traefik.http.routers.base-sepolia-op-reth-minimal-trace.middlewares=base-sepolia-op-reth-minimal-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
base-sepolia-op-reth-minimal-node:
|
||||
image: ${BASE_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${BASE_SEPOLIA_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 17165:17165
|
||||
- 17165:17165/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_SEPOLIA_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${BASE_SEPOLIA_L1_EXECUTION_RPC:-${ETHEREUM_SEPOLIA_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_SEPOLIA_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=84532
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://base-sepolia-op-reth-minimal:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_OVERRIDE_PECTRA_BLOB_SCHEDULE=1742486400
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=17165
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=17165
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
base-sepolia-op-reth-minimal:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-sepolia-op-reth-minimal-trace-node-stripprefix.stripprefix.prefixes=/base-sepolia-op-reth-minimal/node
|
||||
- traefik.http.services.base-sepolia-op-reth-minimal-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-minimal-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-minimal-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-minimal-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/base-sepolia-op-reth-minimal/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.base-sepolia-op-reth-minimal-trace-node.rule=PathPrefix(`/base-sepolia-op-reth-minimal/node`)}
|
||||
- traefik.http.routers.base-sepolia-op-reth-minimal-trace-node.middlewares=base-sepolia-op-reth-minimal-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
base-sepolia-op-reth-minimal-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: base-sepolia
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
184
op/reth/base-sepolia-op-reth-pruned-trace--kona.yml
Normal file
184
op/reth/base-sepolia-op-reth-pruned-trace--kona.yml
Normal file
@@ -0,0 +1,184 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/base-sepolia-op-reth-pruned-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/base-sepolia-op-reth-pruned \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
base-sepolia-op-reth-pruned:
|
||||
image: ${BASE_RETH_IMAGE:-ghcr.io/base/node-reth}:${BASE_SEPOLIA_RETH_VERSION:-v1.1.0}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
ports:
|
||||
- 11147:11147
|
||||
- 11147:11147/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [/app/base-reth-node, node]
|
||||
command:
|
||||
- --chain=base-sepolia
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --engine.cross-block-cache-size=${BASE_SEPOLIA_RETH_STATE_CACHE:-4096}
|
||||
- --full
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --nat=extip:${IP}
|
||||
- --port=11147
|
||||
- --rollup.sequencer-http=https://sepolia-sequencer.base.org
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${BASE_SEPOLIA_OP_RETH_PRUNED_TRACE_DATA:-base-sepolia-op-reth-pruned-trace}:/root/.local/share/reth
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-sepolia-op-reth-pruned-trace-stripprefix.stripprefix.prefixes=/base-sepolia-op-reth-pruned
|
||||
- traefik.http.services.base-sepolia-op-reth-pruned-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-pruned-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-pruned-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/base-sepolia-op-reth-pruned`) || Path(`/base-sepolia-op-reth-pruned/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.base-sepolia-op-reth-pruned-trace.rule=Path(`/base-sepolia-op-reth-pruned`) || Path(`/base-sepolia-op-reth-pruned/`)}
|
||||
- traefik.http.routers.base-sepolia-op-reth-pruned-trace.middlewares=base-sepolia-op-reth-pruned-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
base-sepolia-op-reth-pruned-node:
|
||||
image: ${BASE_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${BASE_SEPOLIA_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 16147:16147
|
||||
- 16147:16147/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_SEPOLIA_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${BASE_SEPOLIA_L1_EXECUTION_RPC:-${ETHEREUM_SEPOLIA_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_SEPOLIA_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=84532
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://base-sepolia-op-reth-pruned:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_OVERRIDE_PECTRA_BLOB_SCHEDULE=1742486400
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=16147
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=16147
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
base-sepolia-op-reth-pruned:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.base-sepolia-op-reth-pruned-trace-node-stripprefix.stripprefix.prefixes=/base-sepolia-op-reth-pruned/node
|
||||
- traefik.http.services.base-sepolia-op-reth-pruned-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-pruned-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-pruned-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.base-sepolia-op-reth-pruned-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/base-sepolia-op-reth-pruned/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.base-sepolia-op-reth-pruned-trace-node.rule=PathPrefix(`/base-sepolia-op-reth-pruned/node`)}
|
||||
- traefik.http.routers.base-sepolia-op-reth-pruned-trace-node.middlewares=base-sepolia-op-reth-pruned-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
base-sepolia-op-reth-pruned-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: base-sepolia
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
208
op/reth/hashkeychain-mainnet-op-reth-pruned-trace--kona.yml
Normal file
208
op/reth/hashkeychain-mainnet-op-reth-pruned-trace--kona.yml
Normal file
@@ -0,0 +1,208 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/hashkeychain-mainnet-op-reth-pruned-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/hashkeychain-mainnet-op-reth-pruned \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
hashkeychain-mainnet-op-reth-pruned-init:
|
||||
image: alpine:3.21
|
||||
user: root
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command:
|
||||
- |
|
||||
apk add --no-cache curl wget
|
||||
mkdir -p /config
|
||||
[ -f /config/genesis.json ] || curl -fsSL -o /config/genesis.json "https://hashkeychain.s3.ap-southeast-1.amazonaws.com/mainnet/genesis.json"
|
||||
restart: no
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${HASHKEYCHAIN_MAINNET_OP_RETH_PRUNED_TRACE_CONFIG:-hashkeychain-mainnet-op-reth-pruned-trace_config}:/config
|
||||
logging: *logging-defaults
|
||||
|
||||
hashkeychain-mainnet-op-reth-pruned:
|
||||
image: ${HASHKEYCHAIN_RETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth}:${HASHKEYCHAIN_MAINNET_RETH_VERSION:-v2.3.2}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
ports:
|
||||
- 12151:12151
|
||||
- 12151:12151/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [op-reth, node]
|
||||
command:
|
||||
- --bootnodes=enode://5ecd6d2054a58fa00729b73396044a35e6aceeafe58373d2f26b3f50a3934175fb56f8efa538381430889771613beaabf1177805910bbd34e4b4840320914690@mainnet-bootnodes.hsk.xyz:30615,enode://bd244da2a066e15f82d4bfb7f2732c5b5bac44cefb36cefef01a4c0e87e72b42004d012c9a294b8402ebf67491777f280ffbcc93a71157921d6d358b19ddac67@mainnet-bootnodes.hsk.xyz:30616,enode://a5bba6459ac3a075a4a8941478a4ef8d167460191c89632004b17e4b2d7beea52cdc1a2d376f35e996ad44ccac8db25f900700aad6991d015bdc4db072832063@mainnet-bootnodes.hsk.xyz:30617
|
||||
- --chain=/config/genesis.json
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --engine.cross-block-cache-size=${HASHKEYCHAIN_MAINNET_RETH_STATE_CACHE:-4096}
|
||||
- --full
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --nat=extip:${IP}
|
||||
- --port=12151
|
||||
- --rollup.sequencer-http=https://mainnet.hsk.xyz
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
depends_on:
|
||||
hashkeychain-mainnet-op-reth-pruned-init:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${HASHKEYCHAIN_MAINNET_OP_RETH_PRUNED_TRACE_CONFIG:-hashkeychain-mainnet-op-reth-pruned-trace_config}:/config
|
||||
- ${HASHKEYCHAIN_MAINNET_OP_RETH_PRUNED_TRACE_DATA:-hashkeychain-mainnet-op-reth-pruned-trace}:/root/.local/share/reth
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.hashkeychain-mainnet-op-reth-pruned-trace-stripprefix.stripprefix.prefixes=/hashkeychain-mainnet-op-reth-pruned
|
||||
- traefik.http.services.hashkeychain-mainnet-op-reth-pruned-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/hashkeychain-mainnet-op-reth-pruned`) || Path(`/hashkeychain-mainnet-op-reth-pruned/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace.rule=Path(`/hashkeychain-mainnet-op-reth-pruned`) || Path(`/hashkeychain-mainnet-op-reth-pruned/`)}
|
||||
- traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace.middlewares=hashkeychain-mainnet-op-reth-pruned-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
hashkeychain-mainnet-op-reth-pruned-node:
|
||||
image: ${HASHKEYCHAIN_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${HASHKEYCHAIN_MAINNET_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 17151:17151
|
||||
- 17151:17151/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${HASHKEYCHAIN_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=177
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://hashkeychain-mainnet-op-reth-pruned:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=17151
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=17151
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
hashkeychain-mainnet-op-reth-pruned:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.hashkeychain-mainnet-op-reth-pruned-trace-node-stripprefix.stripprefix.prefixes=/hashkeychain-mainnet-op-reth-pruned/node
|
||||
- traefik.http.services.hashkeychain-mainnet-op-reth-pruned-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/hashkeychain-mainnet-op-reth-pruned/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace-node.rule=PathPrefix(`/hashkeychain-mainnet-op-reth-pruned/node`)}
|
||||
- traefik.http.routers.hashkeychain-mainnet-op-reth-pruned-trace-node.middlewares=hashkeychain-mainnet-op-reth-pruned-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
hashkeychain-mainnet-op-reth-pruned-trace:
|
||||
hashkeychain-mainnet-op-reth-pruned-trace_config:
|
||||
|
||||
x-ephemeral-volumes:
|
||||
- hashkeychain-mainnet-op-reth-pruned-trace_config
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: hashkey
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
202
op/reth/hashkeychain-testnet-op-reth-pruned-trace--kona.yml
Normal file
202
op/reth/hashkeychain-testnet-op-reth-pruned-trace--kona.yml
Normal file
@@ -0,0 +1,202 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/hashkeychain-testnet-op-reth-pruned-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/hashkeychain-testnet-op-reth-pruned \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
hashkeychain-testnet-op-reth-pruned-init:
|
||||
image: alpine:3.21
|
||||
user: root
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command:
|
||||
- |
|
||||
apk add --no-cache curl wget
|
||||
mkdir -p /config
|
||||
[ -f /config/genesis.json ] || curl -fsSL -o /config/genesis.json "https://hashkeychain.s3.ap-southeast-1.amazonaws.com/testnet/genesis.json"
|
||||
restart: no
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ./op/hashkeychain/testnet:/config
|
||||
logging: *logging-defaults
|
||||
|
||||
hashkeychain-testnet-op-reth-pruned:
|
||||
image: ${HASHKEYCHAIN_RETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth}:${HASHKEYCHAIN_TESTNET_RETH_VERSION:-v2.3.2}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [op-reth, node]
|
||||
command:
|
||||
- --chain=/config/genesis.json
|
||||
- --config=/config/reth/reth.toml
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --disable-discovery
|
||||
- --engine.cross-block-cache-size=${HASHKEYCHAIN_TESTNET_RETH_STATE_CACHE:-4096}
|
||||
- --full
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --rollup.sequencer-http=https://testnet.hsk.xyz
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
depends_on:
|
||||
hashkeychain-testnet-op-reth-pruned-init:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${HASHKEYCHAIN_TESTNET_OP_RETH_PRUNED_TRACE_DATA:-hashkeychain-testnet-op-reth-pruned-trace}:/root/.local/share/reth
|
||||
- ./op/hashkeychain/testnet:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.hashkeychain-testnet-op-reth-pruned-trace-stripprefix.stripprefix.prefixes=/hashkeychain-testnet-op-reth-pruned
|
||||
- traefik.http.services.hashkeychain-testnet-op-reth-pruned-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/hashkeychain-testnet-op-reth-pruned`) || Path(`/hashkeychain-testnet-op-reth-pruned/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace.rule=Path(`/hashkeychain-testnet-op-reth-pruned`) || Path(`/hashkeychain-testnet-op-reth-pruned/`)}
|
||||
- traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace.middlewares=hashkeychain-testnet-op-reth-pruned-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
hashkeychain-testnet-op-reth-pruned-node:
|
||||
image: ${HASHKEYCHAIN_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${HASHKEYCHAIN_TESTNET_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 16964:16964
|
||||
- 16964:16964/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_SEPOLIA_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${HASHKEYCHAIN_TESTNET_L1_EXECUTION_RPC:-${ETHEREUM_SEPOLIA_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_SEPOLIA_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=133
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://hashkeychain-testnet-op-reth-pruned:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_OVERRIDE_PECTRA_BLOB_SCHEDULE=1742486400
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=16964
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=16964
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
hashkeychain-testnet-op-reth-pruned:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ./op/hashkeychain/testnet:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.hashkeychain-testnet-op-reth-pruned-trace-node-stripprefix.stripprefix.prefixes=/hashkeychain-testnet-op-reth-pruned/node
|
||||
- traefik.http.services.hashkeychain-testnet-op-reth-pruned-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/hashkeychain-testnet-op-reth-pruned/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace-node.rule=PathPrefix(`/hashkeychain-testnet-op-reth-pruned/node`)}
|
||||
- traefik.http.routers.hashkeychain-testnet-op-reth-pruned-trace-node.middlewares=hashkeychain-testnet-op-reth-pruned-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
hashkeychain-testnet-op-reth-pruned-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: hashkey-testnet
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
183
op/reth/metal-mainnet-op-reth-pruned-trace--kona.yml
Normal file
183
op/reth/metal-mainnet-op-reth-pruned-trace--kona.yml
Normal file
@@ -0,0 +1,183 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/metal-mainnet-op-reth-pruned-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/metal-mainnet-op-reth-pruned \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
metal-mainnet-op-reth-pruned:
|
||||
image: ${METAL_RETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth}:${METAL_MAINNET_RETH_VERSION:-v2.3.2}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
ports:
|
||||
- 11194:11194
|
||||
- 11194:11194/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [op-reth, node]
|
||||
command:
|
||||
- --chain=metal
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --engine.cross-block-cache-size=${METAL_MAINNET_RETH_STATE_CACHE:-4096}
|
||||
- --full
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --nat=extip:${IP}
|
||||
- --port=11194
|
||||
- --rollup.sequencer-http=https://rpc.metall2.com
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${METAL_MAINNET_OP_RETH_PRUNED_TRACE_DATA:-metal-mainnet-op-reth-pruned-trace}:/root/.local/share/reth
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.metal-mainnet-op-reth-pruned-trace-stripprefix.stripprefix.prefixes=/metal-mainnet-op-reth-pruned
|
||||
- traefik.http.services.metal-mainnet-op-reth-pruned-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.metal-mainnet-op-reth-pruned-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.metal-mainnet-op-reth-pruned-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.metal-mainnet-op-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/metal-mainnet-op-reth-pruned`) || Path(`/metal-mainnet-op-reth-pruned/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.metal-mainnet-op-reth-pruned-trace.rule=Path(`/metal-mainnet-op-reth-pruned`) || Path(`/metal-mainnet-op-reth-pruned/`)}
|
||||
- traefik.http.routers.metal-mainnet-op-reth-pruned-trace.middlewares=metal-mainnet-op-reth-pruned-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
metal-mainnet-op-reth-pruned-node:
|
||||
image: ${METAL_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${METAL_MAINNET_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 16194:16194
|
||||
- 16194:16194/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${METAL_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=1750
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://metal-mainnet-op-reth-pruned:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=16194
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=16194
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
metal-mainnet-op-reth-pruned:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.metal-mainnet-op-reth-pruned-trace-node-stripprefix.stripprefix.prefixes=/metal-mainnet-op-reth-pruned/node
|
||||
- traefik.http.services.metal-mainnet-op-reth-pruned-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.metal-mainnet-op-reth-pruned-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.metal-mainnet-op-reth-pruned-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.metal-mainnet-op-reth-pruned-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/metal-mainnet-op-reth-pruned/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.metal-mainnet-op-reth-pruned-trace-node.rule=PathPrefix(`/metal-mainnet-op-reth-pruned/node`)}
|
||||
- traefik.http.routers.metal-mainnet-op-reth-pruned-trace-node.middlewares=metal-mainnet-op-reth-pruned-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
metal-mainnet-op-reth-pruned-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: metall2
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
185
op/reth/superseed-sepolia-op-reth-pruned-trace--kona.yml
Normal file
185
op/reth/superseed-sepolia-op-reth-pruned-trace--kona.yml
Normal file
@@ -0,0 +1,185 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/superseed-sepolia-op-reth-pruned-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/superseed-sepolia-op-reth-pruned \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
superseed-sepolia-op-reth-pruned:
|
||||
image: ${SUPERSEED_RETH_IMAGE:-ghcr.io/conduitxyz/conduit-op-reth}:${SUPERSEED_SEPOLIA_RETH_VERSION:-v2.1.0}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [op-reth, node]
|
||||
command:
|
||||
- --chain=/config/genesis.json
|
||||
- --config=/config/reth/reth.toml
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --disable-discovery
|
||||
- --engine.cross-block-cache-size=${SUPERSEED_SEPOLIA_RETH_STATE_CACHE:-4096}
|
||||
- --full
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --rollup.historicalrpc=${SUPERSEED_SEPOLIA_CLASSIC_ARCHIVE_RPC:-https://sepolia.superseed.xyz}
|
||||
- --rollup.sequencer-http=https://sepolia.superseed.xyz
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${SUPERSEED_SEPOLIA_OP_RETH_PRUNED_TRACE_DATA:-superseed-sepolia-op-reth-pruned-trace}:/root/.local/share/reth
|
||||
- ./op/superseed/sepolia:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.superseed-sepolia-op-reth-pruned-trace-stripprefix.stripprefix.prefixes=/superseed-sepolia-op-reth-pruned
|
||||
- traefik.http.services.superseed-sepolia-op-reth-pruned-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.superseed-sepolia-op-reth-pruned-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.superseed-sepolia-op-reth-pruned-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.superseed-sepolia-op-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/superseed-sepolia-op-reth-pruned`) || Path(`/superseed-sepolia-op-reth-pruned/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.superseed-sepolia-op-reth-pruned-trace.rule=Path(`/superseed-sepolia-op-reth-pruned`) || Path(`/superseed-sepolia-op-reth-pruned/`)}
|
||||
- traefik.http.routers.superseed-sepolia-op-reth-pruned-trace.middlewares=superseed-sepolia-op-reth-pruned-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
superseed-sepolia-op-reth-pruned-node:
|
||||
image: ${SUPERSEED_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${SUPERSEED_SEPOLIA_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 17399:17399
|
||||
- 17399:17399/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_SEPOLIA_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${SUPERSEED_SEPOLIA_L1_EXECUTION_RPC:-${ETHEREUM_SEPOLIA_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_SEPOLIA_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=53302
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://superseed-sepolia-op-reth-pruned:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_OVERRIDE_PECTRA_BLOB_SCHEDULE=1742486400
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_BOOTNODES=enode://c9fb471294f243ce4aa32f8987d743fed73fa109013996f169f81914efd2a76762f2f142bd6dcc147afe342c752a587e06ef2ea1418c99ff757986242e372f3d@34.105.58.183:9222?discport=30301,enode://d25ce99435982b04d60c4b41ba256b84b888626db7bee45a9419382300fbe907359ae5ef250346785bff8d3b9d07cd3e017a27e2ee3cfda3bcbb0ba762ac9674@bootnode.conduit.xyz:0?discport=30301,enode://2d4e7e9d48f4dd4efe9342706dd1b0024681bd4c3300d021f86fc75eab7865d4e0cbec6fbc883f011cfd6a57423e7e2f6e104baad2b744c3cafaec6bc7dc92c1@34.65.43.171:0?discport=30305,enode://9d7a3efefe442351217e73b3a593bcb8efffb55b4807699972145324eab5e6b382152f8d24f6301baebbfb5ecd4127bd3faab2842c04cd432bdf50ba092f6645@34.65.109.126:0?discport=30305
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=17399
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=17399
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
superseed-sepolia-op-reth-pruned:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ./op/superseed/sepolia:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.superseed-sepolia-op-reth-pruned-trace-node-stripprefix.stripprefix.prefixes=/superseed-sepolia-op-reth-pruned/node
|
||||
- traefik.http.services.superseed-sepolia-op-reth-pruned-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.superseed-sepolia-op-reth-pruned-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.superseed-sepolia-op-reth-pruned-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.superseed-sepolia-op-reth-pruned-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/superseed-sepolia-op-reth-pruned/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.superseed-sepolia-op-reth-pruned-trace-node.rule=PathPrefix(`/superseed-sepolia-op-reth-pruned/node`)}
|
||||
- traefik.http.routers.superseed-sepolia-op-reth-pruned-trace-node.middlewares=superseed-sepolia-op-reth-pruned-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
superseed-sepolia-op-reth-pruned-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: superseed-sepolia
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
210
op/reth/xlayer-mainnet-op-reth-archive-trace--kona.yml
Normal file
210
op/reth/xlayer-mainnet-op-reth-archive-trace--kona.yml
Normal file
@@ -0,0 +1,210 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
# X Layer mainnet/testnet require the official OKX reth snapshot — do NOT sync from scratch.
|
||||
# Generic op-reth can't read the X Layer DB format (xlayerdb), so this uses xlayer/op-reth
|
||||
# (pinned in context.yml) with the image's built-in xlayer-<network> chain spec and the OKX
|
||||
# archive reth.toml. --rpc.legacy-url (the public X Layer RPC) gap-fills history after the
|
||||
# snapshot loads. node_sync=true already gives op-node consensus-layer + reth --disable-discovery.
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/xlayer-mainnet-op-reth-archive-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/xlayer-mainnet-op-reth \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
xlayer-mainnet-op-reth-init:
|
||||
image: alpine:3.21
|
||||
user: root
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command:
|
||||
- |
|
||||
apk add --no-cache curl wget
|
||||
mkdir -p /config
|
||||
[ -f /config/genesis.json ] || wget -qO- "https://okg-pub-hk.oss-cn-hongkong.aliyuncs.com/cdn/chain/xlayer/snapshot/merged.genesis.json.mainnet.tar.gz" | tar -xzf - -O --wildcards "*.json" > /config/genesis.json
|
||||
restart: no
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ./op/xlayer/mainnet:/config
|
||||
logging: *logging-defaults
|
||||
|
||||
xlayer-mainnet-op-reth:
|
||||
image: ${XLAYER_RETH_IMAGE:-xlayer/xlayer-reth}:${XLAYER_MAINNET_RETH_VERSION:-v0.0.6.3}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
environment:
|
||||
- GENESIS_URL=https://okg-pub-hk.oss-cn-hongkong.aliyuncs.com/cdn/chain/xlayer/snapshot/merged.genesis.json.mainnet.tar.gz
|
||||
entrypoint: [op-reth, node]
|
||||
command:
|
||||
- --chain=xlayer-mainnet
|
||||
- --config=/config/reth/reth.toml
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --disable-discovery
|
||||
- --engine.cross-block-cache-size=${XLAYER_MAINNET_RETH_STATE_CACHE:-4096}
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --rollup.sequencer-http=https://rpc.xlayer.tech
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.legacy-url=https://rpc.xlayer.tech
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
depends_on:
|
||||
xlayer-mainnet-op-reth-init:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${XLAYER_MAINNET_OP_RETH_ARCHIVE_TRACE_DATA:-xlayer-mainnet-op-reth-archive-trace}:/root/.local/share/reth
|
||||
- ./op/xlayer/mainnet:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.xlayer-mainnet-op-reth-archive-trace-stripprefix.stripprefix.prefixes=/xlayer-mainnet-op-reth
|
||||
- traefik.http.services.xlayer-mainnet-op-reth-archive-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-mainnet-op-reth-archive-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-mainnet-op-reth-archive-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-mainnet-op-reth-archive-trace.rule=Host(`$DOMAIN`) && (Path(`/xlayer-mainnet-op-reth`) || Path(`/xlayer-mainnet-op-reth/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.xlayer-mainnet-op-reth-archive-trace.rule=Path(`/xlayer-mainnet-op-reth`) || Path(`/xlayer-mainnet-op-reth/`)}
|
||||
- traefik.http.routers.xlayer-mainnet-op-reth-archive-trace.middlewares=xlayer-mainnet-op-reth-archive-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
xlayer-mainnet-op-reth-node:
|
||||
image: ${XLAYER_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${XLAYER_MAINNET_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 18556:18556
|
||||
- 18556:18556/udp
|
||||
environment:
|
||||
- GENESIS_URL=https://okg-pub-hk.oss-cn-hongkong.aliyuncs.com/cdn/chain/xlayer/snapshot/merged.genesis.json.mainnet.tar.gz
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${XLAYER_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=196
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://xlayer-mainnet-op-reth:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_BOOTNODES=enode://c67d7f63c5483ab8311123d2997bfe6a8aac2b117a40167cf71682f8a3e37d3b86547c786559355c4c05ae0b1a7e7a1b8fde55050b183f96728d62e276467ce1@8.210.177.150:9223,enode://28e3e305b266e01226a7cc979ab692b22507784095157453ee0e34607bb3beac9a5b00f3e3d7d3ac36164612ca25108e6b79f75e3a9ecb54a0b3e7eb3e097d37@8.210.15.172:9223,enode://b5aa43622aad25c619650a0b7f8bb030161dfbfd5664233f92d841a33b404cea3ffffdc5bc8d6667c7dc212242a52f0702825c1e51612047f75c847ab96ef7a6@8.210.69.97:9223
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=18556
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=18556
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
xlayer-mainnet-op-reth:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ./op/xlayer/mainnet:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.xlayer-mainnet-op-reth-archive-trace-node-stripprefix.stripprefix.prefixes=/xlayer-mainnet-op-reth/node
|
||||
- traefik.http.services.xlayer-mainnet-op-reth-archive-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-mainnet-op-reth-archive-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-mainnet-op-reth-archive-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-mainnet-op-reth-archive-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/xlayer-mainnet-op-reth/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.xlayer-mainnet-op-reth-archive-trace-node.rule=PathPrefix(`/xlayer-mainnet-op-reth/node`)}
|
||||
- traefik.http.routers.xlayer-mainnet-op-reth-archive-trace-node.middlewares=xlayer-mainnet-op-reth-archive-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
xlayer-mainnet-op-reth-archive-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: xlayer
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
211
op/reth/xlayer-testnet-op-reth-archive-trace--kona.yml
Normal file
211
op/reth/xlayer-testnet-op-reth-archive-trace--kona.yml
Normal file
@@ -0,0 +1,211 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
# X Layer mainnet/testnet require the official OKX reth snapshot — do NOT sync from scratch.
|
||||
# Generic op-reth can't read the X Layer DB format (xlayerdb), so this uses xlayer/op-reth
|
||||
# (pinned in context.yml) with the image's built-in xlayer-<network> chain spec and the OKX
|
||||
# archive reth.toml. --rpc.legacy-url (the public X Layer RPC) gap-fills history after the
|
||||
# snapshot loads. node_sync=true already gives op-node consensus-layer + reth --disable-discovery.
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/xlayer-testnet-op-reth-archive-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/xlayer-testnet-op-reth \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
xlayer-testnet-op-reth-init:
|
||||
image: alpine:3.21
|
||||
user: root
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command:
|
||||
- |
|
||||
apk add --no-cache curl wget
|
||||
mkdir -p /config
|
||||
[ -f /config/genesis.json ] || wget -qO- "https://okg-pub-hk.oss-cn-hongkong.aliyuncs.com/cdn/chain/xlayer/snapshot/merged.genesis.json.tar.gz" | tar -xzf - -O --wildcards "*.json" > /config/genesis.json
|
||||
restart: no
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ./op/xlayer/testnet:/config
|
||||
logging: *logging-defaults
|
||||
|
||||
xlayer-testnet-op-reth:
|
||||
image: ${XLAYER_RETH_IMAGE:-xlayer/xlayer-reth}:${XLAYER_TESTNET_RETH_VERSION:-v0.0.6.3}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
environment:
|
||||
- GENESIS_URL=https://okg-pub-hk.oss-cn-hongkong.aliyuncs.com/cdn/chain/xlayer/snapshot/merged.genesis.json.tar.gz
|
||||
entrypoint: [op-reth, node]
|
||||
command:
|
||||
- --chain=xlayer-testnet
|
||||
- --config=/config/reth/reth.toml
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --disable-discovery
|
||||
- --engine.cross-block-cache-size=${XLAYER_TESTNET_RETH_STATE_CACHE:-4096}
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --rollup.sequencer-http=https://testrpc.xlayer.tech
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.legacy-url=https://testrpc.xlayer.tech
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
depends_on:
|
||||
xlayer-testnet-op-reth-init:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${XLAYER_TESTNET_OP_RETH_ARCHIVE_TRACE_DATA:-xlayer-testnet-op-reth-archive-trace}:/root/.local/share/reth
|
||||
- ./op/xlayer/testnet:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.xlayer-testnet-op-reth-archive-trace-stripprefix.stripprefix.prefixes=/xlayer-testnet-op-reth
|
||||
- traefik.http.services.xlayer-testnet-op-reth-archive-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-testnet-op-reth-archive-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-testnet-op-reth-archive-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-testnet-op-reth-archive-trace.rule=Host(`$DOMAIN`) && (Path(`/xlayer-testnet-op-reth`) || Path(`/xlayer-testnet-op-reth/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.xlayer-testnet-op-reth-archive-trace.rule=Path(`/xlayer-testnet-op-reth`) || Path(`/xlayer-testnet-op-reth/`)}
|
||||
- traefik.http.routers.xlayer-testnet-op-reth-archive-trace.middlewares=xlayer-testnet-op-reth-archive-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
xlayer-testnet-op-reth-node:
|
||||
image: ${XLAYER_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${XLAYER_TESTNET_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 18466:18466
|
||||
- 18466:18466/udp
|
||||
environment:
|
||||
- GENESIS_URL=https://okg-pub-hk.oss-cn-hongkong.aliyuncs.com/cdn/chain/xlayer/snapshot/merged.genesis.json.tar.gz
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_SEPOLIA_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${XLAYER_TESTNET_L1_EXECUTION_RPC:-${ETHEREUM_SEPOLIA_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_SEPOLIA_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=1952
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://xlayer-testnet-op-reth:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_OVERRIDE_PECTRA_BLOB_SCHEDULE=1742486400
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_BOOTNODES=enode://eaae9fe2fc758add65fe4cfd42918e898e16ab23294db88f0dcdbcab2773e75bbea6bfdaa42b3ed502dfbee1335c242c602078c4aa009264e4705caa20d3dca7@8.210.181.50:9223
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=18466
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=18466
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
xlayer-testnet-op-reth:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ./op/xlayer/testnet:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.xlayer-testnet-op-reth-archive-trace-node-stripprefix.stripprefix.prefixes=/xlayer-testnet-op-reth/node
|
||||
- traefik.http.services.xlayer-testnet-op-reth-archive-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-testnet-op-reth-archive-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-testnet-op-reth-archive-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.xlayer-testnet-op-reth-archive-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/xlayer-testnet-op-reth/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.xlayer-testnet-op-reth-archive-trace-node.rule=PathPrefix(`/xlayer-testnet-op-reth/node`)}
|
||||
- traefik.http.routers.xlayer-testnet-op-reth-archive-trace-node.middlewares=xlayer-testnet-op-reth-archive-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
xlayer-testnet-op-reth-archive-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: xlayer-testnet
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
186
op/reth/zora-mainnet-op-reth-pruned-trace--kona.yml
Normal file
186
op/reth/zora-mainnet-op-reth-pruned-trace--kona.yml
Normal file
@@ -0,0 +1,186 @@
|
||||
---
|
||||
x-logging-defaults: &logging-defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# mkdir rpc && cd rpc
|
||||
#
|
||||
# git init
|
||||
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||
# git fetch origin vibe
|
||||
# git checkout origin/vibe
|
||||
#
|
||||
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||
#
|
||||
# env
|
||||
# ...
|
||||
# IP=$(curl ipinfo.io/ip)
|
||||
# DOMAIN=${IP}.traefik.me
|
||||
# COMPOSE_FILE=base.yml:rpc.yml:op/reth/zora-mainnet-op-reth-pruned-trace--kona.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/zora-mainnet-op-reth-pruned \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
zora-mainnet-op-reth-pruned:
|
||||
image: ${ZORA_RETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth}:${ZORA_MAINNET_RETH_VERSION:-v2.3.2}
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
# net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
|
||||
user: root
|
||||
ports:
|
||||
- 13561:13561
|
||||
- 13561:13561/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 9001
|
||||
- 8551
|
||||
entrypoint: [op-reth, node]
|
||||
command:
|
||||
- --chain=/config/genesis.json
|
||||
- --config=/config/reth/reth.toml
|
||||
- --datadir=/root/.local/share/reth
|
||||
- --engine.cross-block-cache-size=${ZORA_MAINNET_RETH_STATE_CACHE:-4096}
|
||||
- --full
|
||||
- --max-inbound-peers=50
|
||||
- --max-outbound-peers=50
|
||||
- --metrics=0.0.0.0:9001
|
||||
- --nat=extip:${IP}
|
||||
- --port=13561
|
||||
- --rollup.sequencer-http=https://rpc.zora.energy
|
||||
- --rpc-cache.max-blocks=10000
|
||||
- --rpc-cache.max-concurrent-db-requests=2048
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.max-blocks-per-filter=0
|
||||
- --rpc.max-connections=50000
|
||||
- --rpc.max-logs-per-response=0
|
||||
- --rpc.max-trace-filter-blocks=10000
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --http.corsdomain=*
|
||||
- --http.port=8545
|
||||
- --ws
|
||||
- --ws.addr=0.0.0.0
|
||||
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
|
||||
- --ws.origins=*
|
||||
- --ws.port=8545
|
||||
- --authrpc.addr=0.0.0.0
|
||||
- --authrpc.jwtsecret=/jwtsecret
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${ZORA_MAINNET_OP_RETH_PRUNED_TRACE_DATA:-zora-mainnet-op-reth-pruned-trace}:/root/.local/share/reth
|
||||
- ./op/zora/mainnet:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=9001
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.zora-mainnet-op-reth-pruned-trace-stripprefix.stripprefix.prefixes=/zora-mainnet-op-reth-pruned
|
||||
- traefik.http.services.zora-mainnet-op-reth-pruned-trace.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.zora-mainnet-op-reth-pruned-trace.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.zora-mainnet-op-reth-pruned-trace.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.zora-mainnet-op-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/zora-mainnet-op-reth-pruned`) || Path(`/zora-mainnet-op-reth-pruned/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.zora-mainnet-op-reth-pruned-trace.rule=Path(`/zora-mainnet-op-reth-pruned`) || Path(`/zora-mainnet-op-reth-pruned/`)}
|
||||
- traefik.http.routers.zora-mainnet-op-reth-pruned-trace.middlewares=zora-mainnet-op-reth-pruned-trace-stripprefix, ipallowlist
|
||||
shm_size: 2gb
|
||||
|
||||
zora-mainnet-op-reth-pruned-node:
|
||||
image: ${ZORA_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${ZORA_MAINNET_KONA_VERSION:-v1.6.1}
|
||||
ports:
|
||||
- 18561:18561
|
||||
- 18561:18561/udp
|
||||
environment:
|
||||
- KONA_METRICS_ADDR=0.0.0.0
|
||||
- KONA_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST}
|
||||
- KONA_NODE_L1_ETH_RPC=${ZORA_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}}
|
||||
- KONA_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false}
|
||||
- KONA_NODE_L2_CHAIN_ID=7777777
|
||||
- KONA_NODE_L2_ENGINE_AUTH=/jwtsecret
|
||||
- KONA_NODE_L2_ENGINE_RPC=http://zora-mainnet-op-reth-pruned:8551
|
||||
- KONA_NODE_L2_ENGINE_TIMEOUT=120000
|
||||
- KONA_NODE_L2_TRUST_RPC=true
|
||||
- KONA_NODE_METRICS_PORT=7300
|
||||
- KONA_NODE_MODE=Validator
|
||||
- KONA_NODE_P2P_ADVERTISE_IP=${IP}
|
||||
- KONA_NODE_P2P_LISTEN_IP=0.0.0.0
|
||||
- KONA_NODE_P2P_LISTEN_TCP_PORT=18561
|
||||
- KONA_NODE_P2P_LISTEN_UDP_PORT=18561
|
||||
- KONA_NODE_RPC_ADDR=0.0.0.0
|
||||
- KONA_NODE_RPC_PORT=9545
|
||||
entrypoint: [kona-node, node]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
zora-mainnet-op-reth-pruned:
|
||||
condition: service_started
|
||||
restart: true
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ./op/zora/mainnet:/config
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=true
|
||||
- prometheus-scrape.port=7300
|
||||
- prometheus-scrape.path=/metrics
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.zora-mainnet-op-reth-pruned-trace-node-stripprefix.stripprefix.prefixes=/zora-mainnet-op-reth-pruned/node
|
||||
- traefik.http.services.zora-mainnet-op-reth-pruned-trace-node.loadbalancer.server.port=9545
|
||||
- ${NO_SSL:-traefik.http.routers.zora-mainnet-op-reth-pruned-trace-node.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.zora-mainnet-op-reth-pruned-trace-node.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.zora-mainnet-op-reth-pruned-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/zora-mainnet-op-reth-pruned/node`)}
|
||||
- ${NO_SSL:+traefik.http.routers.zora-mainnet-op-reth-pruned-trace-node.rule=PathPrefix(`/zora-mainnet-op-reth-pruned/node`)}
|
||||
- traefik.http.routers.zora-mainnet-op-reth-pruned-trace-node.middlewares=zora-mainnet-op-reth-pruned-trace-node-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
zora-mainnet-op-reth-pruned-trace:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: zora
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
- trace
|
||||
methods:
|
||||
disabled:
|
||||
- name: eth_maxPriorityFeePerGas
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
Reference in New Issue
Block a user