On Wed Dec 05 09:57:44 2012, finn_hakansson@yahoo.com wrote:
Show quoted text> It would be excellent if there was a way to know if the
> memcached client encountered an error with a memcached
> instance (and which memcached instance it was).
While it's technically possible to add some call to retrieve exact
reason of the last error, I have certain doubts that it'll worth it.
C::M::F is an interface to a cache. When something wasn't retrieved
from the cache for whatever reason one has to obtain the data by other
means. Knowing the exact cause won't help much as there won't be
anything one could do about that. IMHO any monitoring of memcached
instances shouldn't be mixed with cache access from the application.
For separate monitoring, periodically setting and getting a particular
value from each memcached instance may be enough.
https://github.com/tsee/p5-Cache-Memcached-Fast adds some server stats
that may also be used for tuning.