Skip to content

Commit 041e3bb

Browse files
authored
Merge pull request #527 from SmartColumbusOS/big-nodes
new worker numbers
2 parents 19e1a10 + b92a12e commit 041e3bb

File tree

4 files changed

+31
-7
lines changed

4 files changed

+31
-7
lines changed

features/eks-cluster.hcl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ module "eks-cluster" {
5353
{
5454
# so we don't have to go through a roll in the future - set to zeros and something inconsequential until we figure out what we need
5555
name = "Memory-Optimized-Workers"
56-
asg_min_size = "0"
57-
asg_max_size = "0"
58-
instance_type = "r5a.large"
56+
asg_min_size = var.min_num_of_memory_workers
57+
asg_max_size = var.max_num_of_memory_workers
58+
instance_type = "m5.4xlarge"
5959
key_name = aws_key_pair.cloud_key.key_name
6060
kubelet_extra_args = "--node-labels=scos.run.memory-optimized=true ${var.kubelet_security_args}"
6161
additional_security_group_ids = aws_security_group.private_workers.id
@@ -569,6 +569,16 @@ variable "max_num_of_kafka_workers" {
569569
default = 5
570570
}
571571

572+
variable "min_num_of_memory_workers" {
573+
description = "Minimum number of high memory workers to be created on eks cluster"
574+
default = 0
575+
}
576+
577+
variable "max_num_of_memory_workers" {
578+
description = "Maximum number of high memory workers to be created on eks cluster"
579+
default = 0
580+
}
581+
572582
variable "kubelet_security_args" {
573583
description = "A set of additional kubelet configurations to meet security standards. WARNING: Invalid command line parameters here will cause all nodes deployed with these settings to never become ready. This kills the cluster."
574584
default = "--read-only-port=0 --event-qps=0"

variables/dev.tfvars

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@ key_pair_name = "eks_key_dev_2020_03_23"
3838

3939
force_destroy_s3_bucket = false
4040

41-
andi_public_sample_datasets = "andi-public-sample-datasets"
41+
andi_public_sample_datasets = "andi-public-sample-datasets"
42+
43+
max_num_of_workers = 8
44+
min_num_of_workers = 6
45+
46+
max_num_of_memory_workers = 1
47+
min_num_of_memory_workers = 1

variables/prod.tfvars

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ key_pair_public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC5yJ//U9QiuN3T7C2Zo
3838

3939
key_pair_name = "eks_key_prod_2020_03_23"
4040

41-
max_num_of_workers = 25
41+
max_num_of_workers = 16
42+
min_num_of_workers = 16
4243

43-
min_num_of_workers = 25
44+
max_num_of_memory_workers = 4
45+
min_num_of_memory_workers = 4

variables/staging.tfvars

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@ key_pair_name = "eks_key_staging_2020_03_23"
3636

3737
force_destroy_s3_bucket = false
3838

39-
andi_public_sample_datasets = "andi-public-sample-datasets"
39+
andi_public_sample_datasets = "andi-public-sample-datasets"
40+
41+
max_num_of_workers = 8
42+
min_num_of_workers = 6
43+
44+
max_num_of_memory_workers = 1
45+
min_num_of_memory_workers = 1

0 commit comments

Comments
 (0)