[openstack-dev] Asynchronous logging

Eric Windisch eric at cloudscaling.com
Wed Nov 7 16:33:24 UTC 2012


> 
> Two immediate concerns with my general approach:
>  * Log timestamps could be skewed from the time they were emitted.
>     - I am looking at generating the messages sooner, but sending them at a delay.
>     - Potentially, some logging backends might discard in-message timestamps.
> 
> 


The latest patchset now addresses this by wrapping handle(), rather than the error/warning/info/etc methods.

I've also added a tunable to limit the backlog size. When this queue fills, logging becomes semi-synchronous until it is no longer full. One would set a limit if they want to restrict memory growth. Right now, this defaults to unlimited, but it might make sense to put a reasonable default such as 4,000 messages?

Regards,
Eric Windisch


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20121107/3d93c3a7/attachment.html>


More information about the OpenStack-dev mailing list