Set PUMA_WORKER_MAX_MEMORY env if per_worker_max_memory_mb is configured
In gitlab#379198 (closed) we introduced new RssMemoryGrowth monitor for the watchdog.
Since we want it to be backward compatible with PumaMemoryKiller, we want it to use memory limit settings: puma[per_worker_max_memory_mb
], if configured.
In Omnibus we are using Renderer to configure puma_per_worker_max_memory_mb
.
In CNG We use PUMA_WORKER_MAX_MEMORY
env variable instead MR to use PUMA_WORKER_MAX_MEMORY
env variable instead.
Since we want to access per_worker_max_memory_mb from Watchdog as well, we should use PUMA_WORKER_MAX_MEMORY
to be also consistent with CNG.
Edited by Nikola Milojevic