MySQL 9.4 Reference Manual Including MySQL NDB Cluster 9.4

17.8.12 Container Detection and Configuration

If installed in a container, the server automatically reads the container's CPU and memory resource limits. The values for the following system variables are calculated and set based on those resource limits: