Azure AI Search Solution
Optimize Performance of
an Azure AI Search Solution
The size and complexity
of your indexes may affect search solutions’ performance. Additionally, You
also need to know how to write efficient queries to search it and choose the
right service tier.
Measure Your Current Search
Performance
If you don't know how
well your search service works, you can't optimize. Establish a baseline
performance benchmark so you can verify the advancements you achieve and
monitor any decline in performance over time.
To start with, enable
diagnostic logging using Log Analytics:
- In the Azure portal, select Diagnostic settings.
- Give your diagnostic setting a name.
- Select allLogs and AllMetrics.
- Select Send to Log Analytics workspace.
- Choose, or create, your Log Analytics workspace.
This diagnostic data must
be recorded at the search service level. Your end users or apps may experience
performance problems in a number of locations. If you can demonstrate that your
search service is operating efficiently, you may rule it out as a potential
cause of performance problems.
Check If Your Search Service
Is Throttled
Azure AI can be
throttled. A 503 HTTP response is recorded in Log Analytics if your users' or
apps' searches are being blocked. Your indexes will seem as 207 HTTP replies if
they are being throttled.
This query you can run against
your search service logs shows you if your search serviceis being throttled.
Choose Logs under Monitoring in the Azure interface. This Kusto query would be
used in the New Query 1 tab. You'd run the command to see a bar chart of your
search services HTTP responses.
Check Performance Of Individual
Queries
The most effective method
to evaluate the performance of individual queries is by using a client tool
such as Postman. Any tool that displays the headers in the response to a query
can be utilized. Azure AI Search consistently provides an 'elapsed-time' value
indicating the duration it took for the service to process the query. To
calculate the total time it takes to send and receive the response from the
client, you can subtract the elapsed time from the overall round trip.
Conclusion
We have successfully
learnt about optimizing an Azure AI Search Solution.
Comments
Post a Comment