I'm trying to use max-size with metric to limit the total number of bytes in a batch, but the resulting batches are exceeding the specified max-size. Rather than limiting the cumulative batch size, it seems that the max-size argument acts more like a trigger, sending messages once the accumulated message size is greater than or equal to max-size.
I'm trying to use
max-size
withmetric
to limit the total number of bytes in a batch, but the resulting batches are exceeding the specifiedmax-size
. Rather than limiting the cumulative batch size, it seems that themax-size
argument acts more like a trigger, sending messages once the accumulated message size is greater than or equal to max-size.For example: