Skip to content

Conversation

@eugbyte
Copy link
Owner

@eugbyte eugbyte commented Oct 9, 2025

No description provided.

@eugbyte eugbyte marked this pull request as ready for review October 9, 2025 08:19
@eugbyte eugbyte requested a review from Copilot October 9, 2025 08:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses database cold start issues by modifying the container app configuration to maintain at least one running replica instead of scaling to zero.

  • Changed minimum replicas from 0 to 1 to prevent cold starts
  • Updated comment to reflect the new scaling strategy

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


# Minimum scaling for cost optimization
min_replicas = 0 # Scale to zero when no traffic (cheapest option)
min_replicas = 1 # Reduce cold start
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The comment should be more descriptive about the trade-off being made. Consider: '# Keep 1 replica running to avoid cold starts (increases cost but improves response time)'

Suggested change
min_replicas = 1 # Reduce cold start
min_replicas = 1 # Keep 1 replica running to avoid cold starts (increases cost but improves response time)

Copilot uses AI. Check for mistakes.
@eugbyte eugbyte merged commit 95ff85d into main Oct 9, 2025
3 checks passed
@eugbyte eugbyte deleted the fix/db-cold-start branch October 9, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants