Last active
October 8, 2024 13:30
-
-
Save fschiettecatte/8a365c8b99c693513e98dc94281968bb to your computer and use it in GitHub Desktop.
MPM Event Module Configuration for Small Servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# MPM Event Module Configuration for Small Servers | |
# | |
# Small - 4 CPU / 8-16GB RAM | |
# | |
# https://httpd.apache.org/docs/2.4/mod/worker.html | |
# https://httpd.apache.org/docs/2.4/mod/event.html | |
# | |
<IfModule mpm_event_module> | |
# Upper limit on configurable number of processes | |
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#serverlimit | |
# Default: 16 | |
ServerLimit 4 | |
# Number of threads created by each child process | |
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#threadsperchild | |
# Default: 25 | |
# ThreadsPerChild 25 | |
# Maximum number of connections that will be processed simultaneously | |
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxrequestworkers | |
# Default: MaxRequestWorkers * ThreadsPerChild = ServerLimit => 16 X 25 = 400 | |
# Reverse: MaxRequestWorkers / ThreadsPerChild = ServerLimit => 50 / 25 = 2 | |
MaxRequestWorkers 50 | |
# Sets the upper limit on the configurable number of threads per child process | |
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#threadlimit | |
# Default: 64 | |
# ThreadLimit 64 | |
# Limit on the number of connections that an individual child server will handle during its life | |
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxconnectionsperchild | |
# Default: 0 (No limit) | |
# MaxConnectionsPerChild 0 | |
# Maximum length of the queue of pending connections | |
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#listenbacklog | |
# Default: 512 | |
# ListenBackLog 512 | |
</IfModule> | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment