deploy 5 libp2p.test hosts
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
e0ddfa98fd
commit
08b6fe9050
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
# Add volume for Nimbus data
|
||||
bootstrap__extra_volume_path: '/docker'
|
||||
|
||||
# TRACE needs more disk space
|
||||
bootstrap__rsyslog_docker_logs_path: '/docker/log'
|
||||
# lower local retention to save space
|
||||
bootstrap__logrotate_frequency: 'hourly'
|
||||
bootstrap__logrotate_count: 3
|
||||
bootstrap__logrotate_mbytes: 500
|
||||
|
||||
# temporary
|
||||
beacon_node_log_level: TRACE
|
||||
# resource limits
|
||||
beacon_node_cpu_limit: 0.25
|
||||
beacon_node_mem_limit: '{{ (ansible_memtotal_mb * 0.20) | int }}'
|
||||
beacon_node_cpu_reserve: 0.20
|
||||
beacon_node_mem_reserve: '{{ (ansible_memtotal_mb * 0.1) | int }}'
|
|
@ -3,13 +3,18 @@
|
|||
[all]
|
||||
master-01.aws-eu-central-1a.nimbus.test hostname=master-01.aws-eu-central-1a.nimbus.test ansible_host=18.185.109.239 env=nimbus stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=master-01.aws-eu-central-1a.nimbus.test.statusim.net
|
||||
node-01.aws-eu-central-1a.dash.nimbus hostname=node-01.aws-eu-central-1a.dash.nimbus ansible_host=3.121.189.153 env=dash stage=nimbus data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-01.aws-eu-central-1a.dash.nimbus.statusim.net
|
||||
node-01.aws-eu-central-1a.libp2p.test hostname=node-01.aws-eu-central-1a.libp2p.test ansible_host=52.28.200.26 env=libp2p stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-01.aws-eu-central-1a.libp2p.test.statusim.net
|
||||
node-01.aws-eu-central-1a.log-store.nimbus hostname=node-01.aws-eu-central-1a.log-store.nimbus ansible_host=3.125.8.32 env=log-store stage=nimbus data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-01.aws-eu-central-1a.log-store.nimbus.statusim.net
|
||||
node-01.aws-eu-central-1a.nimbus.test hostname=node-01.aws-eu-central-1a.nimbus.test ansible_host=3.126.82.94 env=nimbus stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-01.aws-eu-central-1a.nimbus.test.statusim.net
|
||||
node-02.aws-eu-central-1a.libp2p.test hostname=node-02.aws-eu-central-1a.libp2p.test ansible_host=3.122.235.74 env=libp2p stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-02.aws-eu-central-1a.libp2p.test.statusim.net
|
||||
node-02.aws-eu-central-1a.log-store.nimbus hostname=node-02.aws-eu-central-1a.log-store.nimbus ansible_host=18.195.148.202 env=log-store stage=nimbus data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-02.aws-eu-central-1a.log-store.nimbus.statusim.net
|
||||
node-02.aws-eu-central-1a.nimbus.test hostname=node-02.aws-eu-central-1a.nimbus.test ansible_host=54.93.83.30 env=nimbus stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-02.aws-eu-central-1a.nimbus.test.statusim.net
|
||||
node-03.aws-eu-central-1a.libp2p.test hostname=node-03.aws-eu-central-1a.libp2p.test ansible_host=52.59.241.49 env=libp2p stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-03.aws-eu-central-1a.libp2p.test.statusim.net
|
||||
node-03.aws-eu-central-1a.log-store.nimbus hostname=node-03.aws-eu-central-1a.log-store.nimbus ansible_host=3.125.49.40 env=log-store stage=nimbus data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-03.aws-eu-central-1a.log-store.nimbus.statusim.net
|
||||
node-03.aws-eu-central-1a.nimbus.test hostname=node-03.aws-eu-central-1a.nimbus.test ansible_host=3.123.41.197 env=nimbus stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-03.aws-eu-central-1a.nimbus.test.statusim.net
|
||||
node-04.aws-eu-central-1a.libp2p.test hostname=node-04.aws-eu-central-1a.libp2p.test ansible_host=3.126.116.135 env=libp2p stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-04.aws-eu-central-1a.libp2p.test.statusim.net
|
||||
node-04.aws-eu-central-1a.nimbus.test hostname=node-04.aws-eu-central-1a.nimbus.test ansible_host=52.59.244.94 env=nimbus stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-04.aws-eu-central-1a.nimbus.test.statusim.net
|
||||
node-05.aws-eu-central-1a.libp2p.test hostname=node-05.aws-eu-central-1a.libp2p.test ansible_host=52.59.234.115 env=libp2p stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-05.aws-eu-central-1a.libp2p.test.statusim.net
|
||||
node-05.aws-eu-central-1a.nimbus.test hostname=node-05.aws-eu-central-1a.nimbus.test ansible_host=54.93.37.91 env=nimbus stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-05.aws-eu-central-1a.nimbus.test.statusim.net
|
||||
node-06.aws-eu-central-1a.nimbus.test hostname=node-06.aws-eu-central-1a.nimbus.test ansible_host=54.93.165.166 env=nimbus stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-06.aws-eu-central-1a.nimbus.test.statusim.net
|
||||
node-07.aws-eu-central-1a.nimbus.test hostname=node-07.aws-eu-central-1a.nimbus.test ansible_host=18.194.41.51 env=nimbus stage=test data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-07.aws-eu-central-1a.nimbus.test.statusim.net
|
||||
|
@ -19,13 +24,18 @@ node-09.aws-eu-central-1a.nimbus.test hostname=node-09.aws-eu-central-1a.nimbus.
|
|||
[aws-eu-central-1a]
|
||||
master-01.aws-eu-central-1a.nimbus.test
|
||||
node-01.aws-eu-central-1a.dash.nimbus
|
||||
node-01.aws-eu-central-1a.libp2p.test
|
||||
node-01.aws-eu-central-1a.log-store.nimbus
|
||||
node-01.aws-eu-central-1a.nimbus.test
|
||||
node-02.aws-eu-central-1a.libp2p.test
|
||||
node-02.aws-eu-central-1a.log-store.nimbus
|
||||
node-02.aws-eu-central-1a.nimbus.test
|
||||
node-03.aws-eu-central-1a.libp2p.test
|
||||
node-03.aws-eu-central-1a.log-store.nimbus
|
||||
node-03.aws-eu-central-1a.nimbus.test
|
||||
node-04.aws-eu-central-1a.libp2p.test
|
||||
node-04.aws-eu-central-1a.nimbus.test
|
||||
node-05.aws-eu-central-1a.libp2p.test
|
||||
node-05.aws-eu-central-1a.nimbus.test
|
||||
node-06.aws-eu-central-1a.nimbus.test
|
||||
node-07.aws-eu-central-1a.nimbus.test
|
||||
|
@ -35,6 +45,20 @@ node-09.aws-eu-central-1a.nimbus.test
|
|||
[dash.nimbus]
|
||||
node-01.aws-eu-central-1a.dash.nimbus
|
||||
|
||||
[libp2p-interop]
|
||||
node-01.aws-eu-central-1a.libp2p.test
|
||||
node-02.aws-eu-central-1a.libp2p.test
|
||||
node-03.aws-eu-central-1a.libp2p.test
|
||||
node-04.aws-eu-central-1a.libp2p.test
|
||||
node-05.aws-eu-central-1a.libp2p.test
|
||||
|
||||
[libp2p.test]
|
||||
node-01.aws-eu-central-1a.libp2p.test
|
||||
node-02.aws-eu-central-1a.libp2p.test
|
||||
node-03.aws-eu-central-1a.libp2p.test
|
||||
node-04.aws-eu-central-1a.libp2p.test
|
||||
node-05.aws-eu-central-1a.libp2p.test
|
||||
|
||||
[log-dash]
|
||||
node-01.aws-eu-central-1a.dash.nimbus
|
||||
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
- name: Pre-playbook checks
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- name: 'Verify Ansible version is 2.8 or newer'
|
||||
assert:
|
||||
that: 'ansible_version.full is version_compare("2.8", ">=")'
|
||||
msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
|
||||
|
||||
- name: Configure Nimbus cluster
|
||||
hosts:
|
||||
- libp2p-interop
|
||||
tags: beacon-node
|
||||
roles:
|
||||
- { role: swap-file, tags: swap-file }
|
||||
tasks:
|
||||
- include_role:
|
||||
name: infra-role-beacon-node
|
||||
tags: beacon-node
|
||||
with_sequence: count=3
|
||||
vars:
|
||||
beacon_node_network: 'testnet0'
|
||||
beacon_node_rpc_port: '{{ 10000 - 1 + item|int }}'
|
||||
beacon_node_metrics_port : '{{ 9200 - 1 + item|int }}'
|
||||
beacon_node_listening_port: '{{ 9000 - 1 + item|int }}'
|
||||
beacon_node_discovery_port: '{{ 9000 - 1 + item|int }}'
|
||||
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network}}-{{ item }}'
|
|
@ -0,0 +1,25 @@
|
|||
/* HOSTS ----------------------------------------*/
|
||||
|
||||
module "libp2p_interop" {
|
||||
source = "github.com/status-im/infra-tf-amazon-web-services"
|
||||
|
||||
name = "node"
|
||||
env = "libp2p"
|
||||
group = "libp2p-interop"
|
||||
domain = var.domain
|
||||
|
||||
/* Scaling */
|
||||
instance_type = "t3a.medium"
|
||||
data_vol_size = 30
|
||||
host_count = 5
|
||||
|
||||
/* Firewall */
|
||||
open_udp_ports = local.nimbus_ports
|
||||
open_tcp_ports = local.nimbus_ports
|
||||
|
||||
/* Plumbing */
|
||||
vpc_id = module.nimbus_network.vpc.id
|
||||
subnet_id = module.nimbus_network.subnets[0].id
|
||||
secgroup_id = module.nimbus_network.secgroup.id
|
||||
keypair_name = aws_key_pair.jakubgs.key_name
|
||||
}
|
Loading…
Reference in New Issue