question

HesselWellema-1914 avatar image
0 Votes"
HesselWellema-1914 asked HesselWellema-1914 commented

How do I prevent the Azure cognitive search service from becoming cold after a period of no load?

I use QnaMaker in chatbots. QnaMaker uses Azure Cognitive Search to store and find question\answer pairs.

QnaMaker seems to idle after not being used for a while. The first query takes 7 seconds to complete. Every query after the first one completes within a second.

I think this is because Azure Cognitive Search Service becomes cold when it is not under consistent load. I can see the high latency in the metrics blade of the Search service the first time I use QnaMaker for a certain KB (index). The second query has no latency for that specific KB/Index.

How do I prevent the Azure cognitive search service from becoming cold after a period of no load?

azure-cognitive-search
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered HesselWellema-1914 commented

Hi @HesselWellema-1914,

Azure Cognitive Search Service doesn't idle, it continuously runs once the resources have been created. It appears you have done some performance analysis. Does the individual query in the elapsed time report 7 seconds or just the overall request? Is the 7 seconds both through the bot and a direct request (from Postman).

Regards,
Rayn


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ryanchill, Thanks for your answer. I will do some additional analysis and also add a quick availability/web test using Azure app insights monitor. As soon as I am able to pinpoint the service causing latency, I will share it

0 Votes 0 ·