You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-instances/container-instances-vnet.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ When you deploy to a new virtual network by using this method, the deployment ca
59
59
60
60
To deploy a container group to an existing virtual network:
61
61
62
-
1. Create a subnet within your existing virtual network, use an existing subnet in which a container group is already deployed, or use an existing subnet emptied of *all* other resources
62
+
1. Create a subnet within your existing virtual network, use an existing subnet in which a container group is already deployed, or use an existing subnet emptied of *all* other resources and configuration.
63
63
1. Deploy a container group with [az container create][az-container-create] and specify one of the following:
64
64
* Virtual network name and subnet name
65
65
* Virtual network resource ID and subnet resource ID, which allows using a virtual network from a different resource group
Copy file name to clipboardExpand all lines: articles/service-fabric/service-fabric-concepts-partitioning.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ As we literally want to have one partition per letter, we can use 0 as the low k
121
121
2. In the **New Project** dialog box, choose the Service Fabric application.
122
122
3. Call the project "AlphabetPartitions".
123
123
4. In the **Create a Service** dialog box, choose **Stateful** service and call it "Alphabet.Processing".
124
-
5. Set the number of partitions. Open the Applicationmanifest.xml file located in the ApplicationPackageRoot folder of the AlphabetPartitions project and update the parameter Processing_PartitionCount to 26 as shown below.
124
+
5. Set the number of partitions. Open the ApplicationManifest.xml file located in the ApplicationPackageRoot folder of the AlphabetPartitions project and update the parameter Processing_PartitionCount to 26 as shown below.
Copy file name to clipboardExpand all lines: articles/service-fabric/service-fabric-reliable-actors-enumerate.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,41 @@ do
53
53
while (continuationToken !=null);
54
54
```
55
55
56
+
While the code above will retrieve all the actors in a given partition, occasionally the need will arise to query the IDs of all actors (active or inactive) across each partition. This should be done by exception as it's quite a heavy task.
57
+
58
+
The following example demonstrates how to query the partitions of the service and iterate through each in combination with the above example to produce a list of all the active and inactive actors in the service across the Service Fabric application:
59
+
60
+
61
+
```csharp
62
+
63
+
varserviceName=newUri("fabric:/MyApp/MyService");
64
+
65
+
//As the FabricClient is expensive to create, it should be shared as much as possible
Int64RangePartitionInformationpartitionInformation= (Int64RangePartitionInformation)partition.PartitionInformation; //Actors are restricted to the uniform Int64 scheme per https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-actors-introduction#distribution-and-failover
Copy file name to clipboardExpand all lines: articles/service-fabric/service-fabric-reliable-services-notifications.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,8 @@ Common reasons for using notifications are:
18
18
* Building materialized views, such as secondary indexes or aggregated filtered views of the replica's state. An example is a sorted index of all keys in Reliable Dictionary.
19
19
* Sending monitoring data, such as the number of users added in the last hour.
20
20
21
-
Notifications are fired as part of applying operations.
22
-
Because of that, notifications should be handled as fast as possible, and synchronous events shouldn't include any expensive operations.
21
+
Notifications are fired as a part of applying operations. On a primary replica, operations are applied after quorum acknowledgment as a part of `transaction.CommitAsync()` or `this.StateManager.GetOrAddAsync()`. On secondary replicas, operations are applied at replication queue data processing. Because of that, notifications should be handled as fast as possible, and synchronous events shouldn't include any expensive operations. Otherwise, it could negatively impact transaction processing time as well as replica build-ups.
22
+
23
23
24
24
## Reliable State Manager notifications
25
25
Reliable State Manager provides notifications for the following events:
@@ -212,7 +212,7 @@ Here are some things to keep in mind:
212
212
* Because notifications are fired as part of the applying operations, clients see only notifications for locally committed operations. And because operations are guaranteed only to be locally committed (in other words, logged), they might or might not be undone in the future.
213
213
* On the redo path, a single notification is fired for each applied operation. This means that if transaction T1 includes Create(X), Delete(X), and Create(X), you'll get one notification for the creation of X, one for the deletion, and one for the creation again, in that order.
214
214
* For transactions that contain multiple operations, operations are applied in the order in which they were received on the primary replica from the user.
215
-
* As part of processing false progress, some operations might be undone. Notifications are raised for such undo operations, rolling the state of the replica back to a stable point. One important difference of undo notifications is that events that have duplicate keys are aggregated. For example, if transaction T1 is being undone, you'll see a single notification to Delete(X).
215
+
* As part of processing false progress, some operations might be undone on secondary replicas. Notifications are raised for such undo operations, rolling the state of the replica back to a stable point. One important difference of undo notifications is that events that have duplicate keys are aggregated. For example, if transaction T1 is being undone, you'll see a single notification to Delete(X).
0 commit comments