Re: [akka-user] Re: Node rejoin seed node failure after seed node restart

2016-11-17 Thread Patrik Nordwall
+1 to what Justin said, read more here
http://doc.akka.io/docs/akka/2.4/scala/cluster-usage.html#Downing

On Wed, Nov 16, 2016 at 2:24 PM, Justin du coeur  wrote:

> On Wed, Nov 16, 2016 at 7:33 AM, Chinmay Raval 
> wrote:
>
>> As Guido Medina suggested, you need both your nodes as seed nodes. Also
>> you might need auto-down-unreachable-after property.
>>
>
> auto-down is strongly dis-recommended for any production system -- it is
> dangerously likely to break your system in scary ways.  Personally, I
> recommend avoiding it entirely, since it is a misleading crutch.  Real akka
> systems require more robust downing approaches...
>
> --
> >> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> 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  -  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Re: Node rejoin seed node failure after seed node restart

2016-11-16 Thread Justin du coeur
On Wed, Nov 16, 2016 at 7:33 AM, Chinmay Raval  wrote:

> As Guido Medina suggested, you need both your nodes as seed nodes. Also
> you might need auto-down-unreachable-after property.
>

auto-down is strongly dis-recommended for any production system -- it is
dangerously likely to break your system in scary ways.  Personally, I
recommend avoiding it entirely, since it is a misleading crutch.  Real akka
systems require more robust downing approaches...

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Node rejoin seed node failure after seed node restart

2016-11-16 Thread Chinmay Raval
As Guido Medina suggested, you need both your nodes as seed nodes. Also you 
might need auto-down-unreachable-after property.

ex:

cluster {
 seed-nodes = [
 "akka.tcp://system@127.0.0.1: 
2554",
 "akka.tcp://system@127.0.0.1: 
2554",
 ]
 auto-down-unreachable-after = 10s
}

 This would forcefully mark the status of unreachable node to "down". 

Cheers

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Node rejoin seed node failure after seed node restart

2016-07-08 Thread 谌浏洋
Thanks

On Friday, July 8, 2016 at 7:51:59 PM UTC+8, Guido Medina wrote:
>
> *Copy & paste from the other thread*
>
> Your nodes will re-join if you keep at least 1 seed node up while 
> restarting other nodes, try having 2 seed nodes.
> In production don't ever relay on only 1 seed node, have at least 2.
>
> HTH,
>
> Guido.
>
> On Friday, July 8, 2016 at 11:44:52 AM UTC+1, 谌浏洋 wrote:
>>
>> Sorry for my poor English
>>
>> I started two node A(seed) B, Both A and B can communication to each 
>> other.
>>
>> When I restart node A. node B cannot join A anymore. (No more Member 
>> Event be notified)
>>
>> B node console repeat print msg :
>>
>> [INFO] [07/08/2016 10:30:17.381] 
>> [system-akka.actor.default-dispatcher-22] 
>> [akka.cluster.Cluster(akka://system)] Cluster Node [akka.tcp://
>> system@127.0.0.1:57237] - Leader can currently not perform its duties, 
>> reachability status: [akka.tcp://system@127.0.0.1:57237 -> akka.tcp://
>> system@127.0.0.1:2551: Unreachable Unreachable 
>> ], member status: [akka.tcp://
>> system@127.0.0.1:2551 Up seen=false, akka.tcp://system@127.0.0.1:57237 
>> Up seen=true]
>>
>> Akka 2.4.7
>>
>> Please help me.
>>
>> Thanks
>>
>>
>> My node A configuration is
>>
>> akka {
>>   actor{
>> provider = "akka.cluster.ClusterActorRefProvider"
>> serializers {
>>   java = 
>> "org.appsugar.cluster.service.akka.serialization.ProtostuffSerialization"
>> }
>>   }
>>   remote {
>> log-remote-lifecycle-events = off
>> netty.tcp {
>>   hostname = "127.0.0.1"
>>   port = 2551
>> }
>>   }
>>
>>   cluster {
>> seed-nodes = ["akka.tcp://system@127.0.0.1:2551"]
>>   }
>> }
>> akka.cluster.metrics.enabled=off
>>
>> akka.extensions=["akka.cluster.metrics.ClusterMetricsExtension"]
>>
>> akka.cluster.metrics.native-library-extract-folder=${user.dir}/target/native
>>
>> akka.actor.default-mailbox {
>>   mailbox-type = "akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
>> }`
>>
>> Node B configuration as same as Node A, Just change port to 0
>>
>

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Node rejoin seed node failure after seed node restart

2016-07-08 Thread Guido Medina
*Copy & paste from the other thread*

Your nodes will re-join if you keep at least 1 seed node up while 
restarting other nodes, try having 2 seed nodes.
In production don't ever relay on only 1 seed node, have at least 2.

HTH,

Guido.

On Friday, July 8, 2016 at 11:44:52 AM UTC+1, 谌浏洋 wrote:
>
> Sorry for my poor English
>
> I started two node A(seed) B, Both A and B can communication to each other.
>
> When I restart node A. node B cannot join A anymore. (No more Member Event 
> be notified)
>
> B node console repeat print msg :
>
> [INFO] [07/08/2016 10:30:17.381] [system-akka.actor.default-dispatcher-22] 
> [akka.cluster.Cluster(akka://system)] Cluster Node [akka.tcp://
> system@127.0.0.1:57237] - Leader can currently not perform its duties, 
> reachability status: [akka.tcp://system@127.0.0.1:57237 -> akka.tcp://
> system@127.0.0.1:2551: Unreachable Unreachable 
> ], member status: [akka.tcp://
> system@127.0.0.1:2551 Up seen=false, akka.tcp://system@127.0.0.1:57237 Up 
> seen=true]
>
> Akka 2.4.7
>
> Please help me.
>
> Thanks
>
>
> My node A configuration is
>
> akka {
>   actor{
> provider = "akka.cluster.ClusterActorRefProvider"
> serializers {
>   java = 
> "org.appsugar.cluster.service.akka.serialization.ProtostuffSerialization"
> }
>   }
>   remote {
> log-remote-lifecycle-events = off
> netty.tcp {
>   hostname = "127.0.0.1"
>   port = 2551
> }
>   }
>
>   cluster {
> seed-nodes = ["akka.tcp://system@127.0.0.1:2551"]
>   }
> }
> akka.cluster.metrics.enabled=off
>
> akka.extensions=["akka.cluster.metrics.ClusterMetricsExtension"]
>
> akka.cluster.metrics.native-library-extract-folder=${user.dir}/target/native
>
> akka.actor.default-mailbox {
>   mailbox-type = "akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
> }`
>
> Node B configuration as same as Node A, Just change port to 0
>

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Node rejoin seed node failure after seed node restart

2016-07-08 Thread Guido Medina
You posted this question in another thread, please go there and look.

On Friday, July 8, 2016 at 11:44:52 AM UTC+1, 谌浏洋 wrote:
>
> Sorry for my poor English
>
> I started two node A(seed) B, Both A and B can communication to each other.
>
> When I restart node A. node B cannot join A anymore. (No more Member Event 
> be notified)
>
> B node console repeat print msg :
>
> [INFO] [07/08/2016 10:30:17.381] [system-akka.actor.default-dispatcher-22] 
> [akka.cluster.Cluster(akka://system)] Cluster Node [akka.tcp://
> system@127.0.0.1:57237] - Leader can currently not perform its duties, 
> reachability status: [akka.tcp://system@127.0.0.1:57237 -> akka.tcp://
> system@127.0.0.1:2551: Unreachable Unreachable 
> ], member status: [akka.tcp://
> system@127.0.0.1:2551 Up seen=false, akka.tcp://system@127.0.0.1:57237 Up 
> seen=true]
>
> Akka 2.4.7
>
> Please help me.
>
> Thanks
>
>
> My node A configuration is
>
> akka {
>   actor{
> provider = "akka.cluster.ClusterActorRefProvider"
> serializers {
>   java = 
> "org.appsugar.cluster.service.akka.serialization.ProtostuffSerialization"
> }
>   }
>   remote {
> log-remote-lifecycle-events = off
> netty.tcp {
>   hostname = "127.0.0.1"
>   port = 2551
> }
>   }
>
>   cluster {
> seed-nodes = ["akka.tcp://system@127.0.0.1:2551"]
>   }
> }
> akka.cluster.metrics.enabled=off
>
> akka.extensions=["akka.cluster.metrics.ClusterMetricsExtension"]
>
> akka.cluster.metrics.native-library-extract-folder=${user.dir}/target/native
>
> akka.actor.default-mailbox {
>   mailbox-type = "akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
> }`
>
> Node B configuration as same as Node A, Just change port to 0
>

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.