public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Nathan Bossart <[email protected]>
Cc: Melih Mutlu <[email protected]>
Cc: Thomas Munro <[email protected]>
Cc: Hayato Kuroda (Fujitsu) <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: wake up logical workers after ALTER SUBSCRIPTION
Date: Wed, 14 Dec 2022 14:02:58 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <20221214183759.GC773264@nathanxps13>
References: <CAGPVpCTkdaOyBLXB435VXq0RA1cHLFQut7BPm6t8D4dsdiEXZQ@mail.gmail.com>
<20221207181145.GA3698731@nathanxps13>
<[email protected]>
<20221214000145.GA638663@nathanxps13>
<[email protected]>
<20221214004105.GA669835@nathanxps13>
<20221214171023.GA689106@nathanxps13>
<[email protected]>
<20221214174535.GA773264@nathanxps13>
<[email protected]>
<20221214183759.GC773264@nathanxps13>
Nathan Bossart <[email protected]> writes:
> On Wed, Dec 14, 2022 at 01:23:18PM -0500, Tom Lane wrote:
>> Oh. What in the world is the rationale for that?
> My assumption is that this is meant to avoid starting workers as fast as
> possible if they repeatedly crash.
I can see the point of rate-limiting if the workers are failing to connect
or crashing while trying to process data. But it's not very sane to
apply the same policy to an intentional worker exit-for-reconfiguration.
Maybe we could have workers that are exiting for that reason set a
flag saying "please restart me without delay"?
A *real* fix would be to not exit at all, at least for reconfigurations
that don't change the connection parameters, but instead cope with
recomputing whatever needs recomputed in the workers' state. I can
believe that that'd be a lot of work though.
regards, tom lane
view thread (46+ messages) latest in thread
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: wake up logical workers after ALTER SUBSCRIPTION
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox