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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Load balancing algorithm

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2008, 04:25 AM
pratik pratik is offline
New Member
 
Join Date: May 2006
Posts: 4
Default Load balancing algorithm

Hi,

Our app has quite a few slow running processes, which forced us to use HAProxy for fair load balancing in front of Apache/Mongrel. I think LiteSpeed will be a great choice to replace our current setup. Could anyone tell me how litespeed does load balancing between multiple spawned chil processed ?

Thanks.
Reply With Quote
  #2  
Old 05-29-2008, 12:20 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
LiteSpeed always try to use the minimum number of processes and assign request to the most recently used process.
Reply With Quote
  #3  
Old 05-29-2008, 12:46 PM
pratik pratik is offline
New Member
 
Join Date: May 2006
Posts: 4
So what happens if the most recently used process is still serving previous request ( which is a very slow request ) ? Will the new request block ? Or does LS keep information about every processes's state ( i.e. free/busy etc. ) ?

Thanks.
Reply With Quote
  #4  
Old 05-29-2008, 12:51 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Yes, LiteSpeed uses persistent connection between web server and external app process, so LS keep tracking state of connection.
Reply With Quote
  #5  
Old 05-29-2008, 01:04 PM
pratik pratik is offline
New Member
 
Join Date: May 2006
Posts: 4
Ah perfect!

Thanks a lot.
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 04:22 PM.



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