From c6f53a5dccd7ca93a369d2e4dffa846eacf265e2 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Thu, 29 Nov 2007 13:38:46 -0800 Subject: [PATCH] Updating documentation on consistent hashing. --- docs/memcached_behavior.pod | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/memcached_behavior.pod b/docs/memcached_behavior.pod index cd3288da..e6547785 100755 --- a/docs/memcached_behavior.pod +++ b/docs/memcached_behavior.pod @@ -51,6 +51,14 @@ environments). Makes the default hashing algorithm for keys use MD5. The value can be set to either MEMCACHED_HASH_DEFAULT, MEMCACHED_HASH_MD5, MEMCACHED_HASH_CRC, MEMCACHED_HASH_FNV1_64, MEMCACHED_HASH_FNV1A_64, MEMCACHED_HASH_FNV1_32, MEMCACHED_HASH_FNV1A_32, MEMCACHED_HASH_KETAMA. The behavior for all hashes but MEMCACHED_HASH_DEFAULT is identitical to the Java driver written by Dustin Sallings. +=item MEMCACHED_BEHAVIOR_DISTRIBUTION + +Using this you can enable different means of distributing values to servers. +The default method is MEMCACHED_DISTRIBUTION_MODULO. You can enable +consistent hashing by setting MEMCACHED_DISTRIBUTION_CONSISTENT. +Consistent hashing delivers better distribution and allows servers to be +added to the cluster with minimal cache losses. + =item MEMCACHED_BEHAVIOR_CACHE_LOOKUPS Memcached can cache named lookups so that DNS lookups are made only once. -- 2.30.2