aztec-mainnet: new pruned full-node compose (early dRPC presence, EU-West) - L1 via ETHEREUM_MAINNET_* env, p2p 13840
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
111
aztec/aztec/aztec-mainnet-aztec-pruned.yml
Normal file
111
aztec/aztec/aztec-mainnet-aztec-pruned.yml
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
---
|
||||||
|
x-logging-defaults: &logging-defaults
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "512m"
|
||||||
|
max-file: "2"
|
||||||
|
# Aztec full node. See https://docs.aztec.network/network/setup/running_a_node
|
||||||
|
# Admin port (8880) is not exposed; use docker exec for admin API.
|
||||||
|
|
||||||
|
# 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:aztec/aztec/aztec-mainnet-aztec-pruned.yml
|
||||||
|
#
|
||||||
|
# docker compose up -d
|
||||||
|
#
|
||||||
|
# curl -X POST https://${IP}.traefik.me/aztec-mainnet-pruned \
|
||||||
|
# -H "Content-Type: application/json" \
|
||||||
|
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||||
|
|
||||||
|
services:
|
||||||
|
aztec-mainnet-pruned:
|
||||||
|
image: ${AZTEC_AZTEC_IMAGE:-aztecprotocol/aztec}:${AZTEC_MAINNET_AZTEC_VERSION:-5.0.0-rc.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:
|
||||||
|
- 13840:13840
|
||||||
|
- 13840:13840/udp
|
||||||
|
expose:
|
||||||
|
- 8545
|
||||||
|
environment:
|
||||||
|
AZTEC_ADMIN_PORT: '8880'
|
||||||
|
AZTEC_PORT: '8545'
|
||||||
|
DATA_DIRECTORY: /var/lib/data
|
||||||
|
ETHEREUM_HOSTS: ${ETHEREUM_MAINNET_EXECUTION_RPC}
|
||||||
|
L1_CONSENSUS_HOST_URLS: ${ETHEREUM_MAINNET_BEACON_REST}
|
||||||
|
LOG_LEVEL: ${AZTEC_LOG_LEVEL:-info}
|
||||||
|
P2P_IP: ${IP}
|
||||||
|
P2P_PORT: '13840'
|
||||||
|
entrypoint: [node, --no-warnings, /usr/src/yarn-project/aztec/dest/bin/index.js, start]
|
||||||
|
command:
|
||||||
|
- --node
|
||||||
|
- --network=mainnet
|
||||||
|
restart: unless-stopped
|
||||||
|
stop_grace_period: 5m
|
||||||
|
networks:
|
||||||
|
- chains
|
||||||
|
volumes:
|
||||||
|
- ${AZTEC_MAINNET_AZTEC_PRUNED_DATA:-aztec-mainnet-aztec-pruned}:/var/lib/data
|
||||||
|
- /slowdisk:/slowdisk
|
||||||
|
logging: *logging-defaults
|
||||||
|
labels:
|
||||||
|
- prometheus-scrape.enabled=false
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.middlewares.aztec-mainnet-aztec-pruned-stripprefix.stripprefix.prefixes=/aztec-mainnet-pruned
|
||||||
|
- traefik.http.services.aztec-mainnet-aztec-pruned.loadbalancer.server.port=8545
|
||||||
|
- ${NO_SSL:-traefik.http.routers.aztec-mainnet-aztec-pruned.entrypoints=websecure}
|
||||||
|
- ${NO_SSL:-traefik.http.routers.aztec-mainnet-aztec-pruned.tls.certresolver=myresolver}
|
||||||
|
- ${NO_SSL:-traefik.http.routers.aztec-mainnet-aztec-pruned.rule=Host(`$DOMAIN`) && (Path(`/aztec-mainnet-pruned`) || Path(`/aztec-mainnet-pruned/`))}
|
||||||
|
- ${NO_SSL:+traefik.http.routers.aztec-mainnet-aztec-pruned.rule=Path(`/aztec-mainnet-pruned`) || Path(`/aztec-mainnet-pruned/`)}
|
||||||
|
- traefik.http.routers.aztec-mainnet-aztec-pruned.middlewares=aztec-mainnet-aztec-pruned-stripprefix, ipallowlist
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
aztec-mainnet-aztec-pruned:
|
||||||
|
|
||||||
|
x-upstreams:
|
||||||
|
- id: $${ID}
|
||||||
|
labels:
|
||||||
|
provider: $${PROVIDER}
|
||||||
|
connection:
|
||||||
|
generic:
|
||||||
|
rpc:
|
||||||
|
url: $${RPC_URL}
|
||||||
|
ws:
|
||||||
|
frameSize: 20Mb
|
||||||
|
msgSize: 50Mb
|
||||||
|
url: $${WS_URL}
|
||||||
|
chain: aztec-mainnet
|
||||||
|
method-groups:
|
||||||
|
enabled:
|
||||||
|
- debug
|
||||||
|
- filter
|
||||||
|
methods:
|
||||||
|
disabled:
|
||||||
|
enabled:
|
||||||
|
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||||
|
...
|
||||||
@@ -1108,6 +1108,20 @@
|
|||||||
"aztec-devnet-aztec-pruned"
|
"aztec-devnet-aztec-pruned"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"chain": "mainnet",
|
||||||
|
"client": "aztec",
|
||||||
|
"compose_file": "aztec/aztec/aztec-mainnet-aztec-pruned",
|
||||||
|
"features": [],
|
||||||
|
"network": "aztec",
|
||||||
|
"node": null,
|
||||||
|
"relay": null,
|
||||||
|
"stack": null,
|
||||||
|
"type": "pruned",
|
||||||
|
"volumes": [
|
||||||
|
"aztec-mainnet-aztec-pruned"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"chain": "testnet",
|
"chain": "testnet",
|
||||||
"client": "aztec",
|
"client": "aztec",
|
||||||
|
|||||||
Reference in New Issue
Block a user