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

Go Back   LiteSpeed Support Forums > LiteSpeed Load Balancer > General > balancer does not balance ... !

Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2006, 05:36 AM
Tex Tex is offline
New Member
 
Join Date: Oct 2006
Location: Paris, France
Posts: 7
Question balancer does not balance ... !

Could someone help me find what I did wrong with the following configuration :

Code:
<?xml version="1.0" encoding="UTF-8"?>
<virtualHostConfig>
  <docRoot>/var/www</docRoot>
  <enableGzip>0</enableGzip>
  <adminEmails></adminEmails>
  <extProcessorList>
    <extProcessor>
      <type>proxy</type>
      <name>web01</name>
      <address>web01.xxx.com:80</address>
      <maxConns>1000</maxConns>
      <pcKeepAliveTimeout>3600</pcKeepAliveTimeout>
      <initTimeout>2</initTimeout>
      <retryTimeout>2</retryTimeout>
      <respBuffer>0</respBuffer>
    </extProcessor>
    <extProcessor>
      <type>proxy</type>
      <name>web02</name>
      <address>web02.xxx.com:30001</address>
      <maxConns>1000</maxConns>
      <pcKeepAliveTimeout>3600</pcKeepAliveTimeout>
      <initTimeout>2</initTimeout>
      <retryTimeout>2</retryTimeout>
      <respBuffer>0</respBuffer>
    </extProcessor>
    <extProcessor>
      <type>loadbalancer</type>
      <name>static</name>
      <workers>proxy::web01, proxy::web02</workers>
    </extProcessor>
  </extProcessorList>
  <contextList>
    <context>
      <type>loadbalancer</type>
      <uri>/</uri>
      <handler>static</handler>
      <allowOverride>0</allowOverride>
      <realm></realm>
      <authName></authName>
      <required></required>
      <accessControl>
        <allow></allow>
        <deny></deny>
      </accessControl>
      <authorizer></authorizer>
      <addDefaultCharset>off</addDefaultCharset>
      <defaultCharsetCustomized></defaultCharsetCustomized>
    </context>
  </contextList>
</virtualHostConfig>
The balancer redirects every request to the first proxy host. What did I miss ?

Thanks.

Last edited by Tex; 10-06-2006 at 05:39 AM.. Reason: Presentation
Reply With Quote
  #2  
Old 10-06-2006, 08:11 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
configuration looks fine to me, maybe you can try increase the concurrent level, LSWS uses the first idle cluster node.
Reply With Quote
  #3  
Old 10-06-2006, 08:16 AM
Tex Tex is offline
New Member
 
Join Date: Oct 2006
Location: Paris, France
Posts: 7
OK, I'll check this way. Shouldn't it use round robin ? Would balance better the load across nodes, isn't it ?
Reply With Quote
  #4  
Old 05-13-2008, 06:47 AM
nathanc nathanc is offline
Senior Member
 
Join Date: Jun 2007
Posts: 55
I have the same issue. It seems that only one of the nodes will get the traffic.
Here is what I have in my Node Address List:

Quote:
(node1) 10.39.121.1->10.39.121.2:80, (node1) 10.39.121.1->10.39.121.7:80
Strategy is
Quote:
Round Robin
It seems the last node address gets the load because, for a test I swapped out the .2 and .7 addresses to confirm this behavior.

Perhaps I have something messed up with in the address list.

Last edited by nathanc; 05-13-2008 at 07:27 AM..
Reply With Quote
  #5  
Old 05-13-2008, 10:46 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
should
Quote:
(node1) 10.39.121.1->10.39.121.2:80, (node1) 10.39.121.1->10.39.121.7:80
be
Quote:
(node1) 10.39.121.1->10.39.121.2:80, (node2) 10.39.121.1->10.39.121.7:80
?
Reply With Quote
  #6  
Old 05-13-2008, 11:05 AM
nathanc nathanc is offline
Senior Member
 
Join Date: Jun 2007
Posts: 55
Awesome thanks!,
I see now.
You guys ROX!
Reply With Quote
  #7  
Old 05-13-2008, 11:58 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
There is a LSLB 1.2 release, you can get it by changing the version number in the download link.
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 05:22 AM.



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