xuyueandClaude Opus 5.5 593a409fca
Deploy / deploy (push) Canceled after 0s
chore(部署): 服务器上课高峰时网页先于判题拿到 CPU,内存挤满时不先杀数据库
服务器 2 核 7.5G、没有 swap,和二十多个别的服务共用(空闲可用 3.5G):
- postgres:shared_buffers 512MB(全库 249MB 能常驻)、work_mem 16MB、shm 256m、
  oom_score_adj -500;事务空闲 60 秒断开 + TCP 保活,机房断网时锁不会挂两小时
- postgres、api 的 cpu_shares 加倍(按比例分、不封顶)
- 判题沙箱、worker 内存上限 512m → 1g:最多六份同时编译、SQL 判题两个子进程都能顶满 512m

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:21:02 +08:00
2026-09-27 19:36:28 +08:00
S
Description
No description provided
10 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 51%
Vue 47%
Shell 1%
CSS 0.6%
Dockerfile 0.4%