Thanks for sharing!

On Tue, Feb 2, 2016 at 10:39 AM, Rafał Kowalski <[email protected]>
wrote:

> Just for the reference I've found what was causing my cluster starting
> problem: a simple misconfiguration of the cluster seed-nodes.  I am
> almost too ashamed to share it here but it might be useful for somebody
> one day.
>
> The problem was that I was binding the cluster nodes at start time
> (e.g. sbt "runMain com.example.BootClusterNode localhost 2551") to a
> different host name (localhost) than the one configured in the
> akka.cluster.seed-nodes (myhost).
>
> --8<---------------cut here---------------start------------->8---
>    cluster {
>      seed-nodes = [
>        "akka.tcp://ClusterSystem@myhost:2551",
>        "akka.tcp://ClusterSystem@myhost:2552"
>      ]
> --8<---------------cut here---------------end--------------->8---
>
> Even though the nodes was started they couldn't of course join the
> cluster because they were talking to a different host on a different
> network interface.
>
> -> Rafał Kowalski writes:
>
> -> On Fri, 29 Jan 2016 17:40:24 +0100, Patrik Nordwall <
> [email protected]> said:
> >> Note that the leveldb journal can't really be used with Cluster
> >> Sharding, because it is a local only journal. Yes, you can play with
> >> it with one cluster node,
> >> otherwise you need to a distributed journal, such as
> akka-persistence-cassandra.
>
> > I've configured persistency using the cassandra-journal plugin.  Here is
> > the relevant snippet from the configuration:
>
> >    persistence {
>
> >      journal {
> >        max-message-batch-size = 200
> >        max-confirmation-batch-size = 10000
> >        max-deletion-batch-size = 10000
> >        plugin = "cassandra-journal"
> >      }
> >      snapshot-store {
> >        plugin = "cassandra-snapshot-store"
> >        }
> >    }
>
> > Full configuration is here: https://gist.github.com/4aa8f1e900dbbbdf3f44
>
> >> Have you tried the activator template, as a starting point?
>
> > Yes, I have and I've tried to model my application after the
> > akka-cluster-sharding-scala template.  They use Akka 2.4.0 and leveldb
> > for the journal though.  Do you think the persistence setting is the
> > problem?  I can try to change to their leveldb settings and see what
> > happens.
>
> >> On Fri, Jan 29, 2016 at 1:36 PM, Martynas Mickevičius <
> [email protected]> wrote:
>
>
> >> Hi,
>
> >> did you configure any persistence journal plugin and have journal
> backend ready?
>
> >> For testing and playing around purposes you can use in-memory journal
> plugin by adding these two configuration lines
>
> >> # use the journal plugin provided with akka
> >> akka.persistence.journal.plugin = akka.persistence.journal.leveldb
>
> >> # use the java one
> >> akka.persistence.journal.leveldb.native = off
>
> >> and add the following library
>
> >> "org.iq80.leveldb" % "leveldb" % "0.7",
>
> >> to your dependencies to add the storage implementation itself.
>
> >> On Thu, Jan 28, 2016 at 10:50 PM, Rafał Kowalski <
> [email protected]> wrote:
>
>
> >> Hi,
>
> >> I'm exploring the wonderful world of Akka cluster and sharding at the
> >> moment. So far, I've setup just one persistent actor `PublicationActor`
> >> and I start the cluster sharding as follows:
>
> >> --8<---------------cut here---------------start------------->8---
> >> ClusterSharding(system).start(
> >> typeName = PublicationActor.shardName,
> >> entityProps = Props[PublicationActor],
> >> settings = ClusterShardingSettings(system),
> >> extractEntityId = PublicationActor.extractEntityId,
> >> extractShardId = PublicationActor.extractShardId
> >> )
> >> --8<---------------cut here---------------end--------------->8---
>
> >> For some reason, the ShardCoordinator is never started or determined and
> >> I see this message in my logs of all nodes:
>
> >> --8<---------------cut here---------------start------------->8---
> >> [WARN] [01/28/2016 21:45:37.280]
> [ClusterSystem-akka.actor.default-dispatcher-19]
> >> [akka.tcp://ClusterSystem@obelix:2551/system/sharding/pub] Trying
> >> to register to coordinator at [None], but no acknowledgement. Total
> >> [1]
> >> buffered messages.
> >> --8<---------------cut here---------------end--------------->8---
>
> >> I have two cluster `seed-nodes` set up but I haven't touched any
> >> cluster.sharding settings yet. What might be the problem here? What am
> >> I missing?
>
> >> Thanks,
> >> cheers
> >> --
> >> -rafał
>
> >> --
> >>>>>>>>>>>> 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.
>
>
> >> --
> >> Martynas Mickevičius
> >> Typesafe – Reactive Apps on the JVM
>
>
> >> --
> >>>>>>>>>>>> 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 - 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.
>
> > cheers
> > --
> > -rafał
>
> > --
> >>>>>>>>>>> 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.
>
> cheers
> --
> -rafał
>
> --
> >>>>>>>>>>      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.

Reply via email to