-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: basic io match is working There is still more work to be done with jobspec-go and parsing from raw values, and also checking the other match types, but this is a start. * refactor: memory graph database Problem: we currently do not have a good model to support traversal of more than one scheduled slot (a group of resources) and checking of requires within and outside of the slot. Solution: Jobspec nextgen provides a function to expose schedul-able slots. A slot does not necessarily start at the top - it can have some set of resources at the top level (with requirements) and then the slot is below it. This means that the graph databases recursive algorithm needs to first traverse into a vertex to find the slot, but along the way check the subsystem requirements for types. For example, even if we want N nodes, we should not continue search if a node does not have an attribute we are interested in. Once we find a slot, we create what is akin to a traverser, and the traverser carries with it a resource counter. The resource counter holds the count of needed slots vs. found slots, and then is able to return as soon as we found as many as we need. It also holds the current state (status) of a current search, meaning we decrement either a resource or subsystem count when we find it somewhere in the subgraph of the slot. This is just the early prototype, and so far just working for the simple case of submitting a job with some need for cores and nodes. I am next going to go back through the more specific IO cases and ensure that they still with, with the goal to get back to the spack case. I am going back to sleep for a bit first, kind of tired. * io example is working This example is needing to search both compatibility requirements and look for resources within a slot. Signed-off-by: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
37 changed files
with
851 additions
and
895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 13 additions & 18 deletions
31
docs/examples/match-algorithms/range/jobspec-invalid-range.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
version: 1 | ||
resources: | ||
- count: 2 | ||
type: node | ||
with: | ||
- count: 1 | ||
label: default | ||
type: slot | ||
spack: | ||
replicas: 2 | ||
type: node | ||
requires: | ||
- name: spack | ||
field: version | ||
min: "0.7.1" | ||
max: "0.7.5" | ||
|
||
with: | ||
- count: 2 | ||
type: core | ||
task: | ||
command: | ||
- spack | ||
slot: default | ||
count: | ||
per_slot: 1 | ||
resources: | ||
spack: | ||
range: | ||
- field: version | ||
min: "0.7.1" | ||
max: "0.7.5" | ||
|
||
tasks: | ||
- command: [ior] | ||
resources: spack |
31 changes: 13 additions & 18 deletions
31
docs/examples/match-algorithms/range/jobspec-valid-range.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
version: 1 | ||
resources: | ||
- count: 2 | ||
type: node | ||
with: | ||
- count: 1 | ||
label: default | ||
type: slot | ||
spack: | ||
replicas: 2 | ||
type: node | ||
requires: | ||
- name: spack | ||
field: version | ||
min: "0.5.1" | ||
max: "0.5.5" | ||
|
||
with: | ||
- count: 2 | ||
type: core | ||
task: | ||
command: | ||
- ior | ||
slot: default | ||
count: | ||
per_slot: 1 | ||
resources: | ||
spack: | ||
range: | ||
- field: version | ||
min: "0.5.1" | ||
max: "0.5.5" | ||
|
||
tasks: | ||
- command: [ior] | ||
resources: spack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
|
||
version: 1 | ||
resources: | ||
- count: 2 | ||
type: node | ||
with: | ||
- count: 1 | ||
label: default | ||
type: slot | ||
spack: | ||
replicas: 2 | ||
type: node | ||
with: | ||
- count: 2 | ||
type: core | ||
task: | ||
command: | ||
- ior | ||
slot: default | ||
count: | ||
per_slot: 1 | ||
|
||
tasks: | ||
- command: [ior] | ||
resources: spack | ||
|
||
attributes: | ||
parameter: | ||
seconds_per_gb: 0.4 | ||
seconds_per_gb: 0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
version: 1 | ||
resources: | ||
- count: 2 | ||
type: node | ||
with: | ||
- count: 1 | ||
label: default | ||
type: slot | ||
ior: | ||
type: node | ||
replicas: 1 | ||
requires: | ||
- name: io | ||
match: shm | ||
field: type | ||
with: | ||
- count: 2 | ||
type: core | ||
task: | ||
command: | ||
- ior | ||
slot: default | ||
count: | ||
per_slot: 1 | ||
resources: | ||
io: | ||
match: | ||
- field: type | ||
value: shm | ||
command: [ior] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.