scheduler: give scheduler tasks twice the memory by default

This commit is contained in:
Girish Ramakrishnan
2018-02-27 10:51:21 -08:00
parent ff4b09a342
commit 441e514119
2 changed files with 5 additions and 0 deletions

View File

@@ -163,6 +163,10 @@ function createSubcontainer(app, name, cmd, options, callback) {
memoryLimit = constants.DEFAULT_MEMORY_LIMIT;
}
// give scheduler tasks twice the memory limit since background jobs take more memory
// if required, we can make this a manifest and runtime argument later
if (!isAppContainer) memoryLimit *= 2;
// apparmor is disabled on few servers
var enableSecurityOpt = config.CLOUDRON && safe(function () { return child_process.spawnSync('aa-enabled').status === 0; }, false);