"nova usage" taking too much time with many VMs in database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Guillaume Espanel |
Bug Description
Issue found on Kilo 2015.1.0 on Ubuntu Trusty (1:2015.
When running "nova usage" on a tenant that started many instances O(100k) during the current month, the following happens:
* nova-api is stuck at 100% for a long time
* as a consequence, nova CLI returns "ERROR (ConnectionRefu
Unable to establish connection to ..."
* on MySQL slow query log I see there is a query like:
SELECT instance_
instance_
instance_
instance_
instance_
instance_
AS instance_
instance_
instance_
instance_
AS instance_
FROM instance_
WHERE instance_
instance_
which took 1.8 seconds.
Also, when logging in from Horizon, login is very slow, and I get an error
"Error: Unable to retrieve usage information.".
Changed in nova: | |
assignee: | nobody → Zhenzan Zhou (zhenzan-zhou) |
tags: | added: db |
tags: | added: performance |
Changed in nova: | |
assignee: | Zhenzan Zhou (zhenzan-zhou) → nobody |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | stgleb (gstepanov) → nobody |
Changed in nova: | |
assignee: | nobody → Guillaume Espanel (guillaume-espanel) |
Have prior instance been "deleted"? When this occurs, the actual data is not removed from the DB, but is soft deleted. There's a patch here that hasn't landed yet to purge soft-deleted instance data: https:/ /review. openstack. org/#/c/ 203751/