<br>How do you manage the tcptimeout to connect to memcache server when its &quot;half/down&quot; , the timeout must be very low ?<br><br><br><div><span class="gmail_quote">2006/6/7, Don MacAskill &lt;<a href="mailto:don@smugmug.com">
don@smugmug.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Jon Drukman wrote:<br><br>&gt;<br>&gt; so removing a downed box from the memcache server pool list promptly is
<br>&gt; essential - which means all keys get reshuffled.<br>&gt;<br><br>Actually, what you want to do is keep the server in the pool, but flag<br>is as down, so keys don't get reshuffled but clients also don't bother<br>
to connect.&nbsp;&nbsp;Hits to it just automatically fail and revert to non-cached<br>hits.<br><br>As for the timeout, most languages should let you specify socket<br>timeouts and the like.&nbsp;&nbsp;I'd shudder to think of using anything longer
<br>than 1 second.<br><br>Don<br></blockquote></div><br>