Random Project

Memcached Timeout

It is possible that while connecting to memcached server, connect timeout might occur. To overcome this, modify check_memcached.pl to increase the connect timeout from its default value of 0.25 seconds as below:

$memd = new Cache::Memcached { ‘servers’ => [ $dsn ], ‘connect_timeout’ => 1 };

Ref: http://search.cpan.org/~dormando/Cache-Memcached-1.30/lib/Cache/Memcached.pm#CONSTRUCTOR