-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix: application-system-api replicas too high due to CPU request being too low #15958
Conversation
WalkthroughThe pull request introduces modifications to the resource allocation settings for the Changes
Possibly related PRs
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (3)
Files skipped from review as they are similar to previous changes (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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
Documentation and Community
|
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.
LGTM
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.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
apps/application-system/api/infra/application-system-api.ts (1)
116-116
: Approve the CPU request increase for the worker setup.The change looks good! Increasing the CPU request from '100m' to '150m' could potentially enhance the worker's performance or help it handle increased load.
Are there any specific reasons, such as performance metrics or anticipated load, that led to this resource adjustment? Providing this context could help reviewers better understand the motivation behind the change.
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (4)
- apps/application-system/api/infra/application-system-api.ts (1 hunks)
- charts/islandis/values.dev.yaml (1 hunks)
- charts/islandis/values.prod.yaml (1 hunks)
- charts/islandis/values.staging.yaml (1 hunks)
Additional context used
Path-based instructions (1)
apps/application-system/api/infra/application-system-api.ts (1)
Pattern
apps/**/*
: "Confirm that the code adheres to the following:
- NextJS best practices, including file structure, API routes, and static generation methods.
- Efficient state management and server-side rendering techniques.
- Optimal use of TypeScript for component and utility type safety."
Additional comments not posted (3)
charts/islandis/values.staging.yaml (1)
883-883
: LGTM, but verify the need for increased CPU request.The change to increase the CPU request from
100m
to150m
for theapplication-system-api-worker
is approved.However, it's recommended to verify if this increase is actually needed by analyzing the worker's CPU utilization metrics. Overallocating CPU resources unnecessarily can lead to inefficient resource utilization across the cluster. Adjust the request based on the actual requirements.
charts/islandis/values.prod.yaml (1)
875-875
: Approve the CPU request increase, but verify the utilization and scaling.The CPU request for
application-system-api-worker
has been increased from100m
to150m
, which can help improve performance by allocating more CPU resources to the worker.However, it's important to verify that this change aligns with the current CPU utilization and auto-scaling configuration to ensure it's appropriate and won't lead to resource wastage or insufficient resources during peak loads.
Run the following script to verify the CPU utilization and scaling configuration:
charts/islandis/values.dev.yaml (1)
885-886
: Increase in CPU request looks good, but please verify if it's needed.The CPU request for the
application-system-api-worker
is being increased from 100m to 150m.This change can potentially improve the worker's performance by allocating more CPU resources to it. However, it's important to verify if this increase aligns with the actual CPU utilization observed for this worker.
Please confirm if increasing the CPU request to 150m is justified based on the worker's CPU utilization metrics. If the worker is not CPU bound and the utilization is well below 100m, then increasing the request may not provide benefits and will result in overallocation of cluster resources.
To verify, please run the following commands:
Review the CPU utilization percentage and compare it against the current 100m request. If the utilization is constantly above 80%, then increasing to 150m is justified. However, if it's well below 80%, please reconsider this change to avoid overallocation.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15958 +/- ##
==========================================
- Coverage 36.84% 36.84% -0.01%
==========================================
Files 6709 6709
Lines 137552 137554 +2
Branches 39101 39103 +2
==========================================
Hits 50676 50676
- Misses 86876 86878 +2
Flags with carried forward coverage won't be shown. Click here to find out more. see 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
…g too low (#15958) * fix: application-system-api replicas too high due to CPU request being too low * chore: charts update dirty files --------- Co-authored-by: andes-it <builders@andes.is> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
...
Attach a link to issue if relevant
What
Specify what you're trying to achieve
Why
Specify why you need to achieve this
Screenshots / Gifs
Attach Screenshots / Gifs to help reviewers understand the scope of the pull request
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores