hseeberger / constructr

Coordinated (etcd, ...) cluster construction for dynamic (cloud, containers) environments
Apache License 2.0
212 stars 37 forks source link

Multiple ActorSystems and ClusterActorRefProvider cause duplicate init of akka-remoting #151

Closed rubendg closed 7 years ago

rubendg commented 7 years ago

In the case where a single application launches multiple ActorSystem instances (e.g. with Kamon this is unavoidable) the akka.actor.provider = ClusterActorRefProvider setting causes both actor systems to attempt the initialization of akka remoting. Only one attempt will succeed in the case both bind on the same port (the default).