pg_sql | Unsorted

Telegram-канал pg_sql - PostgreSQL

2806

English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.

Subscribe to a channel

PostgreSQL

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:

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

I believe you! It just puzzles me why...

Читать полностью…

PostgreSQL

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 😏

Читать полностью…

PostgreSQL

Oh, you're actually planning to use the built-in loadbalancing? Report on your TPS once you're done please (seriously interested)!

Читать полностью…

PostgreSQL

What your opinion on my design?

Читать полностью…

PostgreSQL

The picture is using "master/slave" terminology.

Читать полностью…

PostgreSQL

Pgbouncer only connection pooler not load balancer

Читать полностью…

PostgreSQL

And Primary and Replica ...

Читать полностью…

PostgreSQL

I’m currently working on a PostgreSQL setup with the following design, and I’d love to hear your opinions and suggestions:

Читать полностью…

PostgreSQL

Share it somewhere... https://imgbb.com/ or whatever

Читать полностью…

PostgreSQL

I’m currently working on a PostgreSQL setup with the following design, and I’d love to hear your opinions and suggestions:

Читать полностью…

PostgreSQL

If you shoot for the best, contact Markus Winand: https://use-the-index-luke.com/

Читать полностью…

PostgreSQL

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 ⬇️

Читать полностью…

PostgreSQL

In witness server only install etcd without pg right ?

Читать полностью…

PostgreSQL

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?

Читать полностью…

PostgreSQL

Do backends ever *read* from the WAL? The walsender does, of course, but do general backends ever?

Читать полностью…

PostgreSQL

I can take a picture for tps 🥲🥲

Читать полностью…

PostgreSQL

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

Читать полностью…

PostgreSQL

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).

Читать полностью…

PostgreSQL

https://www.postgresql.org/message-id/20170731211348.1449.52678%40wrigleys.postgresql.org

Читать полностью…

PostgreSQL

I don't understand you

Читать полностью…

PostgreSQL

I'm using pgbouncer but I have problem when use pgbouncer tps are 35K and without pgbouncer are 107k for read using pgbench

Читать полностью…

PostgreSQL

Looks reasonable and pretty much a standard setup. I'd personally not use PGPool but pgbouncer. But that's my personal preference.

Читать полностью…

PostgreSQL

https://ibb.co/k8483HX

Читать полностью…

PostgreSQL

I want to send design picture

Читать полностью…

PostgreSQL

How I can send pictures on this community

Читать полностью…

PostgreSQL

Is there any sql trainer available for training .?

Читать полностью…

PostgreSQL

Yes, check configuration file for option

Читать полностью…

PostgreSQL

Hi, I have PG master and slave and I want to install patroni. Do I need 1 server for witness ?

Читать полностью…
Subscribe to a channel