Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCLDg-0006Mx-5B for pgsql-www@arkaria.postgresql.org; Mon, 04 Mar 2013 02:33:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UCLDf-000204-Gv for pgsql-www@arkaria.postgresql.org; Mon, 04 Mar 2013 02:33:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCLDe-0001zx-Pe for pgsql-www@postgresql.org; Mon, 04 Mar 2013 02:33:38 +0000 Received: from cl-262.qas-01.us.sixxs.net ([2001:4830:1600:105::2] helo=tamriel.snowman.net) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCLDc-0007J5-GF for pgsql-www@postgresql.org; Mon, 04 Mar 2013 02:33:38 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id E29812224E; Sun, 3 Mar 2013 21:33:35 -0500 (EST) Date: Sun, 3 Mar 2013 21:33:35 -0500 From: Stephen Frost To: Tom Lane Cc: pgsql-www@postgresql.org Subject: Re: gitweb is no longer a real-time view Message-ID: <20130304023335.GH16142@tamriel.snowman.net> References: <19759.1362357835@sss.pgh.pa.us> <20130304020324.GE16142@tamriel.snowman.net> <2480.1362363162@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eqZ9djBQf+twqQBs" Content-Disposition: inline In-Reply-To: <2480.1362363162@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.2.0-4-amd64 (x86_64) X-Uptime: 21:13:21 up 130 days, 37 min, 8 users, load average: 0.15, 0.15, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-www Precedence: bulk Sender: pgsql-www-owner@postgresql.org --eqZ9djBQf+twqQBs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Tom Lane (tgl@sss.pgh.pa.us) wrote: > cron job? I was under the impression there was some sort of push > operation driven by a commit trigger. The web site has certainly > updated nearly immediately for as long as we've been using git. > Until this week, that is. Curiously, there's two cron jobs, apparently. There's a 'push' one and then another, independent, 'pull' one. I'll assume they're actually doing different things, but I wonder if the pull isn't just a hold-over.. In any case, the push-to-anon, which I hadn't seen initially (looking at the pull side instead of the push side), does run once a minute, though it looks like there's a hook mechanism which would allow us to trigger the webserver to do a pull when a commit happens and would still be better than a once-a-minute cronjob. Even with that, however, the concern raised was that the gitweb perl script is quite expensive to run for every request, hence the reason for doing the cacheing. I've lowered the varnish cacheing to a 5m ttl and 15m grace and I'll keep an eye on it. Thanks, Stephen --eqZ9djBQf+twqQBs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlE0B/8ACgkQrzgMPqB3kiiNpQCfQveF/WIfHe3lunTiLyWpC97H LDcAoIQCMoziC5WArpqNvpq6du4vomNb =Nh0o -----END PGP SIGNATURE----- --eqZ9djBQf+twqQBs--