From c125cc17dca89b9a6fb635f700fcc48413686f90 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 11 Aug 2015 16:59:35 -0700 Subject: [PATCH] Apps must only get 50% less cpu than system processes when there is a contention for cpu --- setup/INFRA_VERSION | 2 +- src/apptask.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/INFRA_VERSION b/setup/INFRA_VERSION index 633839829..49aa64d3e 100644 --- a/setup/INFRA_VERSION +++ b/setup/INFRA_VERSION @@ -3,4 +3,4 @@ # If you change the infra version, be sure to put a warning # in the change log -INFRA_VERSION=4 +INFRA_VERSION=5 diff --git a/src/apptask.js b/src/apptask.js index 79a696a2f..f7075f6c2 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -204,7 +204,8 @@ function createContainer(app, callback) { Volumes: {}, VolumesFrom: [], Env: env.concat(addonEnv), - ExposedPorts: exposedPorts + ExposedPorts: exposedPorts, + CpuShares: 512 // relative to 1024 for system processes }; debugApp(app, 'Creating container for %s', app.manifest.dockerImage);