Skip to content

Commit

Permalink
feat: Update validator counts and add Teku nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed May 15, 2024
1 parent 2ed972d commit 9bfb27b
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 30 deletions.
30 changes: 22 additions & 8 deletions ansible/inventories/devnet-0/inventory.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,41 @@ bootnode-1 ansible_host=159.223.150.131 ipv6=2604:a880:400:d0::17ef:c001 cloud=d

[lighthouse_geth]
lighthouse-geth-1 ansible_host=67.205.170.194 ipv6=2604:a880:400:d0::1e42:a001 cloud=digitalocean cloud_region=nyc1 validator_start=0 validator_end=100

[lighthouse_geth_supernode]
lighthouse-geth-supernode-1 ansible_host=147.182.166.135 ipv6=2604:a880:400:d0::170f:6001 cloud=digitalocean cloud_region=nyc1
lighthouse-geth-2 ansible_host=209.97.173.60 ipv6=2400:6180:0:d0::13ea:5001 cloud=digitalocean cloud_region=sgp1 validator_start=100 validator_end=200
lighthouse-geth-3 ansible_host=134.122.96.128 ipv6=2a03:b0c0:1:d0::fa2:b001 cloud=digitalocean cloud_region=lon1 validator_start=200 validator_end=300

[lighthouse_nethermind]
lighthouse-nethermind-1 ansible_host=137.184.156.14 ipv6=2604:a880:400:d0::1e02:9001 cloud=digitalocean cloud_region=nyc1 validator_start=100 validator_end=200
lighthouse-nethermind-1 ansible_host=137.184.156.14 ipv6=2604:a880:400:d0::1e02:9001 cloud=digitalocean cloud_region=nyc1 validator_start=300 validator_end=400
lighthouse-nethermind-2 ansible_host=139.59.97.64 ipv6=2400:6180:0:d0::1246:b001 cloud=digitalocean cloud_region=sgp1 validator_start=400 validator_end=500
lighthouse-nethermind-3 ansible_host=178.62.4.219 ipv6=2a03:b0c0:1:d0::c46:4001 cloud=digitalocean cloud_region=lon1 validator_start=500 validator_end=600

[prysm_geth]
prysm-geth-1 ansible_host=174.138.34.94 ipv6=2604:a880:400:d0::1ec5:8001 cloud=digitalocean cloud_region=nyc1 validator_start=200 validator_end=300
prysm-geth-1 ansible_host=174.138.34.94 ipv6=2604:a880:400:d0::1ec5:8001 cloud=digitalocean cloud_region=nyc1 validator_start=600 validator_end=700
prysm-geth-2 ansible_host=68.183.180.161 ipv6=2400:6180:0:d0::1116:a001 cloud=digitalocean cloud_region=sgp1 validator_start=700 validator_end=800
prysm-geth-3 ansible_host=178.62.5.10 ipv6=2a03:b0c0:1:d0::cb1:4001 cloud=digitalocean cloud_region=lon1 validator_start=800 validator_end=900

[prysm_nethermind]
prysm-nethermind-1 ansible_host=146.190.210.24 ipv6=2604:a880:400:d0::1dfb:a001 cloud=digitalocean cloud_region=nyc1 validator_start=300 validator_end=400
prysm-nethermind-1 ansible_host=146.190.210.24 ipv6=2604:a880:400:d0::1dfb:a001 cloud=digitalocean cloud_region=nyc1 validator_start=900 validator_end=1000
prysm-nethermind-2 ansible_host=143.198.91.14 ipv6=2400:6180:0:d0::140c:b001 cloud=digitalocean cloud_region=sgp1 validator_start=1000 validator_end=1100
prysm-nethermind-3 ansible_host=139.59.184.146 ipv6=2a03:b0c0:1:d0::ded:1001 cloud=digitalocean cloud_region=lon1 validator_start=1100 validator_end=1200

[teku_geth]
teku-geth-1 ansible_host=67.205.176.172 ipv6=2604:a880:400:d0::2358:7001 cloud=digitalocean cloud_region=nyc1 validator_start=1500 validator_end=1800

[teku_nethermind]
teku-nethermind-1 ansible_host=165.227.204.57 ipv6=2604:a880:400:d0::2011:2001 cloud=digitalocean cloud_region=nyc1 validator_start=1200 validator_end=1500


# Consensus client groups

[lighthouse:children]
lighthouse_geth
lighthouse_geth_supernode
lighthouse_nethermind
[lodestar:children]
[nimbus:children]
[teku:children]
teku_geth
teku_nethermind
[prysm:children]
prysm_geth
prysm_nethermind
Expand All @@ -42,11 +54,12 @@ prysm_nethermind
[ethereumjs:children]
[geth:children]
lighthouse_geth
lighthouse_geth_supernode
prysm_geth
teku_geth
[nethermind:children]
lighthouse_nethermind
prysm_nethermind
teku_nethermind
[erigon:children]
[reth:children]

Expand All @@ -55,6 +68,7 @@ prysm_nethermind
[consensus_node:children]
lighthouse
prysm
teku

[execution_node:children]
geth
Expand Down
2 changes: 1 addition & 1 deletion terraform/devnet-0/digitalocean.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ locals {

locals {
digitalocean_default_region = "ams3"
digitalocean_default_size = "c-2"
digitalocean_default_size = "s-4vcpu-8gb-amd"
digitalocean_default_image = "debian-12-x64"
digitalocean_global_tags = [
"Owner:Devops",
Expand Down
3 changes: 2 additions & 1 deletion terraform/devnet-0/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ variable "base_cidr_block" {
locals {
vm_groups = [
var.bootnode,
var.lighthouse_geth_supernode,
var.lighthouse_geth,
var.lighthouse_nethermind,
var.prysm_geth,
var.prysm_nethermind,
var.teku_geth,
var.teku_nethermind,
]
}
48 changes: 28 additions & 20 deletions terraform/devnet-0/nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,59 @@ variable "bootnode" {
}
}

# Supernode
variable "lighthouse_geth_supernode" {
default = {
name = "lighthouse-geth-supernode"
count = 1
validator_start = 0
validator_end = 0
}
}

# Lighthouse
variable "lighthouse_geth" {
default = {
name = "lighthouse-geth"
count = 1
count = 3
validator_start = 0
validator_end = 100
validator_end = 300
}
}

variable "lighthouse_nethermind" {
default = {
name = "lighthouse-nethermind"
count = 1
validator_start = 100
validator_end = 200
count = 3
validator_start = 300
validator_end = 600
}
}

# Prysm
variable "prysm_geth" {
default = {
name = "prysm-geth"
count = 1
validator_start = 200
validator_end = 300
count = 3
validator_start = 600
validator_end = 900
}
}

variable "prysm_nethermind" {
default = {
name = "prysm-nethermind"
count = 3
validator_start = 900
validator_end = 1200
}
}

variable "teku_nethermind" {
default = {
name = "teku-nethermind"
count = 1
validator_start = 300
validator_end = 400
validator_start = 1200
validator_end = 1500
}
}

variable "teku_geth" {
default = {
name = "teku-geth"
count = 1
validator_start = 1500
validator_end = 1800
}
}

0 comments on commit 9bfb27b

Please sign in to comment.