I’ve noticed that when an Azure sync experiences rate limit issues, I get inconsistent results.
For example:
When tables are azure_storage_accounts, azure_storage_containers, there is no rate limit in the logs and the number of resources synced from azure_storage_containers is 866 with 0 errors, which is the expected result. I’ve done multiple syncs with this configuration and the number of resources stays the same.
When tables are azure_storage_accounts, azure_storage_containers, azure_storage_file_shares, azure_storage_blob_services, there is a rate limit in the logs and the number of resources synced from azure_storage_containers is 780 with 20 errors. I’ve done multiple syncs with this configuration and the number of resources is inconsistent, meaning that the number of resources is sometimes X and sometimes Y, but not the expected 866.
I’m using Azure v9.3.0 if that matters.
Has anyone else experienced this?
Thanks!
@thorough-bear Reducing the concurrency value should help with this. But we can also investigate on our side to see if there’s a way to better schedule the queries so that they don’t hit Azure rate limits.
Yes, I set concurrency=1 every time. As part of sending you the config, I had to run my program a couple of times, which initiated a couple of syncs. I noticed that:
When I ran the tables azure_storage_accounts and azure_storage_containers twice one after another, I see in the logs that the second sync gets a lot of 429 TooManyRequests, and the number of resources synced under azure_storage_containers is just 720 with 43 errors. The first sync has no errors, and the number of azure_storage_containers resources is 866 (as expected).