Fork me on GitHub
#onyx
<
2017-03-13
>
jasonbell09:03:21

@asolovyov

:onyx.peer/subscriber-liveness-timeout-ms 
 :onyx.peer/publisher-liveness-timeout-ms 
do you have these set in your peer config? Wondering if the heartbeat is killing the task/peer as a task is taking too long.

jasonbell09:03:28

The default is 10 seconds, I've had to extend it out to 30 seconds for more involved jobs.

asolovyov09:03:52

@jasonbell that's interesting, thanks, I'll look into that; it's certainly not set right now

jasonbell09:03:29

no problem at all

jetmind14:03:24

Hey all! I wonder how onyx serializes segments to aeron. Does each segment become separate aeron message or could multiple segments be grouped into one aeron message? I'm asking because I want to understand where "Encoded message exceeds maxMessageLength" problem might be coming from. We're don't seem to have segments larger than 2mb

jasonbell14:03:52

Aeron term buffer determines your segment size

jasonbell14:03:04

16mb term buffer / 8 = max segment size

jasonbell14:03:09

which in this instance is 2mb

jasonbell14:03:35

if you adjust the aeron.term.buffer.length in the java options (using -D) then you can extend that

jetmind14:03:59

thanks, I'll try that. Still not sure where such big segment is coming from, though.. want to get to the bottom of it

gardnervickers14:03:46

@jetmind Segments are the user-facing items that you deal with in your task/aggregation/flow-condition functions. These are batched together using :onyx/batch-size.

jetmind14:03:41

yeah, I understand that. Just wanted to figure out how they correspond to the underlying messaging layer. So, it theory one batch of segments could be sent through the wire as single Aeron message?

gardnervickers14:03:28

So if all your segments are 2kb+ in size, then a :onyx/batch-size of 100 of them would put you over the 2MB limit.

jetmind14:03:39

We have onyx/batch-size set to 10 but I think it’s possible for some of our segments to exceed 200kb+, so probably that’s what puts us over the limit

jetmind14:03:48

thanks for clearing that out for me!

jasonbell14:03:15

@gardnervickers I know the max Aeron term buffer is 1GB, has anyone tried segment sizes of 128mb?

gardnervickers14:03:36

Not that I’m aware of

jasonbell14:03:27

Cool. I'll let you know how it goes then 🙂