tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49822] New: Add hash lb worker method
Date Wed, 25 Aug 2010 16:28:54 GMT

           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

Created an attachment (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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message