docker_runner: disable cpu limits
This commit is contained in:
parent
9087daa205
commit
b2bfe988b4
1 changed files with 4 additions and 5 deletions
|
@ -53,11 +53,10 @@ async fn spawn_docker_process(
|
||||||
network_mode: Some("none".to_string()),
|
network_mode: Some("none".to_string()),
|
||||||
memory: Some(memory_limit),
|
memory: Some(memory_limit),
|
||||||
memory_swap: Some(memory_limit),
|
memory_swap: Some(memory_limit),
|
||||||
// TODO: this applies a limit to how much cpu one bot can use.
|
// TODO: this seems to have caused weird delays when executing bots
|
||||||
// when running multiple bots concurrently though, the server
|
// on the production server. A solution should still be found, though.
|
||||||
// could still become resource-starved.
|
// cpu_period: Some(100_000),
|
||||||
cpu_period: Some(100_000),
|
// cpu_quota: Some(10_000),
|
||||||
cpu_quota: Some(10_000),
|
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
working_dir: Some("/workdir".to_string()),
|
working_dir: Some("/workdir".to_string()),
|
||||||
|
|
Loading…
Reference in a new issue