更新:它似乎現在正在工作。Azure Web App不及時自動縮放
我已經配置了我們的Azure Web應用程序,以便在CPU負載超過80%和60%以下時在4到10個實例之間進行縮放。
我們的網站現在已經超過95%的CPU負載超過兩個小時,並且沒有發生自動調節。
當在看「進度和性能規則」我看到持續時間(分鐘)爲300
我覺得這應該不是10分鐘,但是當我設置並保存(憑有效驗證規則)我得到這個錯誤:
難道我做錯了什麼或有在門戶網站中的錯誤?
後我手動increadsed到5升後降回4,我可以看到自動縮放的管理服務工作日誌:
ActiveAutoscaleProfile: { "Name": "Default", "Capacity": {
"Minimum": "2",
"Maximum": "10",
"Default": "2" }, "Rules": [
{
"MetricTrigger": {
"Name": "CpuPercentage",
"Namespace": "",
"Resource": "xxx",
"ResourceLocation": "West Europe",
"TimeGrain": "PT1H",
"Statistic": "Average",
"TimeWindow": "PT5H",
"TimeAggregation": "Average",
"Operator": "GreaterThanOrEqual",
"Threshold": 80.0,
"Source": "xxx"
},
"ScaleAction": {
"Direction": "Increase",
"Type": "ChangeCount",
"Value": "1",
"Cooldown": "PT5M"
}
},
{
"MetricTrigger": {
"Name": "CpuPercentage",
"Namespace": "",
"Resource": "xxx",
"ResourceLocation": "West Europe",
"TimeGrain": "PT1H",
"Statistic": "Average",
"TimeWindow": "PT5H",
"TimeAggregation": "Average",
"Operator": "LessThan",
"Threshold": 60.0,
"Source": "xxx"
},
"ScaleAction": {
"Direction": "Decrease",
"Type": "ChangeCount",
"Value": "1",
"Cooldown": "PT5M"
}
} ] }
Description: The autoscale engine attempting to scale resource xxx' from 3 instances count to 2 instances count.
LastScaleActionTime: Wed, 03 Jun 2015 09:11:38 GMT
Microsoft.Resources/EventNameV2: Autoscale a resource.
Microsoft.Resources/Operation: Scale down
Microsoft.Resources/ResourceUri: /xxx
NewInstancesCount: 2
OldInstancesCount: 3
ResourceName: xxx
這樣我就可以看到自動縮放確實有效。
是否可以通過編程方式更改該值?
您描述的解決方法工作,我已將時間設置爲10分鐘。我希望有更好的方法來報告錯誤,然後創建一個建議,但我在其上添加了我的投票。 – Martin