LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > rails proc spawning question

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2007, 09:24 AM
jerrett jerrett is offline
Member
 
Join Date: Jan 2007
Posts: 13
Default rails proc spawning question

Hello! I'm curious about the spawning of new rails processes that litespeed does...

will litespeed spawn new procs rather than stack behind an existing/busy one if it hasn't reached max-procs? and if it has reached max-procs is it smart about which procs it sends new requests to (will it send to ones not busy before it sends to ones that are busy, or is it just round-robin?)
Reply With Quote
  #2  
Old 01-05-2007, 11:04 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
LSWS will spawn one process for each rails application, this process will have the rails framework initialized then watch for new connection from web server, then fork children processes to do the real work, the cost of adding new process is the lowest, the connection between web server and a ruby process will be kept alive whenever possible.

LSWS tracks which connection is idle and push requests to the process associated with the first idle connection. If all connections are busy and maximum allowed is reached, LSWS will queue the request until next available connection. LSWS always try to use least number of procs. Not round-robin.
Reply With Quote
  #3  
Old 01-05-2007, 05:12 PM
jerrett jerrett is offline
Member
 
Join Date: Jan 2007
Posts: 13
Thanks for the quick reply, that sounds pretty much what i was hoping
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:25 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.