On Thu, Sep 24, 2015 at 2:25 PM, Brian Wawok <[email protected]> wrote:
> Yes all 3 nodes share the same identical config file. > That is strange. It should not happen. Then I would be interested in looking at log files from such a startup. Please create an issue and we can discuss there. https://github.com/akka/akka/issues > > It does look like seed-node-timeout defaults to 5s down in the source. I > could make this 1 or 2 minutes, as I really want split brain to not happen > (even if the risk of slow startup on first seed node down is higher) > seed-node-timeout is not the problem, don't change. It defines how often they will retry. > > > On Thursday, September 24, 2015 at 1:14:52 AM UTC-4, Patrik Nordwall wrote: >> >> Have you configured the first entry in the seed nodes list to be the same >> on all nodes? >> >> "akka.tcp://System1@ip1:9010" >> >> The first seed node is the only one that will join itself when it can't >> join the other seed nodes. Others will try joining all seed nodes until >> they are accepted, and it is only possible to join a node that is already a >> cluster member, i.e. first seed node will bootstrap the cluster by joining >> itself. >> >> /Patrik >> tors 24 sep 2015 kl. 06:38 skrev Brian Wawok <[email protected]>: >> >>> Hi! >>> >>> I am rocking a 3 node cluster of akka cluster 2.3.13 >>> >>> My cluster is set up like: >>> >>> >>> >>> >>> cluster { >>> min-nr-of-members = 2 >>> seed-nodes = [ >>> "akka.tcp://System1@ip1:9010", >>> "akka.tcp://System1@ip2:9010", >>> "akka.tcp://System1@ip3:9010"] >>> auto-down-unreachable-after = off >>> failure-detector { >>> threshold = 16.0 >>> acceptable-heartbeat-pause = 10 s >>> expected-response-after = 12 s >>> } >>> >>> >>> >>> I use the cluster singleton to split up work. 1 guy becomes the master, >>> and the other 2 become workers. >>> >>> Cool, 75% of the time it works. 25% of the time - it fails on startup. >>> For some reason the nodes form 2 small clusters, one with 2 nodes, and one >>> with only 1 node. >>> >>> >>> My deployment procedure is: >>> >>> 1) Kill -9 all nodes >>> 2) Wait 5 seconds >>> 3) Start all 3 nodes one after another (few ms lag between them). >>> >>> I would think the min-nr-of-members would prevent the little 1 node >>> cluster from forming... but not so much. What do I have to do to stop >>> forming 2 clusters? Only list 1 node as the seed node, and start it >>> first? Or is there another trick? The docs seem to imply >>> >>> It is quickest to start all configured seed nodes at the same time >>> (order doesn't matter), otherwise it can take up to the configured >>> seed-node-timeout until the nodes can join. >>> >>> >>> which seems like I am doing the right thing... >>> >>> Thanks! >>> >>> >>> >>> -- >>> >>>>>>>>>> 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 http://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> /Patrik > > -- > >>>>>>>>>> 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 http://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 http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
