Re: O(n) tasks cause lengthy startups and checkpoints

Поиск
Список
Период
Сортировка
Искать
От
Nathan Bossart
Тема
Re: O(n) tasks cause lengthy startups and checkpoints
Дата
Msg-id
20220623171552.GA96638@nathanxps13
Ответ на
Список
Дерево обсуждения
O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Euler Taveira" <euler@eulerto.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Robert Haas <robertmhaas@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Robert Haas <robertmhaas@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Bruce Momjian <bruce@momjian.us>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Amul Sul <sulamul@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Maxim Orlov <orlovmg@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints "Bossart, Nathan" <bossartn@amazon.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Simon Riggs <simon.riggs@enterprisedb.com>
Re: O(n) tasks cause lengthy startups and checkpoints Robert Haas <robertmhaas@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Simon Riggs <simon.riggs@enterprisedb.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Simon Riggs <simon.riggs@enterprisedb.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Simon Riggs <simon.riggs@enterprisedb.com>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Robert Haas <robertmhaas@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Simon Riggs <simon.riggs@enterprisedb.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Tom Lane <tgl@sss.pgh.pa.us>
Re: O(n) tasks cause lengthy startups and checkpoints Andres Freund <andres@anarazel.de>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Tom Lane <tgl@sss.pgh.pa.us>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Daniel Gustafsson <daniel@yesql.se>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Tom Lane <tgl@sss.pgh.pa.us>
Re: O(n) tasks cause lengthy startups and checkpoints Nathan Bossart <nathandbossart@gmail.com>
Re: O(n) tasks cause lengthy startups and checkpoints Simon Riggs <simon.riggs@enterprisedb.com>
Re: O(n) tasks cause lengthy startups and checkpoints Simon Riggs <simon.riggs@enterprisedb.com>
On Thu, Jun 23, 2022 at 09:46:28AM -0400, Robert Haas wrote:
> I do agree that a general mechanism for getting cleanup tasks done in
> the background could be a useful thing to have, but I feel like it's
> hard to see exactly how to make it work well. We can't just allow it
> to spin up a million new processes, but at the same time, if it can't
> guarantee that time-critical tasks get performed relatively quickly,
> it's pretty worthless.

My intent with this new auxiliary process is to offload tasks that aren't
particularly time-critical.  They are only time-critical in the sense that
1) you might eventually run out of space and 2) you might encounter
wraparound with the logical replication files.  But AFAICT these same risks
exist today in the checkpointer approach, although maybe not to the same
extent.  In any case, 2 seems solvable to me outside of this patch set.

I'm grateful for the discussion in this thread so far, but I'm not seeing a
clear path forward.  I'm glad to see threads like the one to stop doing
end-of-recovery checkpoints [0], but I don't know if it will be possible to
solve all of these availability concerns in a piecemeal fashion.  I remain
open to exploring other suggested approaches beyond creating a new
auxiliary process.

[0] https://postgr.es/m/CA%2BTgmobrM2jvkiccCS9NgFcdjNSgAvk1qcAPx5S6F%2BoJT3D2mQ%40mail.gmail.com

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com


В списке pgsql-hackers по дате отправления
От: Simon Riggs
Дата:
От: Jacob Champion
Дата:
FAQ