passenger_apache2 Attributes
Important
AWS OpsWorks Stacks is no longer accepting new customers. Existing customers will be able to use the OpsWorks console, API, CLI, and CloudFormation resources as normal until May 26, 2024, at which time they will be discontinued. To prepare for this transition, we recommend you transition your stacks to AWS Systems Manager as soon as possible. For more information, see AWS OpsWorks Stacks End of Life FAQs and Migrating your AWS OpsWorks Stacks applications to AWS Systems Manager Application Manager.
Note
These attributes are available only on Linux stacks.
The passenger_apache2
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'.
node[:passenger][:friendly_error_pages]
- gem_bin
-
The location of the Gem binaries (string). The default value is
'/usr/local/bin/gem'
.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'
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'
.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]}"
.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. 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. node[:passenger][:max_pool_size]
- max_requests
-
The maximum number of requests (number). The default value is
0
.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"
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. 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. 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. 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. node[:passenger][:rails_spawn_method]
- ruby_bin
-
The location of the Ruby binaries (string). The default value is
'/usr/local/bin/ruby'
.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'
.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. node[:passenger][:stat_throttle_rate]
- version
-
The version (string). The default value is
'3.0.9'
.node[:passenger][:version]