Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0BEE9B5DC70 for ; Mon, 12 Sep 2011 17:04:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 74959-03 for ; Mon, 12 Sep 2011 20:04:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp2.peak6.com (smtp2.peak6.com [38.98.137.9]) by mail.postgresql.org (Postfix) with ESMTP id E245CB5DC6E for ; Mon, 12 Sep 2011 17:04:41 -0300 (ADT) X-AuditID: 0a02cb1e-b7cbdae000007cad-5a-4e6e65da7e54 Message-ID: <4E6E65D8.4050403@peak6.com> Date: Mon, 12 Sep 2011 15:04:40 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Scott Marlowe CC: Marti Raudsepp , Andy Colson , Igor Chudov , Subject: Re: Postgres for a "data warehouse", 5-10 TB References: <4E6CC458.4010206@squeakycode.net> <4E6E31DF.6020407@peak6.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.220.61] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLIsWRmVeSWpSXmKPExsXCxcQrpnsrNc/P4ORdJYtZ7fIWT99eZ7I4 vm0hk8X1meeYLZZ9Os/owOqxc9Zddo997RPZPC7sm8busfjpN+YAlqgGRpvEvLz8ksSSVIWU 1OJkW6UAV0dvM4XgksS8lMSiFAWXzOLknMTM3NQiJYXMFFslIyWFgpzE5NTc1LwSW6XEgoLU vBQlOy4FDGADVJaZp5Cal5yfkpmXbqvkGeyva2FhaqlrqGQXjwAJ3SwZm3ecZyw4wFOxbXJW A2MXVxcjJ4eEgInEvGtnmSFsMYkL99azgdi8AhoSO3bMBLNZBFQlZpyawApiswmoSSzcfZMR xBYSkJXYv+ocWJxfQFhi34cmsDmiAgESCya9ZYSYIyhxcuYTFhBbREBb4tGb60BxLg5mgX5G iU1rH4M1CwvYS3z4uIwFJCEksIRZYvGpHiaQBKdAoMTZn3vZQWxmAVuJC3Ous0DY8hLb385h hrhCTuJOw3OgSzmAPlCQuL7cfwKj0Cwku2ch6Z6FpHsBI/MqRvHissTkjEyzguLckgJDvYLU xGwzvbzUkk2M4Eg/LbeDccUFxUOMAhyMSjy8E6zy/IRYE8uKK3MPMUpwMCuJ8K7xBgrxpiRW VqUW5ccXleakFh9i1AYG2kRmKe7kfGASyiuJNzYwUBLnTfqT6SckkA5MBNmpqQWpRTDVTByc Ug2MJT8djp289eyDqV1YZngJ2/ToxC/OvpH5P7+eq9QLOvy3xqHTdnv/+nVOoi3z7u/ST375 q3Gx6w1d7+cT9x5K8pjNuaH83YsG5nlKkyI0Lddz2YlEzP+4aUfD8i0rZBdcrfeSCHw/rfBw g9wR33w+RdsP0/5vnsV7f7LZZ2tm/YBWrU2R7zPPKLEUZyQaajEXFScCAB/9KbYAAwAA X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/159 X-Sequence-Number: 44935 On 09/12/2011 02:48 PM, Scott Marlowe wrote: > I put it to you that your hardware has problems if you have a pg db > that's corrupting from having too much vacuum activity. What? No. We optimized by basically forcing autovacuum to never run during our active periods. We never actually encountered wrap-around corruption. I was just saying that 600M is a relatively high setting for autovacuum_freeze_max_age. :) I was alluding to the fact that if a DBA had his system running for a week at our transaction level, and PG didn't have forced auto vacuum, and their maintenance lapsed even slightly, they could end up with a corrupt database. Not too far-fetched for someone coming from MySQL, really. Our problem is we run a financial site, and the front-end very aggressively monitors network and database timeouts. The limit is sufficiently low that a vacuum would cause enough IO to trigger application timeouts, even with vacuum_cost_delay. And of course, setting vacuum_cost_delay too high quickly triples or quadruples vacuum times. Now that we're using FusionIO cards, I've been thinking about turning autovacuum back on, but I want to run some tests first. My point stands, though. Don't go crazy with transactions until you know your config can stand up to it, and reduce if possible. We found some tweak points that drastically reduced transaction count with no detrimental effect on the app itself, so we jumped on them. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604 312-676-8870 sthomas@peak6.com ______________________________________________ See http://www.peak6.com/email-disclaimer/ for terms and conditions related to this email