-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] Defining and consuming custom resources #1081
Comments
This seems like a pretty useful feature. Is it on the roadmap or did something better come along? |
Are there any plans to implement this or something similar? I have a use case where I am connecting hardware resources to individual nodes, and I would need to expose that info at the scheduler level to correctly place tasks. |
Device Plugins are planned but still in an internal design phase, so I don't want to make any promises regarding the timeline. Posting detailed use cases and implementation ideas here is definitely welcome and will be taken into account! |
I have a use case for jobs that involves mounting cloud provisioned disks, however each google compute node only supports 4 disks, so there is a resource limit of 4 per node. |
Doing a bit of issue cleanup here. Since we last checked in on this issue, Nomad has shipped the devices, task driver, and storage plugin interfaces. I'm going to close this as resolved, and if we have interest for new kinds of plugins we can discuss that in a new issue. |
Let's keep this open as generic resources have yet to be implemented, but they're still something we're considering. While we have pretty good plugin coverage these days as @tgross noted, we lack the declarative custom resource definition approach outlined in the original issue. In the past people would even hijack the mostly-meaningless If devices supported multi-tenancy they would be a solution to custom resources, albeit a lot more effort than the declarative format proposed above. However as of 1.0, device attributes are only used for constraints and a single device can only be used by a single allocation. This means you can't create custom devices just to have custom resources. |
Definitely not resolved, I feel like nomad has implemented everything BUT a simple way to define custom resources. It kind of feels like some of these other features are needlessly specific and complex compared to simple custom resources. |
We would love the ability to constrain allocations by available vram using the nvidia/cuda plugin with multi-tenancy but the proposal above would allow us to schedule around a generic resource that emulates that behavior. |
@schmichael what's the possibility of committing to not removing |
We have 25 Gbps NICs and jobs that want 10 Gbps of it - we need nomad to know it can't schedule more than 3 of those jobs on a single machine. |
Assuming that:
Isn't that the same as having custom integer-based resources? In a hacky way, of course. |
After quick searching through GitHub, found the nomad-generic-device-plugin. It seems to achieve exactly that, without an automatic way to generate N devices in a specific |
This is one possible solution for #406. The idea is to implement custom resources similarly to mesos:
https://mesos.apache.org/documentation/attributes-resources/
When starting a client, specify resources it exposes
Allow to specify used resources in task specification
Expose used resource to tasks (and custom drivers) via env variables
The text was updated successfully, but these errors were encountered: