ServicePackageResourceGovernancePolicy CpuCores RRS feed

  • Question

  • Hi there,

    We are restricting the number of CpuCores used by a service by using the ServicePackageResourceGovernancePolicy in ApplicationManifest.xml 
          <ServicePackageResourceGovernancePolicy CpuCores="[Web1_CPUCores]" />

    The parameter Web1_CPUCores is overridden for each of the environment. 

    One environment has only 2 cpu cores available so we don't want to apply the policy for that environment. With empirical testing we found that when we set the CpuCores to 0 the policy doesn't get applied
    e.g. Get-ServiceFabricClusterLoadInformation shows the ClusterLoad as 

    LoadMetricInformation     :
                                LoadMetricName        : servicefabric:/_CpuCores
                                ClusterCapacity       : 6
                                ClusterLoad           : 0
                                ClusterRemainingCapacity : 6

    Please confirm this is correct and point to any documentation confirming this.

    Tuesday, May 7, 2019 2:28 AM

All replies