httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject RE: [users@httpd] Disk Cache with multiple virtual hosts
Date Wed, 19 Jun 2013 20:57:21 GMT
On 20/06/2013 1:07 AM, "Paul Beckett" <paul_beckett@outlook.com> wrote:
>
> Can mem_cache be configured to cache way more than you have memory, and
swap out to disk for whatever is least popular?
>
No but how much cache do you need? On the heavy load prod servers we were
using 1GB mem cache. Most of the caching is done on the client side anyway.
> ________________________________
> Date: Wed, 19 Jun 2013 09:11:16 +1000
> From: icicimov@gmail.com
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Disk Cache with multiple virtual hosts
>
>
>
> On 18/06/2013 5:21 PM, "Paul Beckett" <paul_beckett@outlook.com> wrote:
> >
> > I've read the Apache 2.4 caching guide, mod_cache and mod_cache_disk
pages, but am unsure whether I need a unique CacheRoot for each virtual
host, or whether multiple virtual hosts can/should share the same CacheRoot?
> >
> > Also I'm thinking of setting the CacheRoot to be a tmpfs mount
(effectively a ramdisk that will page out to swap space if theres not
enough ram to cache everything).
>
> Why not mem cache then? Why would you bother with ramdisk if you want to
cache in memory?
>
> If I'm using a unique CacheRoot (a sub-directory in the tmpfs mount), is
there anyway to configure Apache to create the CacheRoot directory if it
doesn't already exist? If anyone has any thoughts / recommendations / tips
in this regards to this approach I would be grateful to here them.
> >
> > Thanks,
> > Paul

Mime
View raw message