Reputation: 1479
I want Cassandra to listen to multiple native transport addresses. According to conf/cassandra.yaml
, native transport address is same as rpc_address
.
Is there any option to set multiple rpc_address
in Cassandra? I tried
rpc_interface: ens33
rpc_interface: ens37
And
rpc_interface: ens33, ens37
None of these worked.
Upvotes: 4
Views: 6292
Reputation: 1479
I got the answer. You have to use:
rpc_address: 0.0.0.0
And set the broadcast_rpc_address
something other than 0.0.0.0.
See http://docs.datastax.com/en/cassandra/1.2/cassandra/configuration/configCassandra_yaml_r.html for more info.
Upvotes: 5
Reputation: 9475
rpc_address and rpc_interface take single values, so you cannot give them multiple values.
I'm not sure why you would want to use multiple addresses. Cassandra can make as many connections as needed on the single address.
Upvotes: 0