-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Start system jobs before service jobs #25038
Comments
@EugenKon new hosts don't automatically get service allocations added to them unless you have blocked evaluations, so unless that's the case the system job should show up first typically. But if you need to enforce that, you can also enable preemption in the scheduler to give the system jobs higher priority. Use |
I'll try this solution when possible. |
@tgross Hi. I had a chance to check this. For the sake of example we increased job priority to 90 for wi-knecht task. Others have default 50 or 70. The wi-knecht tasks has a big requirements for Memory, thus I expect all other jobs on the client should be preempted: So here wi-knecht occupy 3.6Gb and we have 7.7Gb. Jobs 1-4 should be preemted.
|
Can you show the output of |
|
ah, ok. You are referring to https://developer.hashicorp.com/nomad/docs/concepts/scheduling/preemption#preemption-in-nomad It is unclear if |
The section of the docs I linked you to should be pretty clear:
vs
|
Nice. Thanks. It would be nice to extend this example with that info too: |
Fix a broken link from the preemption concepts docs to the relevant API. Also include a link to the relevant command. Ref: #25038
Done #25203 |
Fix a broken link from the preemption concepts docs to the relevant API. Also include a link to the relevant command. Ref: #25038
Fix a broken link from the preemption concepts docs to the relevant API. Also include a link to the relevant command. Ref: #25038
… (#25207) Fix a broken link from the preemption concepts docs to the relevant API. Also include a link to the relevant command. Ref: #25038 Co-authored-by: Tim Gross <[email protected]>
Ok. I got another issue. So we have Nomad server configured like this:
and nomad job configured like this:
Usually Here how this client is visible via Nomad UI. You can see that instance has a lot of resources, but scheduler does not schedule dd-agent there. |
No, you should not expect to see any service jobs get deployed to the new instances. Not unless you actually deploy them again with additional count. Only the system jobs would show up on the new instances. And as usual you've provided screenshots without context as to what I'm supposed to be looking at. But I'm going to guess that you're saying "I have 16 nodes and only 14 of the nodes have placements for the system jobs @EugenKon at this point I'm going to push back a challenge to you, in hopes that we can try to raise your level of education here. You have 2 nodes that don't seem to have placements they you think they should. Without using the web UI, which commands should you run to try to figure out why the scheduler made decisions it did about those two jobs? |
Nomad version
1.8.2
Operating system and Environment details
Ubuntu 22.04
Issue
We have service and system jobs. the service jobs are started before system jobs. This cause that new hosts becomes unmonitored by datadog.
Reproduction steps
configure system and service jobs. Configure memory limits.
start cluster
add new EC2 instance
Expected Result
System jobs are more important and should be started before regular jobs.
Actual Result
service jobs are started before system jobs.
The text was updated successfully, but these errors were encountered: