From 9fa3af9a37145c489f5f4d383dc7f8d78605abb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 14 Jun 2024 19:18:49 +0200 Subject: [PATCH] mainnet,sepolia,holesky: disable checks on public API nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flakiness of REST API when abused by exposure to the internet makes these healthchecks useless. They essentially produce noise. Signed-off-by: Jakub SokoĊ‚owski --- ansible/group_vars/nimbus.holesky.yml | 1 + ansible/group_vars/nimbus.mainnet.yml | 1 + ansible/group_vars/nimbus.sepolia.yml | 1 + ansible/requirements.yml | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible/group_vars/nimbus.holesky.yml b/ansible/group_vars/nimbus.holesky.yml index a1e30d5..ba09392 100644 --- a/ansible/group_vars/nimbus.holesky.yml +++ b/ansible/group_vars/nimbus.holesky.yml @@ -116,6 +116,7 @@ beacon_node_rest_port: '{{ 9300 + idx|int + 1 }}' beacon_node_rest_address: '0.0.0.0' # Reduce Consul alerts sensitivity +beacon_node_consul_check_disabled: '{{ node.get("public_api", false) }}' beacon_node_consul_check_interval: '60s' beacon_node_consul_check_timeout: '10s' beacon_node_consul_success_before_passing: '{{ 60 if not node.get("public_api") else 1 }}' # 1h or 60s for public API diff --git a/ansible/group_vars/nimbus.mainnet.yml b/ansible/group_vars/nimbus.mainnet.yml index 452f20c..c5086d9 100644 --- a/ansible/group_vars/nimbus.mainnet.yml +++ b/ansible/group_vars/nimbus.mainnet.yml @@ -89,6 +89,7 @@ beacon_node_exec_layer_urls: |- else (idx % 2 == 0) | ternary(beacon_node_exec_layer_urls_all, []) }} # Reduce Consul alerts sensitivity +beacon_node_consul_check_disabled: '{{ node.get("public_api", false) }}' beacon_node_consul_check_interval: '60s' beacon_node_consul_check_timeout: '10s' beacon_node_consul_success_before_passing: '{{ 5 if node.get("public_api") else 60 }}' # 1h by default diff --git a/ansible/group_vars/nimbus.sepolia.yml b/ansible/group_vars/nimbus.sepolia.yml index abef62e..c1671e6 100644 --- a/ansible/group_vars/nimbus.sepolia.yml +++ b/ansible/group_vars/nimbus.sepolia.yml @@ -59,6 +59,7 @@ beacon_node_metrics_port: '{{ 9200 + idx|int + 11 }}' beacon_node_rest_port: '{{ beacon_node_rest_port_base + idx|int + 11 }}' beacon_node_rest_address: '0.0.0.0' # Reduce Consul alerts sensitivity +beacon_node_consul_check_disabled: '{{ node.get("public_api", false) }}' beacon_node_consul_check_interval: '60s' beacon_node_consul_check_timeout: '10s' beacon_node_consul_success_before_passing: 60 # 1h diff --git a/ansible/requirements.yml b/ansible/requirements.yml index 2ab70d5..a26f031 100644 --- a/ansible/requirements.yml +++ b/ansible/requirements.yml @@ -30,7 +30,7 @@ - name: infra-role-consul-service src: git@github.com:status-im/infra-role-consul-service.git - version: d62993069bd045edade5d5fd90c098655089db85 + version: 2ef75e12a6bd0b57e1db95c834d30be45fe17af4 - name: infra-role-beacon-node-linux src: git@github.com:status-im/infra-role-beacon-node-linux.git