azure - Azure Function Application 预热状态
问题描述
我目前正在使用多个 azure function app 实例,带有 "apiVersion": "2015-08-01" 。目前我没有使用任何预热触发器,只有少数功能始终处于“预热”状态,即使重新启动应用程序很快就会进入预热状态,任何有相同经验并找到解决方案的人?
ARM 模板
{
"apiVersion": "2015-08-01",
"type": "Microsoft.Web/sites",
"name": "[variables('xx')]",
"location": "[parameters('location')]",
"kind": "functionapp",
"identity": {
"type": "SystemAssigned"
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('xx'))]"
],
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('xx'))]",
"siteConfig": {
"appSettings": [
]
}
}
起动机
[FunctionName("xxStarter")]
public async Task Run([QueueTrigger("xxQueue", Connection = "AzureWebJobsStorage")]
xx xxMessage,[DurableClient]IDurableOrchestrationClient starter, ILogger log)
{
string instanceId = await starter.StartNewAsync("xxOchestration", xxMessage);
}
解决方案
推荐阅读
- python - 用相同数量的另一个字符替换前导字符
- javascript - 滚动事件不起作用:不推荐使用主线程上的同步 XMLHttpRequest
- sql - 将列表拆分为表格并将其关联
- sql-server - 更新同一个表时触发插入第二行
- javascript - 你怎么能在多个表单中使用相同的隐藏输入?
- python - 安装 pygeocoder 时不兼容(冲突)
- corda - PostgreSQL如何查询某个账户的余额?
- python - 当用户输入 0 时,如何让我的程序打印并继续而不是崩溃?
- python - 从记录类型中获取特定值的数量
- xcode - Mac Catalina 安装 Xdebug