nginx with memcache

Events happening in the community are now at Drupal community events on www.drupal.org.
peterconnolly's picture

I've got a reasonably busy server which was running nginx with memcache (approx 2000 concurrent users, mostly anonymous users viewing pages).

It was running nginx with memcache - apparently happily, but I don't have any benchmarks from that time.

I updated Drupal to 6.15, plus a shed load of modules - not the memcache module, but that appears to be only a gui anyway.

Now, if I set the following in the settings.php file, the site goes offline immediately. It won't come back until I remove the setting;

$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.inc',
);

The development server (same box, different VPS) works perfectly.

When the server is offline, logs are showing the following;

Invalid argument supplied for foreach() in /usr/local/www/data/sites/all/modules/memcache/memcache_admin/memcache_admin.module on line 237.

Could this be an nginx or a memcache issue? (I'm still getting up to speed on this stuff)

Regards,

Pete.

Comments

@Pete

omega8cc's picture

This is not Nginx fault. I think you should use/upgrade to latest version of http://drupal.org/project/memcache module (it is not just UI), or even better install http://drupal.org/project/cacherouter or http://drupal.org/project/cache - both of them have memcache support included.

If you are using any PHP cache, remember also to restart the webserver and/or php-fpm daemon.

~Grace

@Grace

peterconnolly's picture

Hi Grace,

Thanks for the help. Just knowing that it wasn't related to nginx pointed me in the right direction. It turned out that I simply needed to flush the caches on memcache.

Regards,

Pete.

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week