Files
cloud-apache-container/scripts/create-apache-mpm-config.sh

18 lines
594 B
Bash
Raw Normal View History

#!/bin/bash
# Generate Apache MPM event tuning config at runtime using detect-memory.sh values.
cat <<EOF > /etc/httpd/conf.d/mpm-tuning.conf
<IfModule mpm_event_module>
StartServers ${APACHE_START_SERVERS}
MinSpareThreads ${APACHE_MIN_SPARE_THREADS}
MaxSpareThreads ${APACHE_MAX_SPARE_THREADS}
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers ${APACHE_MAX_REQUEST_WORKERS}
ServerLimit ${APACHE_SERVER_LIMIT}
MaxConnectionsPerChild ${APACHE_MAX_CONNECTIONS_PER_CHILD}
</IfModule>
EOF
exit 0