Creating Subscriber-only groups and nodes v5.6
The process of creating a Subscriber-only node or nodes starts with creating a Subscriber-only group to contain the node or nodes. Perform this step on an existing fully joined node in the PGD cluster.
Creating a Subscriber-only group manually
To create a Subscriber-only group, you must specify the node_group_type
as subscriber-only
when creating the group. For example, here we are logged into the node "node-one" running on "host-one". It's a member of it's own data group and as for all nodes, a member of the top-level group, here called topgroup
. Log into this node directly to create a new Subscriber-only group named sogroup
with the following SQL command:
or more explicitly with parameter names:
This creates a Subscriber-only group named sogroup
which is a child of the topgroup
group. The false parameter for join_node_group
indicates that the node executing this command shouldn't join to the newly created group. Automatically joining the group is the default behavior, which in this case needs to be supressed.
Adding a node to a new Subscriber-only group manually
You can now initialize a new data node and then add it to the Subscriber-only group. Create a data node and configure the bdr extension on it as you would for any other data node. If you deployed manually, see the manual install guide for instructions on how to install and deploy a data node.
You now have to create this new node as a subscriber-only
node. To do this, log into the new node and run the following SQL command:
Then, log into that new node and add it to the sogroup
group with the following SQL command:
or more explicitly with parameter names: