-
Notifications
You must be signed in to change notification settings - Fork 68
PATCH RELEASE Increase API max task to 20 + limit max healthy to 120% #3606
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
Conversation
Ref. metriport/metriport-internal#799 Signed-off-by: Rafael Leite <2132564+leite08@users.noreply.github.com>
WalkthroughThe changes modify the ECS service configuration in the API service by updating task limits and scaling parameters. In production, the maximum task count increases from 16 to 20. The service creation function now includes two additional properties, Changes
Sequence Diagram(s)sequenceDiagram
participant Env as Environment
participant API as APIService
participant ECS as ECS Configuration
Env->>API: Request environment-specific settings
API-->>Env: Return configuration (maxTaskCount = 20 for prod)
API->>API: Prepare service creation with new settings
note right of API: Add health check properties:
note right of API: - maxHealthyPercent: 120<br>- minHealthyPercent: 80
API->>ECS: Create API service with CPU scaling (targetUtilizationPercent = 60)
ECS-->>API: Confirm service creation with updated configuration
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.ts`: - Use the Onion Pattern to organize a package's code in layers - Try to use immutable code and avoid sharing state across different functions, objects, and systems - Try...
🔇 Additional comments (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@@ -488,7 +490,7 @@ export function createAPIService({ | |||
maxCapacity: maxTaskCount, | |||
}); | |||
scaling.scaleOnCpuUtilization("autoscale_cpu", { | |||
targetUtilizationPercent: 80, | |||
targetUtilizationPercent: 60, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prob won't make a diff, we prob need to get this down to 20-25% so auto scaling happens, as this is based on the cluster avg... but taking one step at a time
Ref. metriport/metriport-internal#799
Dependencies
Description
Increase API max task to 20 + limit max healthy to 120% - context
Testing
none
Release Plan
master
Summary by CodeRabbit