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

allocrunner: automatically stop batch types allocations. #26

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

jrasell
Copy link
Contributor

@jrasell jrasell commented Apr 17, 2024

Previously, when running batch type jobs (batch/sysbatch), the allocs would run until the user initiated shutdown. This is not how batch workloads run and caused load testing problems as nodes would fill with running workload. This problem can be overcome by using the "real" allocrunner, but adds resource overhead on the nodesim process.

Automatically stopping batch workload mimics real work and allows us to use the simulated allocrunner for a lighter overhead. This means benchmarking can be cheaper and easier to run.

Previously, when running batch type jobs (batch/sysbatch), the
allocs would run until the user initiated shutdown. This is not
how batch workloads run and caused load testing problems as nodes
would fill with running workload. This problem can be overcome by
using the "real" allocrunner, but adds resource overhead on the
nodesim process.

Automatically stopping batch workload mimics real work and allows
us to use the simulated allocrunner for a lighter overhead. This
means benchmarking can be cheaper and easier to run.
@jrasell jrasell self-assigned this Apr 17, 2024
@@ -174,6 +174,24 @@ func (ar *simulatedAllocRunner) Run() {
ar.allocStateLock.Unlock()

ar.updateAllocAndSendUpdate(taskStates)

// Who wants to live forever?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no time for us
-- batch jobs

@jrasell jrasell merged commit ed1113b into main Apr 18, 2024
2 checks passed
@jrasell jrasell deleted the f-simallocrunner-stop-batch-jobs-automatically branch April 18, 2024 08:10
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

Successfully merging this pull request may close these issues.

2 participants