I have a cacherouter install that does something like this
$conf['cache_inc'] = './sites/all/modules/contrib/cacherouter/cacherouter.inc';
$conf['cacherouter'] = array(
'default' => array(
'engine' => 'memcache',
'server' => array('localhost:11211'),
'shared' => TRUE,
'static' => FALSE,
'fast_cache' => TRUE,
),
'cache_admin_menu' => array(
'engine' => 'memcache',
'server' => array('localhost:11212'),
),
'cache_apachesolr' => array(
'server' => array('localhost:11213'),
),
'cache_block' => array(
'server' => array('localhost:11214'),
),
...etc....
);
It works for the host 11211, but none of the others. Of course they are installed. I can check via SSH that these servers are running.
But non of them get any data through cacherouter. Also using cacherouter_stats, I see that only 11211 is detected for the stats. What could be the issue?
Comments
Comment #1
Anonymous (not verified) commentedDespite my above settings, the
$this->settings['servers']in engines/memcache.php only showsArray ( [0] => localhost:11211 )Comment #2
Anonymous (not verified) commentedOk I switched to devx version and changes "server" to "servers" -- it now works,
HOWEVER
cacherouter_stats doesnt show the correct servers, because it still looks for "server" instead of "servers" ...
Comment #3
Anonymous (not verified) commented--
Comment #4
tjmoyer commentedI'm having the same problem. It seems that only the default memcache bin is being recognized and used.
The info in the README file as well as what's listed on the project page indicate that there should be an array within the cacherouter array (settings.php) for each memcache bin. But only the default server info is getting through.
Here is my $conf array from settings.php:
I have also tried:
With this second setting cache router statistics recognizes the bins, but not memcache.
I have tried changing 'server' to 'servers', but that makes drupal hang and cpu usage starts to spiral.
What am I doing wrong? Any ideas?
Thanks!
Comment #5
andypost@tjmoyer 1) use servers
2) Don't use shared if using innstance per bin
Also see #245341: Unthrottled while loop in memcache engine causing high cpu utilization. and #588820: Creating severe load on system by logging thousands of unlink errors in DB log
Comment #6
tjmoyer commentedOk, I changed the conf array to use 'servers' instead of 'server' and made 'shared' FALSE. But the options for each bin come through as an empty array (though default options come through ok).
If you print the $bin and $options out inside of function __construct within the memcache class in engines/memcache.php I get:
While $default_options gives me:
So it's still not recognizing any bins other than default.
Comment #7
andypostuse 'servers' not 'server' key to list memcache servers for bin
Comment #8
tjmoyer commentedAs I mentioned in my previous post, I did change it from 'server' to 'servers' as you suggested, but it is still not recognizing and other bins other than default. At this point I have switched back to using the Memcache module, but would love to get this running and switch back over.
Any other ideas as to why it's not recognizing the other bins?