Skip to content

Commit 6f86368

Browse files
author
Vlade Lekic
committed
Update resource-based auto-scaling page.
1 parent dba9638 commit 6f86368

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

articles/service-fabric/service-fabric-cluster-resource-manager-autoscaling.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ $scalingpolicies.Add($scalingpolicy)
183183
New-ServiceFabricService -ApplicationName $applicationName -ServiceName $serviceName -ServiceTypeName $serviceTypeName –Stateful -TargetReplicaSetSize 3 -MinReplicaSetSize 2 -HasPersistedState true -PartitionNames @("0","1") -ServicePackageActivationMode ExclusiveProcess -ScalingPolicies $scalingpolicies
184184
```
185185

186-
## Auto scaling based on resources
186+
## Auto-scaling Based on Resources
187187

188-
In order to enable the resource monitor service to scale based on actual resources, one could add the feature `ResourceMonitorService`.
188+
To enable the resource monitor service to scale based on actual resources, you can add the `ResourceMonitorService` feature as follows:
189189

190190
``` json
191191
"fabricSettings": [
@@ -195,8 +195,13 @@ In order to enable the resource monitor service to scale based on actual resourc
195195
"ResourceMonitorService"
196196
],
197197
```
198-
There are two metrics that represent actual physical resources. One of them is servicefabric:/_CpuCores which represent the actual cpu usage (so 0.5 represents half a core) and the other being servicefabric:/_MemoryInMB which represents the memory usage in MBs.
199-
ResourceMonitorService is responsible for tracking cpu and memory usage of user services. This service will apply weighted moving average in order to account for potential short-lived spikes. Resource monitoring is supported for both containerized and non-containerized applications on Windows and for containerized ones on Linux. Auto scaling on resources is only enabled for services activated in [exclusive process model](service-fabric-hosting-model.md#exclusive-process-model).
198+
Service Fabric supports CPU and memory governance using two built-in metrics: `servicefabric:/_CpuCores` for CPU and `servicefabric:/_MemoryInMB` for memory. The Resource Monitor Service is responsible for tracking CPU and memory usage and updating the Cluster Resource Manager with the current resource usage. This service applies a weighted moving average to account for potential short-lived spikes. Resource monitoring is supported for both containerized and non-containerized applications on Windows and for containerized applications on Linux.
199+
200+
> [!NOTE]
201+
> CPU and memory consumption monitored in the Resource Monitor Service and updated to the Cluster Resource Manager do not impact any decision-making process outside of auto-scaling. If [resource governance](service-fabric-resource-governance.md#resource-governance-metrics) is needed, it can be configured without interfering with auto-scaling functionalities, and vice versa.
202+
203+
> [!IMPORTANT]
204+
> Resource-based auto-scaling is supported only for services activated in the [exclusive process model](service-fabric-hosting-model.md#exclusive-process-model).
200205
201206
## Next steps
202207
Learn more about [application scalability](service-fabric-concepts-scalability.md).

0 commit comments

Comments
 (0)