apps: configure cpuShares

This commit is contained in:
Girish Ramakrishnan
2020-01-28 21:30:35 -08:00
parent d1d3309e91
commit 4ba9f80d44
10 changed files with 89 additions and 7 deletions

View File

@@ -296,7 +296,7 @@ function createSubcontainer(app, name, cmd, options, callback) {
'Name': isAppContainer ? 'unless-stopped' : 'no',
'MaximumRetryCount': 0
},
CpuShares: 512, // relative to 1024 for system processes
CpuShares: app.cpuShares,
VolumesFrom: isAppContainer ? null : [ app.containerId + ':rw' ],
NetworkMode: 'cloudron', // user defined bridge network
Dns: ['172.18.0.1'], // use internal dns