0
@@ -544,6 +544,7 @@ This option allows one to specify the Ruby interpreter to use.
0
This option may only occur once, in the global server configuration.
0
+[[PassengerUseGlobalQueue]]
0
=== PassengerUseGlobalQueue <on|off> ===
0
Turns the use of global queuing on or off.
0
@@ -556,7 +557,7 @@ In each place, it may be specified at most once. The default value is 'off'.
0
'This feature is sponsored by http://www.37signals.com/[37signals].'
0
-
==== What does this option do?
0
+
.What does this option do?
0
Recall that Phusion Passenger spawns multiple backend processes (e.g. multiple
0
Ruby on Rails processes), each which processes HTTP requests serially. One of
0
@@ -577,7 +578,7 @@ all the backend processes are still busy, then Phusion Passenger will wait until
0
at least one backend process is done, and will then forward the request to that
0
-
==== When to turn on global queuing?
0
+
.When to turn on global queuing?
0
You should turn on global queuing if one of your web applications may have
0
@@ -838,7 +839,7 @@ Internally, Phusion Passenger spawns multiple Ruby on Rails processes in order t
0
requests. But there are multiple ways with which processes can be spawned, each having
0
its own set of pros and cons. Supported spawn methods are:
0
When this spawn method is used, Phusion Passenger will attempt to cache Ruby on Rails
0
framework code and application code for a limited period of time.
0
@@ -851,7 +852,7 @@ Some Ruby on Rails applications and libraries are not compatible with smart spaw
0
If that's the case for your application, then you should use 'conservative' as
0
This spawning method is similar to 'smart' but it skips the framework spawner
0
and uses the application spawner directly. This means the framework code is not
0
cached between multiple applications, although it is still cached within
0
@@ -861,15 +862,16 @@ instances of the same application.
0
the 'smart' method, and still performs some caching.
0
*Cons:* It is slower than smart spawning if you have many applications which
0
-use the same framework version. It is therefore advised that share
hosts use the
0
+use the same framework version. It is therefore advised that share
d hosts use the
0
'smart' method instead.
0
This spawning method is similar to the one used in Mongrel Cluster. It does not perform
0
any code caching at all.
0
-Conservative spawning is guaranteed to be compatible with all applications and libraries.
0
+Conservative spawning is guaranteed to be compatible with all Rails applications
0
Much slower than smart spawning. Every spawn action will be equally slow, though no slower than
0
@@ -1425,6 +1427,8 @@ sessions compared to the others, then there might be a problem:
0
Possible reasons why spikes can occur:
0
. Your application is busy processing a request that takes a very long time.
0
+ If this is the case, then you might want to turn
0
+ <<PassengerUseGlobalQueue,global queuing>> on.
0
. Your application is frozen, i.e. has stopped responding. See
0
<<debugging_frozen,Debugging frozen applications>> for tips.
Comments
No one has commented yet.