Class AzureSnitch

  • All Implemented Interfaces:
    IEndpointSnitch

    public class AzureSnitch
    extends AbstractNetworkTopologySnitch
    AzureSnitch will resolve datacenter and rack by calling /metadata/instance/compute endpoint returning the response in JSON format for API version 2021-12-13. The version of API is configurable via property azure_api_version in cassandra-rackdc.properties.

    A datacenter is resolved from location field and a rack is resolved by looking into zone field first. When zone is not set, or it is empty string, it will look into platformFaultDomain field. Such resolved value is prepended by rack- string.

    • Field Detail

      • connector

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

      • AzureSnitch

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

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

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