incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ondřej Černoš <>
Subject Extending Ec2Snitch for custom availability zone format
Date Thu, 02 May 2013 15:35:03 GMT
Hi all,

We use Cassandra in mixed Ec2/OpenStack environment. Unfortunately due to
decisions made long ago the OpenStack availability zone name obtainable
through is
not compatible with Cassandra's parsing in o.a.c.locator.Ec2Snitch - the
format uses dot instead of minus as field separator. Currently I manage my
own fork of Cassandra's snitches, which is error prone. I thought I might
patch Cassandra so that it understands custom formats:

- make the format a regex configurable in cassandra.yaml with defaults
(option not set at all) set to current implementation
- make it easy - presume three groups (us-east-1a,
openstack.something-computenode and the like) where the first two groups
form datacenter name and the last one the rack (plus keeping CASSANDRA-4026
functionality in place)

For users not configuring the regex nothing will change, others, like me,
will have the option to parse different availability zone names.

What do you think? Does it have a chance being accepted?


ondřej černoš

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message