1
votes

What is the significance of the replica id for a stateful service in Azure Service Fabric. To be clear, I understand what a replica is, but I don't understand why a replica in two completely different services would end up with the same ID and/or why for a given service the number of replica IDs is far greater than the TargetReplicaSetSize.

I was trying to identify the replicas that belonged to each partition of a stateful service, and had hoped/assumed the replica id would do that. How could I make this determination?

enter image description here

To add, given Rotem's guidance below, here is a snapshot of the replicas on one of my nodes. Note the first two lines have the same replica id, but belong to different partitions, that's the part I don't get.

enter image description here

Similarly, here you see the same replica id used for two different services:

enter image description here

Clearly, I keep using 'replica id' but that word does not mean what I think it means... what does it mean.

2
as for "why for a given service the number of replica IDs is far greater than the TargetReplicaSetSize." I wonder what is the value of "Min Replica Set Size" ?Rotem Varon
target is 3, min is 2, partition count 9... I see the 27 leaf nodes I would expect.Jim O'Neil
I added an answer as I cannot add pics in the comments. Plz let us know if this help...Rotem Varon
Well, the first replica is primary while the second one is secondary. hence, different partition scalability...Rotem Varon

2 Answers

1
votes

Replica ID uniquely identifies a replica within a partition, and only within a partition. You'll notice management operations on replicas require you to specify both a replica ID and a partition ID.

0
votes

"identify the replicas that belonged to each partition" enter image description here enter image description here

enter image description here