Obvious/zcache — pull request #32 by x-ma (2014-01-28 03:25:17+00:00)
Title: Re-define timeout of CacheClusters

Hello @nicks, @dpup,

Please review the following commits I made in branch 'xiao-better-timeout'.

f4a4d01b4077f09ec235f791aef4cf199599b98b (2014-01-27 19:16:26 -0800)
Re-define timeout of CacheClusters
This commit does a few things:

(1) A CacheCluster doesn't have its own timeout any more. It always waits for
all the servers in the cluster to return results or timeout themselves. It
makes things more complex if we have different timeout for the entire cluster
and for individual servers inside the cluster. Usually we just set the same
timeout anyway.

(2) When inquery for a timeout count, a CacheCluster returns the number of
timeout happens across all the servers in the cluster.

We could probably also expose timeout count of each individual server so the
user of the cluster can do fine-grained monitoring.

(3) We have an easier and more general API to query and reset timeout count.

R=@nicks
R=@dpup