D
D
Dr. Robert Ford2019-08-10 01:01:13
PostgreSQL
Dr. Robert Ford, 2019-08-10 01:01:13

How should you split Postgres database queries?

There is a Postgres cluster of 7 servers (6 slaves, 1 master) managed by patroni. What is the best way to separate requests to the database for reading / writing - hang HAProxy and make 2 ports - one read-write (master), and the other - read-only (slave), or use pgbouncer / pgpool?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Vakhrushev, 2020-02-08
@IvanVakhrushev

Consider using Odyssey as a connection pooler https://github.com/yandex/odyssey
A pooler will definitely not hurt.
We define trips to read-only replicas at the application level.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question