I have been using my multiple Dancer apps with Apache2 CGI, but want to move to a persistent web environment. I had some issues with Apache2/mod_perl where sessions from different Dancer apps were colliding, but that may be solved with the help of a recent post by Alexis (prefix my sessions with app names). So, I have started testing my apps under Apache2/mod_perl, but find that to be be fairly slow in response and quite high in memory consumption. Am looking for advise on speeding up Apache. Should I be using mod_psgi? Is that mature and stable enough to use? Perhaps I am looking for advise here for alternatives as well (the problem is, at least one of my applications uses CGI, so I have to have CGI support). I have been considering nginx, as I have heard good things about it. The Dancer::Deployment pod mentions using nginx, but only as a proxy server to a `perl dancer` process. I don't really want to do that as multiple apps means multiple perl processes running all the time on my web server. Are there any tutes or docs on using nginx with embedded perl or some other persistent perl process to power Dancer? Does anyone have any other suggestion? -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science =======================================================================
Hi, Not sure if that's relevant, but I tried apache with mod_fastcgi (and I experimented mod_fcgi as well), and it worked well and was dazzling fast. But that's 2 years old, so maybe t's an outdated advice, but as you mention you need CGI, it may be worthwhile. dams On 4 October 2010 18:13, P Kishor <punk.kish@gmail.com> wrote:
I have been using my multiple Dancer apps with Apache2 CGI, but want to move to a persistent web environment. I had some issues with Apache2/mod_perl where sessions from different Dancer apps were colliding, but that may be solved with the help of a recent post by Alexis (prefix my sessions with app names).
So, I have started testing my apps under Apache2/mod_perl, but find that to be be fairly slow in response and quite high in memory consumption. Am looking for advise on speeding up Apache. Should I be using mod_psgi? Is that mature and stable enough to use?
Perhaps I am looking for advise here for alternatives as well (the problem is, at least one of my applications uses CGI, so I have to have CGI support).
I have been considering nginx, as I have heard good things about it. The Dancer::Deployment pod mentions using nginx, but only as a proxy server to a `perl dancer` process. I don't really want to do that as multiple apps means multiple perl processes running all the time on my web server. Are there any tutes or docs on using nginx with embedded perl or some other persistent perl process to power Dancer?
Does anyone have any other suggestion?
-- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
Hi Damien, On Mon, Oct 4, 2010 at 2:20 PM, damien krotkine <dkrotkine@gmail.com> wrote:
Hi,
Not sure if that's relevant, but I tried apache with mod_fastcgi (and I experimented mod_fcgi as well), and it worked well and was dazzling fast.
I will try mod_fastcgi/mod_fcgi and see if I can reproduce your "dazzling fast" experience. In the past I had some issues with fcgi, but I will try again.
But that's 2 years old, so maybe t's an outdated advice, but as you mention you need CGI, it may be worthwhile.
Well, let me clarify -- I need CGI for another program, so that can continue to use Apache2 CGI. The Dancer portion can continue to use mod_fastcgi and speed up. Fwiw, the other program works with Apache CGI very fast, so that is not an issue.
dams
On 4 October 2010 18:13, P Kishor <punk.kish@gmail.com> wrote:
I have been using my multiple Dancer apps with Apache2 CGI, but want to move to a persistent web environment. I had some issues with Apache2/mod_perl where sessions from different Dancer apps were colliding, but that may be solved with the help of a recent post by Alexis (prefix my sessions with app names).
So, I have started testing my apps under Apache2/mod_perl, but find that to be be fairly slow in response and quite high in memory consumption. Am looking for advise on speeding up Apache. Should I be using mod_psgi? Is that mature and stable enough to use?
Perhaps I am looking for advise here for alternatives as well (the problem is, at least one of my applications uses CGI, so I have to have CGI support).
I have been considering nginx, as I have heard good things about it. The Dancer::Deployment pod mentions using nginx, but only as a proxy server to a `perl dancer` process. I don't really want to do that as multiple apps means multiple perl processes running all the time on my web server. Are there any tutes or docs on using nginx with embedded perl or some other persistent perl process to power Dancer?
Does anyone have any other suggestion?
-- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
-- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science =======================================================================
participants (2)
-
damien krotkine -
P Kishor