Hello,
I have the following topology:
Cluster 1 - Los Angeles - node1 - IP 10.5.0.4
Cluster 1 - Los Angeles - node2 - IP 10.5.0.6
Cluster 2 - Frankfurt - node1 - IP 10.6.0.4
Cluster 2 - Frankfurt - node2 - IP 10.6.0.5
- The clusters cannot reach each other by those IP addresses. I mean, I cannot ping from Los Angeles node1 10.5.0.4 to Frankfurt 10.6.0.4. The nodes are behind an NAT, if I “ifconfig -a” I can only see the internal IPs.
** We are using https://www.citycloud.com/ as cloud provider.
For each node I have one external IP:
Cluster 1 - Los Angeles - node1 - IP External 89.42.XX.1
Cluster 1 - Los Angeles - node2 - IP External 89.42.XX.2
Cluster 2 - Frankfurt - node1 - IP External 89.46.XXX.1
Cluster 2 - Frankfurt - node2 - IP External 89.46.XXX.2
-
The servers can reach each other by the external IP addresses.
I created the clusters between the nodes using the internal IP, for each region. The “Hostname” config is pointing to 127.0.0.1.Cluster 1 = 10.5.0.4 <-> 10.5.0.6
Cluster 2 = 10.6.0.4 <-> 10.6.0.5
So, in the “Server Nodes” webpage link I see the internal IPs. The cluster is working fine.
Ok. Now in the Los Angeles region XDCR tab I created the following “Cluster Reference” pointing to one Frankfurt node:
89.46.XXX.1:8091
I believe it does not check anything here, it’s just a reference maybe?
Then, I created the Reference using the “default” bucket.
-
I already created the bucket on Frankurt cluster.
Cluster: this cluster to Cluster: Frankfurt
Bucket: default to Bucket: default
Then I started to see these errors below:
Attention - 2017-06-07 16:11:34 10.5.0.4:ToplogyChangeDetector:Post http://10.6.0.4:8092/_pre_replicate: dial tcp
10.5.0.4:8092: getsockopt: no route to host
Attention - 2017-06-07 16:35:22 10.5.0.4:ToplogyChangeDetector:Post http://10.6.0.4:8092/_pre_replicate: dial tcp
10.6.0.4:8092: i/o timeout
I believe because the “Cluster Reference” is returning the cluster members internal IPs from Frankfurt. Same ref. IPs that I have in the “Server Nodes” tab.
The questions are:
The idea is to have the cluster created using the internal IPs and XDCR using the external IPs. Is it possible?
Should I create the cluster nodes using the external IPs(Which does not makes much sense)?
The internal IPs from both sites need to see each other using an VPN?
It’s possible to use the same configuration that I have but when the cluster informs an IP, it will return the external IP and not the internal IP(behind the NAT)?
Did I do something wrong? :´(