From 53de81c09deae14271554cfa5697fbe96b8e10d9 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Tue, 28 Jul 2026 05:44:48 +0000 Subject: [PATCH] ink-mainnet: remove orphaned op-geth compose files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Source already dropped ink-mainnet op-geth from config.yml, but update.sh never prunes orphans — stale op/geth/ink-mainnet-op-geth-*.yml files stayed in COMPOSE_FILE and fought op-reth for Traefik /ink-mainnet (404). Delete the four orphans so only op-reth remains for that path. --- ...net-op-geth-archive-leveldb-hash--kona.yml | 199 ----------------- ...k-mainnet-op-geth-archive-leveldb-hash.yml | 203 ----------------- ...innet-op-geth-pruned-pebble-path--kona.yml | 201 ----------------- ...ink-mainnet-op-geth-pruned-pebble-path.yml | 205 ------------------ 4 files changed, 808 deletions(-) delete mode 100644 op/geth/ink-mainnet-op-geth-archive-leveldb-hash--kona.yml delete mode 100644 op/geth/ink-mainnet-op-geth-archive-leveldb-hash.yml delete mode 100644 op/geth/ink-mainnet-op-geth-pruned-pebble-path--kona.yml delete mode 100644 op/geth/ink-mainnet-op-geth-pruned-pebble-path.yml diff --git a/op/geth/ink-mainnet-op-geth-archive-leveldb-hash--kona.yml b/op/geth/ink-mainnet-op-geth-archive-leveldb-hash--kona.yml deleted file mode 100644 index 531c2f5f..00000000 --- a/op/geth/ink-mainnet-op-geth-archive-leveldb-hash--kona.yml +++ /dev/null @@ -1,199 +0,0 @@ ---- -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/geth/ink-mainnet-op-geth-archive-leveldb-hash--kona.yml -# -# docker compose up -d -# -# curl -X POST https://${IP}.traefik.me/ink-mainnet-archive \ -# -H "Content-Type: application/json" \ -# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' - -services: - ink-mainnet-archive: - image: ${INK_GETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth}:${INK_MAINNET_GETH_VERSION:-v1.101702.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) - user: root - ports: - - 10713:10713 - - 10713:10713/udp - expose: - - 8545 - - 6060 - - 8551 - environment: - - GETH_ROLLUP_DISABLETXPOOLGOSSIP=true - - GETH_ROLLUP_SEQUENCERHTTP=https://rpc-gel.inkonchain.com - entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=leveldb --gcmode=archive --datadir /data init --state.scheme=hash /config/genesis.json; exec geth "$@"' -- - command: - - --cache=${INK_MAINNET_OP_GETH_ARCHIVE_LEVELDB_HASH_CACHE:-1024} - - --datadir=/data - - --db.engine=leveldb - - --gcmode=archive - - --maxpeers=50 - - --metrics - - --metrics.addr=0.0.0.0 - - --metrics.port=6060 - - --nat=extip:${IP} - - --networkid=57073 - - --port=10713 - - --rpc.gascap=600000000 - - --rpc.txfeecap=0 - - --state.scheme=hash - - --syncmode=full - - --http - - --http.addr=0.0.0.0 - - --http.api=eth,net,web3,debug,admin,txpool,engine - - --http.port=8545 - - --http.vhosts=* - - --ws - - --ws.addr=0.0.0.0 - - --ws.api=eth,net,web3,debug,admin,txpool,engine - - --ws.origins=* - - --ws.port=8545 - - --authrpc.addr=0.0.0.0 - - --authrpc.jwtsecret=/jwtsecret - - --authrpc.vhosts=* - restart: unless-stopped - stop_grace_period: 5m - networks: - - chains - volumes: - - ${INK_MAINNET_OP_GETH_ARCHIVE_LEVELDB_HASH_DATA:-ink-mainnet-op-geth-archive-leveldb-hash}:/data - - ./op/ink/mainnet:/config - - .jwtsecret:/jwtsecret:ro - - /slowdisk:/slowdisk - logging: *logging-defaults - labels: - - prometheus-scrape.enabled=true - - prometheus-scrape.port=6060 - - prometheus-scrape.path=/debug/metrics/prometheus - - traefik.enable=true - - traefik.http.middlewares.ink-mainnet-op-geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/ink-mainnet-archive - - traefik.http.services.ink-mainnet-op-geth-archive-leveldb-hash.loadbalancer.server.port=8545 - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/ink-mainnet-archive`) || Path(`/ink-mainnet-archive/`))} - - ${NO_SSL:+traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.rule=Path(`/ink-mainnet-archive`) || Path(`/ink-mainnet-archive/`)} - - traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.middlewares=ink-mainnet-op-geth-archive-leveldb-hash-stripprefix, ipallowlist - - ink-mainnet-archive-node: - image: ${INK_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${INK_MAINNET_KONA_VERSION:-v1.6.1} - ports: - - 15713:15713 - - 15713:15713/udp - environment: - - KONA_METRICS_ADDR=0.0.0.0 - - KONA_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST} - - KONA_NODE_L1_ETH_RPC=${INK_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}} - - KONA_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false} - - KONA_NODE_L2_CHAIN_ID=57073 - - KONA_NODE_L2_ENGINE_AUTH=/jwtsecret - - KONA_NODE_L2_ENGINE_RPC=http://ink-mainnet-archive: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=15713 - - KONA_NODE_P2P_LISTEN_UDP_PORT=15713 - - KONA_NODE_RPC_ADDR=0.0.0.0 - - KONA_NODE_RPC_PORT=9545 - entrypoint: [kona-node, node] - restart: unless-stopped - depends_on: - ink-mainnet-archive: - condition: service_started - restart: true - networks: - - chains - volumes: - - ./op/ink/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.ink-mainnet-op-geth-archive-leveldb-hash-node-stripprefix.stripprefix.prefixes=/ink-mainnet-archive/node - - traefik.http.services.ink-mainnet-op-geth-archive-leveldb-hash-node.loadbalancer.server.port=9545 - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.rule=Host(`$DOMAIN`) && PathPrefix(`/ink-mainnet-archive/node`)} - - ${NO_SSL:+traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.rule=PathPrefix(`/ink-mainnet-archive/node`)} - - traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.middlewares=ink-mainnet-op-geth-archive-leveldb-hash-node-stripprefix, ipallowlist - -volumes: - ink-mainnet-op-geth-archive-leveldb-hash: - -x-upstreams: - - id: $${ID} - labels: - provider: $${PROVIDER} - connection: - generic: - rpc: - url: $${RPC_URL} - ws: - frameSize: 20Mb - msgSize: 50Mb - url: $${WS_URL} - chain: ink - method-groups: - enabled: - - debug - - filter - methods: - disabled: - enabled: - - name: txpool_content # TODO: should be disabled for rollup nodes - # standard geth only - - name: debug_getRawBlock - - name: debug_getRawTransaction - - name: debug_getRawReceipts - - name: debug_getRawHeader - - name: debug_getBadBlocks - # non standard geth only slightly dangerous - - name: debug_intermediateRoots - - name: debug_dumpBlock - # standard geth and erigon - - name: debug_accountRange - - name: debug_getModifiedAccountsByNumber - - name: debug_getModifiedAccountsByHash - # non standard geth and erigon - - name: eth_getRawTransactionByHash - - name: eth_getRawTransactionByBlockHashAndIndex -... \ No newline at end of file diff --git a/op/geth/ink-mainnet-op-geth-archive-leveldb-hash.yml b/op/geth/ink-mainnet-op-geth-archive-leveldb-hash.yml deleted file mode 100644 index 150a7b7d..00000000 --- a/op/geth/ink-mainnet-op-geth-archive-leveldb-hash.yml +++ /dev/null @@ -1,203 +0,0 @@ ---- -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/geth/ink-mainnet-op-geth-archive-leveldb-hash.yml -# -# docker compose up -d -# -# curl -X POST https://${IP}.traefik.me/ink-mainnet-archive \ -# -H "Content-Type: application/json" \ -# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' - -services: - ink-mainnet-archive: - image: ${INK_GETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth}:${INK_MAINNET_GETH_VERSION:-v1.101702.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) - user: root - expose: - - 8545 - - 6060 - - 8551 - environment: - - GETH_ROLLUP_DISABLETXPOOLGOSSIP=true - - GETH_ROLLUP_SEQUENCERHTTP=https://rpc-gel.inkonchain.com - entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=leveldb --gcmode=archive --datadir /data init --state.scheme=hash /config/genesis.json; [ -f /config/static-nodes.json ] && cp -f /config/static-nodes.json /data/static-nodes.json; exec geth "$@"' -- - command: - - --datadir=/data - - --db.engine=leveldb - - --gcmode=archive - - --maxpeers=50 - - --metrics - - --metrics.addr=0.0.0.0 - - --metrics.port=6060 - - --networkid=57073 - - --nodiscover - - --rpc.gascap=600000000 - - --rpc.txfeecap=0 - - --state.scheme=hash - - --syncmode=full - - --http - - --http.addr=0.0.0.0 - - --http.api=eth,net,web3,debug,admin,txpool,engine - - --http.port=8545 - - --http.vhosts=* - - --ws - - --ws.addr=0.0.0.0 - - --ws.api=eth,net,web3,debug,admin,txpool,engine - - --ws.origins=* - - --ws.port=8545 - - --authrpc.addr=0.0.0.0 - - --authrpc.jwtsecret=/jwtsecret - - --authrpc.vhosts=* - restart: unless-stopped - stop_grace_period: 5m - networks: - - chains - volumes: - - ${INK_MAINNET_OP_GETH_ARCHIVE_LEVELDB_HASH_DATA:-ink-mainnet-op-geth-archive-leveldb-hash}:/data - - ./op/ink/mainnet:/config - - .jwtsecret:/jwtsecret:ro - - /slowdisk:/slowdisk - logging: *logging-defaults - labels: - - prometheus-scrape.enabled=true - - prometheus-scrape.port=6060 - - prometheus-scrape.path=/debug/metrics/prometheus - - traefik.enable=true - - traefik.http.middlewares.ink-mainnet-op-geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/ink-mainnet-archive - - traefik.http.services.ink-mainnet-op-geth-archive-leveldb-hash.loadbalancer.server.port=8545 - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/ink-mainnet-archive`) || Path(`/ink-mainnet-archive/`))} - - ${NO_SSL:+traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.rule=Path(`/ink-mainnet-archive`) || Path(`/ink-mainnet-archive/`)} - - traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash.middlewares=ink-mainnet-op-geth-archive-leveldb-hash-stripprefix, ipallowlist - - ink-mainnet-archive-node: - image: ${INK_NODE_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node}:${INK_MAINNET_NODE_VERSION:-v1.19.2} - ports: - - 15713:15713 - - 15713:15713/udp - environment: - - OP_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST} - - OP_NODE_L1_BEACON_ARCHIVER=${ETHEREUM_MAINNET_BEACON_ARCHIVER} - - OP_NODE_L1_ETH_RPC=${INK_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_RPC=http://ink-mainnet-archive: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_NETWORK=ink-mainnet - - OP_NODE_P2P_ADVERTISE_IP=${IP} - - OP_NODE_P2P_BOOTNODES=enode://92534205dd72a8787df902c89a775d9a45882739a973a7030d4d338c9b65387cfb77629907f9b6afb4e2bd98d9e6d2ccfde02d8a968b4fbccb68f0f4db5f4d83@34.13.199.202:30305?discport=30305,enode://26b0306725a78a8d193c2074bfd9e71233dbd3b75ab74be0ab555f72865fd88a285774526243f36653844eb95d62108c35f8c2723656b2c9568716ee2463f8d7@34.7.48.80:30305?discport=30305,enode://0c7bbb6bca9ce80952d8d8f8ba966e6b9e80faf75a165f320a53722f32b51c4b1da16ba59ab14f5194e51095a2755d8d3086a0220e34d88729cc8f4cc5499116@35.204.27.165:30305?discport=30305,enode://869d07b5932f17e8490990f75a3f94195e9504ddb6b85f7189e5a9c0a8fff8b00aecf6f3ac450ecba6cdabdb5858788a94bde2b613e0f2d82e9b395355f76d1a@34.65.67.101:30305?discport=30305,enode://2d4e7e9d48f4dd4efe9342706dd1b0024681bd4c3300d021f86fc75eab7865d4e0cbec6fbc883f011cfd6a57423e7e2f6e104baad2b744c3cafaec6bc7dc92c1@34.65.43.171:30305?discport=30305,enode://9d7a3efefe442351217e73b3a593bcb8efffb55b4807699972145324eab5e6b382152f8d24f6301baebbfb5ecd4127bd3faab2842c04cd432bdf50ba092f6645@34.65.109.126:30305?discport=30305 - - OP_NODE_P2P_LISTEN_IP=0.0.0.0 - - OP_NODE_P2P_LISTEN_TCP_PORT=15713 - - OP_NODE_P2P_LISTEN_UDP_PORT=15713 - - OP_NODE_P2P_STATIC=/ip4/34.6.118.237/tcp/9003/p2p/16Uiu2HAmKjbznKezrhsXMXVT3tSwviv8jojmfLeY9Zd53VvLmGsn,/ip4/34.178.43.233/tcp/9003/p2p/16Uiu2HAm27U7EgvM6C7N2Y3152ysiEd7K3YGXVzZ2ypsnu5ZE4cY,/ip4/34.6.162.247/tcp/9003/p2p/16Uiu2HAmDhreSpDkx8F78jiJPRV9Npm6VoNB2trgNBNWBreLsBmH - - OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true - - OP_NODE_RPC_ADDR=0.0.0.0 - - OP_NODE_RPC_PORT=9545 - - OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log - - OP_NODE_SYNCMODE=consensus-layer - - OP_NODE_VERIFIER_L1_CONFS=0 - entrypoint: [op-node] - restart: unless-stopped - depends_on: - ink-mainnet-archive: - condition: service_started - restart: true - networks: - - chains - volumes: - - ./op/ink/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.ink-mainnet-op-geth-archive-leveldb-hash-node-stripprefix.stripprefix.prefixes=/ink-mainnet-archive/node - - traefik.http.services.ink-mainnet-op-geth-archive-leveldb-hash-node.loadbalancer.server.port=9545 - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.rule=Host(`$DOMAIN`) && PathPrefix(`/ink-mainnet-archive/node`)} - - ${NO_SSL:+traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.rule=PathPrefix(`/ink-mainnet-archive/node`)} - - traefik.http.routers.ink-mainnet-op-geth-archive-leveldb-hash-node.middlewares=ink-mainnet-op-geth-archive-leveldb-hash-node-stripprefix, ipallowlist - -volumes: - ink-mainnet-op-geth-archive-leveldb-hash: - -x-upstreams: - - id: $${ID} - labels: - provider: $${PROVIDER} - connection: - generic: - rpc: - url: $${RPC_URL} - ws: - frameSize: 20Mb - msgSize: 50Mb - url: $${WS_URL} - chain: ink - method-groups: - enabled: - - debug - - filter - methods: - disabled: - enabled: - - name: txpool_content # TODO: should be disabled for rollup nodes - # standard geth only - - name: debug_getRawBlock - - name: debug_getRawTransaction - - name: debug_getRawReceipts - - name: debug_getRawHeader - - name: debug_getBadBlocks - # non standard geth only slightly dangerous - - name: debug_intermediateRoots - - name: debug_dumpBlock - # standard geth and erigon - - name: debug_accountRange - - name: debug_getModifiedAccountsByNumber - - name: debug_getModifiedAccountsByHash - # non standard geth and erigon - - name: eth_getRawTransactionByHash - - name: eth_getRawTransactionByBlockHashAndIndex -... \ No newline at end of file diff --git a/op/geth/ink-mainnet-op-geth-pruned-pebble-path--kona.yml b/op/geth/ink-mainnet-op-geth-pruned-pebble-path--kona.yml deleted file mode 100644 index eed332e7..00000000 --- a/op/geth/ink-mainnet-op-geth-pruned-pebble-path--kona.yml +++ /dev/null @@ -1,201 +0,0 @@ ---- -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/geth/ink-mainnet-op-geth-pruned-pebble-path--kona.yml -# -# docker compose up -d -# -# curl -X POST https://${IP}.traefik.me/ink-mainnet \ -# -H "Content-Type: application/json" \ -# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' - -services: - ink-mainnet: - image: ${INK_GETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth}:${INK_MAINNET_GETH_VERSION:-v1.101702.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) - user: root - ports: - - 11271:11271 - - 11271:11271/udp - expose: - - 8545 - - 6060 - - 8551 - environment: - - GETH_ROLLUP_DISABLETXPOOLGOSSIP=true - - GETH_ROLLUP_SEQUENCERHTTP=https://rpc-gel.inkonchain.com - entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=pebble --gcmode=full --datadir /data init --state.scheme=path /config/genesis.json; exec geth "$@"' -- - command: - - --cache=${INK_MAINNET_OP_GETH_PRUNED_PEBBLE_PATH_CACHE:-1024} - - --datadir=/data - - --db.engine=pebble - - --gcmode=full - - --maxpeers=50 - - --metrics - - --metrics.addr=0.0.0.0 - - --metrics.port=6060 - - --nat=extip:${IP} - - --networkid=57073 - - --port=11271 - - --rpc.gascap=600000000 - - --rpc.txfeecap=0 - - --state.scheme=path - - --syncmode=snap - - --http - - --http.addr=0.0.0.0 - - --http.api=eth,net,web3,debug,admin,txpool,engine - - --http.port=8545 - - --http.vhosts=* - - --ws - - --ws.addr=0.0.0.0 - - --ws.api=eth,net,web3,debug,admin,txpool,engine - - --ws.origins=* - - --ws.port=8545 - - --authrpc.addr=0.0.0.0 - - --authrpc.jwtsecret=/jwtsecret - - --authrpc.vhosts=* - restart: unless-stopped - stop_grace_period: 5m - networks: - - chains - volumes: - - ${INK_MAINNET_OP_GETH_PRUNED_PEBBLE_PATH_DATA:-ink-mainnet-op-geth-pruned-pebble-path}:/data - - ./op/ink/mainnet:/config - - .jwtsecret:/jwtsecret:ro - - /slowdisk:/slowdisk - logging: *logging-defaults - labels: - - prometheus-scrape.enabled=true - - prometheus-scrape.port=6060 - - prometheus-scrape.path=/debug/metrics/prometheus - - traefik.enable=true - - traefik.http.middlewares.ink-mainnet-op-geth-pruned-pebble-path-stripprefix.stripprefix.prefixes=/ink-mainnet - - traefik.http.services.ink-mainnet-op-geth-pruned-pebble-path.loadbalancer.server.port=8545 - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.rule=Host(`$DOMAIN`) && (Path(`/ink-mainnet`) || Path(`/ink-mainnet/`))} - - ${NO_SSL:+traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.rule=Path(`/ink-mainnet`) || Path(`/ink-mainnet/`)} - - traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.middlewares=ink-mainnet-op-geth-pruned-pebble-path-stripprefix, ipallowlist - - ink-mainnet-node: - image: ${INK_KONA_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/kona-node}:${INK_MAINNET_KONA_VERSION:-v1.6.1} - ports: - - 16271:16271 - - 16271:16271/udp - environment: - - KONA_METRICS_ADDR=0.0.0.0 - - KONA_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST} - - KONA_NODE_L1_ETH_RPC=${INK_MAINNET_L1_EXECUTION_RPC:-${ETHEREUM_MAINNET_EXECUTION_RPC}} - - KONA_NODE_L1_TRUST_RPC=${ETHEREUM_MAINNET_EXECUTION_TRUST:-false} - - KONA_NODE_L2_CHAIN_ID=57073 - - KONA_NODE_L2_ENGINE_AUTH=/jwtsecret - - KONA_NODE_L2_ENGINE_RPC=http://ink-mainnet: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=16271 - - KONA_NODE_P2P_LISTEN_UDP_PORT=16271 - - KONA_NODE_RPC_ADDR=0.0.0.0 - - KONA_NODE_RPC_PORT=9545 - entrypoint: [kona-node, node] - restart: unless-stopped - depends_on: - ink-mainnet: - condition: service_started - restart: true - networks: - - chains - volumes: - - ./op/ink/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.ink-mainnet-op-geth-pruned-pebble-path-node-stripprefix.stripprefix.prefixes=/ink-mainnet/node - - traefik.http.services.ink-mainnet-op-geth-pruned-pebble-path-node.loadbalancer.server.port=9545 - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.rule=Host(`$DOMAIN`) && PathPrefix(`/ink-mainnet/node`)} - - ${NO_SSL:+traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.rule=PathPrefix(`/ink-mainnet/node`)} - - traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.middlewares=ink-mainnet-op-geth-pruned-pebble-path-node-stripprefix, ipallowlist - -volumes: - ink-mainnet-op-geth-pruned-pebble-path: - -x-upstreams: - - id: $${ID} - labels: - provider: $${PROVIDER} - connection: - generic: - rpc: - url: $${RPC_URL} - ws: - frameSize: 20Mb - msgSize: 50Mb - url: $${WS_URL} - chain: ink - method-groups: - enabled: - - debug - - filter - methods: - disabled: - # not compatible with path state scheme - - name: debug_traceBlockByHash - enabled: - - name: txpool_content # TODO: should be disabled for rollup nodes - # standard geth only - - name: debug_getRawBlock - - name: debug_getRawTransaction - - name: debug_getRawReceipts - - name: debug_getRawHeader - - name: debug_getBadBlocks - # non standard geth only slightly dangerous - - name: debug_intermediateRoots - - name: debug_dumpBlock - # standard geth and erigon - - name: debug_accountRange - - name: debug_getModifiedAccountsByNumber - - name: debug_getModifiedAccountsByHash - # non standard geth and erigon - - name: eth_getRawTransactionByHash - - name: eth_getRawTransactionByBlockHashAndIndex -... \ No newline at end of file diff --git a/op/geth/ink-mainnet-op-geth-pruned-pebble-path.yml b/op/geth/ink-mainnet-op-geth-pruned-pebble-path.yml deleted file mode 100644 index 00190d54..00000000 --- a/op/geth/ink-mainnet-op-geth-pruned-pebble-path.yml +++ /dev/null @@ -1,205 +0,0 @@ ---- -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/geth/ink-mainnet-op-geth-pruned-pebble-path.yml -# -# docker compose up -d -# -# curl -X POST https://${IP}.traefik.me/ink-mainnet \ -# -H "Content-Type: application/json" \ -# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' - -services: - ink-mainnet: - image: ${INK_GETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth}:${INK_MAINNET_GETH_VERSION:-v1.101702.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) - user: root - expose: - - 8545 - - 6060 - - 8551 - environment: - - GETH_ROLLUP_DISABLETXPOOLGOSSIP=true - - GETH_ROLLUP_SEQUENCERHTTP=https://rpc-gel.inkonchain.com - entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=pebble --gcmode=full --datadir /data init --state.scheme=path /config/genesis.json; [ -f /config/static-nodes.json ] && cp -f /config/static-nodes.json /data/static-nodes.json; exec geth "$@"' -- - command: - - --datadir=/data - - --db.engine=pebble - - --gcmode=full - - --maxpeers=50 - - --metrics - - --metrics.addr=0.0.0.0 - - --metrics.port=6060 - - --networkid=57073 - - --nodiscover - - --rpc.gascap=600000000 - - --rpc.txfeecap=0 - - --state.scheme=path - - --syncmode=full - - --http - - --http.addr=0.0.0.0 - - --http.api=eth,net,web3,debug,admin,txpool,engine - - --http.port=8545 - - --http.vhosts=* - - --ws - - --ws.addr=0.0.0.0 - - --ws.api=eth,net,web3,debug,admin,txpool,engine - - --ws.origins=* - - --ws.port=8545 - - --authrpc.addr=0.0.0.0 - - --authrpc.jwtsecret=/jwtsecret - - --authrpc.vhosts=* - restart: unless-stopped - stop_grace_period: 5m - networks: - - chains - volumes: - - ${INK_MAINNET_OP_GETH_PRUNED_PEBBLE_PATH_DATA:-ink-mainnet-op-geth-pruned-pebble-path}:/data - - ./op/ink/mainnet:/config - - .jwtsecret:/jwtsecret:ro - - /slowdisk:/slowdisk - logging: *logging-defaults - labels: - - prometheus-scrape.enabled=true - - prometheus-scrape.port=6060 - - prometheus-scrape.path=/debug/metrics/prometheus - - traefik.enable=true - - traefik.http.middlewares.ink-mainnet-op-geth-pruned-pebble-path-stripprefix.stripprefix.prefixes=/ink-mainnet - - traefik.http.services.ink-mainnet-op-geth-pruned-pebble-path.loadbalancer.server.port=8545 - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.rule=Host(`$DOMAIN`) && (Path(`/ink-mainnet`) || Path(`/ink-mainnet/`))} - - ${NO_SSL:+traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.rule=Path(`/ink-mainnet`) || Path(`/ink-mainnet/`)} - - traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path.middlewares=ink-mainnet-op-geth-pruned-pebble-path-stripprefix, ipallowlist - - ink-mainnet-node: - image: ${INK_NODE_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node}:${INK_MAINNET_NODE_VERSION:-v1.19.2} - ports: - - 16271:16271 - - 16271:16271/udp - environment: - - OP_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST} - - OP_NODE_L1_BEACON_ARCHIVER=${ETHEREUM_MAINNET_BEACON_ARCHIVER} - - OP_NODE_L1_ETH_RPC=${INK_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_RPC=http://ink-mainnet: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_NETWORK=ink-mainnet - - OP_NODE_P2P_ADVERTISE_IP=${IP} - - OP_NODE_P2P_BOOTNODES=enode://92534205dd72a8787df902c89a775d9a45882739a973a7030d4d338c9b65387cfb77629907f9b6afb4e2bd98d9e6d2ccfde02d8a968b4fbccb68f0f4db5f4d83@34.13.199.202:30305?discport=30305,enode://26b0306725a78a8d193c2074bfd9e71233dbd3b75ab74be0ab555f72865fd88a285774526243f36653844eb95d62108c35f8c2723656b2c9568716ee2463f8d7@34.7.48.80:30305?discport=30305,enode://0c7bbb6bca9ce80952d8d8f8ba966e6b9e80faf75a165f320a53722f32b51c4b1da16ba59ab14f5194e51095a2755d8d3086a0220e34d88729cc8f4cc5499116@35.204.27.165:30305?discport=30305,enode://869d07b5932f17e8490990f75a3f94195e9504ddb6b85f7189e5a9c0a8fff8b00aecf6f3ac450ecba6cdabdb5858788a94bde2b613e0f2d82e9b395355f76d1a@34.65.67.101:30305?discport=30305,enode://2d4e7e9d48f4dd4efe9342706dd1b0024681bd4c3300d021f86fc75eab7865d4e0cbec6fbc883f011cfd6a57423e7e2f6e104baad2b744c3cafaec6bc7dc92c1@34.65.43.171:30305?discport=30305,enode://9d7a3efefe442351217e73b3a593bcb8efffb55b4807699972145324eab5e6b382152f8d24f6301baebbfb5ecd4127bd3faab2842c04cd432bdf50ba092f6645@34.65.109.126:30305?discport=30305 - - OP_NODE_P2P_LISTEN_IP=0.0.0.0 - - OP_NODE_P2P_LISTEN_TCP_PORT=16271 - - OP_NODE_P2P_LISTEN_UDP_PORT=16271 - - OP_NODE_P2P_STATIC=/ip4/34.6.118.237/tcp/9003/p2p/16Uiu2HAmKjbznKezrhsXMXVT3tSwviv8jojmfLeY9Zd53VvLmGsn,/ip4/34.178.43.233/tcp/9003/p2p/16Uiu2HAm27U7EgvM6C7N2Y3152ysiEd7K3YGXVzZ2ypsnu5ZE4cY,/ip4/34.6.162.247/tcp/9003/p2p/16Uiu2HAmDhreSpDkx8F78jiJPRV9Npm6VoNB2trgNBNWBreLsBmH - - OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true - - OP_NODE_RPC_ADDR=0.0.0.0 - - OP_NODE_RPC_PORT=9545 - - OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log - - OP_NODE_SYNCMODE=consensus-layer - - OP_NODE_VERIFIER_L1_CONFS=0 - entrypoint: [op-node] - restart: unless-stopped - depends_on: - ink-mainnet: - condition: service_started - restart: true - networks: - - chains - volumes: - - ./op/ink/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.ink-mainnet-op-geth-pruned-pebble-path-node-stripprefix.stripprefix.prefixes=/ink-mainnet/node - - traefik.http.services.ink-mainnet-op-geth-pruned-pebble-path-node.loadbalancer.server.port=9545 - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.rule=Host(`$DOMAIN`) && PathPrefix(`/ink-mainnet/node`)} - - ${NO_SSL:+traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.rule=PathPrefix(`/ink-mainnet/node`)} - - traefik.http.routers.ink-mainnet-op-geth-pruned-pebble-path-node.middlewares=ink-mainnet-op-geth-pruned-pebble-path-node-stripprefix, ipallowlist - -volumes: - ink-mainnet-op-geth-pruned-pebble-path: - -x-upstreams: - - id: $${ID} - labels: - provider: $${PROVIDER} - connection: - generic: - rpc: - url: $${RPC_URL} - ws: - frameSize: 20Mb - msgSize: 50Mb - url: $${WS_URL} - chain: ink - method-groups: - enabled: - - debug - - filter - methods: - disabled: - # not compatible with path state scheme - - name: debug_traceBlockByHash - enabled: - - name: txpool_content # TODO: should be disabled for rollup nodes - # standard geth only - - name: debug_getRawBlock - - name: debug_getRawTransaction - - name: debug_getRawReceipts - - name: debug_getRawHeader - - name: debug_getBadBlocks - # non standard geth only slightly dangerous - - name: debug_intermediateRoots - - name: debug_dumpBlock - # standard geth and erigon - - name: debug_accountRange - - name: debug_getModifiedAccountsByNumber - - name: debug_getModifiedAccountsByHash - # non standard geth and erigon - - name: eth_getRawTransactionByHash - - name: eth_getRawTransactionByBlockHashAndIndex -... \ No newline at end of file