Skip to content

Commit

Permalink
Merge pull request #4 from brucehoff/IT-4010
Browse files Browse the repository at this point in the history
IT-4010: Increase minimum number of tasks
  • Loading branch information
brucehoff authored Nov 13, 2024
2 parents 9c74824 + ac3e402 commit 422b694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker_fargate/docker_fargate_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(self, scope: Construct, context: str, env: dict, vpc: ec2.Vpc, **kw
f'{stack_prefix}-Service',
cluster=cluster, # Required
cpu=256, # Default is 256
desired_count=1, # Number of copies of the 'task' (i.e. the app') running behind the ALB
desired_count=2, # Number of copies of the 'task' (i.e. the app') running behind the ALB
circuit_breaker=ecs.DeploymentCircuitBreaker(rollback=True), # Enable rollback on deployment failure
task_image_options=task_image_options,
memory_limit_mib=1024, # Default is 512
Expand All @@ -147,7 +147,7 @@ def __init__(self, scope: Construct, context: str, env: dict, vpc: ec2.Vpc, **kw
)

scalable_target = load_balanced_fargate_service.service.auto_scale_task_count(
min_capacity=1, # Minimum capacity to scale to. Default: 1
min_capacity=2, # Minimum capacity to scale to. Default: 1
max_capacity=4 # Maximum capacity to scale to.
)

Expand Down

0 comments on commit 422b694

Please sign in to comment.