Remove duplicate code with aggregate filters

Bug #1301340 reported by Sahid Orentino
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Sahid Orentino

Bug Description

Some filters are using the same logic to handle per-aggregate options. We should create helper to remove this duplicate code and help to implement new filters based on aggregates

Filters that needs to be addressed:
 * AggregateRamFilter
 * AggregateCoreFilter,
 * AggregateTypeAffinityFilter

Tags: scheduler
Changed in nova:
status: New → In Progress
Revision history for this message
Phil Day (philip-day) wrote :

I don't think its just a question of removing duplicated code - doing any DB queries in a filter (like looking up aggregate membership for a host) is a major performance issue at scale as the filter is run once per host.

The aggregate information should be extracted by the host manager and passed into the filters as part of the host state

Revision history for this message
Sahid Orentino (sahid-ferdjaoui) wrote :

Phil a bug has been reported for the performance impact: https://bugs.launchpad.net/nova/+bug/1300775

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit 878f767b9e1cdc2b57858c41d973dd087f37bbaa
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Mon Mar 3 17:35:35 2014 +0100

    Add helpers to create per-aggregate filters

    This patchset introduce a new file of utility methods
    to deal with aggregate metadata.
    As well it updates related filters to use this new logic.
    * AggregateRamFilter
    * AggregateCoreFilter,
    * AggregateTypeAffinityFilter

    Closes-Bug: #1301340
    Change-Id: I5e4aebe9e61cfbdc7b9e6b5de0788fc6670eb936

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