-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizable Azure API retry behavior #488
Comments
@bryanburke Thanks for using Steampipe!! We have implemented this in AWS, in case that helps you. Below are reference codes used in AWS |
'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.' |
Not stale, PR currently under review. |
'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.' |
Not stale, PR is still under review. |
'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.' |
'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.' |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Hello @bryanburke, please accept my apologies for the delayed response. We have utilized the autorest package in this plugin, which offers API retry support through the RetryAttempts and RetryDuration parameters. By default, the RetryAttempts parameter is set to 3, and the RetryDuration parameter is set to 30 seconds. We have tested the retry logic, but the exponential backup logic is not working correctly; here is a sample log output -
Also, they have deprecated the autorest package so that no future support will be available on this package. Instead, they recommended using the azcore retry logic available in the Azure SDK. |
Re-opening issue as this could still be helpful to the plugin. In the linked PR, #491, I think the changes were implemented with the Steampipe plugin SDK’s I think a reasonable approach would be to add some config args initially that are compatible with those in the autorest package (https://github.com/Azure/go-autorest/blob/33e12ab7683c1c236a863ccfbfdd78c626f7fe28/autorest/client.go#L168-L173) and those in the new azcore’s RetryOptions as well (https://github.com/Azure/azure-sdk-for-go/blob/05a959d4cf98a98bc99fb154b9f2ad1c8dd16072/sdk/azcore/policy/policy.go#L92), to give users some control over retries before we migrate the plugin to the new SDK. |
Is your feature request related to a problem? Please describe.
N/A
Describe the solution you'd like
If possible, I think it would be helpful to be able to customize the Azure API call retry behavior via Steampipe Azure plugin configuration. For example, the following settings might be exposed via
azure.spc
:Describe alternatives you've considered
N/A
Additional context
Azure provides the following documentation regarding retry behavior in the Azure SDK for Go:
The text was updated successfully, but these errors were encountered: