1 Sep 2007 01:21
Re: WAL to RAW devices ?
Tom Lane <tgl <at> sss.pgh.pa.us>
2007-08-31 23:21:18 GMT
2007-08-31 23:21:18 GMT
Alex Vinogradovs <AVinogradovs <at> clearpathnet.com> writes:
> The idea is to have say 2 raw devices which would be used as 2 WAL
> segments (round-robin). RO servers will go after the one that's not used
> at a given time with something like xlogdump utility and produce INSERT
> statements to be then executed locally. After that import is done, a
> command will be issued to the WO server to switch to the other segment
> so that the cycle can repeat.
Why would you insist on these being raw devices? Do you enjoy writing
filesystems from scratch?
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo <at> postgresql.org so that your
message can get through to the mailing list cleanly
Also, I've got FreeBSD here... ZFS will be out with 7.0
release, plus UFS2 has snapshotting capability too. But
the whole method isn't good enough anyway.
> Oh, I see.
>
> What I've seen described is to put a PITR slave on a filesystem with
> snapshotting ability, like ZFS on Solaris.
>
> You can then have two copies of the PITR logs. One gets a postmaster
> running in "warm standby" mode, i.e. recovering logs in a loop. The
> other one, in a sort of jail (I don't know the Solaris terminology for
> this) stops the recovery and enters normal mode. You can query it all
> you like at that point.
>
> Periodically you stop the server in normal mode, resync the snapshot
> (which basically resets the "modified" block list in the filesystem),
> take a new snapshot, create the jail and stop the recovery mode again.
> So you have a fresher postmaster for queries.
>
> It's not as good as having a true hot standby, for sure. But it seems
> it's good enough while we wait.
>
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
RSS Feed