GAE flexible environment lets you specify the resources your container needs. For example:
resources:
cpu: 0.5
memory_gb: 1.3
disk_size_gb: 10
This will allocate g1-small
instances with 1.7GB of memory. However, if I raise memory_gb
to 1.5
, GAE now allocates n1-standard-1
instances with 3.75GB of memory.
Why does the scheduler appear to over-allocate memory by over 10%? Does that mean that my container running in g1-small
can't actually safely use all 1.7GB of memory the instance has?
(The underlying question is: given an instance's memory size, and running under GAE flexible environment, what should I set node
's --max-old-space-size
to ensure my process doesn't thrash? But given answers to the above questions I can probably figure this out.)