Closed
Bug 964522
Opened 10 years ago
Closed 10 years ago
Tokenserver doesn't update current_load when it assigns a node
Categories
(Cloud Services Graveyard :: Server: Token, defect, P2)
Cloud Services Graveyard
Server: Token
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: rfkelly, Unassigned)
References
Details
(Whiteboard: [qa+])
Attachments
(1 file)
3.51 KB,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
AFAICT the tokenserver doesn't update the current_load after it assigns a node. This means that all nodes appear to be unloaded, and all assignments wind up going to the same node due to our deterministic selection algorithm. The old node-assignment server updated this field after each node assignment: http://hg.mozilla.org/services/server-node-assignment/file/1a94108c67ad/mozsvcnodes/storage.py#l183 Should we do the same, or do we plan to update this in some other way e.g. with a periodic maintenance script?
Reporter | ||
Updated•10 years ago
|
Flags: needinfo?(telliott)
Comment 1•10 years ago
|
||
To the best of my knowledge, the node should get a +1 any time it does an update. Among other things, it means we can do round-robin during particularly busy parts. If that's missing, it seems like an oversight.
Flags: needinfo?(telliott)
Updated•10 years ago
|
Whiteboard: [qa+]
Reporter | ||
Comment 2•10 years ago
|
||
Note to self, we should also be using log() for the order-by per Bug 688098
Reporter | ||
Comment 3•10 years ago
|
||
Hmm, it does seem to be in there though, need to dig deeper: https://github.com/mozilla-services/wimms/blob/master/wimms/sql.py#L324
Reporter | ||
Comment 4•10 years ago
|
||
This functionality stopped working during the recent refactor because we didn't have a test for it. I've added one and fixed two underlying bugs: * we were updating the counts without translating the service name into a service id, hence the query wasn't hitting any rows * sqlite was doing integer arithemtic, truncating load/capacity results to zero and hence returning things in row order This patch fixes them and adds in the log() hack for MySQL while we're there.
Attachment #8366375 -
Flags: review?(telliott)
Updated•10 years ago
|
Attachment #8366375 -
Flags: review?(telliott) → review+
Reporter | ||
Comment 5•10 years ago
|
||
https://github.com/mozilla-services/wimms/commit/f1040301e2f2f0fc37bd1648f86a32ef2d4c0c89
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Priority: -- → P2
Updated•1 year ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•