locked
azure search performance throttling RRS feed

  • Question

  • according to the documentation I reviewed when the query-per-second limit is exceeded in azure search, either a 429 or 503 status code is returned. However, I'd also like to know what type of exception is thrown in this circumstance. Would it be the standard System.Net.WebException? Ideally, these exceptions should be handled differently than other exceptions in order to allow queries to be retried periodically.
    • Edited by Glenn Venzke Wednesday, March 15, 2017 3:36 PM
    • Moved by Sapna Girish Thursday, March 16, 2017 10:15 AM related to Azure Search
    Wednesday, March 15, 2017 3:26 PM

Answers

  • There is no strict QPS limit in Azure Search. The service will start throttling your requests when it’s being overloaded and it’s running out of resources. You can learn more about Azure Search performance tuning here: https://docs.microsoft.com/en-us/azure/search/search-performance-optimization
    Azure Search SDK throws CloudException if the underlying HTTP request fails, however, during indexing the SDK will throw IndexBatchException.
    Note, you can use the SetRetryPolicy method on the SearchIndexClient to customize how it behaves in when Azure Search returns a 5xx or 408.
    Tuesday, March 21, 2017 1:39 AM
    Moderator