Using the new pecl / memcached PHP extension. Calls to Memcached :: setOption () like;
$m = new Memcached();
$m->setOption(Memcached::OPT_DISTRIBUTION, Memcached::DISTRIBUTION_CONSISTENT);
cost from 150 to 500 ms - just making a call to setOption (), and since we do not use persistent connections, but rather, we do this for every request, it hurts.
We go deeper by setting Memcached :: OPT_DISTRIBUTION to Memcached :: DISTRIBUTION_CONSISTENT, ending with the call update_continuum () in libmemcached, which looks pretty intense, although we only transfer a list of 15 memcached servers, so itβs somewhat surprising to see the continuum data structure to be restored from 150 to 500 ms
It is impossible to set this option only for persistent connections when it called only once when creating the initial connection? Or is it a libmemcached error?
Using the new pecl / memcached 1.0.1 extension with libmemcached 0.38
Thank.
source
share