Skip to content

Commit

Permalink
Merge pull request #359 from skriss/reduce-azure-polling-interval
Browse files Browse the repository at this point in the history
Azure: reduce client polling interval from default 60s to 5s
  • Loading branch information
ncdc authored Mar 14, 2018
2 parents bd505fb + 45cee7d commit 07fcc92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cloudprovider/azure/block_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ func (b *blockStore) Init(config map[string]string) error {
disksClient := disk.NewDisksClient(cfg[azureSubscriptionIDKey])
snapsClient := disk.NewSnapshotsClient(cfg[azureSubscriptionIDKey])

disksClient.PollingDelay = 5 * time.Second
snapsClient.PollingDelay = 5 * time.Second

authorizer := autorest.NewBearerAuthorizer(spt)
disksClient.Authorizer = authorizer
snapsClient.Authorizer = authorizer
Expand Down

0 comments on commit 07fcc92

Please sign in to comment.