Hi Erik, On 6 March 2014 at 03:32:38, Erik Nelson ([email protected]) wrote:
Hello! We recently had a pretty nasty server crash, with machines running 2.1.3, that we hope is resolved by setting a max-channel-memory-size. I have a branch of our code that is updated to 2.2 waiting to make it to deployment, so I of course went to update it. Since the remote settings block changed quite a bit I figured I'd check, and... it no longer seems to exist. Some digging in the source makes it looks like the executor service that took that setting is no longer even being used, nor is there any longer an AkkaProtocolMessageSizeEstimator. So far, I haven't found anything in the migration guide or docs that talks about this, but my apologies if there is already, and please just point me in that direction. I assume that some of the under the hood changes obviate the situations that called for the memory limit, but it's gotten to the point that I feel the need to just ask what those changes were instead of trying to figure it out. There where a lot of changes in the remoting between 2.1 and 2.2. When it comes to this configuration option it wouldn’t make sense in the 2.2 world, since the Netty code is now always able to hand off the incoming payload to an actor, hence the in flight message size according to Netty would be zero. As for using it in 2.1, it seems like you are doing back pressure handling by letting TCP do the back pressure handling. If the destination system takes to long time to respond you will get a RemoteClientError on the sender system and dropped messages. If you have problems with overloading a system with too many messages I would go for an approach where you have explicit flow control on the application level. For example: http://letitcrash.com/post/29044669086/balancing-workload-across-nodes-with-akka-2 http://www.michaelpollmeier.com/akka-work-pulling-pattern/ B/ Thank you! erik -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> 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/groups/opt_out. -- 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/groups/opt_out.
