nginx worker_processes = auto
is wrong in k8s
#199
Labels
🧐 Bug: Needs Confirmation
Something isn't working, but needs to be confirmed by a team member.
Affected Docker Images
All of the fpm-nginx variants.
Current Behavior
When running a kubernetes pod with 500 millicpu (half a core). The container spawns as many nginx workers as my host has where the pod is running. Well actually it doesn't matter what cpu limits you set, it will always try to match the nginx workers with the number of cores the host has.
Expected Behavior
Use the number of workers with the same number cores available to the container/pod. Not the not workers per underlying host cores.
Steps To Reproduce
run kubernetes cluster on hosts that has multiple cores.
Create a serversideup/php:8.0-fpm-nginx deployment with a pod that has limit of 1 core.
Check running nginx workers.
Host Operating System
Linux
Docker Version
Anything else?
This should be automatic, but if it can't be automatic, perhaps an env variable that can control the number of workers.
The text was updated successfully, but these errors were encountered: