简体   繁体   English

具有服务结构集群自动扩展功能的VMSS

[英]VMSS with service fabric cluster autoscale

I want to scale out or scale in the service fabric application. 我想扩展或扩展服务结构应用程序。 For this I have added the autoscalesettings with CPU metric on VM scale set. 为此,我在VM比例集上添加了带有CPU指标的自动比例设置。 And in VM scale set, I have the extension section with wadcfg section with counter on CPU metric. 在VM规模集中,我有带有wadcfg的扩展部分和带有CPU指标的计数器。 And the data is successfully getting emitted to storage account which I have specified.But scale out or scale on options are not getting done with VMSS and service fabric cluster. 并且数据已成功发送到我指定的存储帐户中。但是使用VMSS和服务结构群集无法完成扩展或扩展选项。 I have gone through trouble shooting steps which were specified in azure portal. 我已经完成了在azure门户中指定的故障排除步骤。 https://azure.microsoft.com/en-us/documentation/articles/virtual-machine-scale-sets-troubleshoot/ https://azure.microsoft.com/en-us/documentation/articles/virtual-machine-scale-sets-troubleshoot/

And without service fabric, the same CPU metric is working fine and VM scale set is getting scale out. 如果没有服务结构,则相同的CPU指标可以正常工作,并且VM扩展集正在扩展。

Checked subscription limit as well. 还检查了订阅限制。 But could not able to find the issue. 但是找不到问题。 But, we are getting a mail notification saying, could not able to read the diagnostics data for autoscale when vmss and service fabric together deployed. 但是,我们收到一封邮件通知,说当vmss和服务结构一起部署时,无法读取自动扩展的诊断数据。

Service Fabric does support AutoScale it's just not very well documented. Service Fabric确实支持AutoScale,但记录不充分。 Here is a basic documentation - https://azure.microsoft.com/en-us/documentation/articles/service-fabric-cluster-scale-up-down/ which uses "XmlCfg" element to configure counters. 这是一个基本的文档- https://azure.microsoft.com/en-us/documentation/articles/service-fabric-cluster-scale-up-down/它使用“XmlCfg”元素来配置计数器。 However there is a way to do it via JSON as well which is more readable. 但是,也有一种方法可以通过JSON来实现,这种方法更具可读性。 Here is a snippet of a "settings" block from "IaaSDiagnostics" extension. 这是“ IaaSDiagnostics”扩展中的“设置”块的摘要。

Note the inclusion of "PerformanceCounters" and "Metrics" elements under "DiagnosticMonitorConfiguration". 请注意,在“ DiagnosticMonitorConfiguration”下包括“ PerformanceCounters”和“ Metrics”元素。

 { "name": "Windows_VMDiagnosticsVmExt", "properties": { "type": "IaaSDiagnostics", "autoUpgradeMinorVersion": true, "protectedSettings": { "storageAccountName": "[variables('applicationDiagnosticsStorageAccountName')]", "storageAccountKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('applicationDiagnosticsStorageAccountName')),'2016-01-01').keys[0].value]", "storageAccountEndPoint": "https://core.windows.net/" }, "publisher": "Microsoft.Azure.Diagnostics", "settings": { "WadCfg": { "DiagnosticMonitorConfiguration": { "overallQuotaInMB": "50000", "PerformanceCounters": { "PerformanceCounterConfiguration": [ { "annotation": [], "scheduledTransferPeriod": "PT1M", "counterSpecifier": "\\\\Processor(_Total)\\\\% Processor Time", "sampleRate": "PT1M" }, { "annotation": [], "scheduledTransferPeriod": "PT1M", "counterSpecifier": "\\\\Memory\\\\% Committed Bytes in Use", "sampleRate": "PT1M" } ] }, "Metrics": { "resourceId": "[resourceId('Microsoft.Compute/virtualMachineScaleSets', variables('defaultVMNodeTypeName'))]", "MetricAggregation": [ { "scheduledTransferPeriod": "PT1H" }, { "scheduledTransferPeriod": "PT1M" } ] }, "EtwProviders": { "EtwEventSourceProviderConfiguration": [ { "provider": "Microsoft-ServiceFabric-Actors", "scheduledTransferKeywordFilter": "1", "scheduledTransferPeriod": "PT5M", "DefaultEvents": { "eventDestination": "ServiceFabricReliableActorEventTable" } }, { "provider": "Microsoft-ServiceFabric-Services", "scheduledTransferPeriod": "PT5M", "DefaultEvents": { "eventDestination": "ServiceFabricReliableServiceEventTable" } } ], "EtwManifestProviderConfiguration": [ { "provider": "cbd93bc2-71e5-4566-b3a7-595d8eeca6e8", "scheduledTransferLogLevelFilter": "Information", "scheduledTransferKeywordFilter": "4611686018427387904", "scheduledTransferPeriod": "PT5M", "DefaultEvents": { "eventDestination": "ServiceFabricSystemEventTable" } } ] } } }, "StorageAccount": "[variables('applicationDiagnosticsStorageAccountName')]" }, "typeHandlerVersion": "1.5" } } 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM