From 8177018ff5bd2271f8e3eda052f2ebcd526a7b53 Mon Sep 17 00:00:00 2001 From: Vedran Mendelski Date: Mon, 13 Jan 2025 16:27:15 +0100 Subject: [PATCH] nimbus: add nimbus light-client service --- ansible/group_vars/nimbus.holesky.yml | 4 ++++ ansible/group_vars/nimbus.mainnet.yml | 5 ++++- ansible/holesky.yml | 13 +++++++------ ansible/mainnet.yml | 15 ++++++++------- ansible/requirements.yml | 5 +++++ 5 files changed, 28 insertions(+), 14 deletions(-) diff --git a/ansible/group_vars/nimbus.holesky.yml b/ansible/group_vars/nimbus.holesky.yml index 9cf0829..a514c06 100644 --- a/ansible/group_vars/nimbus.holesky.yml +++ b/ansible/group_vars/nimbus.holesky.yml @@ -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 }}' @@ -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' } + nimbus-light-client: + - { port: '9503', comment: 'Nimbus Light Client LibP2P', protocol: 'tcp' } + - { port: '9503', comment: 'Nimbus Light Client Discovery', protocol: 'udp' } # Fleet layout can be found in: ansible/vars/layout/holesky.yml diff --git a/ansible/group_vars/nimbus.mainnet.yml b/ansible/group_vars/nimbus.mainnet.yml index 488702d..f1bc4e5 100644 --- a/ansible/group_vars/nimbus.mainnet.yml +++ b/ansible/group_vars/nimbus.mainnet.yml @@ -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 @@ -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' } - + nimbus-light-client: + - { port: '9503', comment: 'Nimbus Light Client LibP2P', protocol: 'tcp' } + - { port: '9503', comment: 'Nimbus Light Client Discovery', protocol: 'udp' } # Fleet layout can be found in: ansible/vars/layout/mainnet.yml diff --git a/ansible/holesky.yml b/ansible/holesky.yml index 174037c..380ded2 100644 --- a/ansible/holesky.yml +++ b/ansible/holesky.yml @@ -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: nimbus-light-client } tasks: - include_role: name: infra-role-beacon-node-linux diff --git a/ansible/mainnet.yml b/ansible/mainnet.yml index 34a2538..cd0d42f 100644 --- a/ansible/mainnet.yml +++ b/ansible/mainnet.yml @@ -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: [ nimbus-light-client ] } tasks: - include_role: name: infra-role-beacon-node-linux diff --git a/ansible/requirements.yml b/ansible/requirements.yml index d02a64b..f167f5c 100644 --- a/ansible/requirements.yml +++ b/ansible/requirements.yml @@ -119,3 +119,8 @@ - name: infra-role-nimbus-bench-eth1 src: git@github.com:status-im/infra-role-nimbus-bench-eth1.git version: d94f021d3338282c17b7674289e4b876eff650ff + +- name: infra-role-nimbus-light-client + src: git@github.com:status-im/infra-role-nimbus-light-client.git + version: f33cdd51dfb7549ecd2c70d23e11e2ba08be7570 +