mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 16:33:22 +00:00
26 lines
857 B
Python
26 lines
857 B
Python
# coding=utf-8
|
||
# 单个判题端最多同时运行的程序个数,因为判题端会同时运行多组测试数据,比如一共有5组测试数据
|
||
# 如果MAX_RUNNING_NUMBER大于等于5,那么这5组数据就会同时进行评测,然后返回结果。
|
||
# 如果MAX_RUNNING_NUMBER小于5,为3,那么就会同时运行前三组测试数据,然后再运行后两组数据
|
||
# 这样可以避免同时运行的程序过多导致的cpu占用太高
|
||
max_running_number = 10
|
||
|
||
# lrun运行用户的uid
|
||
lrun_uid = 1001
|
||
|
||
# lrun用户组gid
|
||
lrun_gid = 1002
|
||
|
||
# judger工作目录
|
||
judger_workspace = "/var/judger/"
|
||
|
||
|
||
# 这个是在docker 中访问数据库 ip 不一定和web服务器还有celery的一样
|
||
submission_db = {
|
||
"host": "10.172.22.50",#"192.168.42.1",
|
||
"port": 3306,
|
||
"db": "oj_submission",
|
||
"user": "root",
|
||
"password": "mypwd"
|
||
}
|