[sr-dev] kamailio gets frozen when rsyslog-mysql cannot send the SQL query

Olle E. Johansson oej at edvina.net
Wed Jul 28 17:52:33 CEST 2010


28 jul 2010 kl. 17.44 skrev Iñaki Baz Castillo:

> 2010/7/28 Olle E. Johansson <oej at edvina.net>:
> 
>> Syslog is defined in http://tools.ietf.org/html/rfc5424, but I can't find
>> anything there about this situation. It's a simplex protocol, so the implementation
>> should propably handle this situation
> 
> Note that we don't use the "syslog remote protocol" as defined in RFC
> 5424. Kamailio logs to the local rsyslog server and rsyslog logs to a
> local file(s) and also performs a SQL query to store the log in a
> MySQL server.
Ahh.
> 
> 
> 
>> If it does, we need to figure out a way so that Kamailio doesn't lock up
>> if this happens, not logging in the same process or thread or something...
> 
> Being a multiprocess blocking design it would be a bit difficult such
> solution. Perhaps the "ping syslog" mechanism I suggested in my
> initial mail :)

I thought it wasn't easy... But still, we need some sort of solution
since this can affect a lot of systems.

/O


More information about the sr-dev mailing list