2017-05-19 38 views
0

当我在Azure上配置新的Azure bot服务应用程序时,它会将其创建为消费定价层应用程序。这似乎可能会导致应用程序花费相当长时间(与正在运行的应用程序相比)进行响应的冷启动问题。将Azure botframework应用程序设置为“始终开启”

我想将应用程序配置为使用基本计划上的资源组,以便我可以使其“始终开启”。

有没有我缺少的设置,或者这是不可能在这个时候吗?

编辑:我支付能够像使用典型的Azure功能/网络应用程序一样启用“始终开启”的功能。在这一点上,我没有看到一种配置bot应用程序的方法,以允许它只是一个基于消费的应用程序。

EDIT2:澄清说,这是一个蔚蓝色的机器人服务应用

+0

可能的复制http://stackoverflow.com/questions/42508817/bot-responses-with-滞后于某种非使用时间) –

+0

我要更多地调查这个问题,然后回复你。 ABS机器人应该可以配置到应用服务计划中。到目前为止,我一直无法找到它。 –

+0

您需要设置一个虚拟机来将Azure功能应用程序设为Always On。请参阅编辑答案。 –

回答

0

你创建一个SDK机器人,或Azure Bot Service机器人? SDK机器人只是Web应用程序,可以在任何消费定价计划(包括Always On)中使用:https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-configure

Azure Bot Service机器人是功能应用程序。他们也应该一个应用程序服务计划中是临时性的:https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale


编辑: 从上面的文件:你需要安装一个虚拟机来承载Azure的功能始终是打开的。

应用服务计划

In the App Service plan, your function apps run on dedicated VMs on Basic, Standard, and Premium SKUs, similar to Web Apps. Dedicated VMs are allocated to your App Service apps, which means the functions host is always running. Consider an App Service plan in the following cases: You have existing, underutilized VMs that are already running other App Service instances. You expect your function apps to run continuously, or nearly continuously. You need more CPU or memory options than what is provided on the Consumption plan. You need to run longer than the maximum execution time allowed on the Consumption plan. A VM decouples cost from both runtime and memory size. As a result, you won't pay more than the cost of the VM instance that you allocate. For details about how the App Service plan works, see the Azure App Service plans in-depth overview.

的[博特回答与不使用一定时间后的滞后(
+0

这是一个天青的bot服务应用程序。我尝试使用资源组创建一个测试机器人,我的另一个应用程序正在运行,它被配置为使用带有S1类型实例的基本计划。当我用这种配置去保存新的bot时,它给了我这个错误:这个资源组不允许使用消费定价层。使用此链接了解更多信息http://go.microsoft.com/fwlink/?LinkId=825764。 –

+0

是的,现在ABS配置似乎有一些漏洞(我无法找到任何应​​用服务计划)。 –

+0

我想我可以创建一个基于计时器的服务来每5分钟或者类似的东西戳一下这个机器人,但是能够使用其他应用程序类型中工作的现有方法会很棒。 –

相关问题