mirror of
https://github.com/status-im/infra-nimbus.git
synced 2025-01-31 07:55:42 +00:00
nimbus.prater: deploy two Erigon nodes
Part of work to support multiple EL nodes driven by one CL node: https://github.com/status-im/infra-nimbus/issues/144 Disabled Geth websocket as unused and conflicting with Erigon. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5926a3da4d
commit
4a5b7d7107
@ -10,7 +10,7 @@ geth_log_level_name: info
|
||||
geth_account_pass: '{{lookup("bitwarden", "nimbus/geth", field="password")}}'
|
||||
geth_authrpc_jwtsecret: '{{lookup("bitwarden", "nimbus/jwt-token")}}'
|
||||
# Memory settings¬
|
||||
geth_cont_mem_ratio: 0.15
|
||||
geth_cont_mem_ratio: 0.10
|
||||
geth_cache_size: '{{ (ansible_memtotal_mb * 0.05|float) | int }}'
|
||||
# Ports
|
||||
geth_rpc_enabled: true
|
||||
@ -19,14 +19,28 @@ geth_rpc_port: '{{ 8545 + (idx|int) + 1 }}'
|
||||
geth_port: '{{ 30303 + (idx|int) + 1 }}'
|
||||
geth_metrics_port: '{{ 6060 + (idx|int) + 1 }}'
|
||||
geth_authrpc_port: '{{ 8551 + (idx|int) + 1 }}'
|
||||
geth_websocket_addr: '0.0.0.0'
|
||||
geth_websocket_port: '{{ 9546 + (idx|int) + 1 }}'
|
||||
# Geth metrics¬
|
||||
geth_expo_service_name: '{{ geth_service_name }}'
|
||||
geth_expo_source_cont_name: '{{ geth_cont_name }}'
|
||||
geth_expo_source_data_path: '{{ geth_cont_vol }}/data'
|
||||
geth_expo_cont_port: '{{ 9400 + (idx|int) + 1 }}'
|
||||
|
||||
# Erigon node
|
||||
erigon_network_name: 'goerli'
|
||||
erigon_service_name: 'erigon-{{ erigon_network_name }}-{{ "%02d"|format(idx|int+1) }}'
|
||||
erigon_prune: 'hrtc' # TODO: Possibly wrong, verify.
|
||||
erigon_log_level: 'info'
|
||||
erigon_cont_mem_ratio: 0.1
|
||||
erigon_mining_ether_base: '{{lookup("bitwarden", "nimbus/wallet/testnets", field="address")}}'
|
||||
# Ports
|
||||
erigon_port: '{{ 40303 + (idx|int) + 1 }}'
|
||||
erigon_metrics_port: '{{ 6060 + (idx|int) + 1 }}'
|
||||
erigon_rpc_addr: '0.0.0.0'
|
||||
erigon_rpc_port: '{{ 9545 + (idx|int) + 1 }}'
|
||||
erigon_authrpc_addr: '0.0.0.0'
|
||||
erigon_authrpc_port: '{{ 9551 + (idx|int) + 1 }}'
|
||||
erigon_authrpc_jwtsecret: '{{lookup("bitwarden", "nimbus/jwt-token")}}'
|
||||
|
||||
# Nimbus Beacon node
|
||||
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch }}'
|
||||
beacon_node_network: 'prater'
|
||||
@ -195,11 +209,11 @@ nodes_layout:
|
||||
'linux-05.he-eu-hel1.nimbus.prater': # 60 each
|
||||
- { branch: 'stable', start: 20164, end: 20224, build_freq: '*-*-* 11:00:00' }
|
||||
- { branch: 'testing', start: 20284, end: 20344, build_freq: '*-*-* 15:00:00', nim_commit: 'version-1-6' }
|
||||
- { branch: 'unstable', start: 20224, end: 20284, build_freq: '*-*-* 13:00:00', open_libp2p_ports: false }
|
||||
- { branch: 'unstable', start: 20224, end: 20284, build_freq: '*-*-* 13:00:00', open_libp2p_ports: false, erigon: true }
|
||||
- { branch: 'libp2p', start: 20344, end: 20404, build_freq: '*-*-* 17:00:00', nim_commit: 'version-1-6', nim_flags: '-d:json_rpc_websocket_package=websock' }
|
||||
|
||||
'linux-06.he-eu-hel1.nimbus.prater':
|
||||
- { branch: 'stable', start: 20404, end: 31303, build_freq: '*-*-* 11:00:00' } # 10899 validators
|
||||
- { branch: 'testing', start: 31303, end: 39202, build_freq: '*-*-* 15:00:00', validator_client: true, payload_builder: true, open_libp2p_ports: false, nim_commit: 'version-1-6' } # 7899 validators
|
||||
- { branch: 'unstable', start: 39202, end: 45101, build_freq: '*-*-* 13:00:00', payload_builder: true } # 5899 validators
|
||||
- { branch: 'unstable', start: 39202, end: 45101, build_freq: '*-*-* 13:00:00', payload_builder: true, erigon: true } # 5899 validators
|
||||
- { branch: 'libp2p', start: 45101, end: 49617, build_freq: '*-*-* 17:00:00', validator_client: true } # 4516 validators
|
||||
|
@ -34,11 +34,18 @@
|
||||
serial: '{{ serial|default(1) }}'
|
||||
hosts: nimbus-prater-metal
|
||||
roles:
|
||||
- { role: open-ports, tags: [ open-ports ] }
|
||||
- { role: smart-metrics, tags: [ smart-metrics ] }
|
||||
- { role: redirect-ports, tags: [ redirect-ports ] }
|
||||
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
|
||||
#- { role: open-ports, tags: [ open-ports ] }
|
||||
#- { role: smart-metrics, tags: [ smart-metrics ] }
|
||||
#- { role: redirect-ports, tags: [ redirect-ports ] }
|
||||
#- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
|
||||
tasks:
|
||||
- include_role: name=infra-role-erigon
|
||||
tags: [ geth, infra-role-erigon ]
|
||||
with_items: '{{ nodes_layout[hostname] }}'
|
||||
when: node.get('erigon', false)
|
||||
loop_control:
|
||||
loop_var: node
|
||||
index_var: idx
|
||||
- include_role: name=infra-role-geth
|
||||
tags: [ geth, infra-role-geth ]
|
||||
with_items: '{{ nodes_layout[hostname] }}'
|
||||
|
@ -115,7 +115,7 @@
|
||||
|
||||
- name: infra-role-geth
|
||||
src: git@github.com:status-im/infra-role-geth.git
|
||||
version: 8f7b6ffd8803bceda38a8869e03dfbbad40f26a0
|
||||
version: 293ebe55053525fb05bfc7c96abe8c090fbdac60
|
||||
scm: git
|
||||
|
||||
- name: infra-role-geth-exporter
|
||||
|
Loading…
x
Reference in New Issue
Block a user