enable validator monitoring flags for unstable nodes

Once the next release is out we can drop the `unstable` conditionals.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-01-21 12:27:06 +01:00
parent 4ff2422fe2
commit 9b54c84d96
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
4 changed files with 25 additions and 6 deletions

View File

@ -19,6 +19,11 @@ beacon_node_firewall_libp2p_open: '{{ node.get("open_libp2p_ports", true) }}'
beacon_node_build_frequency: '*-*-* {{ 12 + port_offset }}:00:00' beacon_node_build_frequency: '*-*-* {{ 12 + port_offset }}:00:00'
# Tuning # Tuning
beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}' beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}'
# Monitoring
beacon_node_validator_monitor_auto: '{{ node.branch == "unstable" }}'
beacon_node_validator_monitor_totals: >-
{{ node.branch == "unstable" and
(node.public_api is defined and node.public_api) }}
# Mainnet validators run on a separate fleet. # Mainnet validators run on a separate fleet.
beacon_node_dist_validators_enabled: false beacon_node_dist_validators_enabled: false
# Bootnodes should subscribe to all subnets # Bootnodes should subscribe to all subnets
@ -44,13 +49,13 @@ nodes_layout:
- { branch: 'stable', num: 2 } - { branch: 'stable', num: 2 }
- { branch: 'testing', num: 1, open_libp2p_ports: false } - { branch: 'testing', num: 1, open_libp2p_ports: false }
- { branch: 'testing', num: 2 } - { branch: 'testing', num: 2 }
- { branch: 'unstable', num: 1 } # Public Beacon API - { branch: 'unstable', num: 1, public_api: true }
- { branch: 'unstable', num: 2 } - { branch: 'unstable', num: 2 }
'metal-02.he-eu-hel1.nimbus.mainnet': 'metal-02.he-eu-hel1.nimbus.mainnet':
- { branch: 'stable', nun: 1 } - { branch: 'stable', nun: 1 }
- { branch: 'stable', num: 2 } - { branch: 'stable', num: 2 }
- { branch: 'testing', num: 1 } # Public Beacon API - { branch: 'testing', num: 1, public_api: true }
- { branch: 'testing', num: 2 } - { branch: 'testing', num: 2 }
- { branch: 'unstable', num: 1, open_libp2p_ports: false } - { branch: 'unstable', num: 1, open_libp2p_ports: false }
- { branch: 'unstable', num: 2 } - { branch: 'unstable', num: 2 }

View File

@ -16,6 +16,13 @@ beacon_node_firewall_libp2p_open: '{{ node.get("open_libp2p_ports", true) }}'
# Tuning # Tuning
beacon_node_max_peers: 300 beacon_node_max_peers: 300
beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}' beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}'
# Monitoring
beacon_node_validator_monitor_auto: '{{ node.branch == "unstable" }}'
beacon_node_validator_monitor_totals: >-
{{ node.branch == "unstable" and
((node.public_api is defined and node.public_api)
or
(node.end is defined and (node.end - node.start) > 64)) }}
# Builds # Builds
beacon_node_build_frequency: '{{ node.get("build_freq", "daily") }}' beacon_node_build_frequency: '{{ node.get("build_freq", "daily") }}'
beacon_node_build_start_time: '{{ node.get("build_start", omit) }}' beacon_node_build_start_time: '{{ node.get("build_start", omit) }}'
@ -50,7 +57,7 @@ nodes_layout:
- { branch: 'testing', num: 1, start: 22500, end: 25000, build_freq: '*-*-* 14:00:00', open_libp2p_ports: false } - { branch: 'testing', num: 1, start: 22500, end: 25000, build_freq: '*-*-* 14:00:00', open_libp2p_ports: false }
- { branch: 'testing', num: 2, build_freq: '*-*-* 15:00:00' } - { branch: 'testing', num: 2, build_freq: '*-*-* 15:00:00' }
- { branch: 'unstable', num: 1, start: 35000, end: 37500, build_freq: '*-*-* 16:00:00', open_libp2p_ports: false } - { branch: 'unstable', num: 1, start: 35000, end: 37500, build_freq: '*-*-* 16:00:00', open_libp2p_ports: false }
- { branch: 'unstable', num: 2, build_freq: '*-*-* 17:00:00' } # Public Beacon API - { branch: 'unstable', num: 2, build_freq: '*-*-* 17:00:00', public_api: true }
- { branch: 'libp2p', num: 1, start: 38750, end: 40000, build_freq: '*-*-* 18:00:00' } # 1250 validators - { branch: 'libp2p', num: 1, start: 38750, end: 40000, build_freq: '*-*-* 18:00:00' } # 1250 validators
- { branch: 'libp2p', num: 2, build_freq: '*-*-* 19:00:00' } - { branch: 'libp2p', num: 2, build_freq: '*-*-* 19:00:00' }
@ -58,7 +65,7 @@ nodes_layout:
- { branch: 'stable', num: 1, start: 5000, end: 7500, build_freq: '*-*-* 12:00:00' } - { branch: 'stable', num: 1, start: 5000, end: 7500, build_freq: '*-*-* 12:00:00' }
- { branch: 'stable', num: 2, build_freq: '*-*-* 13:00:00' } - { branch: 'stable', num: 2, build_freq: '*-*-* 13:00:00' }
- { branch: 'testing', num: 1, start: 17500, end: 20000, build_freq: '*-*-* 14:00:00' } - { branch: 'testing', num: 1, start: 17500, end: 20000, build_freq: '*-*-* 14:00:00' }
- { branch: 'testing', num: 2, build_freq: '*-*-* 15:00:00' } # Public Beacon API - { branch: 'testing', num: 2, build_freq: '*-*-* 15:00:00', public_api: true }
- { branch: 'unstable', num: 1, start: 30000, end: 32500, build_freq: '*-*-* 16:00:00' } - { branch: 'unstable', num: 1, start: 30000, end: 32500, build_freq: '*-*-* 16:00:00' }
- { branch: 'unstable', num: 2, build_freq: '*-*-* 17:00:00' } - { branch: 'unstable', num: 2, build_freq: '*-*-* 17:00:00' }
- { branch: 'libp2p', num: 1, start: 37500, end: 38750, build_freq: '*-*-* 18:00:00' } # 1250 validators - { branch: 'libp2p', num: 1, start: 37500, end: 38750, build_freq: '*-*-* 18:00:00' } # 1250 validators

View File

@ -13,6 +13,13 @@ beacon_node_rpc_port: '{{ 9900 + port_offset }}'
# Tuning # Tuning
beacon_node_max_peers: 250 beacon_node_max_peers: 250
beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}' beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}'
# Monitoring
beacon_node_validator_monitor_auto: '{{ node.branch == "unstable" }}'
beacon_node_validator_monitor_totals: >-
{{ node.branch == "unstable" and
((node.public_api is defined and node.public_api)
or
(node.end is defined and (node.end - node.start) > 64)) }}
# Builds # Builds
beacon_node_build_frequency: '{{ node.build_frequency }}' beacon_node_build_frequency: '{{ node.build_frequency }}'
# Validators from nimbus-private repo # Validators from nimbus-private repo
@ -31,7 +38,7 @@ beacon_node_web3_urls: |
nodes_layout: nodes_layout:
'metal-01.he-eu-hel1.nimbus.pyrmont': # 4000 validators each 'metal-01.he-eu-hel1.nimbus.pyrmont': # 4000 validators each
- { branch: 'stable', start: 0, end: 4000, build_frequency: '*-*-* 11:00:00' } - { branch: 'stable', start: 0, end: 4000, build_frequency: '*-*-* 11:00:00' }
- { branch: 'unstable', start: 4000, end: 8000, build_frequency: '*-*-* 13:00:00' } # Public Beacon API - { branch: 'unstable', start: 4000, end: 8000, build_frequency: '*-*-* 13:00:00', public_api: true }
- { branch: 'testing', start: 8000, end: 12000, build_frequency: '*-*-* 15:00:00' } - { branch: 'testing', start: 8000, end: 12000, build_frequency: '*-*-* 15:00:00' }
- { branch: 'libp2p', start: 12000, end: 16000, build_frequency: '*-*-* 17:00:00' } - { branch: 'libp2p', start: 12000, end: 16000, build_frequency: '*-*-* 17:00:00' }
'metal-02.he-eu-hel1.nimbus.pyrmont': # 989 validators each 'metal-02.he-eu-hel1.nimbus.pyrmont': # 989 validators each

View File

@ -16,7 +16,7 @@
- name: infra-role-bootstrap-linux - name: infra-role-bootstrap-linux
src: git@github.com:status-im/infra-role-bootstrap-linux.git src: git@github.com:status-im/infra-role-bootstrap-linux.git
version: a5ab4b97d0ccdaed3489dba535624f85ab484f9f version: d66b056486676bef9ff67fb5b7fc52221e08c94a
scm: git scm: git
- name: infra-role-bootstrap-windows - name: infra-role-bootstrap-windows