"Too much data for sort() with no index." While Getting Resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Ceilometer |
Fix Released
|
Undecided
|
Ilya Tyaptin | |
| ceilometer (Ubuntu) |
Medium
|
Unassigned | ||
| Trusty |
Medium
|
Unassigned | ||
| Vivid |
Medium
|
Unassigned | ||
| Wily |
Medium
|
Unassigned |
Bug Description
We have 47GB of mongo data. When I run "ceilometer resource-list", I get the error in the subject. I isolated the problem down to storage/
I ran the query in mongodb to see if it was generating the same error and confirmed it. After a bit digging, I learned that mongodb needs compound index for that kind of sort. I added the following index via mongocl:
db.resource.
After this index, the problem went away. I can run "ceilometer resource-list" and "ceilometer meter-list". However, those commands take ~1minute to complete with the index. The performance may be another issue that needs investigation.
I need to mention that this error is different than https:/
Changed in ceilometer: | |
status: | New → Triaged |
Changed in ceilometer: | |
assignee: | nobody → Aleksey Ripinen (aripinen) |
status: | Triaged → In Progress |
Changed in ceilometer: | |
assignee: | Aleksey Ripinen (aripinen) → Ilya Tyaptin (ityaptin) |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4b8929206acdd28
Author: Ilya Tyaptin <email address hidden>
Date: Thu Jul 30 14:18:42 2015 +0300
[MongoDB] Refactor indexes for meter and resources
Currently Ceilometer uses redundant indexes in MongoDB and in same
time doesn't cover get_resources sorting by indexes.
In this CR source field indexing is deleted and resource.
resource.
New compound index covers the get_resource sorting and its parts
are used in queries by timestamp, project_id, user_id.
Change-Id: I077317533fd308
Closes: bug 1433924
Changed in ceilometer: | |
status: | In Progress → Fix Committed |
Changed in ceilometer: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
James Page (james-page) wrote : | #3 |
b3 has been uploaded to wily - setting to Fix Released.
Changed in ceilometer (Ubuntu Wily): | |
importance: | Undecided → Medium |
status: | New → Fix Released |
Changed in ceilometer (Ubuntu Vivid): | |
status: | New → Triaged |
Changed in ceilometer (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in ceilometer (Ubuntu Vivid): | |
importance: | Undecided → Medium |
Changed in ceilometer: | |
milestone: | liberty-3 → 5.0.0 |
Change abandoned by gordon chung (<email address hidden>) on branch: master
Review: https:/
Reason: cleanup
Fix proposed to branch: master /review. openstack. org/207409
Review: https:/