# Running with and without mongrel cluster

**URL:** <https://www.ruby-forum.com/t/running-with-and-without-mongrel-cluster/132473>\
**Category:** Deployment\
**Created:** [March 20, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/running-with-and-without-mongrel-cluster/132473 "2008-03-20T15:00:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c68b51/32.png) [@lena](https://www.ruby-forum.com/u/lena)\
**Post date:** [March 20, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/running-with-and-without-mongrel-cluster/132473/1 "2008-03-20T15:00:06Z")

</div>

Can anybody explain why running 7 users without a mongrel cluster gives  
better response than with a mongrel cluster and why for 25 -50 users the  
response was about the same?

# These are performance figures:

without mongrel cluster (and 4 mongrels)  
throughput (request process/min) was about 1175 request/min

average response time:  
7 users = 0.357 sec  
25 users = 1.276 sec  
50 users = 2.538 sec

===================================  
with mongrel cluster (and 4 mongrels)  
throughput (request process/min) was about 1100-1200 request/min

average response time:  
7 users = 0.171 sec  
25 users = 1.207 sec  
50 users = 2.536 sec

thank you, Lena

---

<div class="post-metadata">

**Author:** ![lena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c68b51/32.png) [@lena](https://www.ruby-forum.com/u/lena)\
**Post date:** [March 20, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/running-with-and-without-mongrel-cluster/132473/2 "2008-03-20T16:52:37Z")

</div>

Hello Lena.

The posted data doesn’t appear to support your assertions.

You said:

> Can anybody explain why running 7 users without a mongrel cluster gives  
> better response than with a mongrel cluster and why for 25 -50 users the  
> response was about the same?

The average response time for 7 users, as you posted it is:

with mongrel cluster:  
.0171 seconds

without mongrel cluster:  
0.357 seconds

The rest of the data showed mongrel cluster with better response at 25  
users  
and identical response at 50. The most likely possibility for  
identical reponse  
at 50 is that the machine is baked, for 1 of 2 reasons, or a  
combination of the  
two:

1. Rails is eating the CPU
2. The DB is eating the CPU

In general, the performance you’re seeing is not very good, about 1/3  
request/second (1200/3600) which, in my experience, is typically the  
result of a very bad DB performance, potentially caused by missing  
indexes.

Another possibility is an extreme number of queries per page tested.  
We’ve  
seen pages generating many thousands of SQL queries per page, for  
instance.

---

<div class="post-metadata">

**Author:** ![lena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c68b51/32.png) [@lena](https://www.ruby-forum.com/u/lena)\
**Post date:** [March 20, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/running-with-and-without-mongrel-cluster/132473/3 "2008-03-20T18:52:37Z")

</div>

removed\_email\_address@domain.invalid wrote:

> The average response time for 7 users, as you posted it is:
> 
> with mongrel cluster:  
> .0171 seconds

No, it’s:  
7 users = 0.171 sec

Lena
