UpstreamConsistentHash, is it wrong?
mauro.stettler at gmail.com
Mon Feb 15 14:03:44 MSK 2010
you use the php memcache module 3.0.1. i have never tested the
consisten hashing with memcache modules above 2.x yet. i can take a
look at it, maybe the hashing has changed.
On Mon, Feb 15, 2010 at 18:56, Markus Jelsma <markus at buyways.nl> wrote:
> I have a cluster with four memcache daemons and am using the current
> UpstreamConsistentHash  module with the latest 0.7 stable Nginx to balance
> between the nodes. Thanks to Valery's update on the eval module, i can now
> access two values in my location block. This works fine, hashing is consistent
> indeed but is not compatible with the current PHP (3.0.1-1) nor the current
> Python (1.40).
> I have set up two small PHP and Python scripts that both have the same pool
> definition as Nginx configuration has and both seem to want to store my two
> pieces test data in the first node. The Nginx module, however, believes the
> data should reside in the first and third node.
> The order of memcache nodes is the same for both the scripts and the
> configuration, so at least that mistake is not the case. Also, searching in
> the ML archive wasn't quite helpful either. In one topic  the issue was
> solved by using this module, it seems it doesn't work for me that way.
> Obviously i have no idea what's going and would like some advice on how to
> procede in fixing this issue.
> Thanks in advance, any help is appreciated!
> : http://wiki.nginx.org/NginxHttpUpstreamConsistentHash
> : http://n2.nabble.com/Memcached-modules-behaviour-td3974859.html
> Markus Jelsma - Technisch Architect - Buyways BV
> 050-8536620 / 06-50258350
> nginx mailing list
> nginx at nginx.org
More information about the nginx