| View previous topic :: View next topic |
| Are you interested in running XFS Pro under mod_perl? |
| Yes |
|
85% |
[ 17 ] |
| Maybe next year |
|
5% |
[ 1 ] |
| No |
|
10% |
[ 2 ] |
|
| Total Votes : 20 |
|
| Author |
Message |
mrperl
Joined: 06 Mar 2010 Posts: 65
|
Posted: Mar 09, 2010 4:35 am Post subject: XFS Pro mod_perl request poll |
|
|
Hi folks.
Please answer this poll about requesting mod_perl support for XFS Pro.
mod_perl can run Perl programs several times faster than regular cgi-bin.
It would take Alex about 2 days for the code changes to support mod_perl well.
Thanks, mrperl. |
|
| Back to top |
|
 |
ankurs
Joined: 10 Mar 2009 Posts: 515
|
Posted: Mar 09, 2010 5:47 am Post subject: |
|
|
i would like it rewritten, if it can run perl/cgi on ngnix
then i can get rid of apache from all my servers |
|
| Back to top |
|
 |
komi
Joined: 27 Nov 2009 Posts: 159
|
Posted: Mar 09, 2010 6:15 am Post subject: |
|
|
| That would be great! |
|
| Back to top |
|
 |
komi
Joined: 27 Nov 2009 Posts: 159
|
Posted: Mar 15, 2010 12:21 pm Post subject: |
|
|
Is this going to happen?
Speed is one of the most important factors of a website. It would be nice if XFS is compatible with mod_perl. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Mar 16, 2010 8:32 am Post subject: |
|
|
ankurs, apache is still required for mod_perl.
komi, we're working on advanced mod_perl version of XFS nowdays, so it's 100% gonna happen. Can't tell any dates though. |
|
| Back to top |
|
 |
komi
Joined: 27 Nov 2009 Posts: 159
|
Posted: Apr 16, 2010 7:22 am Post subject: |
|
|
| Wondering what the status is. Is it really that much work? |
|
| Back to top |
|
 |
mrperl
Joined: 06 Mar 2010 Posts: 65
|
Posted: Apr 25, 2010 4:09 am Post subject: Re: XFS Pro mod_perl request poll |
|
|
It would take about 2 days to cleanup the 1.7 source for ModPerl::Registry, as long as the encryption module isn't the source of segfaults. 3x faster than plain CGI. (The source would still work under plain CGI on any webserver.)
It would take about a month to convert to mod_perl handlers and test it. 10x faster than plain CGI, or more. (Source would only work under Apache/mod_perl.)
mrperl |
|
| Back to top |
|
 |
chrda
Joined: 14 Sep 2009 Posts: 227
|
Posted: Apr 26, 2010 2:36 pm Post subject: |
|
|
Sounds like its needed for sure
Still in the long run i think nginx is needed as backend for files. |
|
| Back to top |
|
 |
komi
Joined: 27 Nov 2009 Posts: 159
|
Posted: Apr 30, 2010 4:09 pm Post subject: Re: XFS Pro mod_perl request poll |
|
|
| mrperl wrote: | It would take about 2 days to cleanup the 1.7 source for ModPerl::Registry, as long as the encryption module isn't the source of segfaults. 3x faster than plain CGI. (The source would still work under plain CGI on any webserver.)
It would take about a month to convert to mod_perl handlers and test it. 10x faster than plain CGI, or more. (Source would only work under Apache/mod_perl.)
mrperl | All fine, but we're still waiting for this. Are you part of the team? If not, could you do this for a fee? |
|
| Back to top |
|
 |
stunna
Joined: 25 Apr 2010 Posts: 44
|
Posted: May 02, 2010 11:29 pm Post subject: |
|
|
script is a perl script, the apache is just the caller, the perl is the killer, it's because of calling perl as a program every time somebody accesses a page. the script is quite heavy and requires some modules to load .so the mod_perl in apache would save the day , however, there is even better possibility
with lighttpd and perl fastcgi process. because mod_perl is fast, but the original perl binary is (usually) faster. and if it is used as a fastcgi (not cgi), then it will always stay in memory and won't have to always load and unload all the data.
I am coding upload.cgi for mod_perl now and will test it against lighty , fast cgi .And nginx or lighty for downloads. |
|
| Back to top |
|
 |
nik0la
Joined: 30 Dec 2009 Posts: 102
|
Posted: May 29, 2010 1:24 pm Post subject: |
|
|
| How is going with mod_perl version? when will be released? |
|
| Back to top |
|
 |
ankurs
Joined: 10 Mar 2009 Posts: 515
|
Posted: May 29, 2010 2:30 pm Post subject: |
|
|
| i am guess with 1.8 , they will release with mod_perl version |
|
| Back to top |
|
 |
mastypk
Joined: 04 Apr 2010 Posts: 124
|
Posted: Jun 27, 2010 6:45 pm Post subject: |
|
|
| Any news about new version??? |
|
| Back to top |
|
 |
mrperl
Joined: 06 Mar 2010 Posts: 65
|
Posted: Oct 10, 2010 12:42 pm Post subject: Re: XFS Pro mod_perl request poll |
|
|
The author modified the XFS Pro 1.8 files in FS-dist, so it is ModPerl-compatible.
It is working for me on a fileserver (fs) with this config:
| Code: |
Alias /app /var/www/perl
<Directory /var/www/perl>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>
|
However, note that using ModPerl on a fs is likely useless. The point of ModPerl is to precache perl object code at the expense of memory (around 26 MB per mod_perl apache process vs. 4 MB for a regular apache process) to make pages load faster, so it would be more useful on the frontend web site.
By using ModPerl on the fs you just waste a bunch of memory for some lingering upload process, and waste even more memory updating the XUpload status pages.
I have seen one bug with ModPerl::Registry enabled: after a few uploads XUpload says "Time Remaining: NaN Seconds" until restarting httpd on the fs. ModPerl::PerlRun works fine though - just less performance than Registry. |
|
| Back to top |
|
 |
mrperl
Joined: 06 Mar 2010 Posts: 65
|
Posted: Feb 21, 2011 9:24 am Post subject: Re: XFS Pro mod_perl request poll |
|
|
I have been doing more testing using Modperl::PerlRun on the fileserver.
If you use multiple fs configurations on the same machine in different directories, then PerlRun confuses $c in XFSConfig.pm, so api.cgi fails on fs_key (ie. wrong configuration parameters are loaded even if in different subdirectories.)
| Code: |
res = OK:0:ERROR: fs_key is wrong or not empty
|
So you cannot safely use multple fs configs and ModPerl under the same instance of httpd2 unless you provide a unique filename for each XFSConfig.pm.
mrperl
Last edited by mrperl on Mar 08, 2011 8:55 am; edited 2 times in total |
|
| Back to top |
|
 |
|