mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2025-11-04 14:50:01 +08:00
avoid too many workers
This commit is contained in:
parent
cbcc9cb313
commit
9b139247fa
@ -2,7 +2,7 @@
|
||||
chown compiler:compiler /spj
|
||||
echo 0 > /tmp/counter
|
||||
core=$(grep --count ^processor /proc/cpuinfo)
|
||||
n=$(($core*4))
|
||||
n=$(($core*2))
|
||||
chmod 400 /token.txt /tmp/counter
|
||||
chmod -R 400 /test_case
|
||||
gunicorn --workers $n --threads $n --error-logfile /log/gunicorn.log --time 600 --bind 0.0.0.0:8080 server:wsgiapp
|
||||
gunicorn --workers $n --threads $n --error-logfile /log/gunicorn.log --time 600 --bind 0.0.0.0:8080 server:wsgiapp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user