Large deployments may require additional indexes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Justin Shepherd |
Bug Description
I've compiled the below list of additional indexes from some "large" deployments of openstack diablo and essex. This is a list of indexes that were added in production, presumably to put out fires. I will open a separate bug report to list all missing indexes based on a review of the api and model code.
=== bw_usage_cache ===
* instance_id
* start_period
=== compute_nodes ===
* service_id
* deleted
=== fixed_ips ===
* address(15)
index prefix created because max(length(
* instance_id, updated_at
yes, there is already an index on (instance_id) but this compound index is faster.
=== instances ===
* host(30)
* updated_at
* deleted_at
* terminated_at
* project_id
* deleted
=== instance_faults ===
* deleted
* instance_uuid
=== migrations ===
* status
* updated_at
* instance_uuid
=== networks ===
* uuid
=== quotas ===
* project_id
* deleted
=== floating_ips ===
* fixed_ip_id
=== security_groups ===
* deleted
=== security_
* deleted
=== security_
* group_id
* parent_group_id
* deleted
=== services ===
* deleted, host
=== virtual_interfaces ===
* uuid
=== volumes ===
* instance_id
=== volume_metadata ===
* volume_id
summary: |
- Large deployments require additional indexes + Large deployments may require additional indexes |
Changed in nova: | |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
tags: | added: ops |
description: | updated |
Changed in nova: | |
milestone: | folsom-3 → folsom-rc1 |
importance: | Medium → Critical |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
Suggested importance: medium (known work arounds, but this should be good in core)
This is probably low hanging fruit, as it is easy to introduce these indexes as migrations.