Skip to content
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

🐛 Fixed issue with spot instance on nodepool #85

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

abdheshnayak
Copy link
Member

No description provided.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

PR Type: Enhancement

PR Summary: This pull request introduces enhancements to the nodepool handling logic, specifically targeting the support for spot instances and GPU-enabled node pools. It refactors the logic to differentiate between GPU and CPU node configurations based on whether Nvidia GPUs are enabled. Additionally, it introduces a new utility function to find node plans based on specific criteria, such as CPU and memory specifications, and applies these enhancements to improve the handling of AWS spot instances in node pools.

Decision: Comment

📝 Type: 'Enhancement' - not supported yet.
  • Sourcery currently only approves 'Typo fix' PRs.
✅ Issue addressed: this change correctly addresses the issue or implements the desired feature.
No details provided.
✅ Small diff: the diff is small enough to approve with confidence.
No details provided.

General suggestions:

  • Ensure that the drastic reduction in memory specifications (memMax and memMin) for all node plans is intentional and aligns with the desired configurations. Such significant changes could impact application performance if not carefully considered.
  • Review the new utility function findNodePlanWithSpec for potential edge cases or scenarios where the specified criteria might not match any existing node plans, and ensure there's appropriate handling for such cases.
  • Consider adding more detailed comments or documentation around the changes, especially the logic that differentiates between GPU and CPU node configurations, to aid future maintainability.
  • Verify that the removal of certain imports and components (e.g., TextInput, IdSelector, Chips) from handle-nodepool.tsx and other files does not affect other functionalities within the application.

Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨

Share Sourcery

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

memMin: 8192,
cpuMax: 2,
cpuMin: 2,
memMax: 2,
Copy link

Choose a reason for hiding this comment

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

question (llm): The drastic reduction in memMax and memMin values for all node plans seems unusual. Ensure that this change aligns with the intended memory specifications for these node types, as it could significantly impact application performance.

@abdheshnayak abdheshnayak merged commit 10a1fc3 into release-v1.0.2 Feb 9, 2024
5 checks passed
@abdheshnayak abdheshnayak deleted the fix/np-spot-instance branch February 9, 2024 10:30
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.

1 participant