2020-11-25 14:58:44 +00:00
|
|
|
---
|
2022-09-14 13:16:37 +00:00
|
|
|
# Beacon nodes are held on /data so we can't bind it.
|
|
|
|
bootstrap__extra_volume_path: '/docker'
|
|
|
|
bootstrap__extra_volume_bind_path: null
|
|
|
|
|
|
|
|
# SWAP
|
2021-10-05 10:08:14 +00:00
|
|
|
swap_file_size_mb: 2048
|
|
|
|
|
2024-10-08 13:57:57 +00:00
|
|
|
# Ports used for all 3 EL nodes as they are mutually exclusive.
|
|
|
|
exec_layer_p2p_port: '{{ 30303 + 3*idx|int + 1 }}'
|
|
|
|
exec_layer_rpc_port: '{{ 8545 + idx|int + 1 }}'
|
|
|
|
exec_layer_authrpc_port: '{{ 8551 + idx|int + 1 }}'
|
|
|
|
exec_layer_metrics_port: '{{ 6060 + idx|int + 1 }}'
|
|
|
|
|
|
|
|
# Go-Ethereum ------------------------------------------------------------------
|
|
|
|
|
|
|
|
geth_service_name: 'geth-{{ geth_network_name }}-{{ node.branch | mandatory }}'
|
2022-09-14 13:24:15 +00:00
|
|
|
geth_service_path: '/docker/{{ geth_service_name }}'
|
|
|
|
geth_network_name: 'mainnet'
|
|
|
|
geth_cont_name: '{{ geth_service_name }}-node'
|
|
|
|
geth_cont_vol: '{{ geth_service_path }}/node'
|
|
|
|
geth_sync_mode: 'snap'
|
|
|
|
geth_log_level_name: 'info'
|
2024-10-08 13:57:57 +00:00
|
|
|
# Geth auth & JWT token
|
2022-09-14 13:24:15 +00:00
|
|
|
geth_account_pass: '{{lookup("bitwarden", "nimbus/geth", field="password")}}'
|
2024-10-08 13:57:57 +00:00
|
|
|
geth_authrpc_jwtsecret: '{{ beacon_node_exec_layer_jwt_secret }}'
|
|
|
|
# Memory settings
|
2022-09-14 13:24:15 +00:00
|
|
|
geth_cont_mem_ratio: 0.15
|
|
|
|
geth_cache_size: '{{ (ansible_memtotal_mb * 0.05|float) | int }}'
|
|
|
|
# Ports
|
2024-10-08 13:57:57 +00:00
|
|
|
geth_rpc_addr: '0.0.0.0'
|
|
|
|
geth_authrpc_addr: '127.0.0.1'
|
|
|
|
geth_port: '{{ exec_layer_p2p_port }}'
|
|
|
|
geth_rpc_port: '{{ exec_layer_rpc_port }}'
|
|
|
|
geth_authrpc_port: '{{ exec_layer_authrpc_port }}'
|
|
|
|
geth_metrics_port: '{{ exec_layer_metrics_port }}'
|
|
|
|
# Geth metrics
|
2022-09-14 13:24:15 +00:00
|
|
|
geth_expo_service_name: '{{ geth_service_name }}'
|
|
|
|
geth_expo_source_cont_name: '{{ geth_cont_name }}'
|
|
|
|
geth_expo_source_data_path: '{{ geth_cont_vol }}/data'
|
2024-10-08 13:57:57 +00:00
|
|
|
geth_expo_cont_port: '{{ 9400 + (idx|int) + 1 }}'
|
|
|
|
|
|
|
|
# Erigon -----------------------------------------------------------------------
|
|
|
|
|
2024-10-25 13:56:19 +00:00
|
|
|
erigon_network_name: 'mainnet'
|
2024-10-08 13:57:57 +00:00
|
|
|
erigon_service_name: 'erigon-{{ geth_network_name }}-{{ node.branch | mandatory }}'
|
|
|
|
erigon_prune: 'hrtc' # TODO: Possibly wrong, verify.
|
|
|
|
erigon_log_level: 'info'
|
2024-11-08 09:34:57 +00:00
|
|
|
erigon_cont_mem_ratio: 0.2
|
2024-10-08 13:57:57 +00:00
|
|
|
erigon_max_peers: 20
|
|
|
|
erigon_miner_enabled: true
|
|
|
|
# Ports
|
|
|
|
erigon_metrics_enabled: true
|
|
|
|
erigon_rpc_addr: '0.0.0.0'
|
|
|
|
erigon_authrpc_addr: '0.0.0.0'
|
|
|
|
erigon_port: '{{ exec_layer_p2p_port }}'
|
|
|
|
erigon_p2p_allowed_ports: ['{{ erigon_port }}', '{{ erigon_port|int + 1 }}']
|
|
|
|
erigon_rpc_port: '{{ exec_layer_rpc_port }}'
|
|
|
|
erigon_metrics_port: '{{ exec_layer_metrics_port }}'
|
|
|
|
erigon_authrpc_port: '{{ exec_layer_authrpc_port }}'
|
|
|
|
erigon_authrpc_jwtsecret: '{{ beacon_node_exec_layer_jwt_secret }}'
|
|
|
|
|
|
|
|
# Nimbus ETH1 ------------------------------------------------------------------
|
|
|
|
|
2024-11-01 15:27:59 +00:00
|
|
|
nimbus_eth1_service_name: 'nimbus-eth1-{{ geth_network_name }}-{{ node.branch | mandatory }}'
|
2024-10-08 13:57:57 +00:00
|
|
|
nimbus_eth1_repo_branch: 'master'
|
|
|
|
nimbus_eth1_network: 'mainnet'
|
|
|
|
nimbus_eth1_max_peers: 160
|
|
|
|
nimbus_eth1_log_level: 'DEBUG'
|
|
|
|
nimbus_eth1_service_path: '/docker/{{ nimbus_eth1_service_name }}'
|
|
|
|
nimbus_eth1_engine_http_enabled: true
|
|
|
|
nimbus_eth1_engine_ws_enabled: true
|
|
|
|
nimbus_eth1_era_dir: '{{ nimbus_era_files_timer_path }}'
|
|
|
|
nimbus_eth1_era1_dir: '/docker/era1'
|
|
|
|
# Ports
|
2024-10-25 13:56:19 +00:00
|
|
|
nimbus_eth1_listening_port: '{{ exec_layer_p2p_port }}'
|
|
|
|
nimbus_eth1_discovery_port: '{{ exec_layer_p2p_port }}'
|
|
|
|
nimbus_eth1_http_port: '{{ exec_layer_rpc_port }}'
|
|
|
|
nimbus_eth1_metrics_port: '{{ exec_layer_metrics_port }}'
|
|
|
|
nimbus_eth1_engine_http_port: '{{ exec_layer_authrpc_port }}'
|
2024-10-08 13:57:57 +00:00
|
|
|
nimbus_eth1_metrics_address: '0.0.0.0'
|
|
|
|
# API secert
|
|
|
|
nimbus_eth1_jwt_secret: '{{ beacon_node_exec_layer_jwt_secret }}'
|
|
|
|
|
|
|
|
# Beacon Nodes -----------------------------------------------------------------
|
2022-09-14 13:24:15 +00:00
|
|
|
|
2020-11-25 14:58:44 +00:00
|
|
|
beacon_node_network: 'mainnet'
|
2024-10-08 13:57:57 +00:00
|
|
|
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch | mandatory }}'
|
|
|
|
beacon_node_service_path: '/data/{{ beacon_node_service_name }}'
|
|
|
|
beacon_node_era_dir_path: '{{ nimbus_era_files_timer_path }}'
|
2023-08-08 13:20:38 +00:00
|
|
|
beacon_node_repo_branch: '{{ node_name_to_branch_map.get(node.branch, node.branch) }}'
|
2024-10-08 13:57:57 +00:00
|
|
|
# Tuning
|
|
|
|
beacon_node_history_retention: '{{ "archive" if node.get("public_api") else node.get("history", "prune") }}'
|
|
|
|
beacon_node_extra_flags: '{{ node.extra_flags if node.extra_flags is defined else {} }}'
|
|
|
|
beacon_node_cores_per_node: '{{ (ansible_processor_vcpus / nodes_layout[inventory_hostname]|length) | round(0, "ceil") | int }}'
|
|
|
|
beacon_node_threads: '{{ (node.branch == "libp2p") | ternary(1, beacon_node_cores_per_node) }}'
|
2023-08-08 13:20:38 +00:00
|
|
|
# We map short names to branches to avoid too long service names.
|
|
|
|
node_name_to_branch_map:
|
|
|
|
libp2p: 'nim-libp2p-auto-bump-unstable'
|
2021-10-05 15:48:01 +00:00
|
|
|
# Builds
|
2024-06-18 10:26:39 +00:00
|
|
|
beacon_node_update_build_targets: ['nimbus_beacon_node', 'ncli_db']
|
2024-04-01 11:42:21 +00:00
|
|
|
beacon_node_update_build: '{{ beacon_node_repo_branch != "stable" }}'
|
2024-06-11 06:16:54 +00:00
|
|
|
beacon_node_update_frequency: '*-*-* {{ "%02d" | format(idx * 2) }}:00:00'
|
2022-01-21 11:27:06 +00:00
|
|
|
# Monitoring
|
2022-06-01 09:47:50 +00:00
|
|
|
beacon_node_validator_monitor_auto: true
|
2023-06-07 16:12:59 +00:00
|
|
|
beacon_node_validator_monitor_details: '{{ node.public_api is not defined or not node.public_api }}'
|
2024-10-08 13:57:57 +00:00
|
|
|
# Execution layer Enginer API
|
|
|
|
beacon_node_exec_layer_jwt_secret: '{{lookup("bitwarden", "nimbus/jwt-token")}}'
|
|
|
|
beacon_node_exec_layer_urls_local: ['http://localhost:{{ exec_layer_authrpc_port }}']
|
|
|
|
beacon_node_exec_layer_urls: '{{ beacon_node_exec_layer_urls_local if node.get("el") else [] }}'
|
2022-04-17 14:23:19 +00:00
|
|
|
# Light client data
|
|
|
|
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'
|
2024-10-08 13:57:57 +00:00
|
|
|
# Mainnet validators run on a separate fleet.
|
|
|
|
beacon_node_dist_validators_enabled: false
|
|
|
|
# Ports
|
|
|
|
beacon_node_rest_port_base: 9300
|
|
|
|
beacon_node_rest_port: '{{ beacon_node_rest_port_base + idx|int + 1 }}'
|
|
|
|
beacon_node_discovery_port: '{{ 9000 + idx|int + 1 }}'
|
|
|
|
beacon_node_listening_port: '{{ 9000 + idx|int + 1 }}'
|
|
|
|
beacon_node_metrics_port: '{{ 9200 + idx|int + 1 }}'
|
|
|
|
beacon_node_rest_address: '0.0.0.0'
|
|
|
|
beacon_node_max_peers: '{{ node.get("max_peers", 320) }}'
|
|
|
|
# Firewall
|
|
|
|
beacon_node_firewall_libp2p_open: '{{ node.get("open_libp2p_ports", true) }}'
|
|
|
|
# Excellent stress test and good service to the community.
|
|
|
|
beacon_node_subscribe_all: true
|
|
|
|
# FIXME: Temporary test to debug REST API timeout issues.
|
|
|
|
# https://github.com/status-im/nimbus-eth2/issues/5838
|
|
|
|
#beacon_node_rest_allow_origin: '{{ "*" if node.get("public_api") else "" }}'
|
2023-05-05 18:07:00 +00:00
|
|
|
|
2023-12-06 10:13:26 +00:00
|
|
|
# Reduce Consul alerts sensitivity
|
2024-06-14 17:18:49 +00:00
|
|
|
beacon_node_consul_check_disabled: '{{ node.get("public_api", false) }}'
|
2024-04-23 10:49:42 +00:00
|
|
|
beacon_node_consul_check_interval: '60s'
|
|
|
|
beacon_node_consul_check_timeout: '10s'
|
2024-05-22 14:10:38 +00:00
|
|
|
beacon_node_consul_success_before_passing: '{{ 5 if node.get("public_api") else 60 }}' # 1h by default
|
2024-04-23 10:49:42 +00:00
|
|
|
beacon_node_consul_failures_before_warning: 120 # 2h
|
|
|
|
beacon_node_consul_failures_before_critical: 180 # 3h
|
2023-12-06 10:13:26 +00:00
|
|
|
|
2022-07-13 23:00:29 +00:00
|
|
|
# ERA files geneartion.
|
2024-09-16 06:10:36 +00:00
|
|
|
nimbus_era_files_timer_enabled: '{{ (nodes_layout[inventory_hostname]|length) > 1 }}'
|
2022-07-20 12:27:17 +00:00
|
|
|
nimbus_era_files_timer_path: '/data/era'
|
2022-10-12 07:30:46 +00:00
|
|
|
nimbus_era_files_network: '{{ beacon_node_network }}'
|
2022-07-13 23:00:29 +00:00
|
|
|
# FIXME: Not pretty, since hardcoded, but the simplest way to do it right now.
|
2024-11-08 10:01:16 +00:00
|
|
|
nimbus_era_files_db_path: '/data/beacon-node-{{ beacon_node_network }}-testing/data/db'
|
|
|
|
nimbus_era_files_nclidb_path: '/data/beacon-node-{{ beacon_node_network }}-testing/repo/build/ncli_db'
|
2022-07-13 23:00:29 +00:00
|
|
|
|
2024-09-25 07:57:15 +00:00
|
|
|
# Migrated to NFTables from IPTables.
|
|
|
|
# https://github.com/status-im/infra-misc/issues/301
|
|
|
|
bootstrap__firewall_nftables: true
|
|
|
|
|
2022-09-14 13:34:23 +00:00
|
|
|
# Open Ports
|
2024-10-08 13:57:57 +00:00
|
|
|
host_el_type: '{{ ansible_hostname|split("-")|first }}'
|
2022-09-14 13:34:23 +00:00
|
|
|
open_ports_list:
|
2024-09-25 07:57:15 +00:00
|
|
|
nginx:
|
2024-09-25 19:29:09 +00:00
|
|
|
- { port: '443', comment: 'Nginx' }
|
2024-09-25 07:57:15 +00:00
|
|
|
smart-metrics:
|
2024-10-18 08:18:39 +00:00
|
|
|
- { port: '{{ smart_metrics_listen_port }}', comment: 'SMART Metrics', ipset: 'hq.metrics', iifname: 'wg0' }
|
2024-10-08 13:57:57 +00:00
|
|
|
exec-node:
|
|
|
|
- { port: '30304-30315', comment: '{{ host_el_type }} LibP2P', protocol: 'tcp' }
|
|
|
|
- { port: '30304-30315', comment: '{{ host_el_type }} Discovery', protocol: 'udp' }
|
|
|
|
- { port: '6061-6064', comment: '{{ host_el_type }} Metrics', ipset: 'hq.metrics', iifname: 'wg0' }
|
|
|
|
- { port: '9401-9404', comment: '{{ host_el_type }} Exporter', ipset: 'hq.metrics', iifname: 'wg0' }
|
|
|
|
- { port: '8552-8555', comment: 'Go-Ethereum AuthRPC', ipset: '{{ env }}.{{ stage }}', iifname: 'wg0' }
|
|
|
|
- { port: '8446-8449', comment: 'RPC for Portal Bridge', ipset: 'nimbus.fluffy', iifname: 'wg0' }
|
2024-09-25 07:57:15 +00:00
|
|
|
beacon-node:
|
2024-10-08 13:57:57 +00:00
|
|
|
- { port: '9001-9004', comment: 'Beacon Node libp2p', protocol: 'tcp' }
|
|
|
|
- { 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' }
|
2022-09-14 13:34:23 +00:00
|
|
|
|
2024-09-25 19:29:09 +00:00
|
|
|
# Fleet layout can be found in: ansible/vars/layout/mainnet.yml
|