Sign inSign up

theorangeone/docker-mod-nginx-auto

By theorangeone

•Updated almost 6 years ago

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

Image
0

300

theorangeone/docker-mod-nginx-auto repository overview

⁠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⁠

Tag summary

Content type

Image

Digest

Size

254 Bytes

Last updated

almost 6 years ago

docker pull theorangeone/docker-mod-nginx-auto