Concurrent requests to quotas reserve sometimes lock db table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Incomplete
|
Medium
|
Alexei Kornienko |
Bug Description
Concurrent requests to quotas reserve sometimes lock db table significantly degrading performance.
Steps to reproduce:
1) Create 3-5 instances using devstack
2) Wait until all instances are in ACTIVE state
3) Terminate all instances simultaneously
delete operation executes following SQL query to release instance quotas:
SELECT quota_usages.
Sometimes this query can block for 50 seconds
Reprorate ~ 20%
Changed in nova: | |
assignee: | nobody → Alexei Kornienko (alexei-kornienko) |
tags: | added: db |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
2nd trace attached:
Seems that instance A is doing block_device_ destroy and instance B has to wait until it finishes.