Cassandra Datastax Enterprise using Amazon Elastic IP

前端 未结 2 2089
执念已碎
执念已碎 2021-01-02 10:51

I would like to run Cassandra Datastax Enterprise on Amazon EC2 instances using not the node private IP address but Elastic Public IPs

My current configuration looks

相关标签:
2条回答
  • 2021-01-02 11:12

    Not a new question here, but looking at your config, make these changes.

    listen_address: private_ip
    broadcast_address: public_ip
    rpc_address: 0.0.0.0
    

    Seeds should be public_ip so you're ok there.

    0 讨论(0)
  • 2021-01-02 11:31

    Three addresses avaliable in Cassandra.yaml

    1. Listen Address - This is the ip address other Cassandra nodes will use to talk to this node. You want this to be your internal AWS IP Address for performance.

    2. RPC Address - This is the address your client connects to, probably the one you want to configure to match your external AWS address if your client is not sitting in AWS or in the same AWS region.

    3. Broadcast Address - If you are using multiple data centers or AWS Regions, where not all the nodes have access to each other via internal IP. You can specify the external IP address for the nodes in different data centers can still talk to each other. In many cases you don't need this setting at all, it will default to your Listen Address.

    I think the answer to your question is use the RPC address to connect to C* from your client using the external/elastic AWS IP. You can probably leave the Broadcast Address un-configured.

    Does this help?

    0 讨论(0)
提交回复
热议问题