Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 17C3613364DE for ; Sat, 23 Apr 2011 13:09:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 06619-06 for ; Sat, 23 Apr 2011 16:09:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id 58D0E133616B for ; Sat, 23 Apr 2011 13:09:39 -0300 (ADT) Received: by gyd10 with SMTP id 10so337118gyd.19 for ; Sat, 23 Apr 2011 09:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=7O642hSg0IlTQRTMXgcG5Ymc04mat0VaZRj/fiw5SXk=; b=CQew0TuRwwAYeVOHCE1Z5ccK3cgl88X3MAxW8TVmDnDwjwfH3KnDFtViOMrI38Km/7 P5p9hUguJvH8HckpLGTB/uwZ5F+voXsPmtbTvEZekGLJzjSojn+K4X6mO0luEjIF9vuB VBYrFDBHP/bq2cnAcN+UmMSrmaDuJ9gOu6uFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=inFOSERfIA1RSwv6xezChzLys0ulFceLHE5VsTqteev9Is0o21NDNikkZJ5Gb79Ep+ VuGNzm40EFMZzYeHxVGOIQedxCTqlmL48SJn+AdXKuz5PvGYzxdfWXVGiXDFSayCMjjZ 6utV1/c5DDTDhZE+WIIsNlqapZJ+A9gPiZ5hM= Received: by 10.151.62.10 with SMTP id p10mr2170364ybk.364.1303574978132; Sat, 23 Apr 2011 09:09:38 -0700 (PDT) Received: from [10.4.195.72] ([198.228.194.51]) by mx.google.com with ESMTPS id q29sm1846691ybk.25.2011.04.23.09.09.34 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 23 Apr 2011 09:09:36 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8A293) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <0B4657E5-134C-409B-B0CC-A801F4299D7E@gmail.com> Cc: "pgsql-performance@postgresql.org" X-Mailer: iPhone Mail (8A293) From: Robert Haas Subject: Re: How to configure a read-only database server? Date: Sat, 23 Apr 2011 12:10:15 -0400 To: Stefan Keller X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.897 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, MIME_QP_LONG_LINE=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201104/331 X-Sequence-Number: 43393 On Apr 18, 2011, at 6:08 PM, Stefan Keller wrote: > I browsed the faq and looked at PostgreSQL performance books but I > could not find the obvious: > How to configure a read-only database server? >=20 > I have a single-disk virtual Linux system and a read-only dataset > which is exposed to internet and completely replaced from time to > time. >=20 > This is what I found so far: >=20 > * Disabling autovacuum daemon. > * Setting postgresql.conf parameters: > fsync=3Doff > synchronous_commit=3Doff > full_page_writes=3Doff All of those speed up writes. I don't know that they will make any differenc= e at all on a read-only workload. > * What about wal_level and archive_mode? Same with these. >=20 ...Robert=