Topic: Passenger Configuration Options

Topic type:

Various settings for increasing the speed of your Kete application run by Passenger.

When you install passenger with apache, you can configure various things about Passenger to speed up your apps. Here are the ones we use. Note the formula for PassengerMaxPoolSize and PassengerMaxInstancesPerApp in the comments.

# Just in case you're leaking memory, restart a listener after processing 5000 requests
PassengerMaxRequests 5000

# Keep the spawners alive, which speeds up spawning a new Application listener after a period of inactivity at the expense of memory.
RailsAppSpawnerIdleTime 0

# Keep the application instances alive longer. Default is 300 (seconds)
PassengerPoolIdleTime 10000

# Limit the total number of applications Passenger can spawn
# Formula: ( min 16 - max: (PassengerMaxInstancesPerApp * [apps on the host]) )
PassengerMaxPoolSize 16

# MaxPoolSize / Total apps on this host
# Formula: ( min 3 - max: (PassengerMaxPoolSize / [apps on the host]) )
PassengerMaxInstancesPerApp 4

# see
# Kete doesn't use mod_rewrite or other things this option disables for speed
PassengerHighPerformance on

# how often should we check to see if we need to restart?
# i.e. when you type 'touch tmp/restart.txt'
PassengerStatThrottleRate 30

Discuss This Topic

There are 0 comments in this discussion.

join this discussion


Creative Commons Attribution-Share Alike 3.0 New Zealand License
Passenger Configuration Options by Kieran P is licensed under a Creative Commons Attribution-Share Alike 3.0 New Zealand License