Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6bN3-00046e-SU for pgsql-admin@arkaria.postgresql.org; Wed, 20 Mar 2019 13:35:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6bN2-0001KW-2e for pgsql-admin@arkaria.postgresql.org; Wed, 20 Mar 2019 13:35:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6bN1-0001KP-NU for pgsql-admin@lists.postgresql.org; Wed, 20 Mar 2019 13:35:03 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6bMy-0005jm-I2 for pgsql-admin@lists.postgresql.org; Wed, 20 Mar 2019 13:35:02 +0000 Received: from [10.8.0.101] ([185.40.248.10]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPSA (Nemesis) id 1M7NaW-1h5X2r0pLw-007oiq for ; Wed, 20 Mar 2019 14:34:57 +0100 Subject: Re: PostgreSQL high availability solutions for high rates. To: pgsql-admin@lists.postgresql.org References: From: Thomas Kellerer Message-ID: <9123d21d-b379-2c6b-3e8c-95e236e20d91@gmx.net> Date: Wed, 20 Mar 2019 14:34:56 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:pxAoDN/+njQrEaF3Zg30aFGnDmDi3xG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Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > we are evaluating PostgreSQL for our productions, > for a system with 1000 updates per second, > 1000 inserts per sec, > ~1000 deletes per second1 That adds up to 3000 transactions per second, but this: > 250,000 transactions per day only results in about 3 transactions per second. But even 3000 transactions per second can be sustained with good hardware (especially fast SSDs) without problems as long as there are at least some "quiet" times where autovacuum can catch up with the updates and deletes. > we are looking for “active-active (r/w) (r/w)”  ,  “active(r/w) -active(read) “ > and “active(r/w) stand-by”  high availability solution, Postgres only supports read-only replicas where you can distribute the load of SELECT queries. It does not offer a solution to distribute write load over multiple nodes. > what High availability solutions ( PG internal or 3rd party) are  used successfully, keeping up   with the similar rates? double of those rates? A master/slave system (including multiples slaves) can be set up without the need of 3rd party tools. If you want to distribute read requests across slaves you will need a 3rd part tool, e.g. pgPool or pgBouncer. To sustain a high write throughput on a single node you need a fast I/O system. Typically this is done with several really fast SSDs or NVMe disks nowadays. The more CPUs you have, the better.