From 1758c921d71d8a4c17873eaa7b4a7bab9dbae997 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Sun, 21 Jun 2026 06:52:38 +0000 Subject: [PATCH] deploy: regenerate compose from vibe-node main ed38c887a775 --- compose_registry.json | 32 +++ .../katana-mainnet-op-reth-archive-trace.yml | 197 +++++++++++++++++ .../katana-mainnet-op-reth-pruned-trace.yml | 198 ++++++++++++++++++ .../xlayer-mainnet-op-reth-archive-trace.yml | 2 +- .../xlayer-testnet-op-reth-archive-trace.yml | 2 +- 5 files changed, 429 insertions(+), 2 deletions(-) create mode 100644 op/reth/katana-mainnet-op-reth-archive-trace.yml create mode 100644 op/reth/katana-mainnet-op-reth-pruned-trace.yml diff --git a/compose_registry.json b/compose_registry.json index 4a3f7b8f..a473d345 100644 --- a/compose_registry.json +++ b/compose_registry.json @@ -6452,6 +6452,38 @@ "ink-sepolia-op-reth-pruned-trace" ] }, + { + "chain": "mainnet", + "client": "reth", + "compose_file": "op/reth/katana-mainnet-op-reth-archive-trace", + "features": [ + "trace" + ], + "network": "katana", + "node": "node", + "relay": null, + "stack": "op", + "type": "archive", + "volumes": [ + "katana-mainnet-op-reth-archive-trace" + ] + }, + { + "chain": "mainnet", + "client": "reth", + "compose_file": "op/reth/katana-mainnet-op-reth-pruned-trace", + "features": [ + "trace" + ], + "network": "katana", + "node": "node", + "relay": null, + "stack": "op", + "type": "pruned", + "volumes": [ + "katana-mainnet-op-reth-pruned-trace" + ] + }, { "chain": "mainnet", "client": "reth", diff --git a/op/reth/katana-mainnet-op-reth-archive-trace.yml b/op/reth/katana-mainnet-op-reth-archive-trace.yml new file mode 100644 index 00000000..66fd9da8 --- /dev/null +++ b/op/reth/katana-mainnet-op-reth-archive-trace.yml @@ -0,0 +1,197 @@ +--- +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/katana-mainnet-op-reth-archive-trace.yml +# +# docker compose up -d +# +# curl -X POST https://${IP}.traefik.me/katana-mainnet-op-reth \ +# -H "Content-Type: application/json" \ +# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' + +services: + katana-mainnet-op-reth: + image: ${KATANA_RETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth}:${KATANA_MAINNET_RETH_VERSION:-v2.3.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: + - 14265:14265 + - 14265:14265/udp + expose: + - 8545 + - 9001 + - 8551 + environment: + - KATANA_MAINNET_RETH_STATE_CACHE=4096 + - KATANA_MAINNET_RETH_VERSION=v2.3.1 + - KATANA_RETH_IMAGE=us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth + entrypoint: [op-reth, node] + command: + - --chain=/config/genesis.json + - --config=/config/reth/reth.toml + - --datadir=/root/.local/share/reth + - --engine.cross-block-cache-size=${KATANA_MAINNET_RETH_STATE_CACHE:-4096} + - --max-inbound-peers=50 + - --max-outbound-peers=50 + - --metrics=0.0.0.0:9001 + - --nat=extip:${IP} + - --port=14265 + - --rollup.sequencer-http=https://rpc.katana.network + - --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: + - ${KATANA_MAINNET_OP_RETH_ARCHIVE_TRACE_DATA:-katana-mainnet-op-reth-archive-trace}:/root/.local/share/reth + - ./op/katana/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.katana-mainnet-op-reth-archive-trace-stripprefix.stripprefix.prefixes=/katana-mainnet-op-reth + - traefik.http.services.katana-mainnet-op-reth-archive-trace.loadbalancer.server.port=8545 + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-archive-trace.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-archive-trace.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-archive-trace.rule=Host(`$DOMAIN`) && (Path(`/katana-mainnet-op-reth`) || Path(`/katana-mainnet-op-reth/`))} + - ${NO_SSL:+traefik.http.routers.katana-mainnet-op-reth-archive-trace.rule=Path(`/katana-mainnet-op-reth`) || Path(`/katana-mainnet-op-reth/`)} + - traefik.http.routers.katana-mainnet-op-reth-archive-trace.middlewares=katana-mainnet-op-reth-archive-trace-stripprefix, ipallowlist + shm_size: 2gb + + katana-mainnet-op-reth-node: + image: ${KATANA_NODE_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node}:${KATANA_MAINNET_NODE_VERSION:-v1.19.0} + ports: + - 19265:19265 + - 19265:19265/udp + environment: + - OP_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST} + - OP_NODE_L1_BEACON_ARCHIVER=${ETHEREUM_MAINNET_BEACON_ARCHIVER} + - OP_NODE_L1_ETH_RPC=${KATANA_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}} + - OP_NODE_L1_RPC_KIND=${ETHEREUM_MAINNET_EXECUTION_KIND:-standard} + - OP_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false} + - OP_NODE_L2_ENGINE_AUTH=/jwtsecret + - OP_NODE_L2_ENGINE_KIND=reth + - OP_NODE_L2_ENGINE_RPC=http://katana-mainnet-op-reth:8551 + - OP_NODE_L2_ENGINE_RPC_TIMEOUT=120s + - OP_NODE_L2_SKIP_SYNC_START_CHECK=true + - OP_NODE_LOG_LEVEL=info + - OP_NODE_METRICS_ADDR=0.0.0.0 + - OP_NODE_METRICS_ENABLED=true + - OP_NODE_METRICS_PORT=7300 + - OP_NODE_OVERRIDE_ISTHMUS=1746806401 + - OP_NODE_OVERRIDE_JOVIAN=1773066601 + - OP_NODE_P2P_ADVERTISE_IP=${IP} + - OP_NODE_P2P_LISTEN_IP=0.0.0.0 + - OP_NODE_P2P_LISTEN_TCP_PORT=19265 + - OP_NODE_P2P_LISTEN_UDP_PORT=19265 + - OP_NODE_ROLLUP_CONFIG=/config/rollup.json + - OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true + - OP_NODE_RPC_ADDR=0.0.0.0 + - OP_NODE_RPC_PORT=8545 + - OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log + - OP_NODE_SYNCMODE=execution-layer + - OP_NODE_VERIFIER_L1_CONFS=0 + entrypoint: [op-node] + restart: unless-stopped + depends_on: + - katana-mainnet-op-reth + networks: + - chains + volumes: + - ./op/katana/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.katana-mainnet-op-reth-archive-trace-node-stripprefix.stripprefix.prefixes=/katana-mainnet-op-reth/node + - traefik.http.services.katana-mainnet-op-reth-archive-trace-node.loadbalancer.server.port=8547 + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-archive-trace-node.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-archive-trace-node.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-archive-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/katana-mainnet-op-reth/node`)} + - ${NO_SSL:+traefik.http.routers.katana-mainnet-op-reth-archive-trace-node.rule=PathPrefix(`/katana-mainnet-op-reth/node`)} + - traefik.http.routers.katana-mainnet-op-reth-archive-trace-node.middlewares=katana-mainnet-op-reth-archive-trace-node-stripprefix, ipallowlist + +volumes: + katana-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: katana + 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/katana-mainnet-op-reth-pruned-trace.yml b/op/reth/katana-mainnet-op-reth-pruned-trace.yml new file mode 100644 index 00000000..45f8a7a5 --- /dev/null +++ b/op/reth/katana-mainnet-op-reth-pruned-trace.yml @@ -0,0 +1,198 @@ +--- +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/katana-mainnet-op-reth-pruned-trace.yml +# +# docker compose up -d +# +# curl -X POST https://${IP}.traefik.me/katana-mainnet-op-reth-pruned \ +# -H "Content-Type: application/json" \ +# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' + +services: + katana-mainnet-op-reth-pruned: + image: ${KATANA_RETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth}:${KATANA_MAINNET_RETH_VERSION:-v2.3.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: + - 13767:13767 + - 13767:13767/udp + expose: + - 8545 + - 9001 + - 8551 + environment: + - KATANA_MAINNET_RETH_STATE_CACHE=4096 + - KATANA_MAINNET_RETH_VERSION=v2.3.1 + - KATANA_RETH_IMAGE=us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth + entrypoint: [op-reth, node] + command: + - --chain=/config/genesis.json + - --config=/config/reth/reth.toml + - --datadir=/root/.local/share/reth + - --engine.cross-block-cache-size=${KATANA_MAINNET_RETH_STATE_CACHE:-4096} + - --full + - --max-inbound-peers=50 + - --max-outbound-peers=50 + - --metrics=0.0.0.0:9001 + - --nat=extip:${IP} + - --port=13767 + - --rollup.sequencer-http=https://rpc.katana.network + - --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: + - ${KATANA_MAINNET_OP_RETH_PRUNED_TRACE_DATA:-katana-mainnet-op-reth-pruned-trace}:/root/.local/share/reth + - ./op/katana/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.katana-mainnet-op-reth-pruned-trace-stripprefix.stripprefix.prefixes=/katana-mainnet-op-reth-pruned + - traefik.http.services.katana-mainnet-op-reth-pruned-trace.loadbalancer.server.port=8545 + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-pruned-trace.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-pruned-trace.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/katana-mainnet-op-reth-pruned`) || Path(`/katana-mainnet-op-reth-pruned/`))} + - ${NO_SSL:+traefik.http.routers.katana-mainnet-op-reth-pruned-trace.rule=Path(`/katana-mainnet-op-reth-pruned`) || Path(`/katana-mainnet-op-reth-pruned/`)} + - traefik.http.routers.katana-mainnet-op-reth-pruned-trace.middlewares=katana-mainnet-op-reth-pruned-trace-stripprefix, ipallowlist + shm_size: 2gb + + katana-mainnet-op-reth-pruned-node: + image: ${KATANA_NODE_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node}:${KATANA_MAINNET_NODE_VERSION:-v1.19.0} + ports: + - 18767:18767 + - 18767:18767/udp + environment: + - OP_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST} + - OP_NODE_L1_BEACON_ARCHIVER=${ETHEREUM_MAINNET_BEACON_ARCHIVER} + - OP_NODE_L1_ETH_RPC=${KATANA_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}} + - OP_NODE_L1_RPC_KIND=${ETHEREUM_MAINNET_EXECUTION_KIND:-standard} + - OP_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false} + - OP_NODE_L2_ENGINE_AUTH=/jwtsecret + - OP_NODE_L2_ENGINE_KIND=reth + - OP_NODE_L2_ENGINE_RPC=http://katana-mainnet-op-reth-pruned:8551 + - OP_NODE_L2_ENGINE_RPC_TIMEOUT=120s + - OP_NODE_L2_SKIP_SYNC_START_CHECK=true + - OP_NODE_LOG_LEVEL=info + - OP_NODE_METRICS_ADDR=0.0.0.0 + - OP_NODE_METRICS_ENABLED=true + - OP_NODE_METRICS_PORT=7300 + - OP_NODE_OVERRIDE_ISTHMUS=1746806401 + - OP_NODE_OVERRIDE_JOVIAN=1773066601 + - OP_NODE_P2P_ADVERTISE_IP=${IP} + - OP_NODE_P2P_LISTEN_IP=0.0.0.0 + - OP_NODE_P2P_LISTEN_TCP_PORT=18767 + - OP_NODE_P2P_LISTEN_UDP_PORT=18767 + - OP_NODE_ROLLUP_CONFIG=/config/rollup.json + - OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true + - OP_NODE_RPC_ADDR=0.0.0.0 + - OP_NODE_RPC_PORT=8545 + - OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log + - OP_NODE_SYNCMODE=execution-layer + - OP_NODE_VERIFIER_L1_CONFS=0 + entrypoint: [op-node] + restart: unless-stopped + depends_on: + - katana-mainnet-op-reth-pruned + networks: + - chains + volumes: + - ./op/katana/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.katana-mainnet-op-reth-pruned-trace-node-stripprefix.stripprefix.prefixes=/katana-mainnet-op-reth-pruned/node + - traefik.http.services.katana-mainnet-op-reth-pruned-trace-node.loadbalancer.server.port=8547 + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-pruned-trace-node.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-pruned-trace-node.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.katana-mainnet-op-reth-pruned-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/katana-mainnet-op-reth-pruned/node`)} + - ${NO_SSL:+traefik.http.routers.katana-mainnet-op-reth-pruned-trace-node.rule=PathPrefix(`/katana-mainnet-op-reth-pruned/node`)} + - traefik.http.routers.katana-mainnet-op-reth-pruned-trace-node.middlewares=katana-mainnet-op-reth-pruned-trace-node-stripprefix, ipallowlist + +volumes: + katana-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: katana + 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/xlayer-mainnet-op-reth-archive-trace.yml b/op/reth/xlayer-mainnet-op-reth-archive-trace.yml index 8b30c020..5b1571f8 100644 --- a/op/reth/xlayer-mainnet-op-reth-archive-trace.yml +++ b/op/reth/xlayer-mainnet-op-reth-archive-trace.yml @@ -51,7 +51,7 @@ services: logging: *logging-defaults xlayer-mainnet-op-reth: - image: ${XLAYER_RETH_IMAGE:-xlayer/op-reth}:${XLAYER_MAINNET_RETH_VERSION:-v0.0.4.1} + image: ${XLAYER_RETH_IMAGE:-xlayer/xlayer-reth}:${XLAYER_MAINNET_RETH_VERSION:-v0.0.5.1} sysctls: # TCP Performance net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle diff --git a/op/reth/xlayer-testnet-op-reth-archive-trace.yml b/op/reth/xlayer-testnet-op-reth-archive-trace.yml index 61d385c1..f97abcb9 100644 --- a/op/reth/xlayer-testnet-op-reth-archive-trace.yml +++ b/op/reth/xlayer-testnet-op-reth-archive-trace.yml @@ -51,7 +51,7 @@ services: logging: *logging-defaults xlayer-testnet-op-reth: - image: ${XLAYER_RETH_IMAGE:-xlayer/op-reth}:${XLAYER_TESTNET_RETH_VERSION:-v0.0.4.1} + image: ${XLAYER_RETH_IMAGE:-xlayer/xlayer-reth}:${XLAYER_TESTNET_RETH_VERSION:-v0.0.5.1} sysctls: # TCP Performance net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle