Closed chezbut closed 9 years ago
Good call, I can't think of any reason why that snitch should be restricted to Community. Will remove that type check at the next update, or I'd happily merge a PR if you wanted to test it out first.
Just fyi, this could be an artifact from past versions of DSE requiring DseDelegateSnitch in cassandra.yaml, which would make that line NOOP in every case. That has since been changed (as of DSE 4.6 I believe)
Choosing the EC2Snitch for community over SimpleSnitch makes sense since we're in EC2. However, we let DSE use the default DSESimpleSnitch which automatically assigns the datacenter based on the type of workload the node will handle.
A pull request for having EC2Snitch be the default wouldn't gain you much since the AMIs will have to be started in the same region and availability zone either way in order for the automatic provisioning to take place. At that point, you may be stuck with a single data center with Cassandra, Analytics, and/or Search workload types mixed together.
What use case were you looking at @chezbut ?
Closing this, ec2snitch isn't the right default for enterprise.
Looking at https://github.com/riptano/ComboAMI/blob/28686c4753c2d684b8c539d9773f4cc716ed2b5c/ds2_configure.py#L614 - it sets up ec2snitch in the yaml only when it detects the Community version. This should be default for Enterprise, or at least selectable via User-Data.