aboutsummaryrefslogtreecommitdiff
path: root/planetwars-matchrunner/src/docker_runner.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-06-04 17:21:50 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-06-04 17:21:50 +0200
commitb2bfe988b49825733e0c867d0e8af8c8c66a60d7 (patch)
treefe568032a3910547953516388a8b279f4905a66f /planetwars-matchrunner/src/docker_runner.rs
parent9087daa205c91ae39e4e66aea904922bb39fd07b (diff)
downloadplanetwars.dev-b2bfe988b49825733e0c867d0e8af8c8c66a60d7.tar.xz
planetwars.dev-b2bfe988b49825733e0c867d0e8af8c8c66a60d7.zip
docker_runner: disable cpu limits
Diffstat (limited to 'planetwars-matchrunner/src/docker_runner.rs')
-rw-r--r--planetwars-matchrunner/src/docker_runner.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/planetwars-matchrunner/src/docker_runner.rs b/planetwars-matchrunner/src/docker_runner.rs
index f82e64e..63a7a67 100644
--- a/planetwars-matchrunner/src/docker_runner.rs
+++ b/planetwars-matchrunner/src/docker_runner.rs
@@ -53,11 +53,10 @@ async fn spawn_docker_process(
network_mode: Some("none".to_string()),
memory: Some(memory_limit),
memory_swap: Some(memory_limit),
- // TODO: this applies a limit to how much cpu one bot can use.
- // when running multiple bots concurrently though, the server
- // could still become resource-starved.
- cpu_period: Some(100_000),
- cpu_quota: Some(10_000),
+ // TODO: this seems to have caused weird delays when executing bots
+ // on the production server. A solution should still be found, though.
+ // cpu_period: Some(100_000),
+ // cpu_quota: Some(10_000),
..Default::default()
}),
working_dir: Some("/workdir".to_string()),