Unix Technical Forum

Replication suggestions (weak multi-master)

This is a discussion on Replication suggestions (weak multi-master) within the Pgsql General forums, part of the PostgreSQL category; --> Hi, I've gone through the list of replication solution on the PostgreSQL website but I think I'm looking for ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 07:50 PM
Martijn van Oosterhout
 
Posts: n/a
Default Replication suggestions (weak multi-master)

Hi,

I've gone through the list of replication solution on the PostgreSQL
website but I think I'm looking for something rather specialised.

The situation is that there are little satellite machines around the
place, seperated by public internet, each writing to their own log
tables. What I want is for each satellite to be able to query an
"aggregate table" which is simply the UNION ALL of all the little
tables. Timeliness is not critical (although nice) and it needs to
handle satellites going down and rejoining. I'm ok with a master
machine somewhere.

The problems I see with the ones I can find are:
- They require direct remote access to the pg server, not possible in my case
- Use Java, also not an option
- Don't handle the aggregating (need more triggers)

I'm impressed by Slony and I could probably make it do what I want with
enough trickery. But again the need to be able to connect from any
server to any other. To put it in Slony terms, the origin never needs
to move. If the machine is down, nothing needs to be updated.

I'm considering starting with dbmirror and simply writing a script to
make it do what I want. But I'm asking in case someone has a simple
solution I've overlooked.

Thanks in advance,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFCJEa2Y5Twig3Ge+YRAgipAJ9phfxbjtkF3JtLzwaWD2 m7z6pq6wCgrauT
V7jUhZEksIVg//SVJidoZOY=
=bbzt
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 08:00 PM
Andrew Sullivan
 
Posts: n/a
Default Re: Replication suggestions (weak multi-master)

On Tue, Mar 01, 2005 at 11:41:11AM +0100, Martijn van Oosterhout wrote:
> I'm impressed by Slony and I could probably make it do what I want with
> enough trickery. But again the need to be able to connect from any
> server to any other. To put it in Slony terms, the origin never needs
> to move. If the machine is down, nothing needs to be updated.
>
> I'm considering starting with dbmirror and simply writing a script to
> make it do what I want. But I'm asking in case someone has a simple
> solution I've overlooked.


My suspicion that the log shipping support in Slony 1 (HEAD right
now) or the approach outlined at OSCON last year (anonymous file
shipping based on dbmirror -- mighty cool) is something closeish to
what you'll need.

--
Andrew Sullivan | ajs@crankycanuck.ca
This work was visionary and imaginative, and goes to show that visionary
and imaginative work need not end up well.
--Dennis Ritchie

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com