Support load balancing in libpq

Поиск
Список
Период
Сортировка
От Jelte Fennema
Тема Support load balancing in libpq
Дата
Msg-id PR3PR83MB04768E2FF04818EEB2179949F7A69@PR3PR83MB0476.EURPRD83.prod.outlook.com
обсуждение исходный текст
Ответы Re: Support load balancing in libpq  (Aleksander Alekseev <aleksander@timescale.com>)
Re: Support load balancing in libpq  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
RE: Support load balancing in libpq  ("kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com>)
Список pgsql-hackers
Load balancing connections across multiple read replicas is a pretty
common way of scaling out read queries. There are two main ways of doing
so, both with their own advantages and disadvantages:
1. Load balancing at the client level
2. Load balancing by connecting to an intermediary load balancer

Option 1 has been supported by JDBC (Java) for 8 years and Npgsql (C#)
merged support about a year ago. This patch adds the same functionality
to libpq. The way it's implemented is the same as the implementation of
JDBC, and contains two levels of load balancing:
1. The given hosts are randomly shuffled, before resolving them
    one-by-one.
2. Once a host its addresses get resolved, those addresses are shuffled,
    before trying to connect to them one-by-one.
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Phil Florent
Дата:
Сообщение: Re: Error from the foreign RDBMS on a foreign table I have no privilege on
Следующее
От: Jacob Champion
Дата:
Сообщение: Re: [PATCH] Expose port->authn_id to extensions and triggers