Re: Dollar Self Storage (aka mod_perl children sharing/updating data on a schedule)

"Cosimo Streppone" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <op.vox06vzvs5ttvb@cd01>
On Mon, 03 Jan 2011 22:48:53 +0100, Jeff Anderson <[email protected]>  
wrote:

> I am looking to set up a mod_perl handler which keep track of the
> count of requests coming in. Each child process will store this data
> in local memory and after 5-10 minutes have passed, each child process
> will merge its data into a central database, the goal being that each
> child will not have to hit a database for every request.

Hi Jeff,

we usually do that with a local memcached server and
counters (Cache::Memcached::inc() function).

I'm looking into using Cache::FastMmap as an alternative.

I'm not sure about the volume of requests you have,
but using memcached, we got as far as 500 req/s
without any problem or slowdown at all.

-- 
Cosimo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.