That is correct. You must start the manager on every node.
/Patrik
mån 8 feb. 2016 kl. 19:21 skrev <[email protected]>:

> Ok.. long story short it works. I didn't know you had to run the
> following ClusterSingletonManager actor creation/definition code on every
> node in the cluster. I thought running that on only one node would be
> sufficient and it would take care of being able to move that clustered
> actor around ok. Looks like the same ClusterSingletonManager actor
> definition code has to be run on any node you want to be a candidate for
> the singleton actor placement.
>
> Correct?
>
> nodexSystem.actorOf(ClusterSingletonManager.props(myActor.class ...)
>
>
> On Monday, February 8, 2016 at 10:53:41 AM UTC-7, [email protected]
> wrote:
>>
>> Ok, my bad it works the first time the singleton is started up, but when
>> that node fails/stops (the node running the singleton actor that supervises
>> many children (that the cluster singleton proxies talk to), then it fails
>> to be re-created again on the cluster w/ its children
>>
>> a) startup clustered singleton who lives at akka.tcp://mysys
>> @192.168.0.208:2552/user/
>> <http://www.google.com/url?q=http%3A%2F%2Fcoredata-default%40192.168.0.208%3A2552%2Fuser%2F&sa=D&sntz=1&usg=AFQjCNFep4C_JorDeMUoqLrULR8ZwpU9iA>
>> MY_CLUSTERED_SINGLETON/singleton/ITS_CHILD
>>
>> b) on another node I create the cluster singleton proxy as you suggested
>> previously using ".withSingletonName("singleton/ITS_CHILD")"
>>
>> c) from (b) I send several messages the clustered singleton, it work fine
>>
>> d) I shutdown node (A) the node that created the clustered singleton
>>
>> e) From node B I continue to attempt to make requests using the same
>> clustered singleton actor ref proxy, now I start getting these messages
>> repeated
>>
>> [ClusterSingletonProxy] Trying to identify singleton at [akka.tcp://mysys
>> @192.168.0.208:2552/user/
>> <http://www.google.com/url?q=http%3A%2F%2Fcoredata-default%40192.168.0.208%3A2552%2Fuser%2F&sa=D&sntz=1&usg=AFQjCNFep4C_JorDeMUoqLrULR8ZwpU9iA>
>> MY_CLUSTERED_SINGLETON/singleton/ITS_CHILD]
>> [ClusterSingletonProxy] Trying to identify singleton at [akka.tcp://mysys
>> @192.168.0.208:2552/user/
>> <http://www.google.com/url?q=http%3A%2F%2Fcoredata-default%40192.168.0.208%3A2552%2Fuser%2F&sa=D&sntz=1&usg=AFQjCNFep4C_JorDeMUoqLrULR8ZwpU9iA>
>> MY_CLUSTERED_SINGLETON/singleton/ITS_CHILD]
>> [ClusterSingletonProxy] Trying to identify singleton at [akka.tcp://mysys
>> @192.168.0.208:2552/user/
>> <http://www.google.com/url?q=http%3A%2F%2Fcoredata-default%40192.168.0.208%3A2552%2Fuser%2F&sa=D&sntz=1&usg=AFQjCNFep4C_JorDeMUoqLrULR8ZwpU9iA>
>> MY_CLUSTERED_SINGLETON/singleton/ITS_CHILD]
>>
>> On Monday, February 8, 2016 at 10:01:23 AM UTC-7, [email protected]
>> wrote:
>>>
>>> Tried that, all i get from the proxy client side is this repeated over
>>> and over
>>>
>>>
>>> [ClusterSingletonProxy] Trying to identify singleton at [akka.tcp://mysys
>>> @192.168.0.208:2552/user/
>>> <http://www.google.com/url?q=http%3A%2F%2Fcoredata-default%40192.168.0.208%3A2552%2Fuser%2F&sa=D&sntz=1&usg=AFQjCNFep4C_JorDeMUoqLrULR8ZwpU9iA>
>>> MY_CLUSTERED_SINGLETON/singleton/ITS_CHILD]
>>>
>>> On Monday, February 8, 2016 at 12:46:37 AM UTC-7, Patrik Nordwall wrote:
>>>>
>>>> It is using a convention to make things easy for the normal case.
>>>> However, I think it will work if you specify singletonName in the
>>>> ClusterSingletonProxySettings.
>>>>
>>>> ClusterSingletonProxySettings proxySettings = 
>>>> ClusterSingletonProxySettings.create(system).withSingletonName("singleton/ITS_CHILD");
>>>> ActorRef singletonProxy = 
>>>> system.actorOf(ClusterSingletonProxy.props("/user/MY_CLUSTERED_SINGLETON", 
>>>> proxySettings);
>>>>
>>>> Cheers,
>>>> Patrik
>>>>
>>>> On Fri, Feb 5, 2016 at 10:27 PM, <[email protected]> wrote:
>>>>
>>>> I have a ClusteredSingleton, that supervises some child actors, when
>>>>> the children are created I see this in the logs
>>>>>
>>>>>  now supervising
>>>>> Actor[akka://mysys/user/MY_CLUSTERED_SINGLETON/singleton/ITS_CHILD]
>>>>>
>>>>> From my client I then do
>>>>>
>>>>> ActorRef singletonProxy =
>>>>> system.actorOf(ClusterSingletonProxy.props("/user/MY_CLUSTERED_SINGLETON/singleton/ITS_CHILD",
>>>>> proxySettings);
>>>>>
>>>>> Which throws an error that the actor is not found...
>>>>>
>>>>> it seems that the only way I can get messages to the singleton Actor
>>>>> is to specify the path /user/MY_CLUSTERED_SINGLETON for the
>>>>> ClusterSingletonProxy...
>>>>>
>>>>> its like it has some conventions around that path that prevent calls
>>>>> to supervised children of the clustered singleton actor?
>>>>>
>>>>> --
>>>>> >>>>>>>>>> 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
>>>> Typesafe <http://typesafe.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.
>

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