This commit is contained in:
goldsquid
2025-10-01 21:54:20 +07:00
parent 8d47152669
commit 342c5a1063
2 changed files with 52 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ services:
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
ulimits: ulimits:
nofile: 1048576 # Max open files (for RPC/WS connections) nofile: 1048576 # Max open files (for RPC/WS connections)
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
user: root user: root
ports: ports:
- 11358:11358 - 11358:11358
@@ -58,6 +59,8 @@ services:
- --http.addr=0.0.0.0 - --http.addr=0.0.0.0
- --http.api= - --http.api=
- --http.port=8545 - --http.port=8545
- --http.vhosts=*
- --maxpeers=50
- --nat=extip:${IP} - --nat=extip:${IP}
- --port=11358 - --port=11358
- --rpc.gascap=6000000000 - --rpc.gascap=6000000000
@@ -84,6 +87,7 @@ services:
- ${NO_SSL:-traefik.http.routers.xlayer-mainnet-cdk-erigon-archive-trace.rule=Host(`$DOMAIN`) && (Path(`/xlayer-mainnet-archive`) || Path(`/xlayer-mainnet-archive/`))} - ${NO_SSL:-traefik.http.routers.xlayer-mainnet-cdk-erigon-archive-trace.rule=Host(`$DOMAIN`) && (Path(`/xlayer-mainnet-archive`) || Path(`/xlayer-mainnet-archive/`))}
- ${NO_SSL:+traefik.http.routers.xlayer-mainnet-cdk-erigon-archive-trace.rule=Path(`/xlayer-mainnet-archive`) || Path(`/xlayer-mainnet-archive/`)} - ${NO_SSL:+traefik.http.routers.xlayer-mainnet-cdk-erigon-archive-trace.rule=Path(`/xlayer-mainnet-archive`) || Path(`/xlayer-mainnet-archive/`)}
- traefik.http.routers.xlayer-mainnet-cdk-erigon-archive-trace.middlewares=xlayer-mainnet-cdk-erigon-archive-trace-stripprefix, ipallowlist - traefik.http.routers.xlayer-mainnet-cdk-erigon-archive-trace.middlewares=xlayer-mainnet-cdk-erigon-archive-trace-stripprefix, ipallowlist
shm_size: 2gb
volumes: volumes:
xlayer-mainnet-cdk-erigon-archive-trace: xlayer-mainnet-cdk-erigon-archive-trace:
@@ -110,4 +114,26 @@ x-upstreams:
disabled: disabled:
enabled: enabled:
- name: txpool_content # TODO: should be disabled for rollup nodes - name: txpool_content # TODO: should be disabled for rollup nodes
# standard geth and erigon
- name: debug_accountRange
- name: debug_getModifiedAccountsByNumber
- name: debug_getModifiedAccountsByHash
# non standard geth and erigon
- name: eth_getRawTransactionByHash
- name: eth_getRawTransactionByBlockHashAndIndex
# non standard erigon only
- name: eth_getBlockReceipts
- name: eth_protocolVersion
- name: eth_callMany
- name: eth_callBundle
- name: debug_accountAt
- name: debug_traceCallMany
- name: erigon_getHeaderByHash
- name: erigon_getBlockReceiptsByBlockHash
- name: erigon_getHeaderByNumber
- name: erigon_getLogsByHash
- name: erigon_forks
- name: erigon_getBlockByTimestamp
- name: erigon_BlockNumber
- name: erigon_getLatestLogs
... ...

View File

@@ -44,6 +44,7 @@ services:
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
ulimits: ulimits:
nofile: 1048576 # Max open files (for RPC/WS connections) nofile: 1048576 # Max open files (for RPC/WS connections)
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
user: root user: root
ports: ports:
- 12399:12399 - 12399:12399
@@ -58,6 +59,8 @@ services:
- --http.addr=0.0.0.0 - --http.addr=0.0.0.0
- --http.api= - --http.api=
- --http.port=8545 - --http.port=8545
- --http.vhosts=*
- --maxpeers=50
- --nat=extip:${IP} - --nat=extip:${IP}
- --port=12399 - --port=12399
- --rpc.gascap=6000000000 - --rpc.gascap=6000000000
@@ -84,6 +87,7 @@ services:
- ${NO_SSL:-traefik.http.routers.xlayer-mainnet-cdk-erigon-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/xlayer-mainnet-pruned`) || Path(`/xlayer-mainnet-pruned/`))} - ${NO_SSL:-traefik.http.routers.xlayer-mainnet-cdk-erigon-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/xlayer-mainnet-pruned`) || Path(`/xlayer-mainnet-pruned/`))}
- ${NO_SSL:+traefik.http.routers.xlayer-mainnet-cdk-erigon-pruned-trace.rule=Path(`/xlayer-mainnet-pruned`) || Path(`/xlayer-mainnet-pruned/`)} - ${NO_SSL:+traefik.http.routers.xlayer-mainnet-cdk-erigon-pruned-trace.rule=Path(`/xlayer-mainnet-pruned`) || Path(`/xlayer-mainnet-pruned/`)}
- traefik.http.routers.xlayer-mainnet-cdk-erigon-pruned-trace.middlewares=xlayer-mainnet-cdk-erigon-pruned-trace-stripprefix, ipallowlist - traefik.http.routers.xlayer-mainnet-cdk-erigon-pruned-trace.middlewares=xlayer-mainnet-cdk-erigon-pruned-trace-stripprefix, ipallowlist
shm_size: 2gb
volumes: volumes:
xlayer-mainnet-cdk-erigon-pruned-trace: xlayer-mainnet-cdk-erigon-pruned-trace:
@@ -110,4 +114,26 @@ x-upstreams:
disabled: disabled:
enabled: enabled:
- name: txpool_content # TODO: should be disabled for rollup nodes - name: txpool_content # TODO: should be disabled for rollup nodes
# standard geth and erigon
- name: debug_accountRange
- name: debug_getModifiedAccountsByNumber
- name: debug_getModifiedAccountsByHash
# non standard geth and erigon
- name: eth_getRawTransactionByHash
- name: eth_getRawTransactionByBlockHashAndIndex
# non standard erigon only
- name: eth_getBlockReceipts
- name: eth_protocolVersion
- name: eth_callMany
- name: eth_callBundle
- name: debug_accountAt
- name: debug_traceCallMany
- name: erigon_getHeaderByHash
- name: erigon_getBlockReceiptsByBlockHash
- name: erigon_getHeaderByNumber
- name: erigon_getLogsByHash
- name: erigon_forks
- name: erigon_getBlockByTimestamp
- name: erigon_BlockNumber
- name: erigon_getLatestLogs
... ...