如何连接到云服务器上的cassandra
我一直在尝试连接到 Rackspace 云服务器上的 cassandra 数据库,但没有成功。
任何人都可以阐明 http://wiki.apache.org/cassandra/ 的评论的最后一段存储配置
listen_address 注释掉此属性将其留给 InetAddress.getLocalHost()。如果节点配置正确(主机名、名称解析等),那么这总是会做正确的事情,并且正确的事情是使用与主机名关联的地址(它可能不是:在云上)您应该确保使用私有接口的服务)。
I have been trying to connect to a cassandra database on a Rackspace cloud server with no success.
Can anyone shed any light on the last paragraph of this comment from http://wiki.apache.org/cassandra/StorageConfiguration
listen_address
Commenting out this property leaves it up to InetAddress.getLocalHost(). This will always do the Right Thing if the node is properly configured (hostname, name resolution, etc), and the Right Thing is to use the address associated with the hostname (it might not be: on cloud services you should ensure the private interface is used).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Rackspace 云服务器上,您很可能希望监听 eth1 (10.XXX)(ServiceNet IP)。这只能由同一数据中心内的其他云服务器访问。 eth1 的最大吞吐量是 eth0 的两倍,并且不收取带宽费用。
请记住,ServiceNet 网络不是私有的,因此您仍然需要限制对通过 iptables 绑定到的端口的访问。
On Rackspace Cloud Servers you will most likely want to listen on eth1 (10.X.X.X), the ServiceNet IP. This is only accessible to other Cloud Servers inside the same datacenter. The max throughput of eth1 is twice that of eth0 and you are not charged for the bandwidth.
Please remember that the ServiceNet network is not private so you will still need to restrict access to the ports that you bind to via iptables.