setting tcp buffer sizes for remote actors

212 views
Skip to first unread message

hschoeneberg

unread,
Jun 1, 2012, 7:42:07 AM6/1/12
to Akka User List, sp...@hschoeneberg.de
Hey everyone,

I would like to transfer large messages (>500mb each) between remote
actors. The network bandwidth allows for very high transmission
speeds, therefore I'd like to tweak the tcp send and receive buffer
sizes. Can anyone give me a hint where and how to specify those buffer
sizes? I know that netty supports the specification of tcp send and
receive buffers, but I can't find a matching property in the akka
reference-configuration (http://doc.akka.io/docs/akka/2.0.1/java/
remoting.html further below).

I wrote a simple dummy-application, with the akka-configuration as
follows:

// akka system
Config config = ConfigFactory.parseString("akka.loglevel = DEBUG \n"
+ "akka.actor.debug.lifecycle = on \n"
+ "akka.actor.provider = \"akka.remote.RemoteActorRefProvider\"
\n"
+ "akka.remote.transport =
\"akka.remote.netty.NettyRemoteTransport\" \n"
+ "akka.remote.netty.hostname = \"my.ip.here\" \n"
+ "akka.remote.netty.port = \"1337\" \n"
+ "akka.remote.netty.message-frame-size = 8192");
ActorSystem system = ActorSystem.create("test", config);

// launch actor
ActorRef dummyActor = system.actorOf(new Props(DummyActor.class),
"dummyActor");

So, does anyone know an option like
"akka.remote.netty.tcpSendBufferSize ..."?

Thanks for your time!

Hendrik Schöneberg

√iktor Ҡlang

unread,
Jun 1, 2012, 7:54:02 AM6/1/12
to akka...@googlegroups.com, sp...@hschoeneberg.de
Hi Hendrik,

those settings aren't exposed currently, but I've opened a ticket for it: http://www.assembla.com/spaces/akka/tickets/2168-expose-additional-netty-bootstrap-config

Cheers,



--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.




--
Viktor Klang

Akka Tech Lead
Typesafe - The software stack for applications that scale

Twitter: @viktorklang

√iktor Ҡlang

unread,
Jun 1, 2012, 3:37:37 PM6/1/12
to akka...@googlegroups.com
https://github.com/akka/akka/pull/507/files

On Fri, Jun 1, 2012 at 9:12 PM, hschoeneberg <sb.he...@googlemail.com> wrote:
Hi Viktor,

thank you very much for your quick help!

Kind regards,

Hendrik Schöneberg

--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/prXaI61ATMMJ.

To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.

√iktor Ҡlang

unread,
Jun 4, 2012, 8:48:52 AM6/4/12
to akka...@googlegroups.com
You're most welcome,

happy hAkking!

Cheers,


On Mon, Jun 4, 2012 at 2:37 PM, hschoeneberg <sb.he...@googlemail.com> wrote:
Thank you guys, I just downloaded the latest snapshot - everything works like a charm!

Keep up the good work with Akka!
Hendrik Schöneberg

--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/lchvReyR3YgJ.

To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Reply all
Reply to author
Forward
0 new messages