Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 0685ACA1FC2 for ; Fri, 10 Feb 2012 15:48:36 -0400 (AST) Received: from moutng.kundenserver.de ([212.227.17.8]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RvwSR-00026j-6r for pgsql-performance@postgresql.org; Fri, 10 Feb 2012 19:48:36 +0000 Received: from obelix.localnet (AToulouse-556-1-284-106.w90-45.abo.wanadoo.fr [90.45.208.106]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0LaJMk-1SO6Fy1b4g-00lNi8; Fri, 10 Feb 2012 20:48:09 +0100 From: =?utf-8?q?C=C3=A9dric_Villemain?= Reply-To: cedric@2ndquadrant.com Organization: 2ndQuadrant To: pgsql-performance@postgresql.org Subject: Re: random_page_cost = 2.0 on Heroku Postgres Date: Fri, 10 Feb 2012 20:48:07 +0100 User-Agent: KMail/1.13.7 (Linux/3.1.0-1-amd64; KDE/4.6.5; x86_64; ; ) Cc: Josh Berkus , Peter van Hardenberg , Jeff Janes , Scott Marlowe References: <4F3570E2.2070301@agliodbs.com> In-Reply-To: <4F3570E2.2070301@agliodbs.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201202102048.07495.cedric@2ndquadrant.com> X-Provags-ID: V02:K0:uUGPGIrEKUzxrSEvSosf4HCtHn2rkwkvpvEID32Lv2r c4wrgo8x8UDcUMm6XIPzsvXlxHHO+nk8mHV0E7WiiovAb7wFgm Blz2PqZRqMIhn4Uv9eS7c51+lMwAaCmQ4b4ACOiu3YBjBZLRva jiujGcaRgzTDEQqaq6PmZmJEeHWpaXOi+wacQp1WUbtxSxl33i 3uKquturNo3HYMKPEpPoVSxeGAFkg7JIqpBkdxjWs3fwnHKn0A vFpuFkhaxTQL2kyqY27J8Lr2D7eqy0lgD4namSRnOeLnWyPHen XkZ+qrcP8w/EJ523LMicJ/y00xRt91Sa7ZeZrnQcERaKpZLkgE 1vku5x31w24a3mJ3cwyIeVwsCkX93rq5bNTis87hzuBOuo+8Pv uhLJMO+8r1HkA== X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/97 X-Sequence-Number: 46269 Le vendredi 10 f=C3=A9vrier 2012 20:32:50, Josh Berkus a =C3=A9crit : > On 2/9/12 2:41 PM, Peter van Hardenberg wrote: > > Hmm, perhaps we could usefully aggregate auto_explain output. >=20 > The other option is to take a statistical approach. After all, what you > want to do is optimize average response times across all your user's > databases, not optimize for a few specific queries. >=20 > So one thought would be to add in pg_stat_statements to your platform > ... something I'd like to see Heroku do anyway. Then you can sample > this across dozens (or hundreds) of user databases, each with RPC set to > a slightly different level, and aggregate it into a heat map. >=20 > That's the way I'd do it, anyway. in such set up, I sometime build a ratio between transactions processed and= =20 CPU usage, many indicators exists, inside and outside DB, that are useful t= o=20 combine and use just as a 'this is normal behavior'. It turns to be easy in= =20 the long term to see if things go better or worse. =2D-=20 C=C3=A9dric Villemain +33 (0)6 20 30 22 52 http://2ndQuadrant.fr/ PostgreSQL: Support 24x7 - D=C3=A9veloppement, Expertise et Formation