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.