On Wed, Jul 13, 2011 at 04:42:41PM -0300, Wagner Sartori Junior wrote:
> I have a huge(>2M Tickets, ~500 tickets/day) 3.8.1 RT installation and
> I'm trying to upgrade to 4.0.1.
> 
> I'm facing some performance problems on my staging server(it's almost
> the same spec as my production server).
> 
> I'm using on 3.8.1:
> Alias /rt/ /opt/rt3/share/html/
> <Directory /opt/rt3/share/html/>
>        Order allow,deny
>        Allow from all
> </Directory>
> PerlModule Apache::DBI
> PerlRequire /opt/rt3/bin/webmux.pl
> PerlSetVar MasonStaticSource true

This should already be set if you're not in DevelMode

> PerlSetVar MasonBufferPreallocateSize 4096000
> PerlSetVar MasonDataCacheDefaults "cache_class=> MemoryCache, cache_depth => 
> 4"
> PerlSetVar MasonPreloads '/Elements/*'

You should be able to set these the same way (since you're still using
mod_perl) or by using the MasonParameters config option that we've
provided for a while

-kevin

> <Location /rt/>
>        AddDefaultCharset UTF-8
>        SetHandler perl-script
>        PerlHandler RT::Mason
> </Location>
> 
> To make 4.0.1 works I'd have to change to:
>         <Location /rt>
>             Order allow,deny
>             Allow from all
> 
>             SetHandler modperl
>             PerlResponseHandler Plack::Handler::Apache2
>             PerlSetVar psgi_app /opt/rt4/sbin/rt-server
>         </Location>
>         <Perl>
>             use Plack::Handler::Apache2;
>             Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
>         </Perl>
> 
> The question is: How can I assign the Mason variables(StaticSource,
> BufferSize, Preloads, ...) on RT4?

Attachment: pgpRj8Y81SVQa.pgp
Description: PGP signature

--------
2011 Training: http://bestpractical.com/services/training.html

Reply via email to