Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IT-4010: Increase minimum number of tasks #4

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading