Hi Neeraj, On 24 September 2014 at 08:10:58, tomerneeraj ([email protected]) wrote:
Hi, We developed our application on Akka (2.3.4). We are running 5 nodes in Akka Cluster where we are using cluster aware routers to distribute the traffic. Application seems to be worked fine when traffic is low but in case we increase traffic then out of memory and GC spike pops up. We fine tuned application using cluster dispatcher and heart beat timeout which seems to be settled to some extent but that is not the final solution It sounds like you are accepting work faster than you can complete it. You must stop accept incoming work in some way. While going through presentation by Victor and Dr Roland Akka Streaming seems to be solution here. We also went through Akka Pulling pattern(http://letitcrash.com/post/29044669086/balancing-workload-across-nodes-with-akka-2) but seems that Akka Streams is the one which can solve our problems here. Our team mainly have java developers with very little background on writing code in scala. We need to know couple of things mentioned below: 1. Does Akka Streams support Cluster aware Routers? If we want to migrate existing apps then any guidelines for that? If this can not be migrated then we are still okay to write code from scratch but in Akka streams examples written in scala we do not see use to cluster aware routers? Streams are not actors. The cluster aware routers are built for actors. Actor messaging and streams are complementary technologies that can be used together, but you would need to redesign your application to use streams. 2. We also need to have auto scale functionality which we believe can be achieved by spawning new node in cluster i.e. putting this code in sender and check for time out of response. Any suggestion welcome here You can definitely start up new nodes based on some metric, but that needs to be done outside the cluster itself. 3. When Java API for Akka streaming planned to be released? There is a blogpost outlining the roadmap here http://typesafe.com/blog/akka-roadmap-update-2014 but in short we aim for a an experimental release by the end of October and proper release early 2015. B/ Regards Neeraj -- >>>>>>>>>> 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. -- Björn Antonsson Typesafe – Reactive Apps on the JVM twitter: @bantonsson -- >>>>>>>>>> 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.
