This is an internal documentation. There is a good chance you’re looking for something else. See Disclaimer.
Ansible: Memory Settings¶
Basics¶
In most cases, memory should be set via memory
on production:
abc:
installations:
abc:
memory: 4.5 GiB
abctest:
# memory: # set based on prod memory
Available Settings¶
Warning
The following table corresponds to the implementation for Nice 3.0
and newer. Some of the variables listed may not have the intended
effect on older versions. However, memory
is save to use in any
version.
Name |
Description |
---|---|
memory |
Primary memory setting which corresponds, approximately, to the maximum memory available to an installation. This is also the amount of memory which is billed. Memory is lightly overcommitted. That is, the sum
of all Default production: 3.4 GiB
test: 30% to 80% production memory
See also definition global.yml for details and up-to-date values. |
memory_request |
Amount of memory requested on Kubernetes/OpenShift. This should correspond, roughly, to the memory the application is expected to use ignoring peaks. Default If omitted, this value is set to a value slightly
lower than See also |
memory_limit |
Hard memory limit on Kubernetes/OpenShift. Pods exceeding this limit are killed immediately. This should be set to a value the application is never expected to reach. Default Set based on See also |
memory_heap |
Maximum Java heap memory. Corresponds to the Default Set based on a See also definition global.yml for details. |