build reth for taiko

This commit is contained in:
goldsquid
2026-06-07 13:18:04 +07:00
parent 86d0f53569
commit df8aeaefd1
3 changed files with 55 additions and 2 deletions

View File

@@ -4,6 +4,19 @@ x-logging-defaults: &logging-defaults
options:
max-size: "10m"
max-file: "3"
# This node is built from source with architecture-specific optimizations
# Build command: docker compose build --build-arg ARCH_TARGET=${ARCH_TARGET:-native} taiko-alethia-reth
#
# IMPORTANT: Cache optimization considerations
# If running multiple nodes on the same machine, be aware that:
# - L3 cache is shared across all cores, causing cache contention
# - Multiple nodes compete for cache space, reducing optimization effectiveness
# - Consider CPU pinning to minimize cache conflicts:
# docker run --cpuset-cpus="0-7" taiko-alethia-reth # Pin to specific cores
# - For AMD X3D CPUs, CCD0 (cores 0-7) has the 3D V-Cache
# - For multi-node setups, generic builds may perform better than cache-optimized ones
# Usage:
#
@@ -30,7 +43,17 @@ x-logging-defaults: &logging-defaults
services:
taiko-alethia-reth:
image: ${TAIKO_RETH_IMAGE:-us-docker.pkg.dev/evmchain/images/taiko-reth}:${TAIKO_ALETHIA_RETH_VERSION:-v1.1.0}
build:
context: ./
dockerfile: reth.Dockerfile
args:
LLVM_IMAGE: ${LLVM_IMAGE:-snowstep/llvm}
LLVM_VERSION: ${LLVM_VERSION:-20250912105042}
RETH_VERSION: ${TAIKO_ALETHIA_RETH_VERSION:-v1.1.0}
RETH_REPO: ${TAIKO_ALETHIA_RETH_REPO:-https://github.com/taikoxyz/alethia-reth}
ARCH_TARGET: ${ARCH_TARGET:-native}
PROFILE: ${RETH_BUILD_PROFILE:-maxperf}
BUILD_ALETHIA_RETH: true
sysctls:
# TCP Performance
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle

View File

@@ -4,6 +4,19 @@ x-logging-defaults: &logging-defaults
options:
max-size: "10m"
max-file: "3"
# This node is built from source with architecture-specific optimizations
# Build command: docker compose build --build-arg ARCH_TARGET=${ARCH_TARGET:-native} taiko-alethia-reth-pruned
#
# IMPORTANT: Cache optimization considerations
# If running multiple nodes on the same machine, be aware that:
# - L3 cache is shared across all cores, causing cache contention
# - Multiple nodes compete for cache space, reducing optimization effectiveness
# - Consider CPU pinning to minimize cache conflicts:
# docker run --cpuset-cpus="0-7" taiko-alethia-reth-pruned # Pin to specific cores
# - For AMD X3D CPUs, CCD0 (cores 0-7) has the 3D V-Cache
# - For multi-node setups, generic builds may perform better than cache-optimized ones
# Usage:
#
@@ -30,7 +43,17 @@ x-logging-defaults: &logging-defaults
services:
taiko-alethia-reth-pruned:
image: ${TAIKO_RETH_IMAGE:-us-docker.pkg.dev/evmchain/images/taiko-reth}:${TAIKO_ALETHIA_RETH_VERSION:-v1.1.0}
build:
context: ./
dockerfile: reth.Dockerfile
args:
LLVM_IMAGE: ${LLVM_IMAGE:-snowstep/llvm}
LLVM_VERSION: ${LLVM_VERSION:-20250912105042}
RETH_VERSION: ${TAIKO_ALETHIA_RETH_VERSION:-v1.1.0}
RETH_REPO: ${TAIKO_ALETHIA_RETH_REPO:-https://github.com/taikoxyz/alethia-reth}
ARCH_TARGET: ${ARCH_TARGET:-native}
PROFILE: ${RETH_BUILD_PROFILE:-maxperf}
BUILD_ALETHIA_RETH: true
sysctls:
# TCP Performance
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle