-
Notifications
You must be signed in to change notification settings - Fork 15
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
TooManyRequests - migration tool has been throttled #237
Comments
Hi Waldemar, Thanks for reporting this issue. Just wanted to give you a quick update on our investigation. The exception is from Azure Storage, originating from this call
Apparently, there is a limit on the amount of storage account management operations that one can do with storage (https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/request-limits-and-throttling), in particular, we think that you hit the 800 requests / 5 min throttling limit. We don't believe there is any way to raise these limits. Because the storage operation is used pretty pervasively in the code, it is a bit difficult to fully address this issue in the short run. In the interim, there are two mitigations, there is this -b flag,
that you can try to set to 1 This should slow down the number of asset analyzed / migrated because it will do it '1' asset at a time. The other mitigation is to use -cs, --creation-time-start The earliest creation time of the selected assets in UTC, to limit the number of assets per run, that way you can chop the number of assets by date. This way you can partition the asset you want to migrate by date range and you run the tool multiple times, each with a smaller date range. We apologize for your inconvenience.. |
Hi Waldemar, We committed a PR to help alleviate the issue (#239). Feel free to try it out to see if it helps with your issue. |
Hello @pohhsu
I have a feeling that your change in PR #239 also improved performance a lot! Tomorrow I will run full migration to check if also assets command is also working (if it will be successul I will close a ticket), but it seems that issue is resolved (at least for analyze) Thank you for quick response and support! |
Everything works fine. Thank you @pohhsu for your help! |
Hello! I run analyze command using migration tool against our staging media service account. It contains around 30k assets there. After 12k I got following exception. I'm a bit worried, cause on production media services account we have around 140k assets. Is there any way to increase limits (if yes which limit should be raised), or handle this error more gracefully e.g by implementing exponetial backoff or some kind of batching? I run this job on Azure container Instance with standard cpu/memory settings (4cpus 16GB RAM)
The text was updated successfully, but these errors were encountered: