Created
April 25, 2022 23:52
-
-
Save schmichael/53f79cbd898afdfab76865ad8c7fc6a0 to your computer and use it in GitHub Desktop.
Diagnosing preemption bug
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
client { | |
cpu_total_compute = 1000 | |
memory_total_mb = 1000 | |
} |
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
job "hipri" { | |
datacenters = ["dc1"] | |
priority = 98 | |
group "sleepy" { | |
count = 1 | |
task "sleepy" { | |
driver = "docker" | |
config { | |
image = "alpine:3" | |
command = "sleep" | |
args = ["100000"] | |
#command = "/bin/sh" | |
#args = ["-c", "echo ${attr.unique.network.ip-address}"] | |
} | |
resources { | |
cpu = 500 | |
memory = 500 | |
} | |
} | |
} | |
} |
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
job "lowpri" { | |
datacenters = ["dc1"] | |
priority = 1 | |
group "sleepy" { | |
count = 3 | |
task "sleepy" { | |
driver = "docker" | |
config { | |
image = "alpine:3" | |
command = "sleep" | |
args = ["100000"] | |
#command = "/bin/sh" | |
#args = ["-c", "echo ${attr.unique.network.ip-address}"] | |
} | |
resources { | |
cpu = 300 | |
memory = 300 | |
} | |
} | |
} | |
} |
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
server { | |
default_scheduler_config { | |
memory_oversubscription_enabled = false | |
preemption_config { | |
batch_scheduler_enabled = true | |
system_scheduler_enabled = true | |
service_scheduler_enabled = true | |
sysbatch_scheduler_enabled = true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment