Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果您指定了确切的节点,则可以通过编程方式在远程节点上创建参与者。
但是,我想简单地要求演员系统在随机的,或者可能是使用最少的节点上创建一个演员。
是否可以在给定可选节点角色的任何远程节点上创建参与者?
在 Akka 2.3 中,您应该使用集群感知路由器
可以让所有路由器知道集群中的成员节点,即部署新的路由或在集群中的节点上查找路由。
因此,您可以在您的情况下使用 RnadomPool、RoundRobinPool 或 BalancingPool 路由器。
另请参阅远程部署的路由。