10 Topics

Member Avatar for
Member Avatar for Dani

When I run `getStats()` on my PHP instance, it results in the following: array ( '10.143.27.235:11211' => array ( '����' => '', 'pid' => 3602, 'uptime' => 49804, 'time' => 1663088274, 'version' => '1.5.22', 'libevent' => '2.1.8-stable', 'pointer_size' => 64, 'rusage_user' => 30.254434, 'rusage_system' => 62.188442000000002, 'max_connections' => 4096, 'curr_connections' …

Member Avatar for Dani
1
61
Member Avatar for Dani

I'm trying to get Memcached persistent connections to work. We currently have a cluster of four Memcached servers each with 2GB of RAM, and four web servers. My code looks like this: public function __construct() { global $config; $this->cache = new Memcached('daniweb'); if ($this->cache->isPristine()) { $this->cache->setOptions(array( Memcached::OPT_NO_BLOCK => true, Memcached::OPT_BUFFER_WRITES …

Member Avatar for Dani
0
1K
Member Avatar for Dani

This question specifically relates to PHP's Memcached library when specifying a server key and adding multiple keys at once. **Question one**: Is it true that PHP's setMultiByKey() doesn't take advantage of the memcached server's native support for setting multiple keys at once, but that the logic is on PHP's side …

0
266
Member Avatar for developer707

Hello, Recently I am dealing with bad performance in an php application that I have build, googling this issue I found out that using services like memcached you can archive a huge performance improvements. The weird thing comes when I try to find a very good and detailed example I …

Member Avatar for Dani
0
641
Member Avatar for Dani

This seems kinda random but basically I have the following member function in my caching class: public function increment($key, $expires = 0) { // Requires OPT_BINARY_PROTOCOL return $this->cache->increment($key, 1, 0, $expires); } So then I want to do flood protection like this: $cache->increment('foo', 10) > 50 90% of the time …

Member Avatar for LastMitch
0
416
Member Avatar for Dani

I have four memcached servers, 2 GB each. Each one averages about 1 set operation per second, and 500 get operations per second. However, the hit rate is incredibly low at only about 45%. Is this still efficient considering that, even taking into consideration only half of the get operations …

0
125
Member Avatar for cali_dotcom

Hi guys, i have an application that seats on a single webserver that depends on a third party application running mssql, so i use mssql over free tds. now i have to scale this site so i have to think about how to handle the sessions. i ma basically looking …

Member Avatar for pritaeas
0
295
Member Avatar for Dani

What is a reasonable number of queries to Memcached per page? We do use getMulti to try to fetch what we know we'll need in advance all at once, but we mostly use getDelayed() (which is a two-part call with fetchAll(), and we do some other processing in between them. …

Member Avatar for Dani
0
122
Member Avatar for Dani

Hi, We heavily use Memcache and I was wondering if there were any places where I could read up about good tips to improving its performance. Everytime that I try to google improving memcached performance, I just end up with pages upon pages of links to how to improve performance …

0
107
Member Avatar for EddieC

They haven’t let us look under the hood, but Google yesterday published a few more specs about App Engine, including how usage will be priced if an application deployed using its infrastructure exceeds the limits set for the free edition. When it launched the service in early April, Google had …

0
146

The End.