RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
XFS Pro mod_perl request poll
Goto page 1, 2  Next
 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  

Are you interested in running XFS Pro under mod_perl?
Yes
85%
 85%  [ 17 ]
Maybe next year
5%
 5%  [ 1 ]
No
10%
 10%  [ 2 ]
Total Votes : 20

Author Message
mrperl



Joined: 06 Mar 2010
Posts: 65

PostPosted: Mar 09, 2010 4:35 am    Post subject: XFS Pro mod_perl request poll Reply with quote

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
View user's profile Send private message
ankurs



Joined: 10 Mar 2009
Posts: 515

PostPosted: Mar 09, 2010 5:47 am    Post subject: Reply with quote

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
View user's profile Send private message
komi



Joined: 27 Nov 2009
Posts: 159

PostPosted: Mar 09, 2010 6:15 am    Post subject: Reply with quote

That would be great!
Back to top
View user's profile Send private message
komi



Joined: 27 Nov 2009
Posts: 159

PostPosted: Mar 15, 2010 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2109
Location: UFO Lab

PostPosted: Mar 16, 2010 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
komi



Joined: 27 Nov 2009
Posts: 159

PostPosted: Apr 16, 2010 7:22 am    Post subject: Reply with quote

Wondering what the status is. Is it really that much work?
Back to top
View user's profile Send private message
mrperl



Joined: 06 Mar 2010
Posts: 65

PostPosted: Apr 25, 2010 4:09 am    Post subject: Re: XFS Pro mod_perl request poll Reply with quote

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
View user's profile Send private message
chrda



Joined: 14 Sep 2009
Posts: 227

PostPosted: Apr 26, 2010 2:36 pm    Post subject: Reply with quote

Sounds like its needed for sure Smile
Still in the long run i think nginx is needed as backend for files.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
komi



Joined: 27 Nov 2009
Posts: 159

PostPosted: Apr 30, 2010 4:09 pm    Post subject: Re: XFS Pro mod_perl request poll Reply with quote

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
View user's profile Send private message
stunna



Joined: 25 Apr 2010
Posts: 44

PostPosted: May 02, 2010 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
nik0la



Joined: 30 Dec 2009
Posts: 102

PostPosted: May 29, 2010 1:24 pm    Post subject: Reply with quote

How is going with mod_perl version? when will be released?
Back to top
View user's profile Send private message
ankurs



Joined: 10 Mar 2009
Posts: 515

PostPosted: May 29, 2010 2:30 pm    Post subject: Reply with quote

i am guess with 1.8 , they will release with mod_perl version
Back to top
View user's profile Send private message
mastypk



Joined: 04 Apr 2010
Posts: 124

PostPosted: Jun 27, 2010 6:45 pm    Post subject: Reply with quote

Any news about new version???
Back to top
View user's profile Send private message
mrperl



Joined: 06 Mar 2010
Posts: 65

PostPosted: Oct 10, 2010 12:42 pm    Post subject: Re: XFS Pro mod_perl request poll Reply with quote

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
View user's profile Send private message
mrperl



Joined: 06 Mar 2010
Posts: 65

PostPosted: Feb 21, 2011 9:24 am    Post subject: Re: XFS Pro mod_perl request poll Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group