Skip to content

Commit f4b4a2d

Browse files
authored
Merge pull request #108372 from diberry/diberry/0319-qna-always-on
[Cogsvcs] QnA Maker - idle setting
2 parents 5150bd4 + 2a136a3 commit f4b4a2d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

articles/cognitive-services/QnAMaker/How-To/set-up-qnamaker-service-azure.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Set up a QnA Maker service - QnA Maker
33
description: Before you can create any QnA Maker knowledge bases, you must first set up a QnA Maker service in Azure. Anyone with authorization to create new resources in a subscription can set up a QnA Maker service.
44
ms.topic: conceptual
5-
ms.date: 01/28/2020
5+
ms.date: 03/19/2020
66
---
77
# Manage QnA Maker resources
88

@@ -183,6 +183,27 @@ QnA Maker's **App Service** resource uses the Cognitive Search resource. In orde
183183
184184
If you create a QnA service through Azure Resource Manager templates, you can create all resources and control the App Service creation to use an existing Search service.
185185

186+
Learn more about how to configure the App Service [Application settings](../../../app-service/configure-common.md#configure-app-settings).
187+
188+
## Configure App service idle setting to avoid timeout
189+
190+
The app service, which serves the QnA Maker prediction runtime for a published knowledge base, has an idle timeout configuration, which defaults to automatically timeout if the service is idle. For QnA Maker, this means your prediction runtime generateAnswer API occasionally times out after periods of no traffic.
191+
192+
In order to keep the prediction endpoint app loaded even when there is no traffic, set the idle to always on.
193+
194+
1. Sign in to the [Azure portal](https://portal.azure.com).
195+
1. Search for and select your QnA Maker resource's app service. It will have the same name as the QnA Maker resource but it will have a different **type** of App Service.
196+
1. Find **Settings** then select **Configuration**.
197+
1. On the Configuration pane, select **General settings**, then find **Always on**, and select **On** as the value.
198+
199+
> [!div class="mx-imgBorder"]
200+
> ![On the Configuration pane, select **General settings**, then find **Always on**, and select **On** as the value.](../media/qnamaker-how-to-upgrade-qnamaker/configure-app-service-idle-timeout.png)
201+
202+
1. Select **Save** to save the configuration.
203+
1. You are asked if you want to restart the app to use the new setting. Select **Continue**.
204+
205+
Learn more about how to configure the App Service [General settings](../../../app-service/configure-common.md#configure-general-settings).
206+
186207
## Delete Azure resources
187208

188209
If you delete any of the Azure resources used for your QnA Maker knowledge bases, the knowledge bases will no longer function. Before deleting any resources, make sure you export your knowledge bases from the **Settings** page.
82.3 KB
Loading

0 commit comments

Comments
 (0)