Re: how to achieve URL hash LB algorithm on ZXTM
"Eric Y. Zhang" <[email protected]> Fri, 7 Aug 2009 19:18:50 +0800
| Newsgroups | gmane.comp.programming.load-balancing.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Ben $session = string.left( string.hashMD5( http.getHostHeader().http.getRawURL() ), 2 ); is always bigger than universal_cache_size; so when one new URL not in universal cache comes in, ZXTM will balance it using the algorithm I set in the pool? because I don't have enough memory to store all persistence keys into, so that would be a problem. another interesting question is do you implement the URL hash on your appliance device? I checked iRule from Devcentral of F5 and tried to convert that election Hash into traffic script, but it seems there is no function in traffic script to list active nodes of a pool. thanks Eric On Fri, Aug 7, 2009 at 10:02 AM, Eric Y. Zhang <[email protected]> wrote: > thanks to all of you who discuss this. I learned to many from your threads. > this is the most helpful mailing list I ever been. > > I will try to figure out the best way to spread load/maintain the > availability. > > thanks again > > > Eric > > > On Thu, Aug 6, 2009 at 11:56 PM, Ben Mansell <[email protected]> wrote: > >> Yes, there's an irony in having two separate features that are in effect >> opposites of each other :) >> >> Going back to the original problem... there may be another solution. Squid >> supports several kinds of inter-cache communication - ICP, HTCP and CARP. It >> may be helpful to try setting up some of these to spread the workload and >> direct requests to the server that has the freshest content. This in >> combination with some kind of intelligent balancing might be the best >> solution for this use case. >> >> On 06/08/2009 15:27, Kenneth Salchow wrote: >> >>> And, in case it wasn't clear, that is in no way a ZXTM issue. I've >>> always >>> espoused that persistence is the opposite of load-balancing and as Ben >>> points out--the two are rather discordant. Your results are likely to be >>> fairly similar with any device on the market given your incongruous >>> goals. >>> >> _______________________________________________ >> lb-l mailing list >> [email protected] >> http://vegan.net/mailman/listinfo/lb-l >> Searchable Archive: http://vegan.net/lb/archive >> http://lbdigest.com Load Balancing Digest >> http://lbwiki.com Load Balancing Wiki >> > > > > -- > Life is hard > -- Life is hard _______________________________________________ lb-l mailing list [email protected] http://vegan.net/mailman/listinfo/lb-l Searchable Archive: http://vegan.net/lb/archive http://lbdigest.com Load Balancing Digest http://lbwiki.com Load Balancing Wiki