tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49822] New: Add hash lb worker method
Date Wed, 25 Aug 2010 16:28:54 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49822

           Summary: Add hash lb worker method
           Product: Tomcat Connectors
           Version: 1.2.30
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Common
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: rfox@godaddy.com


Created an attachment (id=25938)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25938)
Patch to add hash lb worker method

The attached patch adds a hash method to the LB worker.  This is useful for
scenarios where back-end cache affinity is more desirable than other load
balancing methods.

This works by taking a hash of the req_uri + query_string, seeding the random
number generator with this value, and using the first random number returned
mod num_of_workers.  This will consistently send a given uri/query string to a
particular worker.  If that worker is unavailable, fall back to default method.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message