feat: add min_replicas=1 for dev ACA environments
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- azure, terraform
- Domain
- cloud, infrastructure
Research direction
Start in infra/terraform/main.tf around the ACA resource definition at line ~196, then inspect the existing environment-specific variable defaults and ignore_changes settings. Done means min_replicas is configurable per environment, template[0].min_replicas is no longer ignored, and dev and production use the requested value of 1.
Written by the indexing model from the issue text.
Description
Context
ACA apps with min_replicas=0 scale to zero between deploys. Cold start can serve stale placeholder revisions, causing flaky health checks and delayed response on first request.
Recommendation (AzureContainerAppsSpecialist)
- Set min_replicas=1 for dev environments (cost: ~.03/hr per app x 8 = negligible)
- Remove \ emplate[0].min_replicas\ from \ignore_changes\ in \infra/terraform/main.tf\
- Add a \min_replicas\ variable with per-environment defaults
Impact
- Eliminates cold-start race condition
- Makes post-deploy health checks reliable
- No production impact (prod should also be min_replicas=1)
Files
- \infra/terraform/main.tf\ — ACA resource definition (line ~196)
- Dominant language
- Python
- Stars
- 17
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure-Samples/tutor
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Azure-Samples/tutor#230 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Azure-Samples/tutor#229 · 1 comment ·
-
frontend priority:P2 type:tech-debt
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure-Samples/tutor#224 · 3 comments ·
-
component:ci-cd frontend priority:P1 type:tech-debt
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure-Samples/tutor#223 · 2 comments ·
-
frontend priority:P1 type:feature
Difficulty 5/5 Over a week Newbie friendliness 30/100
Azure-Samples/tutor#222 · 1 comment ·
All issues in Azure-Samples/tutor
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100