nimbus.mainnet/prater: enable pruned history

For most nodes this is fine, except for nodes with publicly exposed API,
which we should keep as synced from genesis and in archive mode.

Every other node is fine being prunned. I'm keeping AWS nodes not pruned
as fallback since increasing their storage is quick and easy.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-02-21 12:55:37 +01:00
parent 6e05ef6eec
commit 3e3cff6840
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 7 additions and 5 deletions

View File

@ -53,6 +53,7 @@ beacon_node_firewall_libp2p_open: '{{ node.get("open_libp2p_ports", true) }}'
beacon_node_build_frequency: '*-*-* {{ 12 + idx }}:00:00'
# Tuning
beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}'
beacon_node_history_retention: '{{ "archive" if node.get("public_api") else node.get("history", "prune") }}'
# Monitoring
beacon_node_validator_monitor_auto: true
beacon_node_validator_monitor_totals: '{{ (node.public_api is defined and node.public_api) }}'
@ -74,7 +75,7 @@ beacon_node_web3_urls: |-
) }}
# Periodic resync to save space
beacon_node_resync_enabled: true
beacon_node_resync_timer_enabled: '{{ idx % 2 == 1 }}'
beacon_node_resync_timer_enabled: '{{ (idx % 2 == 1) and not node.get("public_api") }}'
beacon_node_resync_timer_frequency: 'monthly'
beacon_node_resync_timer_random_delay_sec: 604800 # 7 days
beacon_node_resync_timer_trusted_api_url: 'http://localhost:{{ beacon_node_rest_port_base }}'

View File

@ -51,6 +51,7 @@ beacon_node_firewall_libp2p_open: '{{ node.get("open_libp2p_ports", true) }}'
# Tuning
beacon_node_max_peers: 300
beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}'
beacon_node_history_retention: '{{ "archive" if node.get("public_api") else node.get("history", "prune") }}'
# Monitoring
beacon_node_validator_monitor_auto: true
beacon_node_validator_monitor_totals: >-
@ -81,7 +82,7 @@ beacon_node_web3_urls: ['http://localhost:{{ geth_authrpc_port }}']
beacon_node_web3_jwt_secret: '{{ geth_authrpc_jwtsecret }}'
# Periodic resync to save space
beacon_node_resync_enabled: true
beacon_node_resync_timer_enabled: '{{ idx % 2 == 1 }}'
beacon_node_resync_timer_enabled: '{{ (idx % 2 == 1) and not node.get("public_api") }}'
beacon_node_resync_timer_frequency: 'monthly'
beacon_node_resync_timer_random_delay_sec: 604800 # 7 days
beacon_node_resync_timer_trusted_api_url: 'http://localhost:{{ beacon_node_rest_port_base }}'
@ -133,13 +134,13 @@ open_ports_list:
nodes_layout:
# WARNING: The nodes hosted on AWS are bootstrap nodes and should not be changed.
'stable-large-01.aws-eu-central-1a.nimbus.prater': # 2000 each
- { branch: 'stable', start: 0, end: 2000 }
- { branch: 'stable', start: 0, end: 2000, history: 'archive' }
'testing-large-01.aws-eu-central-1a.nimbus.prater': # 2000 each
- { branch: 'testing', start: 2000, end: 4000 }
- { branch: 'testing', start: 2000, end: 4000, history: 'archive' }
'unstable-large-01.aws-eu-central-1a.nimbus.prater': # 2000 each
- { branch: 'unstable', start: 4000, end: 6000, payload_builder: true }
- { branch: 'unstable', start: 4000, end: 6000, history: 'archive', payload_builder: true }
'macos-01.ms-eu-dublin.nimbus.prater': # 2000 each
- { branch: 'stable', start: 6000, end: 8000, build_start: '13:00:00' }