What do you think of my Cacherouter + Memcached configuration?

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

I have 2 front end web servers load balanced with 2 memcached server, 1 with 12 GB total RAM and the other with 4 GB total RAM. Here's the configuration I'm considering to implement.

$conf['cache_inc'] = './sites/all/modules/cacherouter/cacherouter.inc';
$conf['cacherouter'] = array(
'default' => array(
'engine' => 'memcache',
'server' => array('memcache1:11211', 'memcache2:11211'),
'shared' => FALSE,
'prefix' => '',
'static' => FALSE,
'fast_cache' => TRUE,
),
'cache_block' => array(
'engine' => 'memcache',
'server' => array('memcache1:11212', 'memcache2:11212'),
'shared' => FALSE,
'prefix' => '',
'static' => FALSE,
),
'cache_content' => array(
'engine' => 'memcache',
'server' => array('memcache1:11213', 'memcache2:11213'),
'shared' => FALSE,
'prefix' => '',
'static' => FALSE,
),
'cache_filter' => array(
'engine' => 'memcache',
'server' => array('memcache1:11214', 'memcache2:11214'),
'shared' => FALSE,
'prefix' => '',
'static' => FALSE,
),
'cache_form' => array(
'engine' => 'memcache',
'server' => array('memcache1:11215', 'memcache2:11215'),
'shared' => FALSE,
'prefix' => '',
'static' => FALSE,
),
'cache_menu' => array(
'engine' => 'memcache',
'server' => array('memcach1:11216', 'memcache2:11216'),
'shared' => FALSE,
'prefix' => '',
'static' => FALSE,
),
'cache_page' => array(
'engine' => 'memcache',
'server' => array('memcache1:11217', 'memcache2:11217'),
'shared' => FALSE,
'prefix' => '',
'static' => FALSE,
'fast_cache' => TRUE,
),
);

Memcache1 server with 12 GB total RAM
/usr/local/bin/memcached -d -m 2048 -u memcached -p 11211
/usr/local/bin/memcached -d -m 1024 -u memcached -p 11212
/usr/local/bin/memcached -d -m 1024 -u memcached -p 11213
/usr/local/bin/memcached -d -m 1024 -u memcached -p 11214
/usr/local/bin/memcached -d -m 1024 -u memcached -p 11215
/usr/local/bin/memcached -d -m 1024 -u memcached -p 11216
/usr/local/bin/memcached -d -m 1024 -u memcached -p 11217
Total RAM reserved for memcached: 8 GB

Memcache2 server with 4 GB total RAM
/usr/local/bin/memcached -d -m 768 -u memcached -p 11211
/usr/local/bin/memcached -d -m 384 -u memcached -p 11212
/usr/local/bin/memcached -d -m 384 -u memcached -p 11213
/usr/local/bin/memcached -d -m 384 -u memcached -p 11214
/usr/local/bin/memcached -d -m 384 -u memcached -p 11215
/usr/local/bin/memcached -d -m 384 -u memcached -p 11216
/usr/local/bin/memcached -d -m 384 -u memcached -p 11217
Total RAM reserved for memcached: 3 GB

Comments

In my experience, the current

vacilando's picture

In my experience, the current version of Cache Router does not function with 'memcache' engine at all. See this thread.


---
Tomáš J. Fülöpp
http://twitter.com/vacilandois

Works for me

emcee0's picture

That's a post with an issue 1 person is having with Cacherouter's memcache engine. It works for me and I see my cache filling up memcache when I turn it on.

I just encountered something

emcee0's picture

I just encountered something strange with this setup. I turned the daemon an applied my cacherouter configuration as above. After about 5 hours of having it on and look at memcached stats I'm seeing a high amount of cmd_flushes. This is different from what I had before when I was only setting the default cache to hit a single instance. the cmd_flush value was at 0

STAT pid 10260
STAT uptime 24373
STAT time 1258078107
STAT version 1.4.3
STAT pointer_size 64
STAT rusage_user 0.350946
STAT rusage_system 0.276957
STAT curr_connections 11
STAT total_connections 2965
STAT connection_structures 16
STAT cmd_get 129
STAT cmd_set 58
STAT cmd_flush 2347
STAT get_hits 10
STAT get_misses 119
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT bytes_read 1344876
STAT bytes_written 665945
STAT limit_maxbytes 1073741824
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 4
STAT conn_yields 0
STAT bytes 21337
STAT curr_items 1
STAT total_items 58
STAT evictions 0
END

should I set shared to TRUE?

emcee0's picture

should I set shared to TRUE?

High performance

Group notifications

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