Skip to content

Commit b65c63d

Browse files
committed
next steps
1 parent 1f4c142 commit b65c63d

File tree

1 file changed

+96
-15
lines changed

1 file changed

+96
-15
lines changed

articles/azure-monitor/autoscale/autoscale-diagnostics.md

Lines changed: 96 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ Logged when autoscale attempts to scale in or out.
277277
"eventName": "AutoscaleAction",
278278
...
279279
"eventProperties": "{
280-
"Description": "The autoscale engine attempting to scale resource '/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/ resourcegroups/ed-rg-001/providers/Microsoft.Web/serverFarms/ScaleableAppServicePlan' from 2 instances count to 1 instances count.",
281-
"ResourceName": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourcegroups/ed-rg-001/providers/Microsoft.Web/ serverFarms/ScaleableAppServicePlan",
280+
"Description": "The autoscale engine attempting to scale resource '/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourcegroups/ed-rg-001/providers/Microsoft.Web/serverFarms/ScaleableAppServicePlan' from 2 instances count to 1 instancescount.",
281+
"ResourceName": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourcegroups/ed-rg-001/providers/Microsoft.Web/serverFarms/ScaleableAppServicePlan",
282282
"OldInstancesCount": 2,
283283
"NewInstancesCount": 1,
284284
"ActiveAutoscaleProfile": {
@@ -293,15 +293,15 @@ Logged when autoscale attempts to scale in or out.
293293
"MetricTrigger": {
294294
"Name": "CpuPercentage",
295295
"Namespace": "microsoft.web/serverfarms",
296-
"Resource": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/ed-rg-001/providers/Microsoft. Web/serverFarms/ScaleableAppServicePlan",
296+
"Resource": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/ed-rg-001/providers/Microsoft.Web/serverFarms/ScaleableAppServicePlan",
297297
"ResourceLocation": "West Central US",
298298
"TimeGrain": "PT1M",
299299
"Statistic": "Average",
300300
"TimeWindow": "PT2M",
301301
"TimeAggregation": "Average",
302302
"Operator": "GreaterThan",
303303
"Threshold": 40.0,
304-
"Source": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/ed-rg-001/providers/Microsoft. Web/serverFarms/ScaleableAppServicePlan",
304+
"Source": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/ed-rg-001/providers/Microsoft.Web/serverFarms/ScaleableAppServicePlan",
305305
"MetricType": "MDM",
306306
"Dimensions": [],
307307
"DividePerInstance": false
@@ -317,15 +317,15 @@ Logged when autoscale attempts to scale in or out.
317317
"MetricTrigger": {
318318
"Name": "CpuPercentage",
319319
"Namespace": "microsoft.web/serverfarms",
320-
"Resource": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/ed-rg-001/providers/Microsoft. Web/serverFarms/ScaleableAppServicePlan",
320+
"Resource": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/ed-rg-001/providers/Microsoft.Web/serverFarms/ScaleableAppServicePlan",
321321
"ResourceLocation": "West Central US",
322322
"TimeGrain": "PT1M",
323323
"Statistic": "Average",
324324
"TimeWindow": "PT5M",
325325
"TimeAggregation": "Average",
326326
"Operator": "LessThanOrEqual",
327327
"Threshold": 30.0,
328-
"Source": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/ed-rg-001/providers/Microsoft. Web/serverFarms/ScaleableAppServicePlan",
328+
"Source": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/ed-rg-001/providers/Microsoft.Web/serverFarms/ScaleableAppServicePlan",
329329
"MetricType": "MDM",
330330
"Dimensions": [],
331331
"DividePerInstance": false
@@ -357,7 +357,7 @@ Logged following a scale event.
357357
"eventCategory": "Autoscale",
358358
"eventName": "GetOperationStatusResult",
359359
...
360-
"eventProperties": "{\"OldInstancesCount\":3,\"NewInstancesCount\":2}",
360+
"eventProperties": "{"OldInstancesCount":3,"NewInstancesCount":2}",
361361
...
362362
"activityStatusValue": "Succeeded"
363363
}
@@ -373,7 +373,8 @@ Logged when autoscale can't determine the value of the metric used in the scale
373373
"eventCategory": "Autoscale",
374374
"eventName": "MetricFailure",
375375
...
376-
"eventProperties": "{\"Notes\":\"To ensure service availability, Autoscale will scale out the resource to the default capacity if it is greater than the current capacity\"}",
376+
"eventProperties": "{
377+
"Notes":"To ensure service availability, Autoscale will scale out the resource to the default capacity if it is greater than the current capacity}",
377378
...
378379
"activityStatusValue": "Failed"
379380
}
@@ -395,20 +396,21 @@ Logged when autoscale can once again determine the value of the metric used in t
395396
### Predictive Metric Failure
396397

397398
Logged when autoscale can't calculate predicted scale events due to the metric being unavailable.
398-
399399
```JSON
400-
"Properties":{
400+
"Properties": {
401401
"eventCategory": "Autoscale",
402402
"eventName": "PredictiveMetricFailure",
403403
...
404-
"eventProperties": "{\"Notes\":\"To ensure service availability, \Autoscale will scale out the resource to the default capacity if it is greater than the current capacity\"}",
404+
"eventProperties": "{
405+
"Notes": "To ensure service availability, Autoscale will scale out the resource to the default capacity if it is greater than the current capacity"
406+
}",
405407
...
406408
"activityStatusValue": "Failed"
407-
}
409+
}
408410
```
409411
### Flapping Occurred
410412

411-
Logged when autoscale detects a flapping and scales differently to avoid it.
413+
Logged when autoscale detects flapping could occur, and scales differently to avoid it.
412414

413415
```JSON
414416
"Properties":{
@@ -417,11 +419,11 @@ Logged when autoscale detects a flapping and scales differently to avoid it.
417419
...
418420
"eventProperties":
419421
"{"Description":"Scale down will occur with updated instance count to avoid flapping.
420-
Resource: '/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourcegroups/rg-001/providers/Microsoft.Web/serverFarms/ ScaleableAppServicePlan'.
422+
Resource: '/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourcegroups/rg-001/providers/Microsoft.Web/serverFarms/ScaleableAppServicePlan'.
421423
Current instance count: '6',
422424
Intended new instance count: '1'.
423425
Actual new instance count: '4'",
424-
"ResourceName":"/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourcegroups/rg-001/providers/Microsoft.Web/serverFarms/ ScaleableAppServicePlan",
426+
"ResourceName":"/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourcegroups/rg-001/providers/Microsoft.Web/serverFarms/ScaleableAppServicePlan",
425427
"OldInstancesCount":6,
426428
"NewInstancesCount":4,
427429
"ActiveAutoscaleProfile":{"Name":"Auto created scale condition",
@@ -431,3 +433,82 @@ Logged when autoscale detects a flapping and scales differently to avoid it.
431433
"activityStatusValue": "Succeeded"
432434
}
433435
```
436+
437+
### Flapping
438+
439+
Logged when autoscale detects flapping could occur, and defers scaling in to avoid it.
440+
441+
```JSON
442+
"Properties": {
443+
"eventCategory": "Autoscale",
444+
"eventName": "Flapping",
445+
"Description": "{"Cannot scale down due to flapping observed. Resource: '/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourcegroups/rg-001/providers/Microsoft.Compute/virtualMachineScaleSets/mac2'. Current instance count: '2', Intended new instance count '1'",
446+
"ResourceName": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourcegroups/rg-001/providers/Microsoft.Compute/virtualMachineScaleSets/mac2",
447+
"OldInstancesCount": "2",
448+
"NewInstancesCount": "2",
449+
"ActiveAutoscaleProfile": "ActiveAutoscaleProfile": {
450+
"Name": "Auto created default scale condition",
451+
"Capacity": {
452+
"Minimum": "1",
453+
"Maximum": "2",
454+
"Default": "1"
455+
},
456+
"Rules": [
457+
{
458+
"MetricTrigger": {
459+
"Name": "StorageSuccesses",
460+
"Namespace": "monitoringbackgroundjob",
461+
"Resource": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/rg-001/providers/microsoft.monitor/accounts/MACAzureInsightsPROD",
462+
"ResourceLocation": "EastUS2",
463+
"TimeGrain": "PT1M",
464+
"Statistic": "Average",
465+
"TimeWindow": "PT10M",
466+
"TimeAggregation": "Average",
467+
"Operator": "LessThan",
468+
"Threshold": 600.0,
469+
"Source": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/rg-001/providers/microsoft.monitor/accounts/MACAzureInsightsPROD",
470+
"MetricType": "MDM",
471+
"Dimensions": [],
472+
"DividePerInstance": false
473+
},
474+
"ScaleAction": {
475+
"Direction": "Decrease",
476+
"Type": "ChangeCount",
477+
"Value": "1",
478+
"Cooldown": "PT5M"
479+
}
480+
},
481+
{
482+
"MetricTrigger": {
483+
"Name": "TimeToStartupInMs",
484+
"Namespace": "armrpclient",
485+
"Resource": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/rg-123/providers/microsoft.monitor/accounts/MACMetricsRP",
486+
"ResourceLocation": "eastus2",
487+
"TimeGrain": "PT1M",
488+
"Statistic": "Percentile99th",
489+
"TimeWindow": "PT10M",
490+
"TimeAggregation": "Average",
491+
"Operator": "GreaterThan",
492+
"Threshold": 70.0,
493+
"Source": "/subscriptions/d1234567-9876-a1b2-a2b1-123a567b9f8767/resourceGroups/rg-123/providers/microsoft.monitor/accounts/MACMetricsRP",
494+
"MetricType": "MDM",
495+
"Dimensions": [],
496+
"DividePerInstance": false
497+
},
498+
"ScaleAction": {
499+
"Direction": "Increase",
500+
"Type": "ChangeCount",
501+
"Value": "1",
502+
"Cooldown": "PT5M"
503+
}
504+
}
505+
]
506+
}"
507+
}...
508+
```
509+
510+
## Next steps
511+
512+
* [Troubleshooting Autoscale](./autoscale-troubleshoot.md)
513+
* [Autoscale Flapping](./autoscale-flapping.md)
514+
* [Autoscale settings](./autoscale-understanding-settings.md)

0 commit comments

Comments
 (0)