Environment Provider
Configure cloud environment providers for automatic Pinot instance configuration.
Environment Provider plugins allow Pinot to discover cloud-specific instance metadata at startup. This metadata is used to configure failure domains, availability zones, and other cloud-specific settings that improve data placement and fault tolerance.
Available Implementations
Azure
org.apache.pinot.plugin.provider.AzureEnvironmentProvider
Microsoft Azure
Azure Environment Provider
The Azure Environment Provider queries the Azure Instance Metadata Service (IMDS) to retrieve the platform fault domain for the current VM. This information is used by Pinot's Helix-based cluster management to distribute instances across Azure failure domains for improved fault tolerance.
Configuration
maxRetry
Integer
Yes
Maximum number of HTTP retries (must be > 0)
imdsEndpoint
String
Yes
Azure IMDS endpoint URL
connectionTimeoutMillis
Integer
Yes
HTTP connection timeout in milliseconds
requestTimeoutMillis
Integer
Yes
HTTP request/response timeout in milliseconds
Example Configuration
pinot.server.environment.provider.className=org.apache.pinot.plugin.provider.AzureEnvironmentProvider
pinot.server.environment.provider.maxRetry=3
pinot.server.environment.provider.imdsEndpoint=http://169.254.169.254/metadata/instance?api-version=2020-09-01
pinot.server.environment.provider.connectionTimeoutMillis=5000
pinot.server.environment.provider.requestTimeoutMillis=5000How It Works
At startup, the provider sends an HTTP GET request to the Azure IMDS endpoint
The IMDS response contains VM metadata including the
compute.platformFaultDomainfieldThe failure domain value is returned and used by Helix to configure the instance
This enables Pinot to distribute replicas across fault domains, improving availability during Azure infrastructure failures
Writing a Custom Environment Provider
To create a custom environment provider, implement the PinotEnvironmentProvider interface:
See the Plugin Architecture docs for general guidance on building Pinot plugins.
Last updated
Was this helpful?

