Re: mp2 + worker mpm + threads + threads::shared + PerlChildInitHandler

[prev] [thread] [next] [Date index for 2005/01/17]

From: Perrin Harkins
Subject: Re: mp2 + worker mpm + threads + threads::shared + PerlChildInitHandler
Date: 18:59 on 17 Jan 2005
On Mon, 2005-01-17 at 11:25 -0500, Richard F. Rebel wrote:
> Unfortunately, it's high volume enough that it's no longer possible to
> keep these counters in the databases updated in real time.  (updates are
> to the order of 1000's per second).

I would just use BerkeleyDB for this, which can easilly keep up, rather
than messing with threads, but I'm interested in seeing if your
threading idea will work well.

> * A overseer/manager thread that wakes up once every so often and
> updates the MySQL database with the contents of the global shared hash.

Rather than doing that, why not just update it from a cleanup handler
every time the counter goes up by 10000 or so?  Seems much easier to me.

- Perrin

Re: mp2 + worker mpm + threads + threads::shared + PerlChildInitHandler
Perrin Harkins 18:59 on 17 Jan 2005

Generated at 17:42 on 27 Jan 2005 by mariachi v0.52