Use 'Watcher = X' inestead of 'Requestor = X : RT 3.6.4

Reposting to see if some light can be shed. I am very curious…

Performing queries using ‘Requestor = X OR Cc = X OR AdminCc =X’ in 3.6.3
yielded very fast results - a few seconds. However, doing the same search
in 3.6.4 resulted in a timeout after four minutes.

Using ‘Watcher = X’ is the preferred solution, faster, etc (and what I am
using now), yes, but I would expect Requestor or AdminCc queries in 3.6.4
to be just as fast in 3.6.3 not 100x slower. :wink:

If anyone has an explanation, I’d appreciate it.

James Moseley

         James                                                         
         Moseley/BTV/PEGAS                                             
         US                                                         To 
                                   rt-users@lists.bestpractical.com    
         07/12/2007 04:31                                           cc 
         PM                                                            
                                                               Subject 
                                   Re: RT 3.6.4 problems - Fixed       
                                   (Document link: James Moseley)      

Here was my problem, which was addressed in the announcement for 3.6.4:

Use ‘Watcher =
X’ inestead of
‘Requestor = X
OR Cc = X OR
AdminCc =
X’ in the
SelfService
interface. Both
queries do quite
the same job,
but
the former is
significantly
faster.

I had added a
search to my ‘RT
at a Glance’
that searched
for tickets I
was either CC’d
or AdminCC’d on.
I have now
modified it to
use ‘Watcher’
instead. My
question,
though, what
changed between
3.6.3 and 3.6.4
to actually slow
down searches
that use CC or
AdminCC? It
slowed down so
much that my RT
home page was
timing out…

James Moseley

         James                                                         
         Moseley/BTV/PEGAS                                             
         US                                                         To 
                                   rt-users@lists.bestpractical.com    
         07/11/2007 11:02                                           cc 
         PM                                                            
                                                               Subject 
                                   RT 3.6.4 problems(Document link:    
                                   James Moseley)                      

I am running RT 3.6.3 on two systems: An older Linux system using Apache 2
and Apache’s mod_fastcgi module and an FC6 system with Apache 2 and
mod_fcgid (an alternative to the Apache mod_fastcgi module). Both
installations work just fine.

Prior to installing 4.6.4, I upgraded the few Perl modules on each system
that needed it. My RT upgrade process simply consists of installing RT
from scratch then creating softlinks to the new installation - this way I
don’t write over the working, older installation directory.

However, after switching over to 3.6.4 and restarting Apache, I get ‘500
internal server failure’ errors on both machines. On the older system with
Apache’s fast cgi module, I get:

[Wed Jul 11 20:55:58 2007] [error] [client xxx.xxx.xxx.xxx] FastCGI: comm
with server “/opt/rt3/bin/mason_handler.fcgi” aborted: idle timeout (360
sec)
[Wed Jul 11 20:55:58 2007] [error] [client xxx.xxx.xxx.xxx] FastCGI:
incomplete headers (0 bytes) received from server
“/opt/rt3/bin/mason_handler.fcgi”

On the FC6 system with the alternative mod_fcgid module, I get:

[Wed Jul 11
21:54:26 2007]
[warn]
mod_fcgid: read
data timeout in
40 seconds
[Wed Jul 11
21:54:26 2007]
[error] [client
xxx.xxx.xxx.xxx]
Premature end of
script headers:
mason_handler.fc
gi
[Wed Jul 11
21:54:35 2007]
[notice]
mod_fcgid:
process
/opt/rt3/bin/mas
on_handler.fcgi(
20631)
exit(communicati
on error), get
stop signal 15
[Wed Jul 11
21:55:12 2007]
[warn]
mod_fcgid: read
data timeout in
40 seconds
[Wed Jul 11
21:55:12 2007]
[warn]
(110)Connection
timed out:
mod_fcgid:
ap_pass_brigade
failed in
handle_request
function

No MySQL
database changes
have been made.
There is no
mason cache to
clear since I’m
basically
working with new
installations.

Anyone else
encountering
similar
problems?
Swapping back to
3.6.3 works just
fine.

James Moseley

jmoseley@corp.xanadoo.com wrote:

Performing queries using ‘Requestor = X OR Cc = X OR AdminCc =X’ in 3.6.3
yielded very fast results - a few seconds. However, doing the same search
in 3.6.4 resulted in a timeout after four minutes.

Using ‘Watcher = X’ is the preferred solution, faster, etc (and what I am
using now), yes, but I would expect Requestor or AdminCc queries in 3.6.4
to be just as fast in 3.6.3 not 100x slower. :wink:

Just upgraded to 3.6.4 here, and I’m seeing the same thing. My queries
using “Request = X Or Cc = X Or AdminCc = X” used to be pretty fast, now
they’re all timing out. I replaced them with “Watcher = X”, and now they
complete before timing out, but they’re still not as fast as the old
queries were with 3.6.3.
Jason

Ruslan released a patch for this a couple of weeks ago and posted it to the
mailing list. It’s attached here again:

(See attached file: 3.6-searches_by_watchers_performance_fix.patch)

James Moseley

         Jason Long                                                    
         <jlong@messiah.ed                                             
         u>                                                         To 
         Sent by:                  rt-users@lists.bestpractical.com    
         rt-users-bounces@                                          cc 
         lists.bestpractic                                             
         al.com                                                Subject 
                                   Re: [rt-users] Use 'Watcher = X'    
                                   inestead of 'Requestor = X : RT     
         08/16/2007 01:48          3.6.4                               
         PM                                                            

jmoseley@corp.xanadoo.com wrote:

Performing queries using ‘Requestor = X OR Cc = X OR AdminCc =X’ in 3.6.3
yielded very fast results - a few seconds. However, doing the same
search
in 3.6.4 resulted in a timeout after four minutes.

Using ‘Watcher = X’ is the preferred solution, faster, etc (and what I am
using now), yes, but I would expect Requestor or AdminCc queries in 3.6.4
to be just as fast in 3.6.3 not 100x slower. :wink:

Just upgraded to 3.6.4 here, and I’m seeing the same thing. My queries
using “Request = X Or Cc = X Or AdminCc = X” used to be pretty fast, now
they’re all timing out. I replaced them with “Watcher = X”, and now they
complete before timing out, but they’re still not as fast as the old
queries were with 3.6.3.
Jason
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

3.6-searches_by_watchers_performance_fix.patch (2.11 KB)

Note for everybody who’s suffering from this bug. Jesse released
RT-3.6.5-RC1 few days ago that is bug fix release and the patch is a
part of it. If there wouldn’t be negative feedback on the release
candidate then 3.6.5 will be available really soon.On 8/16/07, James Moseley jmoseley@corp.xanadoo.com wrote:

Ruslan released a patch for this a couple of weeks ago and posted it to the
mailing list. It’s attached here again:

(See attached file: 3.6-searches_by_watchers_performance_fix.patch)

James Moseley

         Jason Long
         <jlong@messiah.ed
         u>                                                         To
         Sent by:                  rt-users@lists.bestpractical.com
         rt-users-bounces@                                          cc
         lists.bestpractic
         al.com                                                Subject
                                   Re: [rt-users] Use 'Watcher = X'
                                   inestead of 'Requestor = X : RT
         08/16/2007 01:48          3.6.4
         PM

jmoseley@corp.xanadoo.com wrote:

Performing queries using ‘Requestor = X OR Cc = X OR AdminCc =X’ in 3.6.3
yielded very fast results - a few seconds. However, doing the same
search
in 3.6.4 resulted in a timeout after four minutes.

Using ‘Watcher = X’ is the preferred solution, faster, etc (and what I am
using now), yes, but I would expect Requestor or AdminCc queries in 3.6.4
to be just as fast in 3.6.3 not 100x slower. :wink:

Just upgraded to 3.6.4 here, and I’m seeing the same thing. My queries
using “Request = X Or Cc = X Or AdminCc = X” used to be pretty fast, now
they’re all timing out. I replaced them with “Watcher = X”, and now they
complete before timing out, but they’re still not as fast as the old
queries were with 3.6.3.
Jason


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.