Cache-Memcached-Fast icon indicating copy to clipboard operation
Cache-Memcached-Fast copied to clipboard

Failover not working

Open JRaspass opened this issue 3 years ago • 0 comments

Migrated from rt.cpan.org #128575 (status was 'new')

Requestors:

Attachments:

From [email protected] on 2019-02-21 13:54:25 :

Hi, I have installation of 2 memcached servers in version 1.5.3 and for client I use latest Cache-Memcached-Fast package in version 0.25. Problem is when one of this server fail so Cache-Memcached-Fast method add() fail too. I test option 'max_failures' and 'failure_timeout' and still it fail. In test file exists 2 memcached servers on other ports. When I start only one memcached server like 'memcached -d -P memcached.pid -l 127.0.0.1 -m 8' and other memcached server on port 11212 isn't started, about 50% of methods fail. When I try to discover where is problem, so bad server with port 11212 in method src/client.c:client_mark_failed() is properly mark as fail. But in method src/client.c:client_execute() still use bad server from array and fail on is_active(state) method.

Regards Igor

JRaspass avatar Oct 01 '22 04:10 JRaspass