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

Feature Request: Option to Specify Platform/Architecture in DevPod Settings/CLI #1532

Open
anshuman852 opened this issue Jan 9, 2025 · 2 comments

Comments

@anshuman852
Copy link

anshuman852 commented Jan 9, 2025

Devpod Version : 0.6.7
Provider: Kubernetes
Flavour: Azure Kubernetes Service

Is your feature request related to a problem?
Thank you for the amazing product and all the hard work that goes into it! I’ve encountered an issue related to resource scheduling when using devpod up. Currently, the workflow starts with an architecture detection pod to determine the node’s platform/architecture (e.g., x86, arm64). This pod then creates the actual devpod, which must be scheduled on the same node to avoid architecture mismatches.

The issue arises because the architecture detection pod requires minimal resources and can be scheduled on smaller nodes (e.g., 2 cores, 8GB RAM). However, if the devpod requests larger resources (e.g., 16GB RAM), it cannot be scheduled on the same node, leading to scheduling failures.

Which solution do you suggest?
I propose adding an option to specify the desired platform/architecture directly via DevPod settings or the CLI. This would eliminate the need to run the architecture detection pod entirely, simplifying the process and avoiding scheduling conflicts.

Which alternative solutions exist?
An alternative could involve aligning the resource requests/limits of the architecture detection pod with those of the devpod, ensuring they are scheduled on compatible nodes. However, this approach increases resource requirements temporarily and might not be ideal.

Additional context
Allowing users to pass the platform/architecture directly would streamline workflows and provide more control over the scheduling process, reducing unnecessary pod creation and resource usage.

Thank you again for the fantastic product and for considering this request! Looking forward to your thoughts on implementing this feature.

@anshuman852
Copy link
Author

I have created a copy on loft-sh/devpod-provider-kubernetes#65

@pascalbreuninger
Copy link
Member

Hey @anshuman852, thanks for this suggestion. It makes a lot of sense to me, specially for smaller node pools.
Specifying the architecture in the kubernetes provider options seems to be the most straight forward way to implement and easiest to use

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

No branches or pull requests

2 participants