[
https://issues.apache.org/jira/browse/CASSANDRA-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021916#comment-13021916
]
Khee Chin commented on CASSANDRA-2491:
--------------------------------------
In our present situation, in a varsity lan, (where the ips are 10.0.x.y) some
of our servers are behind an additional router (the router has a 10.0.x.y
address, while its clients have 192.168.x.y), and are not accessible by the
nodes which happen to have a 10.0.x.y ip address.
In a simplified example (with four nodes)
A - 10.0.0.1
B - 10.0.0.2
C - 192.168.0.1 (behind router with 10.0.0.3)
D - 192.168.0.2 (behind router with 10.0.0.4)
Thus, we can't set C or D to listen on the external ip (10.0.0.3|4) since they
can't bind to it. With the attached patch, they can set listen_address to
0.0.0.0 or 192.168.0.1|2 and broadcast_address to 10.0.0.3|4 .
This is a non-typical scenario, and not many admins will need to configure
this, thus, broadcast_address fallsback to listen_address when it is not set.
Thanks.
> A new config parameter, broadcast_address
> -----------------------------------------
>
> Key: CASSANDRA-2491
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2491
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Environment: x86_64 GNU/Linux
> Reporter: Khee Chin
> Priority: Trivial
> Labels: patch
> Attachments: 2491_broadcast_address.patch
>
> Original Estimate: 336h
> Remaining Estimate: 336h
>
> A new config parameter, broadcast_address
> In a cluster setup where one or more nodes is behind a firewall and has a
> private ip address, listen_address does not allow the hosts behind the
> firewalls to be discovered by other nodes.
> Attached is a patch that introduces a new config parameter broadcast_address
> which allows Cassandra nodes to explicitly specify their external ip address.
> In addition, this allows listen_address to be set to 0.0.0.0 on the already
> firewalled node.
> broadcast_address fallsback to listen_address when it is not stated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira