17
I am using pgbouncer in transaction mode & trying to allow close to 500 active transaction. The purpose is simply to stress test the setup
Current setup: [ 'n' clients --->1 pgbouncer ----> 1 postgres ]
I notice that my transaction/second (tps) decreases considerably when I use pgbouncer instead of a direct connection to postgres.
For the same set to transaction (via pgbench)
Direct connections => 10k (tps) appx
pgbouncer connection => 3k (tps) appx
Is there any configuration in pgbouncer that needs to be tuned to allow a better performance?
I understand pgbouncer is a single threaded application, but would like to tune it till its best. Following is my pgbouncer configuration:
I didn't think so. Very weird situation where a lot of backends waiting on IO:DataFileRead correlates precisely with a lot of read I/O from the WAL volume.
Читать полностью…Impressive. Never heard of anyone getting better performance out of pgpool, but then again I've never looked back at that can of worms anyway 😏
Читать полностью…Oh, you're actually planning to use the built-in loadbalancing? Report on your TPS once you're done please (seriously interested)!
Читать полностью…I’m currently working on a PostgreSQL setup with the following design, and I’d love to hear your opinions and suggestions:
Читать полностью…I’m currently working on a PostgreSQL setup with the following design, and I’d love to hear your opinions and suggestions:
Читать полностью…Hello and welcome to this chat. Here we discuss PostgreSQL and provide best-effort voluntary support on Postgresql issues.
If you have any question, try asking kindly, including log files, error descriptions and perhaps what you're trying to do.
- 🚫 photos and screenshots
- 🚫 spam and offtopic
- ✅ questions with log files and clear explanation of what's gone wrong
⬇️ Press the button down here ⬇️
Could it be Drive Saturation?
It's perfectly logical. When IO goes up (especially writes).
WAL IO goes up.
And Read IO goes up. (you have to read it before you write it (to copy it).
You have to read another block if this block is full. THEN you get to write).
Meanwhile, you have to write to WAL.
Are you seeing locks/waits?
Do backends ever *read* from the WAL? The walsender does, of course, but do general backends ever?
Читать полностью…With pgpool load- balancer my hardware server are 16 core CPU , 64 ram , 1TB ssd , with pgpool load-balancer read are 107000 tps abd write 21000tps using pgbench for 100 client concurntly
Читать полностью…RO and RW from the applications should be clearly separated (e.g. by access IP).
All the unnatural intelligence in an attempt to divide it by statements is a complete and utter crap.
Also, there should be some repmgr(s) at application side. Probably those third witness should go exactly there (there is not a much of a use of the working primary server that doesn't have connectivity with the apps).
(Also, all those autofailovers, rafts and other "HA" stuff is a kind of ha-ha-ha on all the initial attempts to build postgres server setup.
You'd have to build a good monitoring, a good performance test stand, a good DBA team with understanding of long transactions/performance trashing/wal gathering/vacuum inefficiency problems and 24x7 response personnel to make your availability levels depend on network and hardware failures.
Before that... Well, autofailovers would not be able to increase availability. But, in fact, flapping would probably decrease it...
However, if you feel better with it — why not, go on. Not a much damage).
https://www.postgresql.org/message-id/20170731211348.1449.52678%40wrigleys.postgresql.org
Читать полностью…I'm using pgbouncer but I have problem when use pgbouncer tps are 35K and without pgbouncer are 107k for read using pgbench
Читать полностью…Looks reasonable and pretty much a standard setup. I'd personally not use PGPool but pgbouncer. But that's my personal preference.
Читать полностью…Hi, I have PG master and slave and I want to install patroni. Do I need 1 server for witness ?
Читать полностью…