# Mongrel cluster and threads

**URL:** <https://www.ruby-forum.com/t/mongrel-cluster-and-threads/148931>\
**Category:** Rails\
**Created:** [September 18, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-and-threads/148931 "2008-09-18T13:06:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaggyrd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@shaggyrd](https://www.ruby-forum.com/u/shaggyrd)\
**Post date:** [September 18, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-and-threads/148931/1 "2008-09-18T13:06:17Z")

</div>

Hi guys,  
I’m running 6 instances of mongrel in a production environment and I  
have this preformance problem. I’m calling a web service that  
sometimes take up to 11 seconds to give me a response. In the meantime  
mongrel can’t serve another request…create a new thread for each  
call to the web server could be a good solution in your opinion?  
The bottleneck seems to be the average queue time on mongrel…

Thanks!  
Roberto

---

<div class="post-metadata">

**Author:** ![shaggyrd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@shaggyrd](https://www.ruby-forum.com/u/shaggyrd)\
**Post date:** [September 18, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-and-threads/148931/2 "2008-09-18T13:19:11Z")

</div>

Maybe you could call the webservice as a background process so you don’t  
have to care about how long does it take to run:  
[http://backgroundrb.rubyforge.org/](http://backgroundrb.rubyforge.org/)

Regards

Roberto D.  
escribió:\> Hi guys,

> 

/\*\*

- dagi3d v4 - [http://dagi3d.net](http://dagi3d.net)  
\*/
