AW: AW: AW: AW: AW: broken backup trail in case of quickly patroniswitchback and forth

Поиск
Список
Период
Сортировка
От Zwettler Markus (OIZ)
Тема AW: AW: AW: AW: AW: broken backup trail in case of quickly patroniswitchback and forth
Дата
Msg-id 99a30851a68b41c5bcd77653417f21b5@zuerich.ch
обсуждение исходный текст
Ответ на Re: AW: AW: AW: AW: broken backup trail in case of quickly patroniswitchback and forth  ("Brad Nicholson" <bradn@ca.ibm.com>)
Ответы Re: AW: AW: AW: AW: AW: broken backup trail in case of quickly patroniswitchback and forth
Список pgsql-general

Let me clarify: "But, it might start killing processes after a certain period if a _fast_ shutdown after SIGTERM didn't happen".

 

I am talking about stopping the Patroni master process with a systemd scipt.

 

 

 

Von: Brad Nicholson <bradn@ca.ibm.com>
Gesendet: Freitag, 8. November 2019 15:58
An: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general@lists.postgresql.org
Betreff: Re: AW: AW: AW: AW: broken backup trail in case of quickly patroni switchback and forth

 

"Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch> wrote on 2019/11/08 07:51:33 AM:

> From: "Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch>

> To: Brad Nicholson <bradn@ca.ibm.com>
> Cc: Adrian Klaver <adrian.klaver@aklaver.com>, "pgsql-
> general@lists.postgresql.org" <pgsql-general@lists.postgresql.org>

> Date: 2019/11/08 07:51 AM
> Subject: [EXTERNAL] AW:  AW: AW: AW: broken backup trail in case of
> quickly patroni switchback and forth

>
> It depends. It is a switchover if Patroni could to a clean shutdown.
> But, it might start killing processes after a certain period if a
> normal shutdown after SIGTERM didn't happen. This would not be a
> switchover anymore. In other words there is no guarantee for a
> "clean" switchover. This might be the reason why the Patroni guys
> are always talking about failover only.



If it can't do a clean shutdown, that points to something wrong with Postgres itself.  Why doesn't a fast shutdown work for you in those cases?

> It's not a Patroni issue but it's triggered by Patroni as it will do
> "some kind of switchover" on a regular shutdown.


Sure, but you should be looking at why Postgres can't cleanly shutdown.

How are you telling Patroni to switchover? Are you using the Patroni switchover command via patronictl or the API, or sending a signal to the Patroni process?  I think the explicit switchover
command will not behave this way.  It will return you a 503 if it can't switchover and not change the primary (that is something you can confirm with the Patroni developers).

Brad.

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: INOUT PARAMETERS WITH RETURN TABLES IN FUNCTION
Следующее
От: "Brad Nicholson"
Дата:
Сообщение: Re: AW: AW: AW: AW: AW: broken backup trail in case of quickly patroniswitchback and forth