install: update default limits

This commit is contained in:
undefined committed 2023-04-22 18:52:12 +08:00
1 parent 7f7154b7ca
commit 314c64e766
1 file changed
+6 -5
+6 -5
View File
@@ -195,14 +195,14 @@ hosts:
detail: true detail: true
tmpfs_size: 512m tmpfs_size: 512m
stdio_size: 256m stdio_size: 256m
memoryMax: 1024m memoryMax: ${Math.min(1024, os.totalmem() / 4)}m
processLimit: 128 processLimit: 128
testcases_max: 60 testcases_max: 120
total_time_limit: 300 total_time_limit: 600
retry_delay_sec: 3 retry_delay_sec: 3
parallelism: ${Math.floor(cpus().length / 2)} parallelism: ${Math.floor(cpus().length / 2)}
rate: 1.00 rate: 1.00
rerun: 0 rerun: 2
secret: Hydro-Judge-Secret secret: Hydro-Judge-Secret
env: | env: |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@@ -428,7 +428,8 @@ ${nixConfBase}`);
operations: [ operations: [
['pm2 stop all', { ignore: true }], ['pm2 stop all', { ignore: true }],
() => writeFileSync(`${process.env.HOME}/.hydro/mount.yaml`, mount), () => writeFileSync(`${process.env.HOME}/.hydro/mount.yaml`, mount),
`pm2 start bash --name hydro-sandbox -- -c "ulimit -s unlimited && hydro-sandbox -mount-conf ${process.env.HOME}/.hydro/mount.yaml"`, // eslint-disable-next-line max-len
`pm2 start bash --name hydro-sandbox -- -c "ulimit -s unlimited && hydro-sandbox -mount-conf ${process.env.HOME}/.hydro/mount.yaml -http-addr=localhost:5050"`,
...installAsJudge ? [] : [ ...installAsJudge ? [] : [
() => console.log(`WiredTiger cache size: ${wtsize}GB`), () => console.log(`WiredTiger cache size: ${wtsize}GB`),
`pm2 start mongod --name mongodb -- --auth --bind_ip 0.0.0.0 --wiredTigerCacheSizeGB=${wtsize}`, `pm2 start mongod --name mongodb -- --auth --bind_ip 0.0.0.0 --wiredTigerCacheSizeGB=${wtsize}`,