pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Doubt in pgbouncer
9+ messages / 6 participants
[nested] [flat]

* Doubt in pgbouncer
@ 2020-10-01 23:42  Rama Krishnan <raghuldrag@gmail.com>
  0 siblings, 2 replies; 9+ messages in thread

From: Rama Krishnan @ 2020-10-01 23:42 UTC (permalink / raw)
  To: pgsql-general

Hi Friends,

By using pg bouncer can we split read and queries

Thank
Rk

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt in pgbouncer
@ 2020-10-01 23:43  Rob Sargent <robjsargent@gmail.com>
  parent: Rama Krishnan <raghuldrag@gmail.com>
  1 sibling, 1 reply; 9+ messages in thread

From: Rob Sargent @ 2020-10-01 23:43 UTC (permalink / raw)
  To: Rama Krishnan <raghuldrag@gmail.com>; +Cc: pgsql-general



> On Oct 1, 2020, at 5:42 PM, Rama Krishnan <raghuldrag@gmail.com> wrote:
> 
> Hi Friends, 
> 
> By using pg bouncer can we split read and queries
> 
> Thank
> Rk

Did you mean reads vs writes?





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt in pgbouncer
@ 2020-10-02 03:13  Rama Krishnan <raghuldrag@gmail.com>
  parent: Rob Sargent <robjsargent@gmail.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Rama Krishnan @ 2020-10-02 03:13 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general

Yeah.  Rob

On Fri, 2 Oct, 2020, 05:14 Rob Sargent, <robjsargent@gmail.com> wrote:

>
>
> > On Oct 1, 2020, at 5:42 PM, Rama Krishnan <raghuldrag@gmail.com> wrote:
> >
> > Hi Friends,
> >
> > By using pg bouncer can we split read and queries
> >
> > Thank
> > Rk
>
> Did you mean reads vs writes?
>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt in pgbouncer
@ 2020-10-02 03:15  Rama Krishnan <raghuldrag@gmail.com>
  parent: Rama Krishnan <raghuldrag@gmail.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Rama Krishnan @ 2020-10-02 03:15 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general

Yeah rob can  we spilt read/write queries using pgbouncer

On Fri, 2 Oct, 2020, 08:43 Rama Krishnan, <raghuldrag@gmail.com> wrote:

> Yeah.  Rob
>
> On Fri, 2 Oct, 2020, 05:14 Rob Sargent, <robjsargent@gmail.com> wrote:
>
>>
>>
>> > On Oct 1, 2020, at 5:42 PM, Rama Krishnan <raghuldrag@gmail.com> wrote:
>> >
>> > Hi Friends,
>> >
>> > By using pg bouncer can we split read and queries
>> >
>> > Thank
>> > Rk
>>
>> Did you mean reads vs writes?
>>
>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt in pgbouncer
@ 2020-10-02 06:50  Fabio Pardi <f.pardi@portavita.eu>
  parent: Rama Krishnan <raghuldrag@gmail.com>
  1 sibling, 2 replies; 9+ messages in thread

From: Fabio Pardi @ 2020-10-02 06:50 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi Rama,

On 02/10/2020 01:42, Rama Krishnan wrote:
> Hi Friends, 
>
> By using pg bouncer can we split read and queries
>

pgbouncer is just a connection pooler.

The logic where to send the reads and where the writes, should be in our application.

regards,

fabio pardi

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt in pgbouncer
@ 2020-10-02 07:13  David G. Johnston <david.g.johnston@gmail.com>
  parent: Fabio Pardi <f.pardi@portavita.eu>
  1 sibling, 0 replies; 9+ messages in thread

From: David G. Johnston @ 2020-10-02 07:13 UTC (permalink / raw)
  To: Fabio Pardi <f.pardi@portavita.eu>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On Thursday, October 1, 2020, Fabio Pardi <f.pardi@portavita.eu> wrote:

> Hi Rama,
>
> On 02/10/2020 01:42, Rama Krishnan wrote:
>
> Hi Friends,
>
> By using pg bouncer can we split read and queries
>
>
> pgbouncer is just a connection pooler.
>
> The logic where to send the reads and where the writes, should be in our
> application.
>

Seems as if pgPool is at least worth considering...

David J.

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt in pgbouncer
@ 2020-10-02 07:32  Achilleas Mantzios <achill@matrix.gatewaynet.com>
  parent: Fabio Pardi <f.pardi@portavita.eu>
  1 sibling, 0 replies; 9+ messages in thread

From: Achilleas Mantzios @ 2020-10-02 07:32 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 2/10/20 9:50 π.μ., Fabio Pardi wrote:
> Hi Rama,
>
> On 02/10/2020 01:42, Rama Krishnan wrote:
>> Hi Friends,
>>
>> By using pg bouncer can we split read and queries
>>
>
> pgbouncer is just a connection pooler.
>
> The logic where to send the reads and where the writes, should be in our application.
yeah reading back some comments over the github on various issues, the pgbouncer hackers were of the philosophy that pgbouncer should remain as query agnostic as possible, in the sense that it should 
not investigate the content of the queries. Those had to do with classic problems like search_path in transaction mode (some PR's were rejected because of that).
You might find this interesting : https://github.com/awslabs/pgbouncer-rr-patch
>
> regards,
>
> fabio pardi


-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Doubt in pgbouncer
@ 2021-11-03 13:48  Rama Krishnan <raghuldrag@gmail.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Rama Krishnan @ 2021-11-03 13:48 UTC (permalink / raw)
  To: pgsql-general

Hi All,

What is the limit value for fixing connection timeout issues?

As i searched in google and verified pgbouncer document
client_login_timeout

If a client connects but does not manage to log in in this amount of time,
it will be disconnected. Mainly needed to avoid dead connections stalling
SUSPEND and thus online restart. [seconds]

Default: 60.0

Can you pls suggest the best value ? or how to decide this parameter value



Regards

A.Rama Krishnan

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Doubt in pgbouncer
@ 2021-11-03 15:16  Ninad Shah <nshah.postgres@gmail.com>
  parent: Rama Krishnan <raghuldrag@gmail.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Ninad Shah @ 2021-11-03 15:16 UTC (permalink / raw)
  To: Rama Krishnan <raghuldrag@gmail.com>; +Cc: pgsql-general

There is no equation to determine the best value. It depends on your
environment.


Regards,
Ninad Shah

On Wed, 3 Nov 2021 at 19:18, Rama Krishnan <raghuldrag@gmail.com> wrote:

>
> Hi All,
>
> What is the limit value for fixing connection timeout issues?
>
> As i searched in google and verified pgbouncer document
> client_login_timeout
>
> If a client connects but does not manage to log in in this amount of time,
> it will be disconnected. Mainly needed to avoid dead connections stalling
> SUSPEND and thus online restart. [seconds]
>
> Default: 60.0
>
> Can you pls suggest the best value ? or how to decide this parameter value
>
>
>
> Regards
>
> A.Rama Krishnan
>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2021-11-03 15:16 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 23:42 Doubt in pgbouncer Rama Krishnan <raghuldrag@gmail.com>
2020-10-01 23:43 ` Rob Sargent <robjsargent@gmail.com>
2020-10-02 03:13   ` Rama Krishnan <raghuldrag@gmail.com>
2020-10-02 03:15     ` Rama Krishnan <raghuldrag@gmail.com>
2020-10-02 06:50 ` Fabio Pardi <f.pardi@portavita.eu>
2020-10-02 07:13   ` David G. Johnston <david.g.johnston@gmail.com>
2020-10-02 07:32   ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
2021-11-03 13:48 Doubt in pgbouncer Rama Krishnan <raghuldrag@gmail.com>
2021-11-03 15:16 ` Ninad Shah <nshah.postgres@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox