-
Notifications
You must be signed in to change notification settings - Fork 41
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: range request in resource-query (or more general underlying fluxion) #1116
Comments
Canonical jobspec supports this concept as described in the RFC 14 Resources section (see the description of the However, Jobspec V1 requires I don't know about resource-query since it is a fluxion specific tool and thus doesn't apply to the rest of the flux framework projects. I imagine there is a way to specify the min/max for count, though. @trws might know. |
Thanks @grondo!
We don't need it specifically for resource-query, but generally using the flux bindings. We chat about it today, and are wanting to just build a basic tool (that doesn't start from resource-query) that uses the fluxion bindings (is that the right way to put it?) to (high level):
And the result should be true/false, etc. In the compatibility use case (software, kernel features, matching noodles to doodles) the library will likely be going through a list of items, sorted by preference, and checking them until there is a match (and passing on that it is chosen to some calling tool or user).
So it sounds like we'd need to pass on the new ability for min/max to also be supported (some Jobspec V2)? |
I think Fluxion does support some portion of canonical Jobspec beyond V1. I'd check in the testsuite for hints, e.g. |
There's an example jobspec using min/max referenced by those tests here flux-sched/t/data/resource/jobspecs/min_max/test002.yaml Lines 1 to 18 in fe872c8
|
Flux schedulers may offer a |
We would like to have the ability to specify ranges. E.g., right now for my ice cream shop, to create different sizes I have to explicitly define them:
Ideally, I could just say that the customer is allowed to get 1-3 scoops.
In more real world use cases, if we are doing some kind of compatibility check we will likely be looking for mins/maxes (and not necessarily a range, but could be). I'm not sure where this translates into flux-sched logic - @grondo we talked about this today, and thought you might be the one to ask! i looked in flux-core and searched for "range" in the issues but didn't find anything that looked like a match.
Pinging @zekemorton @milroy to add more intelligent discussion to this issue than I can offer. 😆
The text was updated successfully, but these errors were encountered: