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@IBMCN Internet: [email protected]
Phone: +86-10-82454158
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
Beijing 100193, PRC
From: Gareth <[email protected]>
To: OpenStack Development Mailing List
<[email protected]>
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@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
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev