add index on juju.relationscopes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
Hi,
I was looking into our jujud/mongodb resources issues at the end of last week when I spotted a bunch of similar COLLSCANs, that sometimes got run ~1000 times / min, for example :
Mar 24 04:19:13 juju-4da59b22-
I spoke to axw, and he said that "those queries happen when workers in juju start watching relations". We ended up adding the following index :
db.relationscop
I'm filing this bug to make sure we don't forget making juju add this index automatically.
Thanks !
tags: | added: canonical-is |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.2-beta3 |
Changed in juju: | |
assignee: | nobody → Ian Booth (wallyworld) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
PR against develop (2.2): https:/ /github. com/juju/ juju/pull/ 7249