> 17 dec 2014 kl. 18:34 skrev Greg Young <[email protected]>: > > Just to add to all the answers here I would normally do lab work on this with > a physical cluster.
Of course, that’s preferable. It can be problematic to organize those facilities at home, though (says the one who failed to convince his wife of the necessity of installing a 19" rack in the cellar). And mucking around with the network settings can be a bit … unwieldy in the cloud ;-) But yes, testing the real thing has the advantage of testing the real thing. Regards, Roland > > Much of this can be set in linux > 2.6 > > http://www.linuxfoundation.org/collaborate/workgroups/networking/netem > > Cheers, > > Greg > > On Wednesday, December 17, 2014 2:17:22 PM UTC, rkuhn wrote: > Packet loss is currently not publicly exposed, see here > <https://github.com/rkuhn/MessageDeliveryGuarantees/blob/at-most-once/src/main/scala/com/rolandkuhn/guarantees/Main.scala#L48> > for an example that hacks around the restriction. The reason is that this > feature has not been hardened for general consumption—it is tailor-made for > our internal needs. Throttling OTOH is available, see this > <https://github.com/rkuhn/MessageDeliveryGuarantees/blob/slow-network/src/main/scala/com/rolandkuhn/slownetwork/Main.scala#L68> > for an example. > > Regards, > > Roland > >> 17 dec 2014 kl. 15:01 skrev Eax Melanhovich <[email protected] <javascript:>>: >> >> Victor, Roland, thanks for your quick reply. >> >> Ok, it seems that multi node tests in Akka are able to emulate netsplits >> and single node death. Is it possible to test latency and packet loss >> cases too? >> >> On Wed, 17 Dec 2014 11:23:18 +0100 >> Roland Kuhn <[email protected] <javascript:>> wrote: >> >>> Hi Eax, >>> >>> you can use our test suite for inspiration, for example >>> https://github.com/akka/akka/blob/v2.3.7/akka-cluster/src/multi-jvm/scala/akka/cluster/SurviveNetworkInstabilitySpec.scala >>> >>> <https://github.com/akka/akka/blob/v2.3.7/akka-cluster/src/multi-jvm/scala/akka/cluster/SurviveNetworkInstabilitySpec.scala> >>> <https://github.com/akka/akka/blob/v2.3.7/akka-cluster/src/multi-jvm/scala/akka/cluster/SurviveNetworkInstabilitySpec.scala >>> >>> <https://github.com/akka/akka/blob/v2.3.7/akka-cluster/src/multi-jvm/scala/akka/cluster/SurviveNetworkInstabilitySpec.scala>> >>> >>> Regards, >>> >>> Roland >>> >>>> 17 dec 2014 kl. 10:21 skrev √iktor Ҡlang <[email protected] >>>> <javascript:>>: >>>> >>>> Hi Eax, >>>> >>>> We use Multi Node Testing for things like this: >>>> http://doc.akka.io/docs/akka/2.3.7/dev/multi-node-testing.html >>>> <http://doc.akka.io/docs/akka/2.3.7/dev/multi-node-testing.html> >>>> <http://doc.akka.io/docs/akka/2.3.7/dev/multi-node-testing.html >>>> <http://doc.akka.io/docs/akka/2.3.7/dev/multi-node-testing.html>> >>>> >>>> On Wed, Dec 17, 2014 at 8:27 AM, Eax Melanhovich <[email protected] >>>> <javascript:> >>>> <mailto:[email protected] <javascript:>>> wrote: Hello. >>>> >>>> I wanted to test that my cluster work properly under following >>>> conditions: >>>> >>>> * Netsplits >>>> * High latency (i.e. 5 seconds RTT between nodes) >>>> * Random node is dead >>>> * High packet loss >>>> >>>> What is a best way to solve this problem? Should I write some >>>> scripts around Vagrant or there is a better solution? >>>> >>>> -- >>>>>>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/> >>>>>>>>>>>>>> <http://akka.io/docs/ <http://akka.io/docs/>> Check the FAQ: >>>>>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html> >>>>>>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>> >>>>>>>>>>>>>> Search the archives: >>>>>>>>>>>>>> https://groups.google.com/group/akka-user >>>>>>>>>>>>>> <https://groups.google.com/group/akka-user> >>>>>>>>>>>>>> <https://groups.google.com/group/akka-user >>>>>>>>>>>>>> <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] <javascript:> >>>> <mailto:akka-user%[email protected] <javascript:>>. To post >>>> to this >>>> group, send email to [email protected] <javascript:> >>>> <mailto:[email protected] <javascript:>>. Visit this group at >>>> http://groups.google.com/group/akka-user >>>> <http://groups.google.com/group/akka-user> >>>> <http://groups.google.com/group/akka-user >>>> <http://groups.google.com/group/akka-user>>. For more options, visit >>>> https://groups.google.com/d/optout <https://groups.google.com/d/optout> >>>> <https://groups.google.com/d/optout <https://groups.google.com/d/optout>>. >>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> √ >>>> >>>> -- >>>>>>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/> >>>>>>>>>>>>>> <http://akka.io/docs/ <http://akka.io/docs/>> Check the FAQ: >>>>>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html> >>>>>>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>> >>>>>>>>>>>>>> Search the archives: >>>>>>>>>>>>>> https://groups.google.com/group/akka-user >>>>>>>>>>>>>> <https://groups.google.com/group/akka-user> >>>>>>>>>>>>>> <https://groups.google.com/group/akka-user >>>>>>>>>>>>>> <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] <javascript:> >>>> <mailto:[email protected] <javascript:>>. To post to this >>>> group, send email to [email protected] <javascript:> >>>> <mailto:[email protected] <javascript:>>. Visit this group at >>>> http://groups.google.com/group/akka-user >>>> <http://groups.google.com/group/akka-user> >>>> <http://groups.google.com/group/akka-user >>>> <http://groups.google.com/group/akka-user>>. For more options, visit >>>> https://groups.google.com/d/optout <https://groups.google.com/d/optout> >>>> <https://groups.google.com/d/optout <https://groups.google.com/d/optout>>. >>> >>> >>> >>> Dr. Roland Kuhn >>> Akka Tech Lead >>> Typesafe <http://typesafe.com/ <http://typesafe.com/>> – Reactive apps on >>> the JVM. >>> twitter: @rolandkuhn >>> <http://twitter.com/#!/rolandkuhn <http://twitter.com/#!/rolandkuhn>> >>> >> >> -- >>>>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/> >>>>>>>>>>>> Check the FAQ: >>>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html> >>>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user >>>>>>>>>>>> <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] <javascript:>. >> To post to this group, send email to [email protected] <javascript:>. >> Visit this group at http://groups.google.com/group/akka-user >> <http://groups.google.com/group/akka-user>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > > > Dr. Roland Kuhn > Akka Tech Lead > Typesafe – Reactive apps on the JVM. > twitter: @rolandkuhn > > > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/> > >>>>>>>>>> Check the FAQ: > >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html> > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > >>>>>>>>>> <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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/akka-user > <http://groups.google.com/group/akka-user>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. Dr. Roland Kuhn Akka Tech Lead Typesafe <http://typesafe.com/> – Reactive apps on the JVM. twitter: @rolandkuhn <http://twitter.com/#!/rolandkuhn> -- >>>>>>>>>> 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.
