The documentation says that all the existing nodes need to be restarted while 
adding a new node since the existing nodes need to establish connection to the 
new node. However, this doesn’t seem feasible for production deployments 
because existing nodes might be serving clients which would fail if we need to 
restart them. Is there a mechanism a new node gets added on the fly ?

From: Serge Fonville [mailto:serge.fonvi...@gmail.com]
Sent: Tuesday, March 17, 2015 5:58 PM
To: Deole, Pushkar (Pushkar)
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] BDR with Postgres

Hi Pushkar,

1.       How does the initial data sync of node3 with node2 takes place?
2.       For node3 and replication data to/from node2, does node2 needs a 
restart or it is not required?

Have you looked at?
https://wiki.postgresql.org/wiki/BDR_Administration<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.postgresql.org_wiki_BDR-5FAdministration&d=AwMFaQ&c=BFpWQw8bsuKpl1SgiZH64Q&r=9JxdEvGq7qy3NnL3UxN47w&m=uzHADaMRzzW17Xx0OXx6-6OZEITXmVACUrU1dndvTUU&s=o3PYGQE6Cfwl2xQoqinchdAVlBxD6s2JRxy4TvoZ0Q4&e=>
HTH


Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.sergefonville.nl&d=AwMFaQ&c=BFpWQw8bsuKpl1SgiZH64Q&r=9JxdEvGq7qy3NnL3UxN47w&m=uzHADaMRzzW17Xx0OXx6-6OZEITXmVACUrU1dndvTUU&s=apjqpPqkiT3NqDTud9ZVHxsD5_tzo2W28oQbKM_NzIo&e=>

2015-03-17 10:01 GMT+01:00 Deole, Pushkar (Pushkar) 
<pde...@avaya.com<mailto:pde...@avaya.com>>:
Hi,

I just tried a POC with PostgreSQL’s streaming replication for the use case of 
my product. Since streaming replication is master-slave, when failover occurs 
there are some configuration changes required to promote slave to master. Also, 
my requirement is to failback to old master again after the old master is 
started back (i.e. when old master is started back, it should become the master 
rather than the slave), which is bit tricky and is not straight forward to 
achieve without restarting any of the nodes.

I am also evaluating BDR which is asynchronous master-master replication. Since 
both nodes will be master, I don’t need to worry about promoting slave to 
master etc. However, I have a query regarding adding a new node to the BDR. 
Suppose I have a BDR setup done with 2 nodes (Node1 and Node2). Let’s assume 
node1 goes down. Node2 is up and running. I now add a new node say node3 and 
setup BDR with node2.
In this scenario…

1.       How does the initial data sync of node3 with node2 takes place?

2.       For node3 and replication data to/from node2, does node2 needs a 
restart or it is not required?

I would appreciate if you can give any information on this scenario as that 
would give me an understanding of BDR. I would be trying a POC soon however not 
able to find time since stuck up with another task at the moment.

Thanks a lot…
Pushkar

Reply via email to