This commit is contained in:
Para Dox
2025-04-12 13:11:53 +07:00
parent 4001b9ab79
commit a549aadb5b
206 changed files with 6744 additions and 6744 deletions

View File

@@ -9,32 +9,6 @@ services:
args:
VERSION: v1.2.1-h
REPO: https://github.com/Fantom-foundation/sonic.git
user: root
ulimits:
nofile: 1048576 # Max open files (for RPC/WS connections)
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
expose:
- 8545
- 8551
ports:
- 10335:10335
- 10335:10335/udp
volumes:
- ${FANTOM_MAINNET_SONIC_ARCHIVE_DATA:-fantom-mainnet-sonic-archive}:/var/sonic
- /slowdisk:/slowdisk
environment:
- CACHE_GB=${SONIC_CACHE_GB:-28}
- GENESIS=https://download.fantom.network/opera/testnet/testnet-26650-rpc.g
command:
- --datadir=/var/sonic
- --db.engine=
@@ -51,10 +25,23 @@ services:
- --syncmode=full
- --ws
- --ws.port=8545
restart: unless-stopped
user: root
stop_grace_period: 5m
networks:
- chains
restart: unless-stopped
stop_grace_period: 5m
ports:
- 10335:10335
- 10335:10335/udp
expose:
- 8545
- 8551
volumes:
- ${FANTOM_MAINNET_SONIC_ARCHIVE_DATA:-fantom-mainnet-sonic-archive}:/var/sonic
- /slowdisk:/slowdisk
environment:
- CACHE_GB=${SONIC_CACHE_GB:-28}
- GENESIS=https://download.fantom.network/opera/testnet/testnet-26650-rpc.g
labels:
- traefik.enable=true
- traefik.http.middlewares.fantom-mainnet-sonic-archive-stripprefix.stripprefix.prefixes=/fantom-mainnet-archive
@@ -64,6 +51,19 @@ services:
- ${NO_SSL:-traefik.http.routers.fantom-mainnet-sonic-archive.rule=Host(`$DOMAIN`) && PathPrefix(`/fantom-mainnet-archive`)}
- ${NO_SSL:+traefik.http.routers.fantom-mainnet-sonic-archive.rule=PathPrefix(`/fantom-mainnet-archive`)}
- traefik.http.routers.fantom-mainnet-sonic-archive.middlewares=fantom-mainnet-sonic-archive-stripprefix, ipwhitelist
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)
volumes:
fantom-mainnet-sonic-archive:

View File

@@ -9,32 +9,6 @@ services:
args:
VERSION: v1.2.1-h
REPO: https://github.com/Fantom-foundation/sonic.git
user: root
ulimits:
nofile: 1048576 # Max open files (for RPC/WS connections)
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
expose:
- 8545
- 8551
ports:
- 10652:10652
- 10652:10652/udp
volumes:
- ${FANTOM_TESTNET_SONIC_ARCHIVE_DATA:-fantom-testnet-sonic-archive}:/var/sonic
- /slowdisk:/slowdisk
environment:
- CACHE_GB=${SONIC_CACHE_GB:-28}
- GENESIS=https://download.fantom.network/opera/testnet/testnet-26650-rpc.g
command:
- --datadir=/var/sonic
- --db.engine=
@@ -51,10 +25,23 @@ services:
- --syncmode=full
- --ws
- --ws.port=8545
restart: unless-stopped
user: root
stop_grace_period: 5m
networks:
- chains
restart: unless-stopped
stop_grace_period: 5m
ports:
- 10652:10652
- 10652:10652/udp
expose:
- 8545
- 8551
volumes:
- ${FANTOM_TESTNET_SONIC_ARCHIVE_DATA:-fantom-testnet-sonic-archive}:/var/sonic
- /slowdisk:/slowdisk
environment:
- CACHE_GB=${SONIC_CACHE_GB:-28}
- GENESIS=https://download.fantom.network/opera/testnet/testnet-26650-rpc.g
labels:
- traefik.enable=true
- traefik.http.middlewares.fantom-testnet-sonic-archive-stripprefix.stripprefix.prefixes=/fantom-testnet-archive
@@ -64,6 +51,19 @@ services:
- ${NO_SSL:-traefik.http.routers.fantom-testnet-sonic-archive.rule=Host(`$DOMAIN`) && PathPrefix(`/fantom-testnet-archive`)}
- ${NO_SSL:+traefik.http.routers.fantom-testnet-sonic-archive.rule=PathPrefix(`/fantom-testnet-archive`)}
- traefik.http.routers.fantom-testnet-sonic-archive.middlewares=fantom-testnet-sonic-archive-stripprefix, ipwhitelist
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)
volumes:
fantom-testnet-sonic-archive: