Closed
Bug 1291035
Opened 8 years ago
Closed 8 years ago
Increase requests pool size in decision task
Categories
(Firefox Build System :: Task Configuration, task)
Firefox Build System
Task Configuration
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gps, Assigned: gps)
References
Details
Attachments
(1 file)
More follow-up work from making the decision task make HTTP requests concurrently. Patch forthcoming.
Assignee | ||
Comment 1•8 years ago
|
||
I was looking at some decision task logs and noticed lines like: Connection pool is full, discarding connection: taskcluster I also noticed lines like: Starting new HTTP connection (153): taskcluster In this case, we had established 153 TCP connections to a server. Looking at the requests source code, a requests.session by default creates a connection pool with capacity of 10. There are actually 2 components to the capacity: idle connections and active connections. What appeared to be happening was we could obtain an idle connection, use it, and then it would be discarded when put back in the idle pool because the idle pool was at capacity. Furthermore, it also appears that connections were sitting around waiting for a TCP connection. This commit uses a custom "adapter" with an increased pool size that matches the concurrency level of the code issuing the HTTP requests. This should increase the number of concurrent TCP connections / requests, decreease the number of TCP connections being used overall, and make decision tasks complete faster. Review commit: https://reviewboard.mozilla.org/r/68416/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/68416/
Attachment #8776717 -
Flags: review?(dustin)
Updated•8 years ago
|
Attachment #8776717 -
Flags: review?(dustin) → review+
Comment 2•8 years ago
|
||
Comment on attachment 8776717 [details] Bug 1291035 - Increase HTTP connection pool capacity; https://reviewboard.mozilla.org/r/68416/#review65486
Pushed by gszorc@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1eb53cee97d3 Increase HTTP connection pool capacity; r=dustin
Comment 4•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1eb53cee97d3
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: TaskCluster → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•