voldemort/voldemort — pull request #86 by stotch (2012-07-20 22:02:51+00:00)
Title: generate_cluster_xml.py enhancements

Examples of supported use, now ...
https://gist.github.com/ed407ccd4b83ec3a5ed6

It's not pretty but it works better. The differences with these changes are ...
- Has help
- Cleaner, more flexible output that includes a comment with the seed it used to generate the distribution
- Defaults to a 2-node 600-partition cluster
- All defaults can be overridden (including forcing a user-defined seed) using arguments from long or short options
- Limited support for zones (will plug zone-ids into hosts, but you have to add the \ fields to the cluster yourself)
- Partitions are now thrown into a dictionary for easier reuse and manipulation later
- Script is easier to add on to and maintain