Mantis - Resin
Viewing Issue Advanced Details
64 minor always 03-30-05 00:00 05-11-05 00:00
ferg  
 
urgent  
closed 3.0.12  
3.0.12 fixed  
none    
none 3.0.13  
0000064: add strict round-robin policy to HmuxLoadBalanceServlet
RSN-55
(rep by Dan Schwalbe)

As a related note, the round robin strategy that the resin load balancer is using is not working very well for us. It is judging how busy the server is by how much date is being streamed to the client. So the load balancer is almost always choosing the same backend server. In fact, little of our processing involves streaming data. A much simpler round robin strategy which would always move to the next server would be much better for us. Would it be possible to use such a strategy?

Notes
(0000069)
ferg   
03-30-05 00:00   
server/269h

Configuration looks like:

<servlet servlet-class="com.caucho.servlets.HmuxLoadBalanceServlet">
  <init>
     <cluster>a</cluster>
     <strategy>load-balance</strategy>
  </init>
</servlet>
(0000070)
sam   
03-30-05 00:00   
Actually, configuration for round-robin looks like:

<servlet servlet-class="com.caucho.servlets.HmuxLoadBalanceServlet">
  <init>
     <cluster>a</cluster>
     <strategy>round-robin</strategy>
  </init>
</servlet>

Configuration for least-connection (the default) looks like:

<servlet servlet-class="com.caucho.servlets.HmuxLoadBalanceServlet">
  <init>
     <cluster>a</cluster>
     <strategy>least-connection</strategy>
  </init>
</servlet>

Documentation for the LoadBalanceServlet has been updated.