diff --git a/arc/reth/arc-mainnet-reth-archive-trace.yml b/arc/reth/arc-mainnet-reth-archive-trace.yml index 0096cd2c..2fb0860b 100644 --- a/arc/reth/arc-mainnet-reth-archive-trace.yml +++ b/arc/reth/arc-mainnet-reth-archive-trace.yml @@ -82,6 +82,7 @@ services: - --auth-ipc.path=/sockets/auth.ipc - --chain=arc-mainnet - --datadir=/data/execution + - --debug - --disable-discovery - --enable-arc-rpc - --http @@ -92,6 +93,7 @@ services: - --log.file.directory=/data/execution/logs - --metrics=0.0.0.0:9001 - --rpc.forwarder=https://rpc.arc.network/ + - --trace restart: unless-stopped stop_grace_period: 5m depends_on: diff --git a/arc/reth/arc-mainnet-reth-pruned-trace.yml b/arc/reth/arc-mainnet-reth-pruned-trace.yml index 189eb4c0..45305b44 100644 --- a/arc/reth/arc-mainnet-reth-pruned-trace.yml +++ b/arc/reth/arc-mainnet-reth-pruned-trace.yml @@ -82,6 +82,7 @@ services: - --auth-ipc.path=/sockets/auth.ipc - --chain=arc-mainnet - --datadir=/data/execution + - --debug - --disable-discovery - --enable-arc-rpc - --full @@ -93,6 +94,7 @@ services: - --log.file.directory=/data/execution/logs - --metrics=0.0.0.0:9001 - --rpc.forwarder=https://rpc.arc.network/ + - --trace restart: unless-stopped stop_grace_period: 5m depends_on: diff --git a/arc/reth/arc-testnet-reth-archive-trace.yml b/arc/reth/arc-testnet-reth-archive-trace.yml index 7c881865..94c14733 100644 --- a/arc/reth/arc-testnet-reth-archive-trace.yml +++ b/arc/reth/arc-testnet-reth-archive-trace.yml @@ -82,6 +82,7 @@ services: - --auth-ipc.path=/sockets/auth.ipc - --chain=arc-testnet - --datadir=/data/execution + - --debug - --disable-discovery - --enable-arc-rpc - --http @@ -92,6 +93,7 @@ services: - --log.file.directory=/data/execution/logs - --metrics=0.0.0.0:9001 - --rpc.forwarder=https://rpc.quicknode.testnet.arc.network/ + - --trace restart: unless-stopped stop_grace_period: 5m depends_on: diff --git a/arc/reth/arc-testnet-reth-pruned-trace.yml b/arc/reth/arc-testnet-reth-pruned-trace.yml index 1ad6a2ba..e4e16647 100644 --- a/arc/reth/arc-testnet-reth-pruned-trace.yml +++ b/arc/reth/arc-testnet-reth-pruned-trace.yml @@ -82,6 +82,7 @@ services: - --auth-ipc.path=/sockets/auth.ipc - --chain=arc-testnet - --datadir=/data/execution + - --debug - --disable-discovery - --enable-arc-rpc - --full @@ -93,6 +94,7 @@ services: - --log.file.directory=/data/execution/logs - --metrics=0.0.0.0:9001 - --rpc.forwarder=https://rpc.quicknode.testnet.arc.network/ + - --trace restart: unless-stopped stop_grace_period: 5m depends_on: diff --git a/arc/reth/arc-testnet-reth-pruned.yml b/arc/reth/arc-testnet-reth-pruned.yml new file mode 100644 index 00000000..112af543 --- /dev/null +++ b/arc/reth/arc-testnet-reth-pruned.yml @@ -0,0 +1,182 @@ +--- +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:arc/reth/arc-testnet-reth-pruned.yml +# +# docker compose up -d +# +# curl -X POST https://${IP}.traefik.me/arc-testnet \ +# -H "Content-Type: application/json" \ +# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' + +services: + arc-testnet-consensus-init: + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_TESTNET_CONSENSUS_VERSION:-0.7.2} + user: 0:0 + entrypoint: [/usr/local/bin/arc-node-consensus, init] + command: + - --home=/data/consensus + restart: no + networks: + - chains + volumes: + - ${ARC_TESTNET_RETH_PRUNED_CONSENSUS_DATA:-arc-testnet-reth-pruned-consensus}:/data/consensus + logging: *logging-defaults + + arc-testnet-sockets-init: + image: debian:bookworm-slim + entrypoint: [/bin/sh, -c] + command: [rm -f /sockets/*.ipc && chown 999:999 /sockets] + restart: no + depends_on: + arc-testnet-consensus-init: + condition: service_completed_successfully + networks: + - chains + volumes: + - arc-testnet-reth-pruned-sockets:/sockets + logging: *logging-defaults + + arc-testnet: + image: ${ARC_RETH_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-execution}:${ARC_TESTNET_RETH_VERSION:-0.7.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) + memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX) + user: 0:0 + expose: + - 8545 + - 9001 + entrypoint: [/usr/local/bin/arc-node-execution, node] + command: + - --auth-ipc + - --auth-ipc.path=/sockets/auth.ipc + - --chain=arc-testnet + - --datadir=/data/execution + - --disable-discovery + - --enable-arc-rpc + - --full + - --http + - --http.addr=0.0.0.0 + - --http.api=eth,net,web3,txpool,trace,debug + - --http.port=8545 + - --ipcpath=/sockets/reth.ipc + - --log.file.directory=/data/execution/logs + - --metrics=0.0.0.0:9001 + - --rpc.forwarder=https://rpc.quicknode.testnet.arc.network/ + restart: unless-stopped + stop_grace_period: 5m + depends_on: + arc-testnet-sockets-init: + condition: service_completed_successfully + networks: + - chains + volumes: + - ${ARC_TESTNET_RETH_PRUNED_EXECUTION_DATA:-arc-testnet-reth-pruned-execution}:/data/execution + - /slowdisk:/slowdisk + - arc-testnet-reth-pruned-sockets:/sockets + logging: *logging-defaults + labels: + - prometheus-scrape.enabled=true + - prometheus-scrape.port=9001 + - prometheus-scrape.path=/metrics + - traefik.enable=true + - traefik.http.middlewares.arc-testnet-reth-pruned-stripprefix.stripprefix.prefixes=/arc-testnet + - traefik.http.services.arc-testnet-reth-pruned.loadbalancer.server.port=8545 + - ${NO_SSL:-traefik.http.routers.arc-testnet-reth-pruned.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.arc-testnet-reth-pruned.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.arc-testnet-reth-pruned.rule=Host(`$DOMAIN`) && (Path(`/arc-testnet`) || Path(`/arc-testnet/`))} + - ${NO_SSL:+traefik.http.routers.arc-testnet-reth-pruned.rule=Path(`/arc-testnet`) || Path(`/arc-testnet/`)} + - traefik.http.routers.arc-testnet-reth-pruned.middlewares=arc-testnet-reth-pruned-stripprefix, ipallowlist + 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} + user: 0:0 + expose: + - 31000 + - 29000 + entrypoint: [/usr/local/bin/arc-node-consensus, start] + command: + - --eth-socket=/sockets/reth.ipc + - --execution-persistence-backpressure + - --execution-persistence-backpressure-threshold=200 + - --execution-socket=/sockets/auth.ipc + - --follow + - --follow.endpoint=https://rpc.quicknode.testnet.arc.network,wss=rpc.quicknode.testnet.arc.network + - --follow.endpoint=https://rpc.drpc.testnet.arc.network,wss=rpc.drpc.testnet.arc.network + - --follow.endpoint=https://rpc.blockdaemon.testnet.arc.network,wss=rpc.blockdaemon.testnet.arc.network/websocket + - --full + - --home=/data/consensus + - --metrics=0.0.0.0:29000 + - --rpc.addr=0.0.0.0:31000 + restart: unless-stopped + stop_grace_period: 5m + depends_on: + arc-testnet-consensus-init: + condition: service_completed_successfully + arc-testnet: + condition: service_started + restart: true + networks: + - chains + volumes: + - ${ARC_TESTNET_RETH_PRUNED_CONSENSUS_DATA:-arc-testnet-reth-pruned-consensus}:/data/consensus + - arc-testnet-reth-pruned-sockets:/sockets + logging: *logging-defaults + labels: + - prometheus-scrape.enabled=true + - prometheus-scrape.port=29000 + +volumes: + arc-testnet-reth-pruned-consensus: + arc-testnet-reth-pruned-execution: + arc-testnet-reth-pruned-sockets: + +x-upstreams: + - id: $${ID} + labels: + provider: $${PROVIDER} + connection: + generic: + rpc: + url: $${RPC_URL} + chain: arc-testnet + method-groups: + enabled: + - debug + - filter + - trace + methods: + enabled: + - name: txpool_content +... \ No newline at end of file diff --git a/berachain/reth/berachain-bepolia-reth-archive-trace.yml b/berachain/reth/berachain-bepolia-reth-archive-trace.yml index 6ca67d69..0ecb2163 100644 --- a/berachain/reth/berachain-bepolia-reth-archive-trace.yml +++ b/berachain/reth/berachain-bepolia-reth-archive-trace.yml @@ -61,7 +61,7 @@ x-logging-defaults: &logging-defaults services: berachain-bepolia-reth: - image: ${BERACHAIN_RETH_IMAGE:-ghcr.io/berachain/bera-reth}:${BERACHAIN_BEPOLIA_RETH_VERSION:-v1.4.1} + image: ${BERACHAIN_RETH_IMAGE:-ghcr.io/berachain/bera-reth}:${BERACHAIN_BEPOLIA_RETH_VERSION:-v1.4.2} sysctls: # TCP Performance net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle diff --git a/berachain/reth/berachain-bepolia-reth-pruned-trace.yml b/berachain/reth/berachain-bepolia-reth-pruned-trace.yml index 36f04d7d..0c552813 100644 --- a/berachain/reth/berachain-bepolia-reth-pruned-trace.yml +++ b/berachain/reth/berachain-bepolia-reth-pruned-trace.yml @@ -61,7 +61,7 @@ x-logging-defaults: &logging-defaults services: berachain-bepolia-reth-pruned: - image: ${BERACHAIN_RETH_IMAGE:-ghcr.io/berachain/bera-reth}:${BERACHAIN_BEPOLIA_RETH_VERSION:-v1.4.1} + image: ${BERACHAIN_RETH_IMAGE:-ghcr.io/berachain/bera-reth}:${BERACHAIN_BEPOLIA_RETH_VERSION:-v1.4.2} sysctls: # TCP Performance net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle diff --git a/compose_registry.json b/compose_registry.json index c8a5939e..540bfcd4 100644 --- a/compose_registry.json +++ b/compose_registry.json @@ -982,6 +982,22 @@ "arc-testnet-reth-pruned-trace-sockets" ] }, + { + "chain": "testnet", + "client": "reth", + "compose_file": "arc/reth/arc-testnet-reth-pruned", + "features": [], + "network": "arc", + "node": "malachite", + "relay": null, + "stack": null, + "type": "pruned", + "volumes": [ + "arc-testnet-reth-pruned-consensus", + "arc-testnet-reth-pruned-execution", + "arc-testnet-reth-pruned-sockets" + ] + }, { "chain": "fuji", "client": "go",