Re: Simultaneous connections

Peter De Berdt
Wed, 19 Sep 2007 22:13:26 -0000

On 19 Sep 2007, at 22:59, Philip Hallstrom wrote:

> However, two mongrels is enough to serve a lot of traffic if the
> requests
> don''t take much time (ie. not uploading files, etc.)

Actually, the mongrel isn''t locked during the upload. IIRC, mongrel
streams the upload to a tempfile and only after the upload completes,
it is handed over to Rails, that''s when the mongrel is locked. I
believe the locking up happens AFTER the upload, when the mime
boundaries of the uploaded file have to be parsed all over again. If
you deal with lots of file uploads, you might want to consider
running a merb server for the uploads, merb is multithreaded.


Best regards

Peter De Berdt