[kronolith] Large User Base question
Andrew Morgan
morgan at orst.edu
Tue Feb 26 20:14:00 UTC 2008
On Tue, 26 Feb 2008, Steve Devine wrote:
> This brings up another question. I tried memcached but was unable to get
> it to work and had to fall back on storing sessions in mysql.
> Is there a how to on implementing memcached in Horde somewhere? I did
> some searching but no luck so far.
It seemed pretty easy for me. Here is the relevant chunk from
horde/config/conf.php:
# memcache
$conf['sessionhandler']['params']['hostspec'] = array('your.memcache.server');
$conf['sessionhandler']['params']['port'] = array('11211');
$conf['sessionhandler']['params']['persistent'] = true;
$conf['sessionhandler']['params']['compression'] = true;
$conf['sessionhandler']['params']['lock_dir'] = '/tmp';
$conf['sessionhandler']['type'] = 'memcache';
The lock directory will fill up with memcache lock files. I wrote a
script to clean these up, which we run once a day. I have attached it to
this message.
Don't forget that memcache has no security, so you'll need to limit which
IP addresses can connect to the memcache server using some sort of
firewall.
Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gc_memcache.php
Type: application/x-httpd-php
Size: 733 bytes
Desc:
Url : http://lists.horde.org/archives/kronolith/attachments/20080226/7f4e6112/attachment.bin
More information about the kronolith
mailing list