Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ud9Zc-00006K-Gz for pgsql-performance@arkaria.postgresql.org; Fri, 17 May 2013 01:35:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ud9Zb-00066f-OZ for pgsql-performance@arkaria.postgresql.org; Fri, 17 May 2013 01:35:07 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ud9ZZ-00065V-Kn for pgsql-performance@postgresql.org; Fri, 17 May 2013 01:35:05 +0000 Received: from [2404:130:0:10::40:2] (helo=mail.catalyst.net.nz) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ud9ZI-0006ck-SM for pgsql-performance@postgresql.org; Fri, 17 May 2013 01:35:04 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 916FA33A73; Fri, 17 May 2013 13:34:42 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WuNpb120IUfk; Fri, 17 May 2013 13:34:41 +1200 (NZST) Received: from [192.168.1.64] (122-60-64-230.jetstream.xtra.co.nz [122.60.64.230]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id 8F4B832FB0; Fri, 17 May 2013 13:34:41 +1200 (NZST) Message-ID: <51958930.1010103@catalyst.net.nz> Date: Fri, 17 May 2013 13:34:40 +1200 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 MIME-Version: 1.0 To: climbingrose@gmail.com CC: Tomas Vondra , pgsql-performance@postgresql.org Subject: Re: Reliability with RAID 10 SSD and Streaming Replication References: <51957499.6050905@fuzzy.cz> In-Reply-To: <51957499.6050905@fuzzy.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2404:130:0:10::40:2 (failed) X-Pg-Spam-Score: 1.6 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 17/05/13 12:06, Tomas Vondra wrote: > Hi, > > On 16.5.2013 16:46, Cuong Hoang wrote: >> Pro for the master server. I'm aware of write cache issue on SSDs in >> case of power loss. However, our hosting provider doesn't offer any >> other choices of SSD drives with supercapacitor. To minimise risk, we >> will also set up another RAID 10 SAS in streaming replication mode. For >> our application, a few seconds of data loss is acceptable. > > Streaming replication allows zero data loss if used in synchronous mode. > I'm not sure synchronous replication is really an option here as it will slow the master down to spinning disk io speeds, unless the standby is configured with SSDs as well - which probably defeats the purpose of this setup. On the other hand, if the system is so loaded that a pure SAS (spinning drive) solution can't keen up, then the standby lag may get to be way more than a few seconds...which means look out for huge data loss. I'd be inclined to apply more leverage to hosting provider to source SSDs suitable for your needs, or change hosting providers. Regards Mark -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance