Re: "Stand-in" server recovery techniques

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: "Stand-in" server recovery techniques
Дата
Msg-id dcc563d10708221504k59e8961fyb830ec8eb83598fc@mail.gmail.com
обсуждение исходный текст
Ответ на "Stand-in" server recovery techniques  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: "Stand-in" server recovery techniques  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-admin
On 8/22/07, Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:

> THE QUESTION
>
> How do we create the PostgreSQL instance on the stand-in box?
>
> I see four possibilities:
>
> (1)  Restore the latest base backup and apply all WAL files available.
> This is likely to be the slowest option.

I'm leaning towards option 1, because you mentioned that you will be
doing this ONLY in the event the primary on site server can't come
back up.  So, I'm going to assume that you're going to spend a few
minutes (30 or so) trying to resurrect the primary server.

WHILE doing that, I would have the backup server running the WAL files
to get ready to go.

The nice thing about this setup is that it's the simplest to
implement, hence the least error prone, and you can therefore hand it
off to a worker bee while you work on getting the main server up and
running.

Then, when it's ready, you have your decision time, do you keep trying
to get the real server back up, or apply your remaining transactions
to the new server and go from there.

> (2)  Kick the warm standby on "the farm" into production mode, shut down
> the instance, and then copy the instance directory.  This should be
> relatively quick and safe, but has the down side of needing to restart
> the warm standby from the latest base backup afterwards, if that is even
> possible.  It seems like we might need to make a fresh base backup from the
> (stopped) instance on the warm standby farm.

I'm not sure exactly what you're saying here.  If you're saying what I
think you're saying, then you're already constantly playing the WAL
files as they arrive from off site.  If that's the case then this
option seems quite attractive in terms of getting you back up and
running fast.

Since the standby would now become production, making a snapshot of
the standby before making it production would mean that you can then
use the snapshot elsewhere for the standby.

If I understand what you're saying correctly.

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

Предыдущее
От: Kevin Kempter
Дата:
Сообщение: determining which table is being vacuumed by autovacuum
Следующее
От: "Tena Sakai"
Дата:
Сообщение: Re: tar, but not gnu tar