RE: Support load balancing in libpq

Поиск
Список
Период
Сортировка
От kuroda.hayato@fujitsu.com
Тема RE: Support load balancing in libpq
Дата
Msg-id TYCPR01MB587039601D7796383CDA56C4F58B9@TYCPR01MB5870.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответ на Support load balancing in libpq  (Jelte Fennema <Jelte.Fennema@microsoft.com>)
Ответы Re: Support load balancing in libpq  (Jelte Fennema <Jelte.Fennema@microsoft.com>)
Список pgsql-hackers
Dear Jelte,

I like your idea. But do we have to sort randomly even if target_session_attr is set to 'primary' or 'read-write'?

I think this parameter can be used when all listed servers have same data,
and we can assume that one of members is a primary and others are secondary.

In this case user maybe add a primary host to top of the list,
so sorting may increase time durations for establishing connection.

Best Regards,
Hayato Kuroda
FUJITSU LIMITED


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: EINTR in ftruncate()
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [RFC] building postgres with meson - v10