Difference between broadcast address and listen address ? And when to use broadcast adress
Difference between broadcast address and listen address ? And when to use broadcast adress
@anubhuti.lucky_27186 The listen_address
is what Cassandra binds to so nodes can connect to each other. This is usually set to a private IP that nodes use for inter-node communication.
If nodes are not able to communicate with each other on the private IP (usually because they are in different DCs/network subnets), the broadcast_address
should be set to the public IP. This is typically used in clusters deployed in multi-region public clouds where nodes can only communicate with other local nodes on the private network and need to use the public network to talk to remote nodes.
Note that you do not need to set the broadcast_address
if all nodes can talk to each other on the same network. If left unset, it uses the same IP as the listen_address
. Cheers!
3 People are following this question.
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use