missing mongodb indexes in the metrics collection

Bug #1829086 reported by Junien F
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Achilleas Anagnostopoulos

Bug Description

Hi,

The following mongodb requests could be optimized by adding indexes :

command juju.metrics command: count { count: "metrics", query: { sent: false, model-uuid: "<uuid>" } } planSummary: COLLSCAN keyUpdates:0 writeConflicts:0 numYields:960 reslen:62 locks:{ Global: { acquireCount: { r: 1922 } }, Database: { acquireCount: { r: 961 } }, Collection: { acquireCount: { r: 961 } } } protocol:op_query 105ms

command juju.metrics command: find { find: "metrics", filter: { model-uuid: "<uuid>", sent: false }, skip: 0, limit: 1000, batchSize: 1000 } planSummary: COLLSCAN keysExamined:0 docsExamined:122947 cursorExhausted:1 keyUpdates:0 writeConflicts:0 numYields:960 nreturned:0 reslen:118 locks:{ Global: { acquireCount: { r: 1922 } }, Database: { acquireCount: { r: 961 } }, Collection: { acquireCount: { r: 961 } } } protocol:op_query 101ms

Thanks

Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.6.3
assignee: nobody → Achilleas Anagnostopoulos (achilleasa)
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Achilleas Anagnostopoulos (achilleasa) wrote :

https://github.com/juju/juju/pull/10221 is a PR against the 2.6 branch for addressing this issue

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
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.