Timeout when using remote couchbase an AWS ec2

我与影子孤独终老i 提交于 2019-12-05 17:20:59

Same issue exists in pretty much all cloud platforms. The nodes names or IP addressed is what the client will use to connect to the nodes of the cluster. For apps connecting over the internet the private IPs don't work. The workaround is to use public names or IP addresses for the nodes. If you'd like some additional efficiency, You can still use DNS trickery to ensure local communication still goes over the private IPs but ensuring the names resolve to private IPs between nodes. Don't have a AWS specific post but this one on Azure may help: http://blog.couchbase.com/step-step-production-deployment-couchbase-windows-azure-virtual-machines Hope this helps.

Been having the same issue. Like Cihan B it seems to be a problem with Couchbase resolving private IPs.

I have attempted to follow this tutorial Steps 1-7 https://blog.couchbase.com/cross-data-center-replication-step-step-guide-amazon-aws

A working fix alternatively is stop the server, delete the config file and restart the server. You can now configure the IP address inside the web app.

I encountered the same issue, and the reason for that is once you connect to it, it will return its own internal topology, so if you create the cluster using private ip address, it will return you private ip which means you can not connect to it outside of AWS

the way to solve it is: 1) remove the node out from cluster

2) rebalance

3) add it back by using its public dns name (public ip address won't work as you can see from: https://issues.couchbase.com/browse/MB-8985)

4) rebalance it again

repeat above for all nodes, hope you don't have too many nodes in you cluster...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!