feat: add min_replicas=1 for dev ACA environments

Open
#126 0 comments 0 reactions 0 assignees View on GitHub

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

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

enhancement

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure-Samples/tutor

All issues in Azure-Samples/tutor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.