Use mongo $bit operation instead of $inc for tracking agent liveness
Bug #1699678 reported by
John A Meinel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
John A Meinel | ||
2.2 |
Fix Released
|
Medium
|
John A Meinel |
Bug Description
https:/
Bitwise OR was supported all the way back to Mongo 2.2
We currently have to manage a whole "presence.beings" table to ensure that we never ping the same slot 2 times because we are using a $inc instead of a bitwise or.
However, bitwise or has been supported since Mongo 2.2. Which means we could just reuse any slot for a given operator instead of growing them without bound and having to prune them, etc.
We'd also need to know whether $inc vs $or is going to be a performance issue.
Changed in juju: | |
milestone: | 2.3-beta2 → 2.3-beta1 |
To post a comment you must log in.
https:/ /github. com/juju/ juju/pull/ 7863
addresses this and bug #1703675 at the same time.