-
Notifications
You must be signed in to change notification settings - Fork 35
Set data and tablet node resources in config #619
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
koct9i
commented
Dec 8, 2025
- API: describe component and job resoruces control
- Set data and tablet node available CPU in config
|
Merge after rebase on top #599 |
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.
Pull request overview
This PR improves resource configuration for YTsaurus components by updating API documentation and implementing proper CPU resource limits for data and tablet nodes.
- Standardized resource field descriptions across CRDs to clarify that "Resources dedicated for component" with capacity defined by requests, or limits for zero requests
- Refactored data and tablet node configuration to extract and set CPU resource limits from Kubernetes resource specifications
- Updated test canonical data to reflect the new CPU values (changed from 0.000000 to 20.000000)
Reviewed changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
api/v1/ytsaurus_types.go |
Added documentation comments clarifying how resource capacity is determined for components and job resources |
docs/api.md |
Updated resource field descriptions to be more concise and added capacity definition details |
pkg/ytconfig/node.go |
Refactored getDataNodeResourceLimits and getTabletNodeServerCarcass to properly extract and set CPU resources using the getResourceQuantity helper function |
config/crd/bases/*.yaml |
Updated resource field descriptions to match the new standardized text |
ytop-chart/templates/crds/*.yaml |
Updated resource field descriptions to match the new standardized text |
pkg/ytconfig/canondata/**/test.canondata |
Updated test expectations to reflect CPU values changing from 0.000000 to 20.000000 for data and tablet nodes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7b3eccd to
98f3f94
Compare
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.
Pull request overview
Copilot reviewed 26 out of 26 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Konstantin Khlebnikov <[email protected]>
98f3f94 to
aabe1a2
Compare
Signed-off-by: Konstantin Khlebnikov <[email protected]>
aabe1a2 to
fc950d8
Compare
qurname2
left a comment
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.