Repository navigation
Add a HyperQueue based scheduler - #3760
pranav-sivaraman wants to merge 18 commits into
Conversation
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
|
I tested this PR on santis (production family, Slurm 25.05.9) and, for comparison, on the TDS machines starlex and pilatus; the TDS machines fail out of the box only because their login-node hostname has no DNS/FQDN entry, so this report focuses on santis, where the PR works end to end unpatched. HyperQueue was built from source at the commit pinned by the PR's CI ( What was tested
Results
Suggested changes before merge
VerdictThe core design — one HQ server per distinct allocation-queue spec, workers started through Slurm autoalloc, per-spec allocation sizing, and state mapping including TIMEOUT — works as intended on production hardware. With the test-expectation fix and the documentation addition above, I see no blocker for merging. |
|
@gppezzi Thank you for testing this out! Will incorporate your feedback. I will be opening a PR that tackles the following issue, and then rebase this branch on top of that. That way the behavior for SLURM and HyperQueue stays consistent and then I can easily extend HyperQueue to a PBS backend. I need to fix an issue where reframe crashes because this scheduler does not handle the case where a server has failed/crashed. So I will be marking this as a draft for now |
This PR adds a new HyperQueue scheduler. Currently requires a nightly build of HyperQueue which has some fixes for SLURM and running on multi-node.
While trying to tackle the following issue, I noticed that SLURM job arrays do not help when prologue and epilogue can be very long.
One workaround is to get an interactive allocation and run all tests inside it as job steps. This avoids paying the prologue and epilogue cost for every test, but it has its own problems:
HyperQueue avoids these problems. It requests allocations automatically based on the tasks that are waiting. Its autoscaling requests more allocations when there's more work and capacity, and it keeps scheduling tasks into whatever allocations are available. Tasks of different sizes go to allocations that fit them. If one allocation fails, only the tasks running in it are affected.
Implementation details
Supported backends
Only SLURM is supported for now.
HyperQueue also recently added a FirecREST backend, which could be useful on ALPS and is a possible follow-up.
Servers and allocations
The scheduler currently starts one HyperQueue server, with its own allocation queue, for each unique access pattern. For example, a single-node test and a multi-node test with the same access options end up with two servers and two allocation requests.
A bigger improvement would need help from ReFrame. Each job and the scheduler instance that submits it know nothing about the other jobs in the run. If ReFrame could tell the scheduler which jobs can share an allocation (a kind of
group by"), the scheduler could pack them together more efficiently. That goes beyond this PR.
Testing
I've made sure that it passes the psuedo-cluster tests along with validating this on ALPS and a couple of internal systems at HPE. Right now it's based of the following PR, but will rebase it again after that goes in.