>> > > Did you use apache/mod-wsgi or cgi? cgi is slow.
>> >
>> > Our servers do not offer mod_wsgi, so I think we're currently using
>> > some sort of WSGI<--> Fast CGI wrapper. Could this be a major cause of
>> > the problems?
>>
>> Well, I can't tell much about the layers below moin (esp. not for
>> software I do not use myself), but in principle, fastcgi should be of
>> almost same performance as mod-wsgi. A little more software (likely
>> flup) in between moin and web server, but still fast.
>>
>> Plain CGI (not fastcgi) means loading and initializing all the code for
>> each request and terminating after that one request is processed.
>
> Although Thomas wrote that CGI is slow, it isn't necessarily super-slow, just
> slow compared to WSGI. Even then, there are lots of things that can overwhelm
> the overhead of CGI in terms of performance costs, even if you've switched to
> WSGI and are convinced that everything should be much faster.
>
> The classic example of this is any functionality that makes use of page
> searching: perhaps long-running processes may be fortunate when scanning
> pages for, say, category information if it gets cached over time (although
> the filesystem cache would help for CGI processes, too), but enabling Xapian
> for Moin 1.x provides significant benefits regardless of the means of
> deployment.
>
>> FastCGI as well as mod-wsgi means long-running processes which are only
>> rarely terminated and restarted and thus is much faster and less
>> overhead.
>
> Agreed. Still, if things are taking 10 seconds and there isn't some kind of
> pathological script reloading going on, it may be something other than the
> deployment technology.
>
> I have in the past enabled the timing information to spot bottlenecks,
> although this merely indicated that searches were slow and that I should
> enable Xapian support. On your site, the only unusual stuff looks like some
> banner-related JavaScript and the delightful Google Analytics code. Nothing
> like fancy but expensive Moin macros as far as I can tell.

Am I right in thinking that Xapian is strictly for user-initiated
searches of the MoinMoin site by entering text in a search box, or
does MoinMoin use it somehow under-the-hood? We do not have a site
search, so I figured that we had no use for this.

Thanks for taking a look, Paul. It's good to know that we're not doing
anything blatantly unintelligent. :)

Best, Chris

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to