Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 69A149FBC92 for ; Tue, 19 Jun 2007 13:54:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 42923-07 for ; Tue, 19 Jun 2007 13:54:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id B23D79FB7E6 for ; Tue, 19 Jun 2007 13:54:54 -0300 (ADT) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id A944B74E5F; Tue, 19 Jun 2007 17:54:53 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 9571C2740CD; Tue, 19 Jun 2007 17:54:53 +0100 (BST) Message-ID: <46780A5D.50006@archonet.com> Date: Tue, 19 Jun 2007 17:54:53 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: "Campbell, Lance" Cc: pgsql-performance@postgresql.org Subject: Re: PostgreSQL Configuration Tool for Dummies References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/365 X-Sequence-Number: 25398 Campbell, Lance wrote: > Please think simple. I stress the word simple. The real challenge here > is getting the formulas correct. Someone mentioned to not focus on the > values but just get something out there for everyone to help tweak. I > agree! > > What questions do you think should be asked in order to figure out what > values should go into the formulas for the configuration suggestions? > > My thoughts: > > What version of PostgreSQL are you using? OK, obviously not needed if embedded in the manuals. > How many connections will be made to PostgreSQL? OK (but changed order) > How much memory will be available to PostgreSQL? Would structure it like: - What is total memory of your machine? - How much do you want to reserve for other apps (e.g. apache/java)? Also: - How many disks will PG be using? - How much data do you think you'll store? - Will your usage be: mostly reads|balance of read+write|mostly writes - Are your searches: all very simple|few complex|lots of complex queries Then, with the output provide a commentary stating reasons why for the chosen values. e.g. random_page_cost = 1.0 Because you have [effective_cache_size = 1GB] and [total db size = 0.5GB] the cost of fetching a page is the same no matter what order you fetch them in. -- Richard Huxton Archonet Ltd