Using : Nginx + PHP-FPM on Gentoo. PHP 5.4.3 with PECL:Memcache 3.0.5 40 Web servers and 2 memcache servers (3 instances of memcached on each) with plenty of CPU and RAM, they are not loaded at all. Each memcached instance receives about 3,000 GET/s.
I'm using both APC and Memcached. I had to setup a "two-layers" caching system. First I'm caching into Memcached and then caching into APC. I guess it's pretty dirty but that's the only solution I found to reduce significantly the amount of GET to Memcache. APC is local to each web obviously and Memcache is going through network, so I assumed it was normal that APC would be much faster. But somehow I feel something's wrong because Memcache sometimes is really slow, and eventully even hit the 1s timeout. I have done a small and stupid benchmark : --------------- Testing 1000 GETs. Value size : 149780 Bytes Memcache Testing... Value size : 149780 Bytes Time: 13.78 seconds. APC Testing... Value size : 149780 Bytes Time: 0.31 seconds. --------------- Would you say this is normal response time? And normal to see APC that much faster? I'm not even sure how to debug this. I tested this script but not sure if this is useful : ./mc_conn_tester.pl 10.0.0.23:11211 1000 1 Averages: (conn: 0.00050306) (set: 0.00057981) (get: 0.00046550) Any help is welcome.
