Service Fabric 是否提供 api 以在运行时在分区之间移动参与者

Does Service Fabric provide an api to move actors between partitions at runtime

我偶然发现了 Microsoft Research 的一个非常有趣的 paper,他们在那里讨论了一种算法,可以根据 "proximity"(定义为远程调用的次数)在服务器/分区之间重新分配参与者彼此)以减少跨服务器边界的远程调用。 他们将他们的原型应用于 Orleans 框架。 现在我想知道 Service Fabric Actors 框架是否也提供了一个接口来在运行时重新分配/平衡参与者。 我在在线文档 mentions 中找到的唯一远程相关信息是 Service Fabric 根据报告的负载重新分配分区。

任何见解都会非常有趣。

亲切的问候, 帕斯卡

在 Service Fabric 中,Actor 的 ID 决定了它所在的分区。更多信息here. So an Actor can't move from partition to partition. Like you said, the Actor Service replica that owns the partition (with many Actors) be can moved from node to node. (for balancing) By using placement constraints您可以影响移动。