|Configuring Multi-site (WAN) Deployments / Steps to Configure a Multi-site Deployment|
Use the ALTER TABLE command to modify the gateway senders configured for a table. Use DROP commands to completely remove gateway sender and gateway receiver configurations.
Add Gateway Senders and Receivers
ALTER TABLE test_table SET GATEWAYSENDER (cluster-2-sender, cluster-3-sender);
If the table "test_table" had no previous gateway sender configurations associated with it, then the ALTER TABLE command associates two new senders with the table. If "test_table" was originally configured with a different gateway sender configuration, that configuration is removed and replaced with the new configuration (senders "cluster-2-sender" and "cluster-3-sender").
Remove Gateway Senders and Receivers
DROP GATEWAYSENDER cluster-3-sender;
DROP GATEWAYRECEIVER test_receiver;
ALTER TABLE test_table SET GATEWAYSENDER ();
In all cases, the ALTER TABLE command only adds or removes gateway sender configurations for a particular table. The gateway sender configuration itself still remains in GemFire XD, and may be used with other tables.