From 9afe08dff2555b272c655bc37417b608e9edcb4c Mon Sep 17 00:00:00 2001 From: Para Dox Date: Mon, 19 May 2025 13:23:57 +0700 Subject: [PATCH] better classic --- .../op-mainnet-op-erigon-archive-trace.yml | 70 +------------------ ...alfajores-op-geth-archive-leveldb-hash.yml | 1 + ...o-mainnet-op-geth-archive-leveldb-hash.yml | 1 + ...p-mainnet-op-geth-archive-leveldb-hash.yml | 1 + op/reth/op-mainnet-op-reth-archive-trace.yml | 1 + op/reth/op-mainnet-op-reth-minimal-trace.yml | 1 + op/reth/op-mainnet-op-reth-pruned-trace.yml | 1 + 7 files changed, 7 insertions(+), 69 deletions(-) diff --git a/op/erigon/op-mainnet-op-erigon-archive-trace.yml b/op/erigon/op-mainnet-op-erigon-archive-trace.yml index 10fecdb8..d284f7be 100644 --- a/op/erigon/op-mainnet-op-erigon-archive-trace.yml +++ b/op/erigon/op-mainnet-op-erigon-archive-trace.yml @@ -69,6 +69,7 @@ services: - --p2p.allowed-ports=32509 - --p2p.allowed-ports=37509 - --port=12509 + - --rollup.historicalrpc=${OP_MAINNET_CLASSIC_ARCHIVE_RPC} - --rollup.sequencerhttp=https://mainnet-sequencer.optimism.io - --rpc.gascap=6000000000 - --rpc.returndata.limit=1100000 @@ -151,76 +152,7 @@ services: - prometheus-scrape.port=7300 - prometheus-scrape.path=/metrics - op-mainnet-l2geth-archive-classic: - image: ${OP_L2GETH_IMAGE:-ethereumoptimism/l2geth}:${OP_MAINNET_L2GETH_VERSION:-0.5.31} - 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: - - 12952:12952 - - 12952:12952/udp - expose: - - 8545 - - 6060 - env_file: - - ./op/op/mainnet/l2geth.env - environment: - - ROLLUP_BACKEND=l2 - - SYNC_SOURCE=l2 - command: - - --datadir=/geth - - --gcmode=archive - - --http - - --http.addr=0.0.0.0 - - --http.api=eth,net,web3,admin,debug - - --http.port=8545 - - --http.vhosts=* - - --maxpeers=50 - - --metrics - - --metrics.addr=0.0.0.0 - - --metrics.port=6060 - - --nat=extip:${IP} - - --port=12952 - - --rpc.gascap=600000000 - - --rpc.txfeecap=0 - - --syncmode=full - - --vmodule=eth/*=5,miner=4,rpc=5,rollup=4,consensus/clique=1 - - --ws - - --ws.addr=0.0.0.0 - - --ws.api=eth,net,web3,admin,debug - - --ws.origins=* - - --ws.port=8545 - restart: unless-stopped - stop_grace_period: 5m - networks: - - chains - volumes: - - ${OP_MAINNET_L2GETH_ARCHIVE_LEVELDB_HASH_DATA:-op-mainnet-l2geth-archive-leveldb-hash}:/geth - - ./op/op/mainnet:/config - - /slowdisk:/slowdisk - logging: - driver: json-file - options: - max-size: 10m - max-file: '3' - labels: - - prometheus-scrape.enabled=true - - prometheus-scrape.port=6060 - - prometheus-scrape.path=/debug/metrics/prometheus - volumes: - op-mainnet-l2geth-archive-leveldb-hash: op-mainnet-op-erigon-archive-trace: x-upstreams: diff --git a/op/geth/celo-alfajores-op-geth-archive-leveldb-hash.yml b/op/geth/celo-alfajores-op-geth-archive-leveldb-hash.yml index 1b8cbd7e..a84b7103 100644 --- a/op/geth/celo-alfajores-op-geth-archive-leveldb-hash.yml +++ b/op/geth/celo-alfajores-op-geth-archive-leveldb-hash.yml @@ -71,6 +71,7 @@ services: - --nat=extip:${IP} - --networkid=44787 - --port=10895 + - --rollup.historicalrpc=${CELO_ALFAJORES_CLASSIC_ARCHIVE_RPC} - --rpc.gascap=600000000 - --rpc.txfeecap=0 - --state.scheme=hash diff --git a/op/geth/celo-mainnet-op-geth-archive-leveldb-hash.yml b/op/geth/celo-mainnet-op-geth-archive-leveldb-hash.yml index cdb85658..297a9512 100644 --- a/op/geth/celo-mainnet-op-geth-archive-leveldb-hash.yml +++ b/op/geth/celo-mainnet-op-geth-archive-leveldb-hash.yml @@ -71,6 +71,7 @@ services: - --nat=extip:${IP} - --networkid=42220 - --port=12111 + - --rollup.historicalrpc=${CELO_MAINNET_CLASSIC_ARCHIVE_RPC} - --rpc.gascap=600000000 - --rpc.txfeecap=0 - --state.scheme=hash diff --git a/op/geth/op-mainnet-op-geth-archive-leveldb-hash.yml b/op/geth/op-mainnet-op-geth-archive-leveldb-hash.yml index 7dfec409..8edc1d47 100644 --- a/op/geth/op-mainnet-op-geth-archive-leveldb-hash.yml +++ b/op/geth/op-mainnet-op-geth-archive-leveldb-hash.yml @@ -67,6 +67,7 @@ services: - --metrics.port=6060 - --nat=extip:${IP} - --port=13399 + - --rollup.historicalrpc=${OP_MAINNET_CLASSIC_ARCHIVE_RPC} - --rpc.gascap=600000000 - --rpc.txfeecap=0 - --state.scheme=hash diff --git a/op/reth/op-mainnet-op-reth-archive-trace.yml b/op/reth/op-mainnet-op-reth-archive-trace.yml index 79677308..fbc67c27 100644 --- a/op/reth/op-mainnet-op-reth-archive-trace.yml +++ b/op/reth/op-mainnet-op-reth-archive-trace.yml @@ -63,6 +63,7 @@ services: - --metrics=0.0.0.0:9001 - --nat=extip:${IP} - --port=11114 + - --rollup.historicalrpc=${OP_MAINNET_CLASSIC_ARCHIVE_RPC} - --rollup.sequencer-http=https://mainnet-sequencer.optimism.io - --rpc-cache.max-blocks=10000 - --rpc-cache.max-concurrent-db-requests=2048 diff --git a/op/reth/op-mainnet-op-reth-minimal-trace.yml b/op/reth/op-mainnet-op-reth-minimal-trace.yml index c4ce438f..d997d2a4 100644 --- a/op/reth/op-mainnet-op-reth-minimal-trace.yml +++ b/op/reth/op-mainnet-op-reth-minimal-trace.yml @@ -63,6 +63,7 @@ services: - --metrics=0.0.0.0:9001 - --nat=extip:${IP} - --port=11845 + - --rollup.historicalrpc=${OP_MAINNET_CLASSIC_ARCHIVE_RPC} - --rollup.sequencer-http=https://mainnet-sequencer.optimism.io - --rpc-cache.max-blocks=10000 - --rpc-cache.max-concurrent-db-requests=2048 diff --git a/op/reth/op-mainnet-op-reth-pruned-trace.yml b/op/reth/op-mainnet-op-reth-pruned-trace.yml index 191c829a..bdba55e6 100644 --- a/op/reth/op-mainnet-op-reth-pruned-trace.yml +++ b/op/reth/op-mainnet-op-reth-pruned-trace.yml @@ -64,6 +64,7 @@ services: - --metrics=0.0.0.0:9001 - --nat=extip:${IP} - --port=13985 + - --rollup.historicalrpc=${OP_MAINNET_CLASSIC_ARCHIVE_RPC} - --rollup.sequencer-http=https://mainnet-sequencer.optimism.io - --rpc-cache.max-blocks=10000 - --rpc-cache.max-concurrent-db-requests=2048