Skip to content

Instantly share code, notes, and snippets.

@tchellomello
Last active October 21, 2016 16:02
Show Gist options
  • Save tchellomello/6eabd1f8f40a78b19edf3c9064e06cd7 to your computer and use it in GitHub Desktop.
Save tchellomello/6eabd1f8f40a78b19edf3c9064e06cd7 to your computer and use it in GitHub Desktop.
Passenger tweaks
# /etc/httpd/conf.d/05-foreman-ssl.conf
PassengerAppRoot /usr/share/foreman
PassengerRuby /usr/bin/tfm-ruby
PassengerMinInstances 5
PassengerStartTimeout 600
PassengerPreStart https://<FQDN>
# https://www.phusionpassenger.com/library/config/apache/optimization/
# /etc/httpd/conf.d/passenger_tunnings.conf
<IfModule mod_passenger.c>
PassengerMaxPoolSize 15 #depends on the number of cpus and memory
PassengerMaxRequestQueueSize 300 # ^same as above
PassengerStatThrottleRate 120
# this is an important that kills the thread if idle instead waiting 5 minutes (default)
# this must be combined with PassengerMinInstances to guarantee that always a thread will available
PassengerPoolIdleTime 15
PassengerMaxPreloaderIdleTime 0
PassengerLogLevel 1
PassengerLogFile /var/log/httpd/passenger.log
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment