Disable memory swap
This commit is contained in:
parent
f34cd8e427
commit
a109b57697
2 changed files with 4 additions and 3 deletions
|
@ -8,8 +8,8 @@
|
||||||
"python",
|
"python",
|
||||||
"javascript"
|
"javascript"
|
||||||
],
|
],
|
||||||
"memory": "128m",
|
"memory": "256m",
|
||||||
"cpus": "0.5",
|
"cpus": "0.25",
|
||||||
"timeout": 10000,
|
"timeout": 10000,
|
||||||
"prepare": false
|
"prepare": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,8 @@ class LanguageHandler extends AkairoHandler {
|
||||||
const name = `comp_iler-${id}-${Date.now()}`;
|
const name = `comp_iler-${id}-${Date.now()}`;
|
||||||
const proc = childProcess.spawn('docker', [
|
const proc = childProcess.spawn('docker', [
|
||||||
'run', '--rm', `--name=${name}`, '-u1000', '-w/tmp/', '-t', '-d',
|
'run', '--rm', `--name=${name}`, '-u1000', '-w/tmp/', '-t', '-d',
|
||||||
'--net=none', `--cpus=${this.client.config.cpus}`, `-m=${this.client.config.memory}`,
|
'--net=none', `--cpus=${this.client.config.cpus}`,
|
||||||
|
`-m=${this.client.config.memory}`, `--memory-swap=${this.client.config.memory}`,
|
||||||
`1computer1/comp_iler:${id}`
|
`1computer1/comp_iler:${id}`
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue