What is correct extensions names for DistributedPubSubMediator and ClusterSingletonManager to use in config?

I have an issue with usage of DistributedPubSubMediator and ClusterSingletonManager in cluster.
First request always fails.
I have found here https://groups.google.com/forum/#!topic/akka-user/eW7DyhAt4UQ
that it’s a normal behavior and to make extensions load on system startup I have to list them in config like this
akka.extensions = ["akka.contrib.pattern.DistributedPubSubExtension"]
The problem is - I can’t found correct extensions name for Akka 2.4
I tried to find this info in configuration reference here https://doc.akka.io/docs/akka/2.4.17/general/configuration.html#listing-of-the-reference-configuration without luck.
Where can I find this info?

You can find it in the docs. For the current version it’s at https://doc.akka.io/docs/akka/current/distributed-pub-sub.html#distributedpubsub-extension, for 2.4 see https://doc.akka.io/docs/akka/2.4/scala/distributed-pub-sub.html#distributedpubsub-extension (though, spoiler alert, it is akka.cluster.pubsub.DistributedPubSub in both versions).

That said, it is hard to say if it’s the pub-sub initialization that causes the first request to fail in your application. If it’s not solved by adding this extension to the configuration, feel free to start a thread to track that down.

1 Like

Thanks, adding name from the docs to extension list helped

1 Like