Thanks you Chen. What I'm finding is the '_report_state' function. Your
answer really helps :)

On Wed, Oct 8, 2014 at 11:28 AM, Chen CH Ji <jiche...@cn.ibm.com> wrote:

> 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: jiche...@cn.ibm.com
> Phone: +86-10-82454158
> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
> Beijing 100193, PRC
>
> [image: Inactive hide details for Gareth ---10/08/2014 10:23:59 AM---Hi,
> Nova guys I know that 'nova-manage service list' will output ']Gareth
> ---10/08/2014 10:23:59 AM---Hi, Nova guys I know that 'nova-manage service
> list' will output 'XXX' for compute nodes
>
> From: Gareth <academicgar...@gmail.com>
> To: OpenStack Development Mailing List <openstack-dev@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@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@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
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
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to