Setup the domain level replication between Swarm Clusters clusters via Cloud Gateway. The requirements for the setup are:
...
To replicate a domain from the source Swarm cluster to target (remote) Swarm cluster, the adminDomain is auto-created when the first gateway is initialized. Ensure that adminDomain is also replicated to remote the site and to enable client requests (read, write, delete) to be performed at the remote cluster.
Code Block | ||
---|---|---|
| ||
# # Client communications and handling # [gateway] adminDomain = Lab1GatewayAdminDomain threads = 200 # multipartSpoolDir = /var/spool/cloudgateway |
...
Update
/etc/caringo/cloudgateway/gateway.cfg
on the gateway of remote Swarm cluster to enable it to accept replication from Source Swarm Gateway's IP Subnet.Code Block language bash vi /etc/caringo/cloudgateway/gateway.cfg # Set the following if this Gateway is the target of a push-style replication feed. # See 'Replication Feeds' in the Swarm documentation for details. # allowSwarmAdminIP = list,of,node,ips -or- all allowSwarmAdminIP=172.16.33.0/24
Restart gateway service on the remote cluster.
Log in to the source Swarm cluster storage UI (http://172.16.33.16:91/_admin/storage).
Select Storage Management.
Navigate to Cluster > Feeds and then click +Add.
Select Replication Data Feed.
Provide the below details:
Name - Name of the domain to be replicated.
Include Domains- You can add Add one or multiple domain URLs as required. The domain name is always set unique for each Swarm cluster to prevent replication collision.
Cluster Name - Name of the target cluster.
Gateway IP Addresses - IP addresses of the target gateway.
Remote admin username and password
Admin: dcadmin
Password: datacore
Click Save.
...