Skip to content

Commit

Permalink
Merge pull request #86 from pablomh/patch-1
Browse files Browse the repository at this point in the history
Check for event.conf related configs
  • Loading branch information
pablomh authored Mar 25, 2024
2 parents edcd3f3 + 54fda28 commit 8202411
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions check-perf-tuning
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,27 @@ check_return_value () {
}

echo "************************ APACHE & PASSENGER *****************************"
echo "Configuration : /etc/httpd/conf.modules.d/prefork.conf"
echo "Custom-hiera : apache::mod::prefork::serverlimit"
echo " apache::mod::prefork::startservers"
echo " apache::mod::prefork::maxclients"
echo " apache::mod::prefork::maxrequestsperchild"

echo "Current values:"
cat /etc/httpd/conf.modules.d/prefork.conf | grep 'ServerLimit\|StartServers\|MaxClients\|MaxRequestsPerChild'
echo ""
if [ -f /etc/httpd/conf.modules.d/prefork.conf ]; then
# Satellite 6.11 and lesser
echo "Configuration : /etc/httpd/conf.modules.d/prefork.conf"
echo "Custom-hiera : apache::mod::prefork::serverlimit"
echo " apache::mod::prefork::startservers"
echo " apache::mod::prefork::maxclients"
echo " apache::mod::prefork::maxrequestsperchild"
echo "Current values:"
cat /etc/httpd/conf.modules.d/prefork.conf | grep 'ServerLimit\|StartServers\|MaxClients\|MaxRequestsPerChild'
echo ""
fi
if [ -f /etc/httpd/conf.modules.d/event.conf ]; then
# Satellite 6.12+
echo "Configuration : /etc/httpd/conf.modules.d/event.conf"
echo "Custom-hiera : apache::mod::event::serverlimit"
echo " apache::mod::event::startservers"
echo " apache::mod::event::maxclients"
echo "Current values:"
cat /etc/httpd/conf.modules.d/event.conf | grep 'ServerLimit\|StartServers\|MaxClients'
echo ""
fi

echo "Configuration : /etc/httpd/conf.d/05-foreman.conf"
echo "Custom-hiera : foreman::keepalive"
Expand Down

0 comments on commit 8202411

Please sign in to comment.