perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Prime x443" <apr...@brunico.com>
Subject RE: Global question
Date Mon, 07 May 2007 14:02:56 GMT

If they change really rarely couldln't you just have the children
automatically die off when the stuff needs to change and reload it?
You'd have to create the datastructure using a ChildInit handler i
assume, but couldn't a setup like that potentially work?

Adam
 

-----Original Message-----
From: Will Fould [mailto:willfould@gmail.com] 
Sent: Saturday, May 05, 2007 11:44 AM
To: Jonathan Vanasco
Cc: modperl
Subject: Re: Global question

Yes.

I currently use a semaphore scheme to cache large lists within child
processes that rarely change. It works quite well.  If the semaphore is
set, the child knows to re-cache; children set the semaphore when they
do something that would require other children to re-cache. But, I'd
like to do something similar; have a separate process that can alter
parent data receive signals and re-cache accordingly.  Maybe this is
really bad idea?  Would existing child processes see the new data or
would the only have a copy of the stale data? Of course, the problem
with using a database to get the lists (besides the lists being the
result of a munge), is that they are rather large. 



On 5/4/07, Jonathan Vanasco <jvanasco@2xlp.com> wrote:


	On May 4, 2007, at 8:50 PM, Will Fould wrote:
	
	> Can lists and other global objects created at apache startup
be
	> altered as an *indirect* result of child processes (i.e. some
type
	> of semaphore/listener scheme?). 
	
	do you mean somehow using an external processes to modify vars
in the
	apache parent, and avoid the copy-on-write behavior ?
	
	
	
	// Jonathan Vanasco
	
	| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - 
	- - - - - - - - - - - - - - - - - - -
	| SyndiClick.com
	| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
	- - - - - - - - - - - - - - - - - - -
	|      FindMeOn.com - The cure for Multiple Web Personality
Disorder 
	|      Web Identity Management and 3D Social Networking
	| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
	- - - - - - - - - - - - - - - - - - -
	|      RoadSound.com - Tools For Bands, Stuff For Fans 
	|      Collaborative Online Management And Syndication Tools
	| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
	- - - - - - - - - - - - - - - - - - -
	
	
	



Mime
View raw message