Menu
AWS OpsWorks
User Guide (API Version 2013-02-18)

passenger_apache2 Attributes

Note

These attributes are available only on Linux stacks.

The passenger_apache2 attributes specify the Phusion Passenger configuration. For more information, see Phusion Passenger users guide, Apache version. For more information on how to override built-in attributes to specify custom values, see Overriding Attributes.

friendly_error_pages

Whether to display a friendly error page if an application fails to start (string). This attribute can be set to 'on' or 'off'; the default value is 'off'.

Copy
node[:passenger][:friendly_error_pages]
gem_bin

The location of the Gem binaries (string). The default value is '/usr/local/bin/gem'.

Copy
node[:passenger][:gem_bin]
gems_path

The gems path (string). The default value depends on the Ruby version. For example:

  • Ruby version 1.8: '/usr/local/lib/ruby/gems/1.8/gems'

  • Ruby version 1.9: '/usr/local/lib/ruby/gems/1.9.1/gems'

Copy
node[:passenger][:gems_path]
high_performance_mode

Whether to use Passenger's high-performance mode (string). The possible values are 'on' and 'off'. The default value is 'off'.

Copy
node[:passenger][:high_performance_mode ]
root_path

The Passenger root directory (string). The default value depends on the Ruby and Passenger versions. In Chef syntax, the value is "#{node[:passenger][:gems_path]}/passenger-#{passenger[:version]}".

Copy
node[:passenger][:root_path]
max_instances_per_app

The maximum number of application processes per app (number). The default value is 0. For more information, see PassengerMaxInstancesPerApp.

Copy
node[:passenger][:max_instances_per_app]
max_pool_size

The maximum number of application processors (number). The default value is 8. For more information, see PassengerMaxPoolSize.

Copy
node[:passenger][:max_pool_size]
max_requests

The maximum number of requests (number). The default value is 0.

Copy
node[:passenger][:max_requests]
module_path

The module path (string). The default values are as follows:

  • Amazon Linux and RHEL: "#{node['apache']['libexecdir']}/mod_passenger.so"

  • Ubuntu: "#{passenger[:root_path]}/ext/apache2/mod_passenger.so"

Copy
node[:passenger][:module_path]
pool_idle_time

The maximum time, in seconds, that an application process can be idle (number). The default value is 14400 (4 hours). For more information, see PassengerPoolIdleTime.

Copy
node[:passenger][:pool_idle_time]
rails_app_spawner_idle_time

The maximum idle time for the Rails app spawner (number). If this attribute is set to zero, the app spawner does not time out. The default value is 0. For more information, see Spawning Methods Explained.

Copy
node[:passenger][:rails_app_spawner_idle_time]
rails_framework_spawner_idle_time

The maximum idle time for the Rails framework spawner (number). If this attribute is set to zero, the framework spawner does not time out. The default value is 0. For more information, see Spawning Methods Explained.

Copy
node[:passenger][:rails_framework_spawner_idle_time]
rails_spawn_method

The Rails spawn method (string). The default value is 'smart-lv2'. For more information, see Spawning Methods Explained.

Copy
node[:passenger][:rails_spawn_method]
ruby_bin

The location of the Ruby binaries (string). The default value is '/usr/local/bin/ruby'.

Copy
node[:passenger][:ruby_bin]
ruby_wrapper_bin

The location of the Ruby wrapper script (string). The default value is '/usr/local/bin/ruby_gc_wrapper.sh'.

Copy
node[:passenger][:ruby_wrapper_bin]
stat_throttle_rate

The rate at which Passenger performs file system checks (number). The default value is 5, which means that the checks will be performed at most once every 5 seconds. For more information, see PassengerStatThrottleRate .

Copy
node[:passenger][:stat_throttle_rate]
version

The version (string). The default value is '3.0.9'.

Copy
node[:passenger][:version]