Changes between Version 15 and Version 16 of MemcachedHash


Ignore:
Timestamp:
03/03/09 14:02:54 (18 months ago)
Author:
nephrite
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MemcachedHash

    v15 v16  
    1212This module implements ''memcached_hash'' directive for ''upstream'' blocks.  The purpose of this directive is to direct nginx to the right memcached server, the one that would be used by [http://openhack.ru/Cache-Memcached-Fast Cache::Memcached::Fast] (or its ancestor [http://search.cpan.org/dist/Cache-Memcached/ Cache::Memcached]) for the same key.  Thus you may upload 
    1313the data to memcached cluster with the Perl script using C::M::F (or in general with any client that is compatible with C::M), and then serve that data with nginx. 
     14 
     15Parameters of ''memcached_hash'' directive: 
     16 
     17ketama_points=''points'' - how many points the server has 
     18 
     19weight_scale=''scale'' - denominator by which ketama points and server weights are scaled down. Thus, if you have ketama_points=150 and weight_scale=10 the server gets 150/10 = 15 points. 
    1420 
    1521The typical configuration will be