Load balancing algorithm

Discussion in 'Ruby/Rails' started by pratik, May 29, 2008.

  1. pratik

    pratik New Member

    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.
  2. mistwang

    mistwang LiteSpeed Staff

    LiteSpeed always try to use the minimum number of processes and assign request to the most recently used process.
  3. pratik

    pratik New Member

    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.
  4. mistwang

    mistwang LiteSpeed Staff

    Yes, LiteSpeed uses persistent connection between web server and external app process, so LS keep tracking state of connection.
  5. pratik

    pratik New Member

    Ah perfect!

    Thanks a lot.

Share This Page