pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Yugo NAGATA <nagata@sraoss.co.jp>
Cc: kuroda.hayato@fujitsu.com <kuroda.hayato@fujitsu.com>
Cc: 'pgsql-hackers@lists.postgresql.org' <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgbench bug candidate: negative "initial connection time"
Date: Wed, 16 Jun 2021 20:25:31 +0200 (CEST)
Message-ID: <alpine.DEB.2.22.394.2106162018040.2407635@pseudo> (raw)
In-Reply-To: <20210617005934.8bd37bf72efd5f1b38e6f482@sraoss.co.jp>
References: <TYCPR01MB5870057375ACA8A73099C649F5349@TYCPR01MB5870.jpnprd01.prod.outlook.com>
	<alpine.DEB.2.22.394.2106111650360.4059032@pseudo>
	<TYAPR01MB58667A59DF050DAB01CC92F7F5319@TYAPR01MB5866.jpnprd01.prod.outlook.com>
	<20210614170702.af28e1eeaa055a818f5880e0@sraoss.co.jp>
	<alpine.DEB.2.22.394.2106141108240.1338009@pseudo>
	<20210617005934.8bd37bf72efd5f1b38e6f482@sraoss.co.jp>


Hello Yugo-san,

>> When connection break while the bench has already started,
>> maybe it makes more sense to proceed,
>
> The result would be incomplete also in this case. However, the reason why
> it is worth to proceed is that  such information is still useful for users,
> or we don't want to waste the bench that has already started?

Hmmm. It depends on what the user is testing. If one is interested in 
client resilience under errors, the bench should probably attempt a 
reconnect. If one is interested in best performance when all is well,
then clearly something is amiss and there is no point to go on.

>> although I guess that maybe reattempting connections would make also 
>> sense in such case.
>
> This might become possible after pgbench gets the feature to retry in deadlock
> or serialization errors.

Yes, I agree that part of the needed infrastructure would be in place for 
that. As reconnecting is already in place under -c, so possibly it is just 
a matter of switching between states with some care.

> I am working on rebase of the patch [2] and I will submit this in a few 
> days.

Ok. Very good, I look forward to your submission! I'll be sure to look at 
it.

-- 
Fabien.





view thread (27+ messages)  latest in thread

Message-ID: <alpine.DEB.2.22.394.2106162018040.2407635@pseudo>
Permalink:  ../alpine.DEB.2.22.394.2106162018040.2407635@pseudo/
Also on:    postgresql.org/message-id/alpine.DEB.2.22.394.2106162018040.2407635@pseudo

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: coelho@cri.ensmp.fr, nagata@sraoss.co.jp, kuroda.hayato@fujitsu.com
  Subject: Re: pgbench bug candidate: negative "initial connection time"
  In-Reply-To: <alpine.DEB.2.22.394.2106162018040.2407635@pseudo>
  References: <TYCPR01MB5870057375ACA8A73099C649F5349@TYCPR01MB5870.jpnprd01.prod.outlook.com> <alpine.DEB.2.22.394.2106111650360.4059032@pseudo> <TYAPR01MB58667A59DF050DAB01CC92F7F5319@TYAPR01MB5866.jpnprd01.prod.outlook.com> <20210614170702.af28e1eeaa055a818f5880e0@sraoss.co.jp> <alpine.DEB.2.22.394.2106141108240.1338009@pseudo> <20210617005934.8bd37bf72efd5f1b38e6f482@sraoss.co.jp> <alpine.DEB.2.22.394.2106162018040.2407635@pseudo>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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