Changes between Version 15 and Version 16 of MemcachedHash
- Timestamp:
- 03/03/09 14:02:54 (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MemcachedHash
v15 v16 12 12 This 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 13 13 the 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 15 Parameters of ''memcached_hash'' directive: 16 17 ketama_points=''points'' - how many points the server has 18 19 weight_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. 14 20 15 21 The typical configuration will be
