# Configure question and passenger

**URL:** <https://www.ruby-forum.com/t/configure-question-and-passenger/192955>\
**Category:** Rails\
**Created:** [August 9, 2010, 6:34am UTC](https://www.ruby-forum.com/t/configure-question-and-passenger/192955 "2010-08-09T06:34:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [August 9, 2010, 6:34am UTC](https://www.ruby-forum.com/t/configure-question-and-passenger/192955/1 "2010-08-09T06:34:35Z")

</div>

Greetings all.  
I have seen a couple of diagrams on the net that look like a computer  
set up as an nginx server and more than one mongrel server running at  
once.  
What is the advantage of having more than one mongrel server running?  
Is there a good how-to that explains it very well.

thanks

shawn

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [August 9, 2010, 11:03am UTC](https://www.ruby-forum.com/t/configure-question-and-passenger/192955/2 "2010-08-09T11:03:51Z")

</div>

On Aug 9, 5:33 am, nephish [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Greetings all.  
> I have seen a couple of diagrams on the net that look like a computer  
> set up as an nginx server and more than one mongrel server running at  
> once.  
> What is the advantage of having more than one mongrel server running?  
> Is there a good how-to that explains it very well.

So that you can process more requests in parallel.

Fred

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [August 9, 2010, 4:37pm UTC](https://www.ruby-forum.com/t/configure-question-and-passenger/192955/3 "2010-08-09T16:37:02Z")

</div>

Fred,

Great, thanks for the reply. Do you know what book or site may have a  
good tutorial about how to pull this off? Most of the docs and  
tutorials i find just show setting up and nginx server with passenger.  
Thanks again

On Aug 9, 4:02 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [August 9, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/configure-question-and-passenger/192955/4 "2010-08-09T16:58:42Z")

</div>

Right now i am using Nginx with Passenger to deploy. Does this only  
allow for one instance of Rails to run in each virtual host?  
I read in the Agile book that Rails is single thread and can only  
process one request at a time. I guess i need a more parallel  
approach.  
Also, and i did not think of this before, but is passenger actually  
running the rails app like webrick or mongrel ?

Thanks for all of your help.

shawn

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [August 9, 2010, 5:18pm UTC](https://www.ruby-forum.com/t/configure-question-and-passenger/192955/5 "2010-08-09T17:18:07Z")

</div>

[Please quote when replying.]

Shawn B. wrote:

> Right now i am using Nginx with Passenger to deploy. Does this only  
> allow for one instance of Rails to run in each virtual host?

More than one instance.

> I read in the Agile book that Rails is single thread and can only  
> process one request at a time. I guess i need a more parallel  
> approach.

Passenger provides that parallelism automatically. Read about it before  
assuming it won’t work.

> Also, and i did not think of this before, but is passenger actually  
> running the rails app like webrick or mongrel ?

Essentially.

> Thanks for all of your help.
> 
> shawn

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [August 9, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/configure-question-and-passenger/192955/6 "2010-08-09T16:41:11Z")

</div>

Shawn B. wrote:

> Fred,
> 
> Great, thanks for the reply. Do you know what book or site may have a  
> good tutorial about how to pull this off? Most of the docs and  
> tutorials i find just show setting up and nginx server with passenger.

Passenger (with either Nginx or Apache) is usually the simplest and best  
way to deploy Rails applications. What’s your use case like that you  
need something different?

> Thanks again

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![nephish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8e7dd6/32.png) [@nephish](https://www.ruby-forum.com/u/nephish)\
**Post date:** [August 9, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/configure-question-and-passenger/192955/7 "2010-08-09T17:26:13Z")

</div>

OK, great, you have been very helpful. Many thanks.

shawn
