migration 153 takes extremely long amount of time

Bug #1155371 reported by Brian Lamar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Brian Lamar

Bug Description

Currently migration 153 inserts 10 rows per instance in the database. For new/small installations this is relatively quick, but for large installations this can take some time.

For example, if an installation has 100,000 deleted instances, this migration will attempt to insert 1,000,000 new rows.

Brian Lamar (blamar)
Changed in nova:
status: New → In Progress
assignee: nobody → Brian Lamar (blamar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/24460
Committed: http://github.com/openstack/nova/commit/767aa58c29546b5b3b5cd6a7d920b54aad2ef64a
Submitter: Jenkins
Branch: master

commit 767aa58c29546b5b3b5cd6a7d920b54aad2ef64a
Author: Brian Lamar <email address hidden>
Date: Thu Mar 14 13:56:40 2013 -0400

    Update migration 153 for efficiency.

    Currently migration 153 inserts 10 rows per instance in the database.
    For new/small installations this is relatively quick, but for large
    installations this can take some time.

    This change modifies the migration to only insert records for
    non-deleted instances and makes bulk inserts (10 rows are inserted
    with each query, instead of 1 per query) for added speed.

    Fixes bug 1155371

    Change-Id: I88a6cec2c117368fda6eefd82150106a1542027d

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-rc1 → 2013.1
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.