BDR Documentation | |||
---|---|---|---|
Prev | Up | Chapter 11. Replication Sets | Next |
The names of the replications sets of which changes should be received can be set when adding the node to the BDR cluster using the (optional) replication_sets parameter to bdr.bdr_group_create, bdr.bdr_group_join and Node management function examples. This parameter is an array of replication set names. The replication set do not have to exists to be referenced by replication_sets.
To change one node's replication sets in a running BDR cluster, bdr.bdr_connections.conn_replication_sets can be modified with UPDATE during operation of the cluster. As the bdr.bdr_connections table is replicated, the whole cluster can be controlled from one node. Also, changes affecting more than one node at a time (e.g. setting conn_replication_sets for all nodes) are possible. After changing replication sets this way, the apply workers in the databases whose replication sets have been changed, have to be restarted. The least intrusive way to do so is to pg_terminate_backend() the involved processes.