Thankyou for the reply, I've tested it a bit more in the last month,
here are my observations:
On Sep 21, 7:57 am, Gautam Roy <
gautam....@gmail.com> wrote:
> Yes, what you mention is a known limitation. Your best option is to keep the
> max_size small and use the buffer_send_rate parameter to increase the number
> of files attempted to transfer every check_interval.
>
> e.g. if currently you have max_size=10000000 and buffer_send_rate=1 try
> changing it to max_size=1000000 and buffer_send_rate=10.
..but which is the difference between this approach and just setting a
timeout 10 times longer? I found no difference except that if the
transfer fails because of a temporary problem (and not an intrinsic
one like the one I ran into), then there are less duplicated messages.
Am I right?
> Are you using scribe 2.2?
> This simple patch in the master branch:
https://github.com/facebook/scribe/commit/0f32992c27a52fe19f26a521c9f...
> was introduced to alleviate this situation. i.e. in scribe 2.2 scribe will
> attempt to transfer the entire file, causing waste of network bandwidth when
> the file is eventually rejected via a 'denied for queue size'. With this
> patch, scribe first tests the downstream queues by sending an empty message
> to see whether the downstream is accepting messages before attempting to
> transfer the entire file.
Yes, I applied this patch a long time ago. Anyway, I ran in an
intrinsic network problem, not in a Scribe one. The defaults values
are:
timeout: 5 secs
file_size: ~1 Gb
so if there is a quite long network outage and the buffer fills up
untill 1 Gb, by default Scribe tries to transfer this 1 Gb in 5
seconds, which brings to a minimum required bandwidth of 1.6 Gigabit
for every contemporary transfer to avoid running into EAGAIN errors
that causes loops and message duplicates. I really think that these
defaults should be reviewed..
But the most important thing about the entire story is that, in my
opinion, one expects a kind of heartbeat monitoring during the
transfer, so that the timeout occours only if there is no respnse on
the other side, not if there's a transfer going on. We should write on
the Scribe documentation in capital letters about this behaviour! :)
Thankyou and cheers,
Stefano
> Best,
> Gautam
>
> On Mon, Sep 19, 2011 at 8:26 AM, Stefano Alberto Russo <
>