Skip to content

Commit 1a66a1f

Browse files
committed
adjust node group to always have 1 node at market price, health check to use curl now
Signed-off-by: Irving Popovetsky <irving@popovetsky.com>
1 parent 6797ba2 commit 1a66a1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

terraform/asg.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module "autoscaling" {
2121
# Mixed Instances Policy for better availability
2222
mixed_instances_policy = {
2323
instances_distribution = {
24-
on_demand_base_capacity = 0
24+
on_demand_base_capacity = 1
2525
on_demand_percentage_above_base_capacity = 0
2626
spot_allocation_strategy = "capacity-optimized"
2727
}

terraform/python_backend/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ resource "aws_ecs_task_definition" "python_backend" {
5454
}
5555

5656
healthCheck = {
57-
command = ["CMD-SHELL", "wget -q -O /dev/null http://localhost:8000/healthz"]
57+
command = ["CMD-SHELL", "curl -f -s -o /dev/null http://localhost:8000/healthz"]
5858
interval = 30
5959
timeout = 5
6060
retries = 3

0 commit comments

Comments
 (0)