Skip to content

Commit

Permalink
setup job memory handling w/ the scheduler. switch default "binpack" …
Browse files Browse the repository at this point in the history
…to "spread"
  • Loading branch information
traceypooh committed Feb 28, 2024
1 parent 6b897da commit d1554cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions etc/nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ plugin "raw_exec" {
acl {
enabled = true
}

server {
default_scheduler_config {
# default "binpack" is annoying esp. for self-hosted clusters
scheduler_algorithm = "spread"

# we use `memory` and `memory_max` in our `project.nomad` template
memory_oversubscription_enabled = true
}
}

0 comments on commit d1554cb

Please sign in to comment.