From 4ce800c77f431e4297993f6e543a9ce40d7709a7 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 26 Oct 2026 21:13:30 +0800 Subject: [PATCH] =?UTF-8?q?compose=20=E4=BC=A0=E5=85=A5=20SIM=5FGRADE=5FCO?= =?UTF-8?q?NCURRENCY=EF=BC=8C.env.example=20=E8=A1=A5=E4=B8=8A=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .env.example | 2 ++ compose.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/.env.example b/.env.example index 3d25033..80561fa 100644 --- a/.env.example +++ b/.env.example @@ -19,3 +19,5 @@ SIM_HEAP_LIMIT_MB=128 SIM_CPU_LIMIT_SECONDS=120 # 每次运行最长时间(分钟) SIM_MAX_RUN_MINUTES=60 +# 全站同时跑几个评分检查项(提交评分和"自己检查"共用);2 核服务器不要超过 24,CPU 不够会误判 +SIM_GRADE_CONCURRENCY=16 diff --git a/compose.yaml b/compose.yaml index b47703d..7db62f8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -33,6 +33,7 @@ services: SIM_HEAP_LIMIT_MB: ${SIM_HEAP_LIMIT_MB:-128} SIM_CPU_LIMIT_SECONDS: ${SIM_CPU_LIMIT_SECONDS:-120} SIM_MAX_RUN_MINUTES: ${SIM_MAX_RUN_MINUTES:-60} + SIM_GRADE_CONCURRENCY: ${SIM_GRADE_CONCURRENCY:-16} # 容器文件系统只读,只有 /tmp(学生工程的临时目录)和数据卷可写 read_only: true tmpfs: