Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm working on building a new Cassandra cluster and I'd like to create a DNS record that will hold the IP addresses of all of the nodes. I build all of my servers in the cloud and they automatically create a new A record for themselves when they come online, but I don't know how to add to an existing record without overwriting the existing info.

The DNS server is a Windows 2008 domain controller and my Cassandra nodes are Ubuntu 10.04 servers.

share|improve this question

1 Answer 1

I would use a script to convert "nodetool ring" results into A records. The data used by nodetool is also available in Cassandra's JMX interface. By using that data, you don't have to worry about amending the existing data because you can overwrite it with a new, complete set of IP addresses. You also don't have to worry about the complexity of removing IPs for removed or replaced cluster members; "nodetool ring" will always have the right data.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.