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 setting causes akka-remoting to be started twice #150

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).

This change will most probably break any existing usages where the application configuration is piggybacking on the akka.actor.provider configuration provided here.