From 82b65e6918fed39fb20d473f466e6c4365ac527f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 11 Jun 2024 08:16:54 +0200 Subject: [PATCH] miannet,sepolia,holesky: run update jobs every 2 hours MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we get a massive CPU load spike that makes nodes unavailable. Also fix nim flags variable names. Signed-off-by: Jakub SokoĊ‚owski --- ansible/group_vars/all.yml | 2 +- ansible/group_vars/nimbus.holesky.yml | 5 ++--- ansible/group_vars/nimbus.mainnet.yml | 2 +- ansible/group_vars/nimbus.sepolia.yml | 2 +- ansible/vars/nimbus-sepolia-trial.yml | 7 +++---- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 5e5e5a6..52cbaf1 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -65,7 +65,7 @@ smart_metrics_listen_port: 9633 # Nimbus ------------------------------ beacon_node_log_level: DEBUG # Builds -beacon_node_build_nim_flags: >- +beacon_node_update_build_nim_flags: >- -d:testnet_servers_image -d:noSignalHandler -d:libp2p_protobuf_metrics diff --git a/ansible/group_vars/nimbus.holesky.yml b/ansible/group_vars/nimbus.holesky.yml index b993a5b..4e7a4d1 100644 --- a/ansible/group_vars/nimbus.holesky.yml +++ b/ansible/group_vars/nimbus.holesky.yml @@ -81,9 +81,8 @@ node_name_to_branch_map: libp2p: 'nim-libp2p-auto-bump-unstable' chronos: 'nim-chronos-auto-bump-unstable' # Builds -beacon_node_build_frequency: 'daily' -beacon_node_build_start_time: '{{ node.get("build_start", omit) }}' -beacon_node_build_nim_flags: '-d:noSignalHandler {{ node.get("nim_flags", "") }}' +beacon_node_update_frequency: '*-*-* {{ "%02d" | format(idx * 2) }}:00:00' +beacon_node_update_build_nim_flags: '-d:noSignalHandler {{ node.get("nim_flags", "") }}' beacon_node_update_build_targets: ['nimbus_beacon_node', 'ncli_db'] beacon_node_nim_commit: '{{ node.get("nim_commit", "") }}' # Monitoring diff --git a/ansible/group_vars/nimbus.mainnet.yml b/ansible/group_vars/nimbus.mainnet.yml index 9e94752..0140c95 100644 --- a/ansible/group_vars/nimbus.mainnet.yml +++ b/ansible/group_vars/nimbus.mainnet.yml @@ -54,7 +54,7 @@ beacon_node_max_peers: '{{ node.get("max_peers", 320) }}' beacon_node_firewall_libp2p_open: '{{ node.get("open_libp2p_ports", true) }}' # Builds beacon_node_update_build: '{{ beacon_node_repo_branch != "stable" }}' -beacon_node_build_frequency: '*-*-* {{ 12 + idx }}:00:00' +beacon_node_update_frequency: '*-*-* {{ "%02d" | format(idx * 2) }}:00:00' # Tuning beacon_node_cores_per_node: '{{ (ansible_processor_vcpus / nodes_layout[hostname]|length) | round(0, "ceil") | int }}' beacon_node_threads: '{{ (node.branch == "libp2p") | ternary(1, beacon_node_cores_per_node) }}' diff --git a/ansible/group_vars/nimbus.sepolia.yml b/ansible/group_vars/nimbus.sepolia.yml index c715c8e..1be88e2 100644 --- a/ansible/group_vars/nimbus.sepolia.yml +++ b/ansible/group_vars/nimbus.sepolia.yml @@ -36,7 +36,7 @@ beacon_node_extra_flags: '{{ node.extra_flags if node.extra_flags is defined els beacon_node_payload_builder_enabled: '{{ node.get("payload_builder", false) }}' beacon_node_payload_builder_url: 'https://boost-relay-sepolia.flashbots.net/ ' # Updates -beacon_node_update_frequency: 'daily' +beacon_node_update_frequency: '*-*-* {{ "%02d" | format(idx * 2) }}:00:00' beacon_node_update_build_nim_flags: '-d:noSignalHandler {{ node.get("nim_flags", "") }}' beacon_node_update_build_targets: ['nimbus_beacon_node', 'ncli_db'] # Monitoring diff --git a/ansible/vars/nimbus-sepolia-trial.yml b/ansible/vars/nimbus-sepolia-trial.yml index 774ecd0..1c6490d 100644 --- a/ansible/vars/nimbus-sepolia-trial.yml +++ b/ansible/vars/nimbus-sepolia-trial.yml @@ -18,10 +18,9 @@ beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ beacon_node_ beacon_node_network: 'sepolia' beacon_node_repo_branch: 'unstable' beacon_node_nim_commit: '{{ node.get("nim_commit", "") }}' -beacon_node_build_nim_flags: '-d:noSignalHandler {{ node.get("nim_flags", "") }}' - -#Builds -beacon_node_build_frequency: 'daily' +# Builds +beacon_node_update_frequency: 'daily' +beacon_node_update_build_nim_flags: '-d:noSignalHandler {{ node.get("nim_flags", "") }}' # Monitoring beacon_node_validator_monitor_auto: true beacon_node_validator_monitor_details: true