From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-admin@lists.postgresql.org
Subject: Re: PostgreSQL high availability solutions for high rates.
Date: Wed, 20 Mar 2019 14:34:56 +0100
Message-ID: <9123d21d-b379-2c6b-3e8c-95e236e20d91@gmx.net> (raw)
In-Reply-To: <AM6PR06MB4567DC59B34667821C9517C6E6400@AM6PR06MB4567.eurprd06.prod.outlook.com>
References: <AM6PR06MB4567DC59B34667821C9517C6E6400@AM6PR06MB4567.eurprd06.prod.outlook.com>
> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: PostgreSQL high availability solutions for high rates.
In-Reply-To: <9123d21d-b379-2c6b-3e8c-95e236e20d91@gmx.net>
References: <AM6PR06MB4567DC59B34667821C9517C6E6400@AM6PR06MB4567.eurprd06.prod.outlook.com> <9123d21d-b379-2c6b-3e8c-95e236e20d91@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox