Setup the domain level replication between Swarm Clusters via Cloud Gateway. The requirements for the setup are:
| Source Swarm Cluster |
| Target Swarm Cluster |
Cluster name | scs-hklab1lab1.datacore.internal |
| scs-hklab2lab2.datacore.internal |
adminDomain | hkLab1GatewayAdminDomain Lab1GatewayAdminDomain | ➠ |
|
Domain | objstor.cloud.datacore.internal | ➠ |
|
Gateway IP | 172.16.33.16 | ➠ | 172.16.34.16 |
Gateway IP | 172.16.33.17 | 172.16.34.17 |
The adminDomain (e.g., hkLab1GatewayAdminDomainLab1GatewayAdminDomain) for storage must be mirrored (replicated) to remote target Swarm cluster where clients will access the storage domain. This is mandatory so that the IDSYS, Policy, XFORM, authentication tokens, and other tracking information used to manage the storage domain are available in the Gateways running on the remote target Swarm cluster.
To replicate a domain from the source Swarm cluster to target (remote) Swarm cluster, the adminDomain is auto-created on initialize gatewaywhen 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 = hkLab1GatewayAdminDomain 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 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 one or multiple domain URLs.
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.
...