Closed Bug 1289225 Opened 8 years ago Closed 8 years ago

Create tasks with parallelism of 50

Categories

(Firefox Build System :: Task Configuration, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla50

People

(Reporter: dustin, Assigned: dustin)

References

Details

Attachments

(1 file)

The decision task creates a *lot* of tasks.  Within the queue service, each createTask is slow because the Azure table storage it uses as a backend is slow.  But concurrency should help!
Comment on attachment 8774488 [details]
Bug 1289225: increase createTask concurrency;

https://reviewboard.mozilla.org/r/66912/#review63744
Attachment #8774488 - Flags: review?(gps) → review+
[34m 0:17.71(B[m Starting new HTTP connection (46): taskcluster
[34m 0:17.72(B[m Starting new HTTP connection (50): taskcluster
[34m 0:17.71(B[m Starting new HTTP connection (48): taskcluster
[34m 0:17.71(B[m Starting new HTTP connection (49): taskcluster
[34m 0:17.71(B[m Starting new HTTP connection (47): taskcluster

looks promising.. and only 8 seconds to create all of the tasks.
Nice. When I initially implemented the thread pool for concurrent upload, I thought the concurrency would be limited by availability of the task in the graph (we can only upload a task once its dependencies are uploaded). I guess we don't have enough long chains in the graph for this to be an issue.

Quick thing to verify: we don't actually establish a TCP connection unless it is needed, right? I'd hate to spawn 50 TCP connections and only use 5. (I /think/ I verified this before. But we may want to check again to be sure because 50 is a lot of connections!)
Comment on attachment 8774488 [details]
Bug 1289225: increase createTask concurrency;

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/66912/diff/1-2/
Comment on attachment 8774488 [details]
Bug 1289225: increase createTask concurrency;

https://reviewboard.mozilla.org/r/66912/#review63844

Yay...
Attachment #8774488 - Flags: review?(jopsen) → review+
> we don't actually establish a TCP connection unless it is needed, right?
50 is the number of threads. TCP connection establishment and keep-alive is probably abstracted
far away inside the requests library :)
Pushed by dmitchell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9baa784f40f4
increase createTask concurrency; r=gps,jonasfj
https://hg.mozilla.org/mozilla-central/rev/9baa784f40f4
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Blocks: 1291035
Product: TaskCluster → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: