You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/11/19 21:07:48 UTC

DO NOT REPLY [Bug 48241] New: mod_cache is missing hit/miss indication to the error log/env vars

https://issues.apache.org/bugzilla/show_bug.cgi?id=48241

           Summary: mod_cache is missing hit/miss indication to the error
                    log/env vars
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_cache
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: wrowe@apache.org


Read an inquiry about logging cache hits and misses in the access log (or
control what is logged in the access log using an env test)

mod_cache should record a 'cache-hit' flag on success or failure if caching was
configured.  E.g. '1' is a hit, '0' is a failure, uninitialized was no attempt.

What makes this more severe is that nothing about the cache behavior is
captured in the debug-level error log, which means there is no guidance of
whether the cache attempted a lookup and encountered success or failure (unless
there is a hard error about accessing the respective cache repository).

Finally there is no debug-level error logging to indicate an element was added
to the cache (or not added, and perhaps what header circumvented this), again a
serious omission for diagnostics of cache configuration.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48241] mod_cache is missing hit/miss indication to the error log/env vars

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48241

Takashi Sato <ta...@lans-tv.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |takashi@lans-tv.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48241] mod_cache is missing hit/miss indication to the error log/env vars

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48241

Kevin J Walters <kj...@ms.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kjw@ms.com

--- Comment #1 from Kevin J Walters <kj...@ms.com> 2009-11-20 09:40:48 UTC ---
>From a performance analysis point of view, I agree that it would be great to be
able to add information on cache use in the access log including information
about revalidation with the the origin web server (for mod_proxy'd content).

Is r->notes the natural place for additional information that users may wish to
add to LogFormat via %{thingy}n?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48241] mod_cache is missing hit/miss indication to the access log/env vars

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48241

--- Comment #5 from Will Rowe <wr...@apache.org> 2010-02-01 19:36:32 UTC ---
Paul, I had tested something similar, and presumed that the quick-handler was
causing the variable to not be set.  I'll retest with your example.

Hackish, sure, but if it works that's great!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48241] mod_cache is missing hit/miss indication to the error log/env vars

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48241

--- Comment #2 from Paul Querna <ch...@force-elite.com> 2009-11-25 17:21:53 UTC ---
You can use SetEnv to detect cache misses today:
<http://alex.polvi.net/2008/12/04/getting-cache-statistics-with-mod_cache/>

Add this to your config:
SetEnv CACHE_MISS 1

Log like this:
%{CACHE_MISS}e

This could be documented better, but it 'works' today without any extra code.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48241] mod_cache is missing hit/miss indication to the error log/env vars

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48241

--- Comment #3 from Graham Leggett <mi...@sharp.fm> 2010-02-01 17:40:10 UTC ---
Debug level logging from mod_cache works fine for me:

[Tue Feb 02 02:50:55 2010] [debug] mod_cache.c(159): Adding CACHE_SAVE filter
for /index.shtml
[Tue Feb 02 02:50:55 2010] [debug] mod_cache.c(166): Adding CACHE_REMOVE_URL
filter for /index.shtml
[Tue Feb 02 02:50:55 2010] [debug] mod_cache.c(850): cache: /index.shtml not
cached. Reason: Authorization required

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48241] mod_cache is missing hit/miss indication to the access log/env vars

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48241

Will Rowe <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|mod_cache is missing        |mod_cache is missing
                   |hit/miss indication to the  |hit/miss indication to the
                   |error log/env vars          |access log/env vars

--- Comment #4 from Will Rowe <wr...@apache.org> 2010-02-01 18:48:01 UTC ---
That covers the error log, but we were mostly describing the access log.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48241] mod_cache is missing hit/miss indication to the access log/env vars

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48241

Graham Leggett <mi...@sharp.fm> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Graham Leggett <mi...@sharp.fm> 2010-09-27 05:21:28 EDT ---
Fixed on trunk in r1001639.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org