Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nimbus: add light-client service #222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ansible/group_vars/nimbus.holesky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ beacon_node_payload_builder_url: 'https://boost-relay-holesky.flashbots.net/'
beacon_node_light_client_data_enabled: '{{ (node.public_api is defined and node.public_api) }}'
beacon_node_light_client_data_serve: true
beacon_node_light_client_data_import_mode: 'full'
light_client_network: 'holesky'
# Validators from nimbus-private repo¬
beacon_node_dist_validators_enabled: '{{ node.start is defined and node.end is defined }}'
beacon_node_dist_validators_start: '{{ node.get("vc", false) | ternary(0, node.start) | mandatory }}'
Expand Down Expand Up @@ -200,5 +201,8 @@ open_ports_list:
validator-client:
- { port: '5053-5056', comment: 'Validator Client REST API', ipset: '{{ env }}.{{ stage }}', iifname: 'wg0' }
- { port: '8109-8112', comment: 'Validator Client Metrics', ipset: 'hq.metrics', iifname: 'wg0' }
light-client:
- { port: '9503', comment: 'Light Client LibP2P', protocol: 'tcp' }
- { port: '9503', comment: 'Light Client Discovery', protocol: 'udp' }

# Fleet layout can be found in: ansible/vars/layout/holesky.yml
5 changes: 4 additions & 1 deletion ansible/group_vars/nimbus.mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ beacon_node_exec_layer_urls: '{{ beacon_node_exec_layer_urls_local if node.get("
beacon_node_light_client_data_enabled: '{{ (node.public_api is defined and node.public_api) }}'
beacon_node_light_client_data_serve: true
beacon_node_light_client_data_import_mode: 'full'
light_client_network: 'mainnet'
# Mainnet validators run on a separate fleet.
beacon_node_dist_validators_enabled: false
# Ports
Expand Down Expand Up @@ -166,5 +167,7 @@ open_ports_list:
- { port: '9001-9004', comment: 'Beacon Node discovery', protocol: 'udp' }
- { port: '9201-9204', comment: 'Beacon Node Metrics', ipset: 'hq.metrics', iifname: 'wg0' }
- { port: '9301-9304', comment: 'Beacon Node REST API', ipset: '{{ env }}.{{ stage }}', iifname: 'wg0' }

light-client:
- { port: '9503', comment: 'Light Client LibP2P', protocol: 'tcp' }
- { port: '9503', comment: 'Light Client Discovery', protocol: 'udp' }
# Fleet layout can be found in: ansible/vars/layout/mainnet.yml
13 changes: 7 additions & 6 deletions ansible/holesky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
- nimbus-holesky-neth
vars_files: layout/holesky.yml
roles:
- { role: update-netplan, tags: update-netplan, when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-open-ports, tags: open-ports }
- { role: redirect-ports, tags: redirect-ports }
- { role: nimbus-era-files, tags: nimbus-era-files }
- { role: infra-role-mev-boost, tags: mev-boost, when: mev_boost_enabled == true }
- { role: update-netplan, tags: update-netplan, when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-open-ports, tags: open-ports }
- { role: redirect-ports, tags: redirect-ports }
- { role: nimbus-era-files, tags: nimbus-era-files }
- { role: infra-role-mev-boost, tags: mev-boost, when: mev_boost_enabled == true }
- { role: infra-role-nimbus-light-client, tags: light-client }
tasks:
- include_role:
name: infra-role-beacon-node-linux
Expand Down
15 changes: 8 additions & 7 deletions ansible/mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@
# FIXME: Use all Geth nodes available in the fleet until we resync.
geth_node_api_fleet_names: ['nimbus.geth']
roles:
- { role: update-netplan, tags: [ update-netplan ], when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: [ swap-file ] }
- { role: infra-role-open-ports, tags: [ open-ports ] }
- { role: infra-role-smart-metrics, tags: [ smart-metrics ] }
- { role: redirect-ports, tags: [ redirect-ports ] }
- { role: get-geth-api-urls, tags: [ get-geth-api-urls, beacon-node ] }
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
- { role: update-netplan, tags: [ update-netplan ], when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: [ swap-file ] }
- { role: infra-role-open-ports, tags: [ open-ports ] }
- { role: infra-role-smart-metrics, tags: [ smart-metrics ] }
- { role: redirect-ports, tags: [ redirect-ports ] }
- { role: get-geth-api-urls, tags: [ get-geth-api-urls, beacon-node ] }
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
- { role: infra-role-nimbus-light-client, tags: [light-client] }
tasks:
- include_role:
name: infra-role-beacon-node-linux
Expand Down
5 changes: 5 additions & 0 deletions ansible/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,8 @@
- name: infra-role-nimbus-bench-eth1
src: [email protected]:status-im/infra-role-nimbus-bench-eth1.git
version: d94f021d3338282c17b7674289e4b876eff650ff

- name: infra-role-nimbus-light-client
src: [email protected]:status-im/infra-role-nimbus-light-client.git
version: 7be6c194286428db462b37bfc3dc5f9e7b980a12

10 changes: 5 additions & 5 deletions ansible/sepolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
hosts:
- nimbus-sepolia-linux
roles:
- { role: update-netplan, tags: [ update-netplan ], when: ansible_system == 'Linux' }
- { role: infra-role-open-ports, tags: [ open-ports ] }
- { role: infra-role-smart-metrics, tags: [ smart-metrics ] }
- { role: redirect-ports, tags: [ redirect-ports ] }
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
- { role: update-netplan, tags: [ update-netplan ], when: ansible_system == 'Linux' }
- { role: infra-role-open-ports, tags: [ open-ports ] }
- { role: infra-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-geth
Expand Down