From 60588192c65b72e018139b3bcfba0fd6bafbac40 Mon Sep 17 00:00:00 2001 From: Roman Nikonov Date: Thu, 12 Dec 2024 14:43:24 +0300 Subject: [PATCH] internal: update cpu quota for the server (#2266) --- misc/deploy/remote/branchctl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/deploy/remote/branchctl.sh b/misc/deploy/remote/branchctl.sh index 0a071653e5..e6b02fe750 100755 --- a/misc/deploy/remote/branchctl.sh +++ b/misc/deploy/remote/branchctl.sh @@ -19,10 +19,10 @@ docker run -d --restart=always --name="skymp-server-$branch" --network=host \ -v "/var/crash:/var/crash" \ -v "$PWD/server:/work" --workdir=/work \ -u "`id -u`:`id -g`" \ - --cpu-period=50000 --cpu-quota=25000 \ + --cpu-period=50000 --cpu-quota=$(( 50000 * 6 )) \ --cap-add=SYS_PTRACE \ skymp/skymp-runtime-base:2c7d8a5 ./run.sh -# ^ limited to 50% of CPU: https://stackoverflow.com/a/41552172 +# ^ limited to 6 CPU cores: https://stackoverflow.com/a/41552172 # This looks a bit ugly, but apparently is more fault-tolerant than older version: # docker logs -f ... |& grep -q ...