Re: diego questions: default memory and passing env variables
Amit Kumar Gupta
This is not a environment variable you can set. To scale down the memory
toggle quoted message
Show quoted text
allocated to your instances, do cf scale <app-name> -m 1024M This will tell Warden/Garden to allocate that much memory to your containers and kill them if they exceed it. The documentation is saying that the processes running inside the container can learn about the memory limit applied to them via the environment variable MEMORY_LIMIT. If you try to set this variable via set-env, it will get overwritten by the value set by "cf scale". Again, the MEMORY_LIMIT environment variable doesn't do anything, it's just information passed into the container via the process's environment. To actually constrain the memory, use "cf scale" or set it in your manifest file: https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#memory
On Wed, Sep 2, 2015 at 3:08 PM, Siva Balan <mailsiva(a)gmail.com> wrote:
We are not using Diego and we are on CF version 211. |
|