Re: Restoring DB From A Log?
От | Andrew Sullivan |
---|---|
Тема | Re: Restoring DB From A Log? |
Дата | |
Msg-id | 20040322163415.GC11738@phlogiston.dyndns.org обсуждение исходный текст |
Ответ на | Restoring DB From A Log? (Al Cohen <amc79@no.junk.please.cornell.edu>) |
Список | pgsql-admin |
On Sat, Mar 20, 2004 at 08:12:02AM -0500, Al Cohen wrote: > In our particular situation, being down for two hours or so is OK. > What's really bad is losing data. > > The PostgreSQL replication solutions that we're seeing are very clever, > but seem to require significant effort to set up and keep going. Since > we don't care if a slave DB is ready to kick over at a moment's notice, > I'm wondering if there is some way to generate data, in real time, that > would allow an offline rebuild in the event of catastrophe. We could > copy this data across the 'net as it's available, so we could be OK even > if the place burned down. > Your closest current bet is one of the (admittedly possibly painful to use) async replication systems available. Note that _no_ async system, log shipping, whatever can guarantee zero data loss: if you lose the active master in a catastrophic explosion which consumes all your disk, there is the possibility that there will be records which were committed on that master but which were not committed anywhere else. This is even true of PITR approaches which stream the WAL to some system in another city: you're only as up to date as the last packet sent, and if a bomb goes off in your cage in your data centre, you're going to lose something no matter what. You might like to follow the Slony project, which has as one of its design goals much easier administration than erserver. You may also want to watch the PITR project, which appears to be aiming to get into 7.5. A -- Andrew Sullivan | ajs@crankycanuck.ca
В списке pgsql-admin по дате отправления: