[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Issue 3980] serf increases server load

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Thu, 15 Nov 2012 11:08:02 -0500

On 11/15/2012 10:09 AM, Mark Phippard wrote:
> When I do a GET using a web browser or wget, the logged request is for
> something like:
>
> /svn/repos/trunk/foo.txt
>
> But when I do a checkout using Serf, the logged request is for something like:
>
> /svn/repos/!svn/ver/2/trunk/foo.txt
>
> Could we give admins the ability to not log the requests for !svn ?

We can do this today by recommending the following httpd.conf configuration:

    SetEnvIf Request_URI "^" in_repos=0
    SetEnvIf Request_URI "/!svn/" in_repos=1
    SetEnvIf Request_Method "GET" dontlog
    SetEnvIf in_repos 0 !dontlog
    CustomLog logs/access_log withagent env=!dontlog

Note that we can also squeeze in other requests they might wish to not see
logged, too:

    SetEnvIf Request_Method "PROPFIND" dontlog

> We would probably also want the Subversion operational logs to not
> include the get-file log entry for these files as well.

Yup.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

Received on 2012-11-15 17:08:36 CET

This is an archived mail posted to the Subversion Dev mailing list.