From 4d0d4e84bdda61eaf630eda1ae7bc8f6feea357b Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Thu, 10 Sep 2026 09:17:47 +0000 Subject: [PATCH] deploy: regenerate compose from vibe-node main 482841b9f702 --- arc/reth/arc-testnet-reth-archive-trace.yml | 6 +- arc/reth/arc-testnet-reth-pruned-trace.yml | 6 +- arc/reth/arc-testnet-reth-pruned.yml | 6 +- compose_registry.json | 114 ++++++++++- ...se-mainnet-op-reth-minimal-trace--kona.yml | 187 +++++++++++++++++ ...ase-mainnet-op-reth-pruned-trace--kona.yml | 188 +++++++++++++++++ ...se-sepolia-op-reth-archive-trace--kona.yml | 188 +++++++++++++++++ ...se-sepolia-op-reth-minimal-trace--kona.yml | 188 +++++++++++++++++ ...ase-sepolia-op-reth-pruned-trace--kona.yml | 189 ++++++++++++++++++ ...ain-sepolia-op-reth-pruned-trace--kona.yml | 189 ++++++++++++++++++ reference-rpc-endpoint.json | 14 +- 11 files changed, 1257 insertions(+), 18 deletions(-) create mode 100644 op/reth/base-mainnet-op-reth-minimal-trace--kona.yml create mode 100644 op/reth/base-mainnet-op-reth-pruned-trace--kona.yml create mode 100644 op/reth/base-sepolia-op-reth-archive-trace--kona.yml create mode 100644 op/reth/base-sepolia-op-reth-minimal-trace--kona.yml create mode 100644 op/reth/base-sepolia-op-reth-pruned-trace--kona.yml create mode 100644 op/reth/unichain-sepolia-op-reth-pruned-trace--kona.yml diff --git a/arc/reth/arc-testnet-reth-archive-trace.yml b/arc/reth/arc-testnet-reth-archive-trace.yml index 9797ffc8..eed28378 100644 --- a/arc/reth/arc-testnet-reth-archive-trace.yml +++ b/arc/reth/arc-testnet-reth-archive-trace.yml @@ -30,7 +30,7 @@ x-logging-defaults: &logging-defaults services: arc-testnet-archive-consensus-init: - image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.7.2} + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.8.0} user: 0:0 entrypoint: [/usr/local/bin/arc-node-consensus, init] command: @@ -57,7 +57,7 @@ services: logging: *logging-defaults arc-testnet-archive: - image: ${ARC_RETH_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-execution}:${ARC_TESTNET_RETH_VERSION:-0.7.2} + image: ${ARC_RETH_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-execution}:${ARC_TESTNET_RETH_VERSION:-0.8.0} sysctls: # TCP Performance net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle @@ -119,7 +119,7 @@ services: shm_size: 2gb arc-testnet-archive-node: - image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.7.2} + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.8.0} user: 0:0 expose: - 31000 diff --git a/arc/reth/arc-testnet-reth-pruned-trace.yml b/arc/reth/arc-testnet-reth-pruned-trace.yml index 922f7f5f..5619803b 100644 --- a/arc/reth/arc-testnet-reth-pruned-trace.yml +++ b/arc/reth/arc-testnet-reth-pruned-trace.yml @@ -30,7 +30,7 @@ x-logging-defaults: &logging-defaults services: arc-testnet-consensus-init: - image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.7.2} + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.8.0} user: 0:0 entrypoint: [/usr/local/bin/arc-node-consensus, init] command: @@ -57,7 +57,7 @@ services: logging: *logging-defaults arc-testnet: - image: ${ARC_RETH_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-execution}:${ARC_TESTNET_RETH_VERSION:-0.7.2} + image: ${ARC_RETH_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-execution}:${ARC_TESTNET_RETH_VERSION:-0.8.0} sysctls: # TCP Performance net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle @@ -121,7 +121,7 @@ services: shm_size: 2gb arc-testnet-node: - image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.7.2} + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.8.0} user: 0:0 expose: - 31000 diff --git a/arc/reth/arc-testnet-reth-pruned.yml b/arc/reth/arc-testnet-reth-pruned.yml index 382575cd..446afc1b 100644 --- a/arc/reth/arc-testnet-reth-pruned.yml +++ b/arc/reth/arc-testnet-reth-pruned.yml @@ -30,7 +30,7 @@ x-logging-defaults: &logging-defaults services: arc-testnet-consensus-init: - image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.7.2} + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.8.0} user: 0:0 entrypoint: [/usr/local/bin/arc-node-consensus, init] command: @@ -57,7 +57,7 @@ services: logging: *logging-defaults arc-testnet: - image: ${ARC_RETH_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-execution}:${ARC_TESTNET_RETH_VERSION:-0.7.2} + image: ${ARC_RETH_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-execution}:${ARC_TESTNET_RETH_VERSION:-0.8.0} sysctls: # TCP Performance net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle @@ -121,7 +121,7 @@ services: shm_size: 2gb arc-testnet-node: - image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.7.2} + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.8.0} user: 0:0 expose: - 31000 diff --git a/compose_registry.json b/compose_registry.json index 40f9926d..95aa84e1 100644 --- a/compose_registry.json +++ b/compose_registry.json @@ -7706,6 +7706,23 @@ "base-mainnet-op-reth-archive-trace" ] }, + { + "chain": "mainnet", + "client": "reth", + "compose_file": "op/reth/base-mainnet-op-reth-minimal-trace--kona", + "drpc_chain": "base", + "features": [ + "trace" + ], + "network": "base", + "node": "kona", + "relay": null, + "stack": "op", + "type": "minimal", + "volumes": [ + "base-mainnet-op-reth-minimal-trace" + ] + }, { "chain": "mainnet", "client": "reth", @@ -7715,7 +7732,7 @@ "trace" ], "network": "base", - "node": "node", + "node": "kona", "relay": null, "stack": "op", "type": "minimal", @@ -7723,6 +7740,23 @@ "base-mainnet-op-reth-minimal-trace" ] }, + { + "chain": "mainnet", + "client": "reth", + "compose_file": "op/reth/base-mainnet-op-reth-pruned-trace--kona", + "drpc_chain": "base", + "features": [ + "trace" + ], + "network": "base", + "node": "kona", + "relay": null, + "stack": "op", + "type": "pruned", + "volumes": [ + "base-mainnet-op-reth-pruned-trace" + ] + }, { "chain": "mainnet", "client": "reth", @@ -7732,7 +7766,7 @@ "trace" ], "network": "base", - "node": "node", + "node": "kona", "relay": null, "stack": "op", "type": "pruned", @@ -7740,6 +7774,23 @@ "base-mainnet-op-reth-pruned-trace" ] }, + { + "chain": "sepolia", + "client": "reth", + "compose_file": "op/reth/base-sepolia-op-reth-archive-trace--kona", + "drpc_chain": "base-sepolia", + "features": [ + "trace" + ], + "network": "base", + "node": "kona", + "relay": null, + "stack": "op", + "type": "archive", + "volumes": [ + "base-sepolia-op-reth-archive-trace" + ] + }, { "chain": "sepolia", "client": "reth", @@ -7749,7 +7800,7 @@ "trace" ], "network": "base", - "node": "node", + "node": "kona", "relay": null, "stack": "op", "type": "archive", @@ -7757,6 +7808,23 @@ "base-sepolia-op-reth-archive-trace" ] }, + { + "chain": "sepolia", + "client": "reth", + "compose_file": "op/reth/base-sepolia-op-reth-minimal-trace--kona", + "drpc_chain": "base-sepolia", + "features": [ + "trace" + ], + "network": "base", + "node": "kona", + "relay": null, + "stack": "op", + "type": "minimal", + "volumes": [ + "base-sepolia-op-reth-minimal-trace" + ] + }, { "chain": "sepolia", "client": "reth", @@ -7766,7 +7834,7 @@ "trace" ], "network": "base", - "node": "node", + "node": "kona", "relay": null, "stack": "op", "type": "minimal", @@ -7774,6 +7842,23 @@ "base-sepolia-op-reth-minimal-trace" ] }, + { + "chain": "sepolia", + "client": "reth", + "compose_file": "op/reth/base-sepolia-op-reth-pruned-trace--kona", + "drpc_chain": "base-sepolia", + "features": [ + "trace" + ], + "network": "base", + "node": "kona", + "relay": null, + "stack": "op", + "type": "pruned", + "volumes": [ + "base-sepolia-op-reth-pruned-trace" + ] + }, { "chain": "sepolia", "client": "reth", @@ -7783,7 +7868,7 @@ "trace" ], "network": "base", - "node": "node", + "node": "kona", "relay": null, "stack": "op", "type": "pruned", @@ -8644,6 +8729,23 @@ "unichain-sepolia-op-reth-archive-trace" ] }, + { + "chain": "sepolia", + "client": "reth", + "compose_file": "op/reth/unichain-sepolia-op-reth-pruned-trace--kona", + "drpc_chain": "unichain-sepolia", + "features": [ + "trace" + ], + "network": "unichain", + "node": "kona", + "relay": null, + "stack": "op", + "type": "pruned", + "volumes": [ + "unichain-sepolia-op-reth-pruned-trace" + ] + }, { "chain": "sepolia", "client": "reth", @@ -8653,7 +8755,7 @@ "trace" ], "network": "unichain", - "node": "node", + "node": "kona", "relay": null, "stack": "op", "type": "pruned", diff --git a/op/reth/base-mainnet-op-reth-minimal-trace--kona.yml b/op/reth/base-mainnet-op-reth-minimal-trace--kona.yml new file mode 100644 index 00000000..87d55000 --- /dev/null +++ b/op/reth/base-mainnet-op-reth-minimal-trace--kona.yml @@ -0,0 +1,187 @@ +--- +x-logging-defaults: &logging-defaults + driver: json-file + options: + max-size: "512m" + max-file: "2" + +# 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 + - --discovery.addr=0.0.0.0 + - --discovery.port=11240 + - --discovery.v5.addr=0.0.0.0 + - --discovery.v5.port=11240 + - --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.2} + 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 + - OP_NODE_SYNCMODE=execution-layer + 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 +... \ No newline at end of file diff --git a/op/reth/base-mainnet-op-reth-pruned-trace--kona.yml b/op/reth/base-mainnet-op-reth-pruned-trace--kona.yml new file mode 100644 index 00000000..a6f52e58 --- /dev/null +++ b/op/reth/base-mainnet-op-reth-pruned-trace--kona.yml @@ -0,0 +1,188 @@ +--- +x-logging-defaults: &logging-defaults + driver: json-file + options: + max-size: "512m" + max-file: "2" + +# 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 + - --discovery.addr=0.0.0.0 + - --discovery.port=14759 + - --discovery.v5.addr=0.0.0.0 + - --discovery.v5.port=14759 + - --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.2} + 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 + - OP_NODE_SYNCMODE=execution-layer + 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 +... \ No newline at end of file diff --git a/op/reth/base-sepolia-op-reth-archive-trace--kona.yml b/op/reth/base-sepolia-op-reth-archive-trace--kona.yml new file mode 100644 index 00000000..b3b06075 --- /dev/null +++ b/op/reth/base-sepolia-op-reth-archive-trace--kona.yml @@ -0,0 +1,188 @@ +--- +x-logging-defaults: &logging-defaults + driver: json-file + options: + max-size: "512m" + max-file: "2" + +# 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 + - --discovery.addr=0.0.0.0 + - --discovery.port=11390 + - --discovery.v5.addr=0.0.0.0 + - --discovery.v5.port=11390 + - --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.2} + 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 + - OP_NODE_SYNCMODE=execution-layer + 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 +... \ No newline at end of file diff --git a/op/reth/base-sepolia-op-reth-minimal-trace--kona.yml b/op/reth/base-sepolia-op-reth-minimal-trace--kona.yml new file mode 100644 index 00000000..827caef6 --- /dev/null +++ b/op/reth/base-sepolia-op-reth-minimal-trace--kona.yml @@ -0,0 +1,188 @@ +--- +x-logging-defaults: &logging-defaults + driver: json-file + options: + max-size: "512m" + max-file: "2" + +# 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 + - --discovery.addr=0.0.0.0 + - --discovery.port=12165 + - --discovery.v5.addr=0.0.0.0 + - --discovery.v5.port=12165 + - --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.2} + 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 + - OP_NODE_SYNCMODE=execution-layer + 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 +... \ No newline at end of file diff --git a/op/reth/base-sepolia-op-reth-pruned-trace--kona.yml b/op/reth/base-sepolia-op-reth-pruned-trace--kona.yml new file mode 100644 index 00000000..2d7576a0 --- /dev/null +++ b/op/reth/base-sepolia-op-reth-pruned-trace--kona.yml @@ -0,0 +1,189 @@ +--- +x-logging-defaults: &logging-defaults + driver: json-file + options: + max-size: "512m" + max-file: "2" + +# 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 + - --discovery.addr=0.0.0.0 + - --discovery.port=11147 + - --discovery.v5.addr=0.0.0.0 + - --discovery.v5.port=11147 + - --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.2} + 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 + - OP_NODE_SYNCMODE=execution-layer + 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 +... \ No newline at end of file diff --git a/op/reth/unichain-sepolia-op-reth-pruned-trace--kona.yml b/op/reth/unichain-sepolia-op-reth-pruned-trace--kona.yml new file mode 100644 index 00000000..0bdc9eed --- /dev/null +++ b/op/reth/unichain-sepolia-op-reth-pruned-trace--kona.yml @@ -0,0 +1,189 @@ +--- +x-logging-defaults: &logging-defaults + driver: json-file + options: + max-size: "512m" + max-file: "2" + +# 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/unichain-sepolia-op-reth-pruned-trace--kona.yml +# +# docker compose up -d +# +# curl -X POST https://${IP}.traefik.me/unichain-sepolia-op-reth-pruned \ +# -H "Content-Type: application/json" \ +# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' + +services: + unichain-sepolia-op-reth-pruned: + image: ${UNICHAIN_RETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth}:${UNICHAIN_SEPOLIA_RETH_VERSION:-v2.3.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 + ports: + - 14152:14152 + - 14152:14152/udp + expose: + - 8545 + - 9001 + - 8551 + entrypoint: [op-reth, node] + command: + - --chain=unichain-sepolia + - --datadir=/root/.local/share/reth + - --discovery.addr=0.0.0.0 + - --discovery.port=14152 + - --discovery.v5.addr=0.0.0.0 + - --discovery.v5.port=14152 + - --engine.cross-block-cache-size=${UNICHAIN_SEPOLIA_RETH_STATE_CACHE:-4096} + - --full + - --max-inbound-peers=50 + - --max-outbound-peers=50 + - --metrics=0.0.0.0:9001 + - --nat=extip:${IP} + - --port=14152 + - --rollup.sequencer-http=https://sepolia.unichain.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: + - ${UNICHAIN_SEPOLIA_OP_RETH_PRUNED_TRACE_DATA:-unichain-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.unichain-sepolia-op-reth-pruned-trace-stripprefix.stripprefix.prefixes=/unichain-sepolia-op-reth-pruned + - traefik.http.services.unichain-sepolia-op-reth-pruned-trace.loadbalancer.server.port=8545 + - ${NO_SSL:-traefik.http.routers.unichain-sepolia-op-reth-pruned-trace.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.unichain-sepolia-op-reth-pruned-trace.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.unichain-sepolia-op-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/unichain-sepolia-op-reth-pruned`) || Path(`/unichain-sepolia-op-reth-pruned/`))} + - ${NO_SSL:+traefik.http.routers.unichain-sepolia-op-reth-pruned-trace.rule=Path(`/unichain-sepolia-op-reth-pruned`) || Path(`/unichain-sepolia-op-reth-pruned/`)} + - traefik.http.routers.unichain-sepolia-op-reth-pruned-trace.middlewares=unichain-sepolia-op-reth-pruned-trace-stripprefix, ipallowlist + shm_size: 2gb + + unichain-sepolia-op-reth-pruned-node: + image: ${UNICHAIN_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${UNICHAIN_SEPOLIA_KONA_VERSION:-v1.6.2} + ports: + - 19152:19152 + - 19152:19152/udp + environment: + - KONA_METRICS_ADDR=0.0.0.0 + - KONA_NODE_L1_BEACON=${ETHEREUM_SEPOLIA_BEACON_REST} + - KONA_NODE_L1_ETH_RPC=${UNICHAIN_SEPOLIA_L1_EXECUTION_RPC:-${ETHEREUM_SEPOLIA_EXECUTION_RPC}} + - KONA_NODE_L1_TRUST_RPC=${ETHEREUM_SEPOLIA_EXECUTION_TRUST:-false} + - KONA_NODE_L2_CHAIN_ID=1301 + - KONA_NODE_L2_ENGINE_AUTH=/jwtsecret + - KONA_NODE_L2_ENGINE_RPC=http://unichain-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=19152 + - KONA_NODE_P2P_LISTEN_UDP_PORT=19152 + - KONA_NODE_RPC_ADDR=0.0.0.0 + - KONA_NODE_RPC_PORT=9545 + - OP_NODE_SYNCMODE=execution-layer + entrypoint: [kona-node, node] + restart: unless-stopped + depends_on: + unichain-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.unichain-sepolia-op-reth-pruned-trace-node-stripprefix.stripprefix.prefixes=/unichain-sepolia-op-reth-pruned/node + - traefik.http.services.unichain-sepolia-op-reth-pruned-trace-node.loadbalancer.server.port=9545 + - ${NO_SSL:-traefik.http.routers.unichain-sepolia-op-reth-pruned-trace-node.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.unichain-sepolia-op-reth-pruned-trace-node.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.unichain-sepolia-op-reth-pruned-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/unichain-sepolia-op-reth-pruned/node`)} + - ${NO_SSL:+traefik.http.routers.unichain-sepolia-op-reth-pruned-trace-node.rule=PathPrefix(`/unichain-sepolia-op-reth-pruned/node`)} + - traefik.http.routers.unichain-sepolia-op-reth-pruned-trace-node.middlewares=unichain-sepolia-op-reth-pruned-trace-node-stripprefix, ipallowlist + +volumes: + unichain-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: unichain-sepolia + method-groups: + enabled: + - debug + - filter + - trace + methods: + disabled: + - name: eth_maxPriorityFeePerGas + enabled: + - name: txpool_content # TODO: should be disabled for rollup nodes +... \ No newline at end of file diff --git a/reference-rpc-endpoint.json b/reference-rpc-endpoint.json index 39a3ea8c..200fac69 100644 --- a/reference-rpc-endpoint.json +++ b/reference-rpc-endpoint.json @@ -37,6 +37,7 @@ "https://rpc.mevblocker.io/fullprivacy", "https://eth.drpc.org", "https://api.securerpc.com/v1", + "https://xrpc.cl/eth", "https://ethereum.drpc.org" ] }, @@ -53,7 +54,8 @@ "https://sepolia.gateway.tenderly.co", "https://ethereum-sepolia-rpc.publicnode.com", "https://sepolia.drpc.org", - "https://eth-sepolia.g.alchemy.com/v2/WddzdzI2o9S3COdT73d5w6AIogbKq4X-" + "https://eth-sepolia.g.alchemy.com/v2/WddzdzI2o9S3COdT73d5w6AIogbKq4X-", + "https://xrpc.cl/sepolia" ] }, "holesky": { @@ -131,7 +133,8 @@ "https://polygon-bor-rpc.publicnode.com", "https://polygon.gateway.tenderly.co", "https://rpc.satelink.network/rpc/polygon", - "https://rpcfree.com/polygon-rpc" + "https://rpcfree.com/polygon-rpc", + "https://xrpc.cl/polygon" ] }, "polygon-amoy": { @@ -159,6 +162,7 @@ "https://arbitrum-one-rpc.publicnode.com", "https://rpcfree.com/arbitrum-rpc", "https://rpc.satelink.network/rpc/arbitrum", + "https://xrpc.cl/arbitrum", "https://arbitrum.drpc.org" ] }, @@ -184,7 +188,8 @@ "https://mainnet.optimism.io", "https://optimism-rpc.publicnode.com", "https://optimism.gateway.tenderly.co", - "https://optimism.drpc.org" + "https://optimism.drpc.org", + "https://xrpc.cl/optimism" ] }, "optimism-sepolia": { @@ -219,6 +224,7 @@ "https://bsc-dataseed4.ninicoin.io", "https://bsc-rpc.publicnode.com", "https://bsc-rpc-public.chainpulse.cc", + "https://xrpc.cl/bsc", "https://bsc.drpc.org" ] }, @@ -310,6 +316,7 @@ "https://rpcfree.com/base-rpc", "https://rpc.baseazul.dev", "https://rpc.satelink.network/rpc/base", + "https://xrpc.cl/base", "https://base.drpc.org" ] }, @@ -391,6 +398,7 @@ "urls": [ "https://api.avax.network/ext/bc/C/rpc", "https://avalanche-c-chain-rpc.publicnode.com", + "https://xrpc.cl/avalanche", "https://avalanche.drpc.org" ] },