Skip to content

Commit

Permalink
internal: update cpu quota for the server (skyrim-multiplayer#2266)
Browse files Browse the repository at this point in the history
  • Loading branch information
nic11 authored Dec 12, 2024
1 parent 889833e commit 6058819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/deploy/remote/branchctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
Expand Down

0 comments on commit 6058819

Please sign in to comment.