Skip to content

Commit

Permalink
Merge pull request #3449 from DataDog/backoff-needs-retries
Browse files Browse the repository at this point in the history
Azure cloud provider: backoff needs retries
  • Loading branch information
k8s-ci-robot authored Aug 22, 2020
2 parents 9565ee1 + 85e3588 commit 8457dce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-autoscaler/cloudprovider/azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Please see the [AKS autoscaler documentation][] for details.

## Rate limit and back-off retries

The new version of [Azure client][] supports rate limit and back-off retries when the cluster hits the throttling issue. These can be set by environment variables or cloud config file.
The new version of [Azure client][] supports rate limit and back-off retries when the cluster hits the throttling issue. These can be set by either environment variables, or cloud config file. With config file, defaults values are false or 0.

| Config Name | Default | Environment Variable | Cloud Config File |
| ----------- | ------- | -------------------- | ----------------- |
Expand Down
4 changes: 4 additions & 0 deletions cluster-autoscaler/cloudprovider/azure/azure_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,10 @@ func validateConfig(cfg *Config) error {
return fmt.Errorf("ARM Client ID not set")
}

if cfg.CloudProviderBackoff && cfg.CloudProviderBackoffRetries == 0 {
return fmt.Errorf("Cloud provider backoff is enabled but retries are not set")
}

return nil
}

Expand Down

0 comments on commit 8457dce

Please sign in to comment.