Unix Technical Forum

Some Slony questions

This is a discussion on Some Slony questions within the pgsql Novice forums, part of the PostgreSQL category; --> Hi, I apologize if this is the wrong list to post these questions. 1. Does Slony replicate table statistics ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 09:54 PM
Brendan Duddridge
 
Posts: n/a
Default Some Slony questions

Hi,

I apologize if this is the wrong list to post these questions.

1. Does Slony replicate table statistics to the slaves?
2. Do you still have to vacuum analyze the slaves?
3. Are selects replicated or just inserts, updates, and deletes?
4. I'd like to have our updates go to the master and selects go to
the clients. Is that possible?
5. What happens if an update tries to go to the slave? Does it
automatically get routed to the master?

Thanks,

__________________________________________________ __________________
Brendan Duddridge | CTO | 403-277-5591 x24 | brendan@clickspace.com

ClickSpace Interactive Inc.
Suite L100, 239 - 10th Ave. SE
Calgary, AB T2G 0V9

http://www.clickspace.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 09:54 PM
Alan Hodgson
 
Posts: n/a
Default Re: Some Slony questions

On Tuesday 30 May 2006 21:13, Brendan Duddridge <brendan@clickspace.com>
wrote:
> Hi,
>
> I apologize if this is the wrong list to post these questions.
>


There is a Slony list, but I'm sure there's some overlap

> 1. Does Slony replicate table statistics to the slaves?


No.

> 2. Do you still have to vacuum analyze the slaves?


Yes. All a subscriber basically is, is an otherwise normal PostgreSQL
database that a Slony process happens to write data into.

> 3. Are selects replicated or just inserts, updates, and deletes?


Replication actions are scheduled on a row-level basis, via trigger, for
each row inserted, updated, or deleted. Those actions are executed in an
intelligent manner on the subscribers. Additional events, such as DDL
modification scripts, can also be scheduled.

However, to answer the question, just inserts, updates, and deletes.

> 4. I'd like to have our updates go to the master and selects go to
> the clients. Is that possible?


Yep ... while keeping in mind that it is an asynchronous replication system,
and the subscribers will not generally be in perfect sync with the master.
You will need separate database connections since the setup doesn't appear
as a single cluster or anything like that.

> 5. What happens if an update tries to go to the slave? Does it
> automatically get routed to the master?


Tables on the subscribers are modified to prevent write ops. The subscriber
table otherwise has no knowledge of the master. Operations are therefore
not re-routable.

I would strongly suggest setting up a test replication setup to learn
exactly how Slony works before deciding on a particular architecture.

--
"When a politician says he wants you to serve a cause greater than your
own self-interest, the cause he has is mind is his own reelection."

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 09:54 PM
Abdul Hayee Bhatti
 
Posts: n/a
Default Re: Some Slony questions

> 4. I'd like to have our updates go to the master and selects go to
> the clients. Is that possible?

You can use pgpool to achieve this (http://pgpool.projects.postgresql.org/).

Hayee

On 5/31/06, Alan Hodgson <ahodgson@simkin.ca> wrote:
>
> On Tuesday 30 May 2006 21:13, Brendan Duddridge <brendan@clickspace.com>
> wrote:
> > Hi,
> >
> > I apologize if this is the wrong list to post these questions.
> >

>
> There is a Slony list, but I'm sure there's some overlap
>
> > 1. Does Slony replicate table statistics to the slaves?

>
> No.
>
> > 2. Do you still have to vacuum analyze the slaves?

>
> Yes. All a subscriber basically is, is an otherwise normal PostgreSQL
> database that a Slony process happens to write data into.
>
> > 3. Are selects replicated or just inserts, updates, and deletes?

>
> Replication actions are scheduled on a row-level basis, via trigger, for
> each row inserted, updated, or deleted. Those actions are executed in an
> intelligent manner on the subscribers. Additional events, such as DDL
> modification scripts, can also be scheduled.
>
> However, to answer the question, just inserts, updates, and deletes.
>
> > 4. I'd like to have our updates go to the master and selects go to
> > the clients. Is that possible?

>
> Yep ... while keeping in mind that it is an asynchronous replication
> system,
> and the subscribers will not generally be in perfect sync with the master.
> You will need separate database connections since the setup doesn't appear
> as a single cluster or anything like that.
>
> > 5. What happens if an update tries to go to the slave? Does it
> > automatically get routed to the master?

>
> Tables on the subscribers are modified to prevent write ops. The
> subscriber
> table otherwise has no knowledge of the master. Operations are therefore
> not re-routable.
>
> I would strongly suggest setting up a test replication setup to learn
> exactly how Slony works before deciding on a particular architecture.
>
> --
> "When a politician says he wants you to serve a cause greater than your
> own self-interest, the cause he has is mind is his own reelection."
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>


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 06:30 AM.


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