nova messaging queues slow in idle cluster

Bug #1363119 reported by Paul Griffin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Matt Riedemann

Bug Description

Each running nova-network service periodically calls fixed_ip_disassociate_all_by_timeout(). This searches all fixed ips, filtering on multiple columns. With a large number of fixed_ips, each call to this function can take several seconds to complete. With many hosts running nova-network, a cluster with little to no activity can experience prolonged delays in message processing, eventually rendering some or all hosts unresponsive to nova commands (boot instance, etc). The only column referenced in that query that is not represented in any existing index is updated_at; a new index including fixed_ips.updated_at is probably called for.

description: updated
Changed in nova:
assignee: nobody → Paul Griffin (paul-griffin)
description: updated
Changed in nova:
importance: Undecided → Medium
Sean Dague (sdague)
Changed in nova:
status: New → Confirmed
tags: added: db
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/122240

Changed in nova:
status: Confirmed → In Progress
Changed in nova:
assignee: Paul Griffin (paul-griffin) → Matt Riedemann (mriedem)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/122240
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e9f3ad139734593537e912fe92b8717db9254acc
Submitter: Jenkins
Branch: master

commit e9f3ad139734593537e912fe92b8717db9254acc
Author: Paul Griffin <email address hidden>
Date: Wed Sep 17 13:04:20 2014 -0400

    db: Add index on fixed_ips updated_at

    Adding sqlalchemy code to add an index to the fixed_ips table on
    the deleted, allocated and updated_at columns, to speed up the
    periodic disassociate_all_by_timeout task

    Closes-Bug: #1363119
    Change-Id: Iee53b5fd31b56bf1e0dddeada42ee9267b156150

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.