Class AlibabaCloudSnitch

  • All Implemented Interfaces:
    IEndpointSnitch

    public class AlibabaCloudSnitch
    extends AbstractNetworkTopologySnitch
    A snitch that assumes an ECS region is a DC and an ECS availability_zone is a rack. This information is available in the config for the node. the format of the zone-id is like 'cn-hangzhou-a' where cn means china, hangzhou means the hangzhou region, a means the az id. We use 'cn-hangzhou' as the dc, and 'a' as the zone-id.
    • Field Detail

      • connector

        protected final org.apache.cassandra.locator.AbstractCloudMetadataServiceConnector connector
    • Constructor Detail

      • AlibabaCloudSnitch

        public AlibabaCloudSnitch()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • AlibabaCloudSnitch

        public AlibabaCloudSnitch​(SnitchProperties properties)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • AlibabaCloudSnitch

        public AlibabaCloudSnitch​(org.apache.cassandra.locator.AbstractCloudMetadataServiceConnector connector)
                           throws java.io.IOException
        Throws:
        java.io.IOException