It's the name of the actor (the second parameter to actorOf) that
distinguishes them.
Normally you don't need different configuration in config file. You can use
the ClusterSingletonManagerSettings if there is some small differences,
such as the role. It's also possible to load
ClusterSingletonManagerSettings from a config file section, but that is
often not needed.

http://doc.akka.io/docs/akka/current/java/cluster-singleton.html

http://doc.akka.io/japi/akka/2.4/akka/cluster/singleton/ClusterSingletonManager.html

Regards,
Patrik

On Mon, Oct 31, 2016 at 7:25 PM, Justin Robbins <[email protected]>
wrote:

> Great.  Then I'm confused what the config would look like.  Would
> something like the following work?
>
> cluster {
>   singleton {
>     singleton-name = "singleton1"
>   }
>   singleton-proxy {
>     singleton-name = *"*singleton1"
>   }
> }
>
>
> cluster {
>   singleton {
>     singleton-name = "singleton2"
>   }
>   singleton-proxy {
>     singleton-name = *"*singleton2"
>   }
> }
>
>
> On Monday, October 31, 2016 at 9:31:45 AM UTC-6, Patrik Nordwall wrote:
>>
>> You can create many different ClusterSingletonManager actors with
>> different settings, each one managing one singleton.
>>
>> Regards,
>> Patrik
>>
>>
>>
>> On Mon, Oct 31, 2016 at 4:18 PM, Justin Robbins <[email protected]>
>> wrote:
>>
>>> Hi, I posted this question
>>> <http://stackoverflow.com/questions/40334570/can-a-cluster-have-multiple-singleton-actors>
>>> over on Stack Overflow but I figured I'd also post it here since Akka.com
>>> lists this mailing list as a place for community support.
>>>
>>>
>>> Can there be multiple different actors which are singletons in an Akka
>>> cluster?
>>>
>>>
>>> For example, let's say I need a single entry point into *multiple* systems.
>>> I might want *Singleton1* to be responsible for entry into *System1*
>>>  and *Singleton2* to be responsible for entry into *System2*. It does
>>> not seem ideal to have a single singleton Actor with multiple
>>> responsibilities. I'm of course ok with both singleton actors running on
>>> the same node.
>>>
>>>
>>> The Akka docs
>>> <http://doc.akka.io/docs/akka/current/java/cluster-singleton.html> state
>>> the ClusterSingletonManager "manages one singleton actor instance among all
>>> cluster nodes or a group of nodes." This, along with the Configuration
>>> documentation example, lead me to conclude what I'm asking for is not
>>> possible, but I figured I'd ask to confirm. Thanks!
>>>
>>> --
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/c
>>> urrent/additional/faq.html
>>> >>>>>>>>>> Search the archives: https://groups.google.com/grou
>>> p/akka-user
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Patrik Nordwall
>> Akka Tech Lead
>> Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
>> Twitter: @patriknw
>>
>> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to