We have a process creatively named "bootstrap" that sets up our Cassandra clusters for a given rev of software in an environment (Dev1, Dev2, QA, ..., PROD). This bootstrap Creates/Updates keyspaces and column families as well as populating initial data in non-prod.
We are using Astyanax, but we could use Hector for bootstrapping.
Given that another team has decided that each environment will have its own datacenter names. And Given that I want this to work in prod when we go from two to more datacenters. And Given that we will be using PropertyFileSnitch:
How can I ask the Cassandra cluster for its layout? (Without shelling to nodetool ring)
Specifically, I need to know the names of the datacenters so I can Create or Update a keyspace with the correct settings for strategy options when using NetworkTopologyStrategy. We want 3 copies per datacenter. Some envs have one and several have two, eventually production will have more.
Is there CQL or a Thrift call that will give me info about the cluster layout?
I have looked though several TOCs in various doc sets, and googled a bit. I thought I would ask here before digging though the nodetool code.