我对服务矩阵群集进行了以下设置:
我使用azure门户尝试为上述VMSS设置自动缩放选项(在“缩放”选项中):
{
"location": "eastus",
"tags": {
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage"
},
"properties": {
"name": "My Testing",
"enabled": true,
"targetResourceUri": "/subscriptions/MySubScriptionID/resourceGroups/My-RG-Name/providers/Microsoft.Compute/virtualMachineScaleSets/nt1vm",
"profiles": [
{
"name": "Auto created scale condition 1",
"capacity": {
"minimum": "5",
"maximum": "10",
"default": "5"
},
"rules": [
{
"scaleAction": {
"direction": "Decrease",
"type": "ChangeCount",
"value": "1",
"cooldown": "PT5M"
},
"metricTrigger": {
"metricName": "Percentage CPU",
"metricNamespace": "",
"metricResourceUri": "/subscriptions//MySubScriptionID//resourceGroups/My-RG-Name/providers/Microsoft.Compute/virtualMachineScaleSets/nt1vm",
"operator": "LessThan",
"statistic": "Average",
"threshold": 5,
"timeAggregation": "Average",
"timeGrain": "PT1M",
"timeWindow": "PT5M"
}
}
],
"fixedDate": {
"timeZone": "Mountain Standard Time",
"start": "2018-09-18T00:00:00.000Z",
"end": "2018-09-21T23:59:00.000Z"
}
},
{
"name": "Auto created scale condition",
"capacity": {
"minimum": "5",
"maximum": "10",
"default": "5"
},
"rules": [
{
"scaleAction": {
"direction": "Increase",
"type": "ChangeCount",
"value": "1",
"cooldown": "PT15M"
},
"metricTrigger": {
"metricName": "Percentage CPU",
"metricNamespace": "",
"metricResourceUri": "/subscriptions/MySubScriptionID/resourceGroups/My-RG-Name/providers/Microsoft.Compute/virtualMachineScaleSets/nt1vm",
"operator": "GreaterThanOrEqual",
"statistic": "Average",
"threshold": 10,
"timeAggregation": "Average",
"timeGrain": "PT1M",
"timeWindow": "PT5M"
}
}
]
}
],
"notifications": [
{
"operation": "Scale",
"email": {
"sendToSubscriptionAdministrator": false,
"sendToSubscriptionCoAdministrators": false,
"customEmails": [
""
]
},
"webhooks": []
}
],
"targetResourceLocation": "eastus"
},
"id": "/subscriptions/MySubScriptionID/resourceGroups/My-RG-Name/providers/microsoft.insights/autoscalesettings/My Testing",
"name": "My Testing",
"type": "Microsoft.Insights/autoscaleSettings"
}
观察:
问题:
答案 0 :(得分:0)
看来我的定尺与定尺规则相冲突。一旦我删除了标尺,一切就开始起作用。