<span style="font-family:arial,sans-serif;font-size:13px">&gt; but you do see logging in the sql table for a while, then it stalls completely? that&#39;s interesting, and has no connection with window sizes, and seems to be a bug in sql. </span><br>

<div><span style="font-family:arial,sans-serif;font-size:13px">Yes I see logging in sql table for a while, then it stalls completely.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">&gt; </span><span style="font-family:arial,sans-serif;font-size:13px">like I said above, it doesn&#39;t seem to be window or tuning related. the sql driver stalls, which shoudln&#39;t happen if your sql server is available.</span><span style="font-family:arial,sans-serif;font-size:13px"> </span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">I&#39;m able to write manually to my sql server when syslog-ng is already stalled. I&#39;ve tried different mysql installations and it doesn&#39;t look like it the problem is on mysql side.</span></div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 9, 2012 at 12:06 AM, Balazs Scheidler <span dir="ltr">&lt;<a href="mailto:bazsi77@gmail.com" target="_blank">bazsi77@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

    
    
    
<div>
<p></p><div class="im">----- Original message -----
<br>&gt; &gt; this seems to be a bug in the sql destination. 1000 seems to be the
<br>&gt; window size for your source, the queue becomes filled, but then the sql
<br>&gt; destination doesn&#39;t flush messages.
<br>&gt; &gt; or does it?
<br>&gt; Looks like it doesn&#39;t write anything after filling up to 1000. I spent a
<br>&gt; few hours on waiting for it to be flushed but got no results.
<br>&gt; log_iw_size for my source should be 20000:
<br>&gt; 
<br>&gt;         syslog(ip(0.0.0.0) transport(&quot;tcp&quot;) port(5141)
<br>&gt; max-connections(200) log_iw_size(20000) flags(&quot;threaded&quot;)
<br>&gt; log_fetch_limit(100));
<br>&gt; 
<br>
<br></div>syslog driver divides the log-iw-size() evenly accross all permitted connections (max-connections() option), that way you get a window size of 100 for each connection.
<br><div class="im">
<br>&gt; 
<br>&gt; 
<br>&gt; &gt; it might also happen that it&#39;s slow. syslog-ng maxes out the queue,
<br>&gt; &gt; then
<br>&gt; stops until messages are emptied. once there are free slots it starts
<br>&gt; again: fills it up, stalls.
<br>&gt; Looks like it never gets any free slots in my configuration since I don&#39;t
<br>&gt; see any logging after the queue is maxed out for a few hours.
<br>&gt; 
<br>
<br></div>but you do see logging in the sql table for a while, then it stalls completely? that&#39;s interesting, and has no connection with window sizes, and seems to be a bug in sql.
<br><div class="im">
<br>&gt; Could you give me any recommendations? Looks like log_iw_size just
<br>&gt; doesn&#39;t work for my source and I have no idea how to fix it.
<br>&gt; 
<br>
<br></div>like I said above, it doesn&#39;t seem to be window or tuning related. the sql driver stalls, which shoudln&#39;t happen if your sql server is available.
<br>
<br>Algernon, can you have a look? I don&#39;t when I can get there :(<p></p>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards,<br>Koldaev Anton<br>
</div>