<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Consider consistent hashing for Horde_Memcache</title> 
  <pubDate>Fri, 10 Apr 2026 12:25:57 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7086</link> 
  <atom:link rel="self" type="application/rss+xml" title="Consider consistent hashing for Horde_Memcache" href="https://bugs.horde.org/ticket/7086/rss" /> 
  <description>Consider consistent hashing for Horde_Memcache</description> 
 
   
   
  <item> 
   <title>I don&#039;t know enough about how pecl/memcache handles multiple</title> 
   <description>I don&#039;t know enough about how pecl/memcache handles multiple memcache servers to know if this is redundant, but if it&#039;s not already using consistent hashing, we should have at least an option to manage the array of memcache servers ourselves, and do that to spread keys around. In addition, we could use this same code to implement multiple-write, where we write data to 2 memcache servers instead of one, to decrease thrashing or cache misses if a server drops out.



A good explanation:

http://www.spiteful.com/2008/03/17/programmers-toolbox-part-3-consistent-hashing/



A potential implementation (I&#039;ll be adding one to the Horde_Support package hopefully within a few days as well):

http://code.google.com/p/flexihash/</description> 
   <pubDate>Mon, 21 Jul 2008 03:30:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7086#t47658</link> 
  </item> 
   
  <item> 
   <title>Memcache already has internal consistent hashing.  When addi</title> 
   <description>Memcache already has internal consistent hashing.  When adding server(s) to the pool, a certain percentage of keys from the existing servers are moved to the new server.  When removing server(s), the lost keys are redistributed to the remaining servers.</description> 
   <pubDate>Mon, 21 Jul 2008 04:37:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7086#t47660</link> 
  </item> 
   
  <item> 
   <title>To clarify, this is internally done by the PECL memcache dri</title> 
   <description>To clarify, this is internally done by the PECL memcache driver.  As of memcache 2.2.0, a new PHP ini setting was added:

&quot;memcache.hash_strategy&quot; = {standard, consistent}

However, &#039;consistent&#039; did not become the default until 3.0.0.  So I guess it may be useful to set this automatically if using memcache 2.2+.  No need to make it a config option however.</description> 
   <pubDate>Mon, 21 Jul 2008 04:54:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7086#t47661</link> 
  </item> 
   
  <item> 
   <title>Version 3.0 also added key redundancy.</title> 
   <description>Version 3.0 also added key redundancy.</description> 
   <pubDate>Mon, 21 Jul 2008 04:55:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7086#t47662</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/Memcache/lib/Horde/Memcache.php?r1=1.3&amp;r2=1.4&amp;ty=u</description> 
   <pubDate>Mon, 21 Jul 2008 05:05:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7086#t47663</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/Memcache/lib/Horde/Memcache.php?r1=1.1.2.3&amp;r2=1.1.2.4&amp;ty=u</description> 
   <pubDate>Mon, 21 Jul 2008 05:08:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7086#t47664</link> 
  </item> 
   
  <item> 
   <title>For the way we use memcache, key redundancy doesn&#039;t makes se</title> 
   <description>For the way we use memcache, key redundancy doesn&#039;t makes sense.  The overhead in keeping cache information on multiple servers on every request is not worth the gains we might get in the (rare) event a memcache server is removed from the pool.  Since our memcache data is not entirely based on underlying DB/SQL data, B thrashing issues are reduced.</description> 
   <pubDate>Mon, 21 Jul 2008 17:33:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7086#t47688</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
