[openstack-dev] Changing period audit to real-time audit

Huang Zhiteng winston.d at gmail.com
Mon Nov 5 17:00:48 UTC 2012


There's a related (not exactly the same, though) case in Nova compute
service periodic task: bug report:
https://bugs.launchpad.net/nova/+bug/1045152, Fix:
https://review.openstack.org/#/c/12335/4.  Just for your reference.

On Tue, Nov 6, 2012 at 12:38 AM, Huang Zhiteng <winston.d at gmail.com> wrote:
> Hi Julien,
>
> Thanks for bring the discussion to boarder audience.  Looking forward
> to hear feedback/suggestion.
>
> On Mon, Nov 5, 2012 at 11:34 PM, Julien Danjou <julien at danjou.info> wrote:
>> Hi,
>>
>> I've been working to change the actual audit code used into Cinder (but
>> also in Nova) to a real-time one, so it's more useful to projects like
>> Ceilometer.
>>
>> The implementation for Cinder is under review at:
>>
>>     https://review.openstack.org/#/c/15115/
>>
>> Once this patch got accepted, I intend to port it to Nova in the same
>> fashion.
>>
>> Now, Huang Zhiteng raises an issue that might also interest Nova team,
>> so I'm bringing this to this list.
>>
>> My patch plugs the audit in a periodic task under the cinder-volume
>> daemon, since this is the one making more sense for cinder. For Nova,
>> that would probably be nova-compute.
>> The concern is that sending exists notifications might take too long and
>> blocks the daemon for too much time.
>>
>> From my point of view, since each host is only sending notifications
>> about volumes (in Nova that would be instances) it handles, this is not
>> going to be a lot of them, and that shouldn't take the daemon too long
>> nor block it for a while. Compared to the burden of shipping another
>> daemon.
>>
>> Also, while I'm at it, suggestions about a default auditing rate might
>> be welcome, since the default periodic_interval (60s) might be a little
>> too low. Maybe using ticks_between_runs would be a good idea?
>>
>> --
>> Julien Danjou
>> # Free Software hacker & freelance
>> # http://julien.danjou.info
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
>
>
> --
> Regards
> Huang Zhiteng



-- 
Regards
Huang Zhiteng



More information about the OpenStack-dev mailing list