Skip to content

Commit 4231381

Browse files
authored
Merge pull request #51 from worldcoin/on_demand_percentage_above_base_capacity
INFRA-5551 Add on_demand_percentage_above_base_capacity to half spot/on-demand
2 parents f07b140 + 3de6069 commit 4231381

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

node-groups-enclave-tracks.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ resource "aws_autoscaling_group" "enclave_track" {
9090

9191
mixed_instances_policy {
9292
instances_distribution {
93-
on_demand_base_capacity = each.value.track_value.autoscaling_group.size
93+
on_demand_base_capacity = each.value.track_value.autoscaling_group.size
94+
on_demand_percentage_above_base_capacity = var.on_demand_percentage_above_base_capacity
9495
}
9596

9697
launch_template {

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,3 +714,9 @@ variable "aws_autoscaling_group_enabled" {
714714
type = bool
715715
default = true
716716
}
717+
718+
variable "on_demand_percentage_above_base_capacity" {
719+
description = "The percentage of on-demand instances to use above the base capacity"
720+
type = number
721+
default = 50
722+
}

0 commit comments

Comments
 (0)