Deploy mainnet beacon nodes on hetzner server

This will run multiple mainnet beacon nodes on the hetzner server. It
will use the `infra-role-beacon-node-linux` to build and run `stable`,
`unstable` and `testing` on the machine.

Signed-off-by: Arthur Koziel <arthur@arthurkoziel.com>
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Arthur Koziel 2021-06-22 17:49:48 +08:00 committed by Jakub
parent 31232a0b2c
commit 0a75a69a09
4 changed files with 30 additions and 20 deletions

View File

@ -1,6 +1,5 @@
--- ---
beacon_node_network: 'mainnet' beacon_node_network: 'mainnet'
beacon_node_cont_tag: 'stable-metal-01'
# WARNING: Since these are Eth 2 bootnodes we need to keep the keys and IPs unchanged. # WARNING: Since these are Eth 2 bootnodes we need to keep the keys and IPs unchanged.
#beacon_node_netkey: '{{lookup("passwordstore","services/Nimbus/netkey/"+hostname)}}' #beacon_node_netkey: '{{lookup("passwordstore","services/Nimbus/netkey/"+hostname)}}'

View File

@ -1,11 +0,0 @@
---
# Docker image builds
beacon_node_builds_docker_hub_user: '{{lookup("passwordstore", "cloud/DockerHub/user")}}'
beacon_node_builds_docker_hub_token: '{{lookup("passwordstore", "cloud/DockerHub/token")}}'
# The -small suffix is because of native compilation
beacon_node_builds_branches:
- name: 'stable-metal-01'
version: 'stable'
targets: ['nimbus_beacon_node', 'nimbus_signing_process']
frequency: '*-*-* 12:00:00'

View File

@ -9,16 +9,33 @@
- local_action: command ./versioncheck.py - local_action: command ./versioncheck.py
changed_when: false changed_when: false
- name: Configure build nodes - name: Configure network mainnet bootnodes
become: true
hosts: 'nimbus-mainnet-small'
roles:
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
- name: Deploy mainnet linux beacon nodes
become: true become: true
hosts: hosts:
- stable-metal-01.he-eu-hel1.nimbus.mainnet - stable-metal-01.he-eu-hel1.nimbus.mainnet
roles:
- { role: beacon-node-builds, tags: beacon-node-builds }
- name: Configure network mainnet bootnodes
become: true
hosts: 'nimbus.mainnet'
roles: roles:
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] } - { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] } tasks:
- include_role: name=infra-role-beacon-node-linux
tags: [ infra-role-beacon-node-linux, beacon-node ]
vars:
beacon_node_repo_branch: '{{ node.branch }}'
beacon_node_build_frequency: '{{ node.build_frequency }}'
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
beacon_node_listening_port: '{{ 9000 + port_offset }}'
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
beacon_node_rpc_port: '{{ 9900 + port_offset }}'
with_items:
- { branch: 'stable', build_frequency: '*-*-* 12:00:00' }
- { branch: 'unstable', build_frequency: '*-*-* 14:00:00' }
- { branch: 'testing', build_frequency: '*-*-* 16:00:00' }
loop_control:
loop_var: node
index_var: port_offset

View File

@ -39,6 +39,11 @@
version: a14c9afe0293196f8b3cb45e86abcbaee3078d77 version: a14c9afe0293196f8b3cb45e86abcbaee3078d77
scm: git scm: git
- name: infra-role-beacon-node-linux
src: git@github.com:status-im/infra-role-beacon-node-linux.git
version: e69cebc8bd6bd5bf7f0cc1bb9ebd48a05cb31298
scm: git
- name: infra-role-beacon-node-windows - name: infra-role-beacon-node-windows
src: git@github.com:status-im/infra-role-beacon-node-windows.git src: git@github.com:status-im/infra-role-beacon-node-windows.git
version: 1809e84d48d31cac0b783ed3a2182fdd23e34779 version: 1809e84d48d31cac0b783ed3a2182fdd23e34779