Closed Bug 1203518 Opened 9 years ago Closed 9 years ago

High prod database response time due to API being hammered

Categories

(Tree Management :: Treeherder: Infrastructure, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cbook, Unassigned)

References

Details

Both nigel and me notice a slowdown in treeherder that affects sheriffing with staring jobs etc 05:16 <&mdoglio> Tomcat|Sheriffduty: checking newrelic 05:18 <&mdoglio> I can see we have a slowdown in the job list endpoint since 7am this morning 05:36 <&mdoglio> the only uncommon thing is that one of the task queues has a bit of backlog 05:37 <&mdoglio> but a general slowdown of the database could be the cause
closing trees since this is getting worse and it makes no sense to try sheriffing with waiting +40 seconds and more for a result 05:50 < Tomcat|Sheriffduty> nigelb: now change to other result and it migth get slower :) 05:51 < nigelb> yep. 05:51 < nigelb> exactly. 05:52 < nigelb> It's much slower than usual :(
Component: Treeherder → Treeherder: Infrastructure
Priority: -- → P1
QA Contact: laura
Depends on: 1203551
See Also: → 1203486
Depends on: 1203556
An IP in Mumbai made ~80000 requests to us over 2 hours, which has now been banned for an hour. I've filed bug 1203551 to make the API request that was being made a 400 not 200 (since it was invalid; guessing it must still hit the DB as-is?) and bug 1203556 for adding a rate-limit for GETs to our API. Thank you everyone for your help! :-)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Summary: Treeherder database slowness → High prod database response time due to API being hammered
Intermittent errors with page - https://treeherder.mozilla.org/ Unknown repository. This repository is either unknown to Treeherder or it doesn't exist. If this repository does exist, please file a bug against the Treeherder product in Bugzilla to get it added to the system. Also page is randomly loading
You need to log in before you can comment on or make changes to this bug.