<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="2.0" xml:base="http://www.kai-mai.com">
<channel>
 <title>Kai Mai&#039;s Blog - Take Back the Web - Nodes for fiveruns</title>
 <link>http://www.kai-mai.com/tags/fiveruns</link>
 <description>Nodes containing the tag fiveruns</description>
 <language>en</language>
<item>
 <title>Ruby on Rails Caching: memcached Connection Lost Problem - FiveRuns&#039; Memcache-client to Rescue</title>
 <link>http://www.kai-mai.com/node/146</link>
 <description>&lt;p&gt;
You use &lt;a href=&quot;http://www.danga.com/memcached/&quot;&gt;memcached server&lt;/a&gt; and &lt;a href=&quot;http://seattlerb.rubyforge.org/memcache-client/&quot;&gt;memcached-client&lt;/a&gt; for caching with your Ruby on Rails application.
One day, &lt;a href=&quot;http://tildeslash.com/monit/&quot;&gt;monit&lt;/a&gt; tells you that memcached got restarted.  Sounds good.  But when you check your Ruby on Rails app, it gives you 500 errrors all over the place.
You check your server logs.  Tons of errors on &#039;lost connection&#039; with memcache.
It turned out that &lt;a href=&quot;http://seattlerb.rubyforge.org/memcache-client/&quot;&gt;memcached-client&lt;/a&gt; doesn&#039;t automatically retry on failed memcached connection.
&lt;/p&gt;
&lt;p&gt;
Fortunately, FiveRuns &lt;a href=&quot;http://blog.fiveruns.com/2008/6/11/fiveruns-and-seattle-rb-s-memcache-client&quot;&gt;fixed&lt;/a&gt; memcached-client and &lt;a href=&quot;http://github.com/fiveruns/memcache-client/tree/master&quot;&gt;released&lt;/a&gt; it
&lt;/p&gt;
&lt;p class=&quot;awTags_TagLinks&quot;&gt;Tags: &lt;a href=&quot;tags/266&quot;&gt;ruby_on_rails&lt;/a&gt; &lt;a href=&quot;tags/267&quot;&gt;memcached&lt;/a&gt; &lt;a href=&quot;tags/268&quot;&gt;fiveruns&lt;/a&gt; &lt;a href=&quot;tags/269&quot;&gt;memcache-client&lt;/a&gt; &lt;/p&gt;</description>
 <category domain="http://www.technorati.com/tag">ruby_on_rails</category>
 <category domain="http://www.technorati.com/tag">memcached</category>
 <category domain="http://www.technorati.com/tag">fiveruns</category>
 <category domain="http://www.technorati.com/tag">memcache-client</category>
 <pubDate>Sun, 05 Oct 2008 23:56:45 -0700</pubDate>
</item>
</channel>
</rss>

