What version of Akka are you using? How do you send the messages? Is it direct message sends with ActorRef or are you using any of the cluster tools, such as Cluster Sharding? What total throughput are we talking about? 64* 100 msg/s ? Do you see any pattern of when the messages are lost, e.g. is it the beginning or just random? Do you see anything in the logs, e.g. gated?
Regards, Patrik On Thu, Oct 15, 2015 at 5:23 PM, Guilherme Renna <[email protected]> wrote: > Hello, everyone! > I am relatively new to the Akka world, and I am leading a project based on > the Akka Cluster toolbox for an undergrad course, that will be presented to > professors a few weeks from now. > > We are using 64 actors that send String messages every 10 milliseconds to > another actor chosen randomly. The receiver actor records the received > message in a database. > But, for some reason we cannot find, over 50% of the messages are being > lost. > We noticed that if we increase the period between the sent of the messages > (e.g. from every 10ms to every 100ms) or if we decrease the number of > actors (e.g. from 64 actors to 16 actors), the loss decreases exponentially. > It looks like the loss is related to the load of messages, but not to the > network (we tested the same configurations for a single-noded cluster, and > we still had the same loss rates) > Any ideas on how could we solve, or at least understand, the loss of these > messages? > > Below, I present two charts for the messages being lost on a > 6-Node-Cluster and the messages lost on a Single-Node-Cluster. The > proportions are the same (more than 50% of loss). > > (- Y axis: the period (ms) between two sent messages. Smaller periods mean > higher frequency of messages sent. > - X axis: number of actors, from 4 to 64 > - Z axis: proportion of messages lost, from 0 to 1, where 1 means all > messages being lost) > > Thank you very much in advance! > > > > <https://lh3.googleusercontent.com/-GelXJSXwzAY/Vh_Dclv0U3I/AAAAAAAAATM/qeSpefLRHi0/s1600/delta6.png> > <https://lh3.googleusercontent.com/-G4LoxjAnfVY/Vh_DVrmVFyI/AAAAAAAAATE/a5vZGC822vg/s1600/delta1.png> > > -- > >>>>>>>>>> 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.
