[openstack-dev] [nova] How does Nova update time for compute nodes?
Chen CH Ji
jichenjc at cn.ibm.com
Wed Oct 8 03:28:42 UTC 2014
following are code analysis, only FYI
not sure fully understand the question, but I think
servicegroup/drivers/db.py might be a good place to look at
a timer function _report_state is called periodically ,when its updated,
the field will be updated
class TimestampMixin(object):
created_at = Column(DateTime, default=lambda: timeutils.utcnow())
updated_at = Column(DateTime, onupdate=lambda: timeutils.utcnow())
Best Regards!
Kevin (Chen) Ji 纪 晨
Engineer, zVM Development, CSTL
Notes: Chen CH Ji/China/IBM at IBMCN Internet: jichenjc at cn.ibm.com
Phone: +86-10-82454158
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
Beijing 100193, PRC
From: Gareth <academicgareth at gmail.com>
To: OpenStack Development Mailing List
<openstack-dev at lists.openstack.org>
Date: 10/08/2014 10:23 AM
Subject: [openstack-dev] [nova] How does Nova update time for compute
nodes?
Hi, Nova guys
I know that 'nova-manage service list' will output 'XXX' for compute nodes
is the time between api node and compute node are larger than
service_down_time. At the same time Nova update db cyclically. So my
question is how does Nova update that data? via crontab or something else?
--
Gareth
Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball
OpenStack contributor, kun_huang at freenode
My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me
and I'll donate $1 or ¥1 to an open organization you specify.
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141008/9c1cab0e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141008/9c1cab0e/attachment.gif>
More information about the OpenStack-dev
mailing list