Skip to content

Commit 9715e35

Browse files
committed
secondary replicas note
1 parent 70c4ac5 commit 9715e35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/service-fabric/service-fabric-cluster-resource-manager-movement-cost.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,17 @@ await fabricClient.ServiceManager.UpdateServiceAsync(new Uri("fabric:/AppName/Se
5454

5555
## Dynamically specifying move cost on a per-replica basis
5656

57-
The preceding snippets are all for specifying MoveCost for a whole service at once from outside the service itself. However, move cost is most useful when the move cost of a specific service object changes over its lifespan. Since the services themselves probably have the best idea of how costly they are to move a given time, there's an API for services to report their own individual move cost during runtime.
57+
The preceding snippets are all for specifying MoveCost for a whole service at once from outside the service itself. However, move cost is most useful when the move cost of a specific service object changes over its lifespan. Since the services themselves probably have the best idea of how costly they are to move a given time, there's an API for services to report their own individual move cost during runtime.
5858

5959
C#:
6060

6161
```csharp
6262
this.Partition.ReportMoveCost(MoveCost.Medium);
6363
```
6464

65+
> [!NOTE]
66+
> You can only set the movement cost for secondary replicas through code.
67+
6568
## Reporting move cost for a partition
6669

6770
The previous section describes how service replicas or instances report MoveCost themselves. We provided Service Fabric API for reporting MoveCost values on behalf of other partitions. Sometimes service replica or instance can't determine the best MoveCost value by itself, and must rely on other services logic. Reporting MoveCost on behalf of other partitions, alongside [reporting load on behalf of other partitions](service-fabric-cluster-resource-manager-metrics.md#reporting-load-for-a-partition), allows you to completely manage partitions from outside. These APIs eliminate needs for [the Sidecar pattern](/azure/architecture/patterns/sidecar), from the perspective of the Cluster Resource Manager.

0 commit comments

Comments
 (0)