Re: is mpm_event safe for modperl handler? [EXT]

2022-08-10 Thread pengyh

thanks for letting me know this.


James Smith wrote:

mpm_event like all Apache mpm_s is much better at handling "issues" where nginx 
just goes F* and returns nothing. When we have issues we can detect them on apache mpms - 
but we often fail to see nginx errors as it sort of just dies!


RE: is mpm_event safe for modperl handler? [EXT]

2022-08-10 Thread James Smith
People use nginx - probably because they haven't come across mpm_event. The two 
are I think comparable speed wise, but out of the box mpm_event is more 
flexible - and the nice thing is that you can develop a site on a single 
mpm_worker instance and easily migrate over to the mpm_event/mpm_worker module.

It is nice to use the same configuration language on both sites...

mpm_event like all Apache mpm_s is much better at handling "issues" where nginx 
just goes F* and returns nothing. When we have issues we can detect them on 
apache mpms - but we often fail to see nginx errors as it sort of just dies!


-Original Message-
From: pengyh  
Sent: 09 August 2022 13:04
To: James Smith ; modperl@perl.apache.org
Subject: Re: is mpm_event safe for modperl handler? [EXT]

I think running Ignix as front-end server and mod_perl for backend server is 
the more popular choice.



> If you want the speed of mod_event for static content and the power of 
> mod_perl for dynamic content - the best way is to run a lightweight mod_event 
> apache in front of a mod_prefork to run the mod_perl



-- 
 The Wellcome Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE.

Re: is mpm_event safe for modperl handler? [EXT]

2022-08-09 Thread pengyh
I think running Ignix as front-end server and mod_perl for backend 
server is the more popular choice.





If you want the speed of mod_event for static content and the power of mod_perl 
for dynamic content - the best way is to run a lightweight mod_event apache in 
front of a mod_prefork to run the mod_perl


RE: is mpm_event safe for modperl handler? [EXT]

2022-08-09 Thread James Smith
If you want the speed of mod_event for static content and the power of mod_perl 
for dynamic content - the best way is to run a lightweight mod_event apache in 
front of a mod_prefork to run the mod_perl

tbh this is exactly the set up most people use for other heavy backends 
(mod_fastcgi etc) but you still benefit from the power of mod_perl for your perl

I do this anyway as the mod_event bounces really quickly in comparison to the 
heavier mod_worker client (especially if you pre-cache a lot of your perl) so 
can handle "maintenance" events much better... Also all the stuff like SSL etc 
is handled on the mod_event instance keeping the mod_worker instance clean..

It also allows you to run two apaches on a single box - a "test" and a "live"

-Original Message-
From: pengyh  
Sent: 05 August 2022 02:21
To: modperl@perl.apache.org
Subject: Re: is mpm_event safe for modperl handler? [EXT]


thanks. that does sound sorry.


> No and neither is mod_worker. The only mpm you can safely use is 
> prefork. This is, in my opinion, mod_perl's fatal flaw which will doom it.



-- 
 The Wellcome Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE.