DescartesResearch / TeaStore

A micro-service reference test application for model extraction, cloud management, energy efficiency, power prediction, single- and multi-tier auto-scaling
https://se.informatik.uni-wuerzburg.de
Apache License 2.0
122 stars 142 forks source link

Fix docker memory configurator - adapt for cgroupsv2 #276

Closed DaGeRe closed 1 month ago

DaGeRe commented 1 month ago

The file /sys/fs/cgroup/memory/memory.limit_in_bytes is not present in most modern linux environments, since it was renamed to /sys/fs/cgroup/memory.max with cgroupsv2. To keep the TeaStore runnable, it should be possible to use both. If the memory configuration doesn't take place, load tests often lead to very hard-to-trace memory problems.

Additionally, the configuration in setenv.sh should be added using >>, so the thing written by the memory configurator stays in the file.