Rework cpuShares into cpuQuota
cpuShares is the relative weight wrt other apps. This is used when there is contention for CPU. If we want this, maybe we implement a UI where we show all the apps and let the user re-order them. As it stands, it is confusing. cpuQuota is a more straightforward "hard limit" of the CPU% that you want the app to consume. Can be tested with : stress -c 8 -t 20s
This commit is contained in:
@@ -3705,6 +3705,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
return 'Memory limit ' + appName('of', app) + ' was set to ' + data.memoryLimit;
|
||||
} else if (data.cpuShares) {
|
||||
return 'CPU shares ' + appName('of', app) + ' was set to ' + Math.round((data.cpuShares * 100)/1024) + '%';
|
||||
} else if (data.cpuQuota) {
|
||||
return 'CPU quota ' + appName('of', app) + ' was set to ' + data.cupQuota + '%';
|
||||
} else if (data.env) {
|
||||
return 'Env vars ' + appName('of', app) + ' was changed';
|
||||
} else if ('debugMode' in data) { // since it can be null
|
||||
|
||||
Reference in New Issue
Block a user