<div dir="ltr">Hi all,<div><br></div><div>Thank you for the time in commenting.</div><div><br></div><div>I understand that this is a syslog-ng mailling list but however, in my setup I am testing. I have to use rsyslog for the client. </div><div><br></div><div>Has anybody tried a client as rsyslog and the server as syslog-ng does the flow-control still kick in? Assume transportation protocol is TCP. </div><div><br></div><div>I want to see if anybody tried it before, or let me know its impossible before i commit my time into testing the setup. </div><div><br></div><div>My intention is to leverage as much of the new features in syslog-ng as I am testing the new setup. Need the setup to "sell". </div><div><br></div><div>Yours Sincerely,</div><div>Delon Lee</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, 9 May 2018 at 20:01 PÁSZTOR György <<a href="mailto:pasztor@linux.gyakg.u-szeged.hu">pasztor@linux.gyakg.u-szeged.hu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
"Gergely Nagy" <<a href="mailto:algernon@balabit.com" target="_blank">algernon@balabit.com</a>> írta 2018-05-09 12:35-kor:<br>
> >>>>> "Delon" == Delon Lee Di Lun <<a href="mailto:lee.delon2005@gmail.com" target="_blank">lee.delon2005@gmail.com</a>> writes:<br>
> <br>
>     Delon> However, now. I see the documentation mention that flow control can be used<br>
>     Delon> in conjunction with disk based buffering. How does flow control plays a<br>
>     Delon> part?<br>
> <br>
> The documentation has a chapter on flow-control, which explains the<br>
> purpose, and the behaviour of it:<br>
>  <a href="https://syslog-ng.com/documents/html/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/concepts-flow-control.html" rel="noreferrer" target="_blank">https://syslog-ng.com/documents/html/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/concepts-flow-control.html</a><br>
> <br>
>     Delon> Flow control only works within the syslog-ng application? From the source<br>
>     Delon> to dest? Or it has the capability to detect the flow rate from the remote<br>
>     Delon> syslog-ng client and can "command" the syslog-ng client to slow down if the<br>
>     Delon> syslog-ng server cannot handle the load?<br>
> <br>
> Yes, it only works within a single syslog-ng instance. But if you have<br>
> syslog-ng on both client and server, if flow-control kicks in on the<br>
> server, and it slows down accepting messages, then flow-control will<br>
> also kick in on the client (because it detects that messages are not<br>
> going out fast enough), and it will start buffering (to disk too, if so<br>
> configured). This way, you'll only lose messages if all queues fill up.<br>
<br>
One extra thought to extend algernon's comment: to work this properly, you<br>
must use tcp. If you use udp, the client will not have proper feedback if<br>
the server couldn't process a message. In that case kernel's udp buffer<br>
just silently drop the message.<br>
In case of tcp: if the server process doesn't read (fast enough) from the<br>
socket, then the underlying kernel won't send back the tcp acknowledments.<br>
<br>
Cheers,<br>
Gyu<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>