2016-09-10 10 views
2

서비스 패브릭 응용 프로그램에서 수평 확장 또는 확장하려고합니다. 이를 위해 VM scale set에 CPU 메트릭이있는 autoscalesettings를 추가했습니다. 그리고 VM 규모 집합에서, 나는 CPU 메트릭에 카운터가있는 wadcfg 섹션이있는 확장 섹션을 가지고 있습니다. 그리고 내가 지정한 스토리지 계정에 데이터가 성공적으로 전송됩니다. 그러나 VMSS 및 서비스 패브릭 클러스터로 옵션의 확장 또는 확장이 이루어지지 않습니다. 나는 푸른 포털에 명시된 문제 해결 단계를 겪었습니다. https://azure.microsoft.com/en-us/documentation/articles/virtual-machine-scale-sets-troubleshoot/서비스 패브릭 클러스터 자동 크기 조정을 사용하는 VMSS

서비스 구조가 없으면 동일한 CPU 메트릭이 올바르게 작동하고 VM 스케일 집합이 수평 확장됩니다.

가입 한도를 확인하십시오. 그러나 문제를 찾을 수 없었습니다. 그러나 vms 및 서비스 패브릭을 함께 배포 할 때 autoscale에 대한 진단 데이터를 읽을 수 없다는 메일 알림이 표시됩니다.

답변

4

서비스 패브릭은 자동 스케일을 지원하지 않습니다. 다음은 "XmlCfg"요소를 사용하여 카운터를 구성하는 기본 설명서입니다 (https://azure.microsoft.com/en-us/documentation/articles/service-fabric-cluster-scale-up-down/). 그러나 더 읽기 쉬운 JSON을 통해이를 수행하는 방법이 있습니다. 다음은 "IaaSDiagnostics"확장자의 "설정"블록 스 니펫입니다.

"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" 
 
    } 
 
}

+0

감사 stankovski. 위의 변경 사항을 제안한 후 Service Fabric Cluster와 함께 azure autoscale이 제대로 작동하고 있습니다. 우리가 놓친 주요 부분은 "지표"입니다. 추가하면 하늘색 자동 눈금이 잘 작동합니다. – Shri

+0

명확히하기 위해 현재 서비스 패브릭은 자동 스케일을 완전히 지원하지 않습니다. 확장은 지원하지만 축소는 지원하지 않습니다. –