better classic

This commit is contained in:
Para Dox
2025-05-19 13:23:57 +07:00
parent 6e477bd5f0
commit 9afe08dff2
7 changed files with 7 additions and 69 deletions

View File

@@ -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: