Update on replication

Started by Bruce Momjianover 23 years ago35 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Update on replication:

We have several things happening with Postgres-R replication:

o Someone is porting the 7.2-based Postgres-R code to 7.3
o Darren and I are in discussion with the Spread folks,
attempting to get a more BSD-friendly license from them
o People are evaluating the Postgres-R approach and comparing
it to more traditional 2-phase commit replication.

With these things moving forward, we will be in a much better position
to get synchronous replication integrated in PostgreSQL.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#2Rod Taylor
rbt@rbt.ca
In reply to: Bruce Momjian (#1)
Re: Update on replication

o People are evaluating the Postgres-R approach and comparing
it to more traditional 2-phase commit replication.

Not that the Postgres-R approach can replace 2-phase commit methods.

2PC is still needed for support with external transaction managers (XA
drivers for JDBC).

--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

#3Bruce Momjian
bruce@momjian.us
In reply to: Rod Taylor (#2)
Re: Update on replication

Rod Taylor wrote:
-- Start of PGP signed section.

o People are evaluating the Postgres-R approach and comparing
it to more traditional 2-phase commit replication.

Not that the Postgres-R approach can replace 2-phase commit methods.

2PC is still needed for support with external transaction managers (XA
drivers for JDBC).

Yes, good point. Let me add that eventually, I think we will have:

sync replication (Postgres-R?)
async replication, using PITR
PITR
two-phase commit for distributed transactions

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#4Alvaro Herrera
alvherre@dcc.uchile.cl
In reply to: Bruce Momjian (#1)
Re: Update on replication

On Tue, Dec 17, 2002 at 12:56:45PM -0500, Bruce Momjian wrote:

Update on replication:

We have several things happening with Postgres-R replication:

o Someone is porting the 7.2-based Postgres-R code to 7.3

You mean 7.4devel?

With these things moving forward, we will be in a much better position
to get synchronous replication integrated in PostgreSQL.

What about asynchronous (triggered?) replication? Is something like
rserv or dbmirror going to be moved to main?

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Porque francamente, si para saber manejarse a uno mismo hubiera que
rendir examen... �Qui�n es el machito que tendr�a carnet?" (Mafalda)

#5Bruce Momjian
bruce@momjian.us
In reply to: Alvaro Herrera (#4)
Re: Update on replication

Alvaro Herrera wrote:

On Tue, Dec 17, 2002 at 12:56:45PM -0500, Bruce Momjian wrote:

Update on replication:

We have several things happening with Postgres-R replication:

o Someone is porting the 7.2-based Postgres-R code to 7.3

You mean 7.4devel?

Sorry, right.

With these things moving forward, we will be in a much better position
to get synchronous replication integrated in PostgreSQL.

What about asynchronous (triggered?) replication? Is something like
rserv or dbmirror going to be moved to main?

I think eventually we will have some async replication in the main
server, probably using PITR logs in some way.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#6Roderick A. Anderson
raanders@acm.org
In reply to: Bruce Momjian (#1)
Re: Update on replication

I just got my copy of SysAdmin Magazine and was surprised to see an
article about Usogres -- The PostgreSQL Replication Tool.

I don't remember seeing it mentioned on this or the General list. Though
I just started reading the article and don't have a firm grasp on it yet,
I do remember a discussion of replication using this technique - described
in the first two paragraphs.

Fyi,
Rod
--
"Open Source Software - Sometimes you get more than you paid for..."

#7Bruce Momjian
bruce@momjian.us
In reply to: Roderick A. Anderson (#6)
Re: Update on replication

Roderick A. Anderson wrote:

I just got my copy of SysAdmin Magazine and was surprised to see an
article about Usogres -- The PostgreSQL Replication Tool.

I don't remember seeing it mentioned on this or the General list. Though
I just started reading the article and don't have a firm grasp on it yet,
I do remember a discussion of replication using this technique - described
in the first two paragraphs.

I saw Usogres when I was first in Japan. Interesting in that is
intercepts queries and passes them two different servers.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#8The Hermit Hacker
scrappy@hub.org
In reply to: Alvaro Herrera (#4)
Re: Update on replication

On Tue, 17 Dec 2002, Alvaro Herrera wrote:

What about asynchronous (triggered?) replication? Is something like
rserv or dbmirror going to be moved to main?

From what I've been able to tell *so far*, Postgres-R is going to preclude
the ability for either to work ... Vadim is currently reviewing the code,
and based on his assessment of whether or not that is the case, I'm going
to be pushing for postgres-r to be its own project/fork of PostgreSQL,
like RedHat Database ...

#9Bruce Momjian
bruce@momjian.us
In reply to: The Hermit Hacker (#8)
Re: Update on replication

Marc G. Fournier wrote:

On Tue, 17 Dec 2002, Alvaro Herrera wrote:

What about asynchronous (triggered?) replication? Is something like
rserv or dbmirror going to be moved to main?

From what I've been able to tell *so far*, Postgres-R is going to preclude
the ability for either to work ... Vadim is currently reviewing the code,
and based on his assessment of whether or not that is the case, I'm going
to be pushing for postgres-r to be its own project/fork of PostgreSQL,
like RedHat Database ...

How is Postgres-R going to prevent async replication from also being
adopted in CVS?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#10The Hermit Hacker
scrappy@hub.org
In reply to: Bruce Momjian (#9)
Re: Update on replication

ooops, sorry, that was what I meant (its been one of those days *grin*)

On Tue, 17 Dec 2002, Mikheev, Vadim wrote:

Show quoted text

From what I've been able to tell *so far*, Postgres-R is
going to preclude the ability for either to work ...
Vadim is currently reviewing the code,

Not the code, just Darren' pdf ("slide show" -:()
and discussion in hackers' list.

_____________________________________________________
Sector Data, LLC, is not affiliated with Sector, Inc., or SIAC

#11Darren Johnson
darren@up.hrcoxmail.com
In reply to: The Hermit Hacker (#10)
Re: Update on replication

Not the code, just Darren' pdf ("slide show" -:()
and discussion in hackers' list.

You might want to read this paper. Its not very long, and
will give you much more insite on the postgres-r work.

http://www.cs.mcgill.ca/~kemme/papers/vldb00.html

Darren

#12Tom Lane
tgl@sss.pgh.pa.us
In reply to: The Hermit Hacker (#8)
Re: Update on replication

"Marc G. Fournier" <scrappy@hub.org> writes:

On Tue, 17 Dec 2002, Alvaro Herrera wrote:

What about asynchronous (triggered?) replication? Is something like
rserv or dbmirror going to be moved to main?

From what I've been able to tell *so far*, Postgres-R is going to preclude

the ability for either to work ...

Why do you say that? If it can't coexist with other solutions, then it
surely will not be accepted, but I can't think of any reason why it
would preclude other approaches.

regards, tom lane

#13The Hermit Hacker
scrappy@hub.org
In reply to: Tom Lane (#12)
Re: Update on replication

On Tue, 17 Dec 2002, Tom Lane wrote:

"Marc G. Fournier" <scrappy@hub.org> writes:

On Tue, 17 Dec 2002, Alvaro Herrera wrote:

What about asynchronous (triggered?) replication? Is something like
rserv or dbmirror going to be moved to main?

From what I've been able to tell *so far*, Postgres-R is going to preclude

the ability for either to work ...

Why do you say that? If it can't coexist with other solutions, then it
surely will not be accepted, but I can't think of any reason why it
would preclude other approaches.

Okay, if this is the case, that does change things somewhat, but Bruce
seems to indiate that co-existance will be a problem:

========

Show quoted text

On Tue, 17 Dec 2002, Bruce Momjian wrote:

The other concern is how does integrating Postgres-R affect the ability to
investigate other solutions?

As I said, I don't doubt taht there are aspects of Postgres-R that would
benefit the server as a whole, and those bits-n-pieces should be looked at
on an individual basis, but to just slap it in completely and hope that it
doesn't cause problems for alternative solutions is kinda irresponsible
...

It certainly will cause problems with other replication solutions.

#14Bruce Momjian
bruce@momjian.us
In reply to: The Hermit Hacker (#13)
Re: Update on replication

When I said:

It certainly will cause problems with other replication solutions.

I meant it would cause other solutions to be less desirable, meaning. as
you said, "affect the ability to investigate other solutions?" With a
working solution, others may be less likely to investigate because
Postgres-R will be our official solution. (I believe that was your
major negative point.) However, with the hooks already there, people
may be _more_ likely to investigate solutions, so there is really no way
to know.

---------------------------------------------------------------------------

Marc G. Fournier wrote:

On Tue, 17 Dec 2002, Tom Lane wrote:

"Marc G. Fournier" <scrappy@hub.org> writes:

On Tue, 17 Dec 2002, Alvaro Herrera wrote:

What about asynchronous (triggered?) replication? Is something like
rserv or dbmirror going to be moved to main?

From what I've been able to tell *so far*, Postgres-R is going to preclude

the ability for either to work ...

Why do you say that? If it can't coexist with other solutions, then it
surely will not be accepted, but I can't think of any reason why it
would preclude other approaches.

Okay, if this is the case, that does change things somewhat, but Bruce
seems to indiate that co-existance will be a problem:

========

On Tue, 17 Dec 2002, Bruce Momjian wrote:

The other concern is how does integrating Postgres-R affect the ability to
investigate other solutions?

As I said, I don't doubt taht there are aspects of Postgres-R that would
benefit the server as a whole, and those bits-n-pieces should be looked at
on an individual basis, but to just slap it in completely and hope that it
doesn't cause problems for alternative solutions is kinda irresponsible
...

It certainly will cause problems with other replication solutions.

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#15The Hermit Hacker
scrappy@hub.org
In reply to: Bruce Momjian (#14)
Re: Update on replication

On Tue, 17 Dec 2002, Bruce Momjian wrote:

I meant it would cause other solutions to be less desirable, meaning. as
you said, "affect the ability to investigate other solutions?" With a
working solution, others may be less likely to investigate because
Postgres-R will be our official solution. (I believe that was your
major negative point.) However, with the hooks already there, people
may be _more_ likely to investigate solutions, so there is really no way
to know.

Okay, but if we are just adding hooks to allow Postgres-R to tie in, can't
those hooks be done in such a way as to be loadable, not compiled in?

#16Tatsuo Ishii
t-ishii@sra.co.jp
In reply to: Bruce Momjian (#9)
Re: Update on replication

Marc G. Fournier wrote:

On Tue, 17 Dec 2002, Alvaro Herrera wrote:

What about asynchronous (triggered?) replication? Is something like
rserv or dbmirror going to be moved to main?

From what I've been able to tell *so far*, Postgres-R is going to preclude
the ability for either to work ... Vadim is currently reviewing the code,
and based on his assessment of whether or not that is the case, I'm going
to be pushing for postgres-r to be its own project/fork of PostgreSQL,
like RedHat Database ...

How is Postgres-R going to prevent async replication from also being
adopted in CVS?

As far as I know, all trigger based async replication solutions have a
limitation. They do not handle high load (and probably cannot handle
large objects. am I correct?). I think we should move to other async
replication soltions, such as PostgreSQL-R or (not yet existing)
transaction log based replications.
--
Tatsuo Ishii

#17Tatsuo Ishii
t-ishii@sra.co.jp
In reply to: Roderick A. Anderson (#6)
Re: Update on replication

I just got my copy of SysAdmin Magazine and was surprised to see an
article about Usogres -- The PostgreSQL Replication Tool.

I don't remember seeing it mentioned on this or the General list. Though
I just started reading the article and don't have a firm grasp on it yet,
I do remember a discussion of replication using this technique - described
in the first two paragraphs.

Glad to hear that. Usogres was developed in Japan and pretty popular
ammong Japanese PostgreSQL community.

BTW, there is a commercial product called QueryMaster, which takes
similar approach to Usogres. It copies the input query and distribute
to multiple PostgreSQL servers. As long as one of a server is working,
users even do not notice some of them are failing.
--
Tatsuo Ishii

#18The Hermit Hacker
scrappy@hub.org
In reply to: Tatsuo Ishii (#17)
Re: Update on replication

On Wed, 18 Dec 2002, Tatsuo Ishii wrote:

I just got my copy of SysAdmin Magazine and was surprised to see an
article about Usogres -- The PostgreSQL Replication Tool.

I don't remember seeing it mentioned on this or the General list. Though
I just started reading the article and don't have a firm grasp on it yet,
I do remember a discussion of replication using this technique - described
in the first two paragraphs.

Glad to hear that. Usogres was developed in Japan and pretty popular
ammong Japanese PostgreSQL community.

BTW, there is a commercial product called QueryMaster, which takes
similar approach to Usogres. It copies the input query and distribute
to multiple PostgreSQL servers. As long as one of a server is working,
users even do not notice some of them are failing.

How come these solutions are such well kept secrets? I've heard of
neither in relation to past discussions about replication, or have I just
missed them? :(

#19Greg Copeland
greg@CopelandConsulting.Net
In reply to: The Hermit Hacker (#18)
Re: Update on replication

On Tue, 2002-12-17 at 19:38, Marc G. Fournier wrote:

On Wed, 18 Dec 2002, Tatsuo Ishii wrote:

I just got my copy of SysAdmin Magazine and was surprised to see an
article about Usogres -- The PostgreSQL Replication Tool.

I don't remember seeing it mentioned on this or the General list. Though
I just started reading the article and don't have a firm grasp on it yet,
I do remember a discussion of replication using this technique - described
in the first two paragraphs.

Glad to hear that. Usogres was developed in Japan and pretty popular
ammong Japanese PostgreSQL community.

BTW, there is a commercial product called QueryMaster, which takes
similar approach to Usogres. It copies the input query and distribute
to multiple PostgreSQL servers. As long as one of a server is working,
users even do not notice some of them are failing.

How come these solutions are such well kept secrets? I've heard of
neither in relation to past discussions about replication, or have I just
missed them? :(

Good questions. I've heard of Usogres, more or less in passing, but
heard it didn't work very well. Also heard that it wasn't reliable or a
serious solution. I seem to remember hearing that it only worked on
much older versions of PostgreSQL. Of course, I'm not attempting to
assert any true to what I've heard but since it's being talking about,
perhaps someone can clarify how well it REALLY works. Perhaps even
provide some more details on it?

Never heard of QueryMaster. Perhaps someone would like to talk a little
more about that as well?

--
Greg Copeland <greg@copelandconsulting.net>
Copeland Computer Consulting

#20The Hermit Hacker
scrappy@hub.org
In reply to: Greg Copeland (#19)
Re: Update on replication

On Tue, 17 Dec 2002, Greg Copeland wrote:

On Tue, 2002-12-17 at 19:38, Marc G. Fournier wrote:

On Wed, 18 Dec 2002, Tatsuo Ishii wrote:

I just got my copy of SysAdmin Magazine and was surprised to see an
article about Usogres -- The PostgreSQL Replication Tool.

I don't remember seeing it mentioned on this or the General list. Though
I just started reading the article and don't have a firm grasp on it yet,
I do remember a discussion of replication using this technique - described
in the first two paragraphs.

Glad to hear that. Usogres was developed in Japan and pretty popular
ammong Japanese PostgreSQL community.

BTW, there is a commercial product called QueryMaster, which takes
similar approach to Usogres. It copies the input query and distribute
to multiple PostgreSQL servers. As long as one of a server is working,
users even do not notice some of them are failing.

How come these solutions are such well kept secrets? I've heard of
neither in relation to past discussions about replication, or have I just
missed them? :(

Good questions. I've heard of Usogres, more or less in passing, but
heard it didn't work very well. Also heard that it wasn't reliable or a
serious solution. I seem to remember hearing that it only worked on
much older versions of PostgreSQL. Of course, I'm not attempting to
assert any true to what I've heard but since it's being talking about,
perhaps someone can clarify how well it REALLY works. Perhaps even
provide some more details on it?

Never heard of QueryMaster. Perhaps someone would like to talk a little
more about that as well?

Just checked on Usogres, and it appears to be relatively up to date, in
that it is known to work up to 7.2.1:

http://usogres.good-day.net/working.php3

Searching Google for QueryMaster finds a few Japanese sites, but I can't
read Japanese :(

Tatsuo, can you help?

#21Bruce Momjian
bruce@momjian.us
In reply to: The Hermit Hacker (#20)
#22Tatsuo Ishii
t-ishii@sra.co.jp
In reply to: The Hermit Hacker (#18)
#23Alvaro Herrera
alvherre@dcc.uchile.cl
In reply to: Greg Copeland (#19)
#24The Hermit Hacker
scrappy@hub.org
In reply to: Tatsuo Ishii (#22)
#25Greg Copeland
greg@CopelandConsulting.Net
In reply to: Alvaro Herrera (#23)
#26The Hermit Hacker
scrappy@hub.org
In reply to: Greg Copeland (#25)
#27Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Greg Copeland (#25)
#28Neil Conway
neilc@samurai.com
In reply to: Greg Copeland (#25)
#29Bruce Momjian
bruce@momjian.us
In reply to: Neil Conway (#28)
#30Greg Copeland
greg@CopelandConsulting.Net
In reply to: Neil Conway (#28)
#31Neil Conway
neilc@samurai.com
In reply to: Bruce Momjian (#29)
#32Bruce Momjian
bruce@momjian.us
In reply to: Neil Conway (#31)
#33Al Sutton
al@alsutton.com
In reply to: Bruce Momjian (#1)
#34Jean-Michel POURE
jm.poure@freesurf.fr
In reply to: Neil Conway (#28)
#35Michael Poole
poole@troilus.org
In reply to: Jean-Michel POURE (#34)