deploy new layout with Madella nodes on each host

See: https://github.com/status-im/infra-nimbus/issues/23

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-11-05 13:51:42 +01:00
parent b7cc6697e8
commit 652c7129fa
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 26 additions and 50 deletions

View File

@ -1,18 +0,0 @@
---
# TRACE needs more disk space
bootstrap__rsyslog_docker_logs_path: '/docker/log'
# The volume of logs is too big and Nimbus team doesn't use their own cluster
bootstrap__rsyslog_docker_logstash_send: false
# lower local retention to save space
bootstrap__logrotate_frequency: 'hourly'
bootstrap__logrotate_count: 3
bootstrap__logrotate_mbytes: 200
nimbus_stats_domain: nimbus-test-stats.status.im
beacon_node_log_level: DEBUG
# resource limits
beacon_node_mem_limit: '{{ (ansible_memtotal_mb * 0.60) | int }}'
beacon_node_mem_reserve: '{{ (ansible_memtotal_mb * 0.4) | int }}'

View File

@ -9,7 +9,20 @@ bootstrap__logrotate_frequency: 'hourly'
bootstrap__logrotate_count: 3 bootstrap__logrotate_count: 3
bootstrap__logrotate_mbytes: 500 bootstrap__logrotate_mbytes: 500
# Nimbus ------------------------------
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network }}-{{ beacon_node_repo_branch }}'
beacon_node_log_level: DEBUG beacon_node_log_level: DEBUG
beacon_node_timer_rebuild: true
# entwork
beacon_node_network: 'testnet3'
beacon_node_shared_testnet: 'medalla'
# ports
beacon_node_rpc_port: '11000'
beacon_node_metrics_port : '9300'
beacon_node_listening_port: '9100'
beacon_node_discovery_port: '9100'
# resource limits # resource limits
beacon_node_mem_limit: '{{ (ansible_memtotal_mb * 0.60) | int }}' beacon_node_mem_limit: '{{ (ansible_memtotal_mb * 0.60) | int }}'

View File

@ -7,45 +7,26 @@
that: 'ansible_version.full is version_compare("2.8", ">=")' that: 'ansible_version.full is version_compare("2.8", ">=")'
msg: 'Your Ansible version is lower than 2.8. Upgrade it.' msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
- name: Configure Nimbus master
hosts:
- nimbus-master
roles:
- { role: origin-certs, tags: [ origin-certs ] }
#- { role: nimbus-stats, tags: nimbus-stats }
- name: Configure shared testnet3 - name: Configure shared testnet3
hosts: hosts: nimbus.test[0:3]
- nimbus-master
- nimbus-slaves[0:4]
vars: vars:
beacon_node_network: 'testnet3' beacon_node_repo_branch: 'master'
beacon_node_shared_testnet: 'medalla'
beacon_node_rpc_port: '11000'
beacon_node_metrics_port : '9300'
beacon_node_listening_port: '9100'
beacon_node_discovery_port: '9100'
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network }}'
beacon_node_timer_rebuild: true
cont_restart: true
roles: roles:
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] } - { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
- { role: network-debug-script, tags: [ network-debug-script ] } - { role: network-debug-script, tags: [ network-debug-script ] }
- name: Configure seared testnet2 - name: Configure shared testnet2
hosts: hosts: nimbus.test[4:7]
- nimbus-slaves[5:8]
tags: beacon-node
vars: vars:
beacon_node_network: 'testnet2' beacon_node_repo_branch: 'develop'
beacon_node_shared_testnet: 'altona' roles:
beacon_node_rpc_port: '11000' - { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
beacon_node_metrics_port : '9300' - { role: network-debug-script, tags: [ network-debug-script ] }
beacon_node_listening_port: '9100'
beacon_node_discovery_port: '9100' - name: Configure shared testnet2
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network }}' hosts: nimbus.test[8:9]
beacon_node_timer_rebuild: true vars:
cont_restart: true beacon_node_repo_branch: 'nim-libp2p-auto-bump'
roles: roles:
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] } - { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
- { role: network-debug-script, tags: [ network-debug-script ] } - { role: network-debug-script, tags: [ network-debug-script ] }