-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
akka.remote.artery.advanced.maximum-large-frame-size does not accept messages bigger than the default value of 2MiB #22257
Comments
I created a MWE without OpenCV's involvement or any serializer. Hopefully, somebody can share some light into this issue: As seen in the
build.sbt
main.conf
Main1.scala
Coordinator.scala
detector.conf
Main2.scala
Detector.scala
|
This could be related to real-logic/aeron#41 |
@toaditoad When looking at the Aeron source code I can confirm what @2m mentioned. You can probably increase the However, I would not recommend sending such large messages, especially not using The result of this ticket should be to mention something about this 1/8 of term size in the documentation for large messages. |
Sorry for my late reply - Are you sure it is @patriknw, and yes! |
I don't know the exact property name, but that should be possible to find in the Aeron documentation. Anyway, sounds like a good idea to not use Akka Remoting for this, but use a separate side channel. I'd suggest that you take a look at Akka Streams and it's TCP support. You can still use Actor messaging as the control plane (e.g. for setting up these streams). |
Then, it seems to be Thank you for this suggestion. I have developed some designs with only actors, only streams and also streams that integrate actors. I reached some conclusion about Akka Remoting regarding this special use case for my thesis. I haven't decided on how to publish my paper yet but I will probably pass you guys a copy. Your work is terrific. Thanks a lot - I close the issue. |
Thanks. I'm reopening because I think this should be documented. |
… aeron.term.buffer.length akka#22257
* Added to docs that large-message-frame-size is restricted to 1/8th of aeron.term.buffer.length #22257 * Fixed grammar
I have a project that reads frames from a video file using OpenCV. Since it is a 4k video recording, a single Mat object that is sent as message of
case class Frame(videoPos: Double, frame: Mat)
can have more than 7 MB. I'm trying to use Artery to send these frames via the dedicated channel for large messages. However, it seems thatakka.remote.artery.advanced.maximum-large-frame-size
does not take higher values than7 megabytes
.Consider the following example when sending a message of ~7.5 MB:
Expected console output with
akka.remote.artery.advanced.maximum-large-frame-size = 7 megabytes
because the message is too big:Strange console output with
akka.remote.artery.advanced.maximum-large-frame-size = 8 megabytes
because it says thatmaxMessageLength
is2097152
what matches the default value of 2 Mebibyte (MiB):The text was updated successfully, but these errors were encountered: