-
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: license-api replicas too high due to CPU request being too low #15956
Conversation
WalkthroughThe changes involve modifications to the resource allocation settings for the Changes
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15956 +/- ##
=======================================
Coverage 36.84% 36.84%
=======================================
Files 6709 6709
Lines 137553 137553
Branches 39102 39102
=======================================
Hits 50676 50676
Misses 86877 86877
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Sentry.
|
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)
charts/islandis/values.staging.yaml (1)
1483-1483
: Approve increasing CPU request. Monitor resource usage post-change.Increasing the CPU request from
15m
to50m
for thelicense-api
service is approved as it may improve performance under load.However, it's important to closely monitor the service's CPU utilization and key performance metrics (latency, error rates, etc.) after rolling out this change. This will help confirm if the new CPU request is appropriate and the extra resources are being effectively utilized without wastage. Make adjustments if needed based on the monitoring data.
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (4)
- apps/services/license-api/infra/license-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/services/license-api/infra/license-api.ts (2)
Pattern
apps/services/**/*
: "Confirm that the code adheres to the following:
- NestJS architecture, including modules, services, and controllers.
- Dependency injection patterns and service encapsulation.
- Integration and unit testing coverage and practices."
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)
apps/services/license-api/infra/license-api.ts (1)
16-16
: LGTM! The change optimizes resource allocation.The increase in CPU request from
15m
to50m
is a positive change that aims to enhance the performance and responsiveness of thelicense-api
service by allocating more CPU resources. This change aligns with the overall objective of the pull request to address the issue of having too many replicas due to low CPU request.The change adheres to the NestJS architecture and dependency injection patterns, and it does not introduce any new warnings or errors. Additionally, the change does not require any updates to the tests or documentation.
Overall, this change contributes to better resource management and optimization of the
license-api
service.charts/islandis/values.prod.yaml (1)
1605-1605
: Approve the CPU request increase forlicense-api
, but verify the reasoning and impact.The CPU request for the
license-api
has been substantially increased from15m
to50m
, while the memory request remains unchanged.This gives the service higher CPU scheduling priority and access when needed, which may be warranted based on increased load or utilization.
As long as there is sufficient cluster CPU capacity, this should not adversely starve other services. However, given the magnitude of the relative increase, please verify:
- The reasoning behind this change, such as increased traffic, slow response times, high CPU utilization, etc.
- The impact on cluster CPU utilization and headroom after this change.
charts/islandis/values.dev.yaml (1)
1738-1738
: Approve increasing CPU request, but verify system impact.Increasing the CPU request from
15m
to50m
can help improve the performance of thelicense-api
service.However, ensure that this change is thoroughly tested to confirm that:
- The
license-api
service behaves as expected with the increased CPU allocation.- There are no adverse effects on other parts of the system that interact with this service.
Datadog ReportAll test runs ✅ 11 Total Test Services: 0 Failed, 10 Passed Test ServicesThis report shows up to 10 services
|
…15956) * fix: license-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
license-api
service from 15m to 50m across all environments, enhancing performance and responsiveness.Bug Fixes
license-api
.