Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Latest commit

 

History

History
19 lines (11 loc) · 1.08 KB

README.md

File metadata and controls

19 lines (11 loc) · 1.08 KB

docker-mod-nginx-auto

Deprecated: See https://github.com/RealOrangeOne/docker-lsio-mod-more-processes.

Docker mod to set worker processes to auto for LSIO containers.

By default, any LSIO nginx installation ships using 4 worker processes, which is inefficient for high-core machines. I've opened PRs before, but they were all rejected for "backwards compatibility".

This docker mod modifies the nginx config prior to startup, setting it to auto, which makes it match the number of available CPU cores. This matches how nginx is configured by default in Docker, so is stable.

Usage

On any of your LSIO containers, set the following environment variable:

DOCKER_MODS=theorangeone/docker-mod-nginx-auto:latest

More about docker mods