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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > question about load-balancing / benchmarking

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2005, 01:30 PM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Default question about load-balancing / benchmarking

Hi there,

finally I'm trying now to get my php-fcgi-load-balancing to work.
It runs fine beside I can't get more throughput than 10,3 MB / s on my 100 mbit to really try it out .

I'm just wondering how the load-balancing is done internally ... any algorithm to share?
Does it use the connection which has the lowest number of connections or whats the way its working?

Trying to benchmark from the localhost to avoid the network-saturation gives me lots of messages like
Code:
Error: socket: read error Connection reset by peer:: Connection reset by peer
Error: socket: read error Connection reset by peer:: Connection reset by peer
Error: socket: read error Connection reset by peer:: Connection reset by peer
Error: socket: read error Connection reset by peer:: Connection reset by peer
Error: socket: read error Connection reset by peer:: Connection reset by peer
Error: socket: read error Connection reset by peer:: Connection reset by peer
Error: socket: read error Connection reset by peer:: Connection reset by peer
Error: socket: read error Connection reset by peer:: Connection reset by peer
Error: socket: read error Connection reset by peer:: Connection reset by peer
Error: socket: read error Connection reset by peer:: Connection reset by peer
I'm trying to benchmark using siege with 100 concurrent users.

Any idea what to make of those messages then? I don't get those then trying to benchmark from a remote host .


Thanks,

Thomas
Reply With Quote
  #2  
Old 12-10-2005, 05:49 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The load balancing algorithm is based on <utilization rate> = <used connections> / <max connections> .

So, you can use <max connections> to adjust the work load for each node.

Not sure why you only get "reset by peer" error from localhost, please make sure "max connections per ip" has been set high enough. Are you still getting the error with lower concurrent level?
Reply With Quote
  #3  
Old 12-11-2005, 01:20 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
thanks, with max-connections I can nicely spread the load over the php-backends.

Yeah, with 10 concurrent connections I don't get that message from below but already with 20 concurrent connections I get them (thought not as much as with 100 concurrent users).

Code:
Error&#58; socket&#58; read error Connection reset by peer&#58;&#58; Connection reset by peer
Error&#58; unable to shutdown the socket&#58; Transport endpoint is not connected
Error&#58; socket&#58; read error Connection reset by peer&#58;&#58; Connection reset by peer
Error&#58; unable to shutdown the socket&#58; Transport endpoint is not connected
Error&#58; socket&#58; read error Connection reset by peer&#58;&#58; Connection reset by peer
Error&#58; unable to shutdown the socket&#58; Transport endpoint is not connected
Error&#58; socket&#58; read error Connection reset by peer&#58;&#58; Connection reset by peer
Error&#58; unable to shutdown the socket&#58; Transport endpoint is not connected
Error&#58; socket&#58; read error Connection reset by peer&#58;&#58; Connection reset by peer
Error&#58; unable to shutdown the socket&#58; Transport endpoint is not connected

btw. here are some numbers with 2 php-backends delivering a phpinfo-page and siege with 10 concurrent numbers is done from the local host:
Code:
Transactions&#58;                  26314 hits
Availability&#58;                 100.00 %
Elapsed time&#58;                  60.45 secs
Data transferred&#58;             996.33 MB
Response time&#58;                  0.02 secs
Transaction rate&#58;             435.30 trans/sec
Throughput&#58;                    16.48 MB/sec
Concurrency&#58;                    9.96
Successful transactions&#58;       26314
Failed transactions&#58;               0
Longest transaction&#58;            0.57
Shortest transaction&#58;           0.00
Seems like it was really the network-interface limiting the performance previously to ~10MB/s .
Reply With Quote
  #4  
Old 12-11-2005, 01:31 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
ah, I think I found it.
I switched the event-handler for lsws to epoll and now I don't get any error-messages anymore.

I've just run with 50 concurrent connections
Code:
Transactions&#58;                  28917 hits
Availability&#58;                 100.00 %
Elapsed time&#58;                  60.06 secs
Data transferred&#58;            1086.47 MB
Response time&#58;                  0.10 secs
Transaction rate&#58;             481.47 trans/sec
Throughput&#58;                    18.09 MB/sec
Concurrency&#58;                   49.58
Successful transactions&#58;       28917
Failed transactions&#58;               0
Longest transaction&#58;            5.10
Shortest transaction&#58;           0.03
numbers won't increase much more, guess I'd need to add more php-backends if needed as the (single-processor)- machines were at a load of 5 with that test already .

So, problem solved I guess, thx for your support.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to use litespeed load balancer for balancing lsapi technix Ruby/Rails 3 07-06-2007 08:28 PM
load balancer -- logic jrmarino General 1 05-06-2007 03:49 PM
ajp servlet load balancing jvmroute support Tex Feedback/Feature Requests 1 10-06-2006 08:21 AM
lsapi on remote hosts? / load balancing fantasydreaming Install/Configuration 7 09-28-2006 09:36 AM
Replication + load balancing stefan Feedback/Feature Requests 3 07-19-2004 09:34 PM


All times are GMT -7. The time now is 07:59 PM.



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