Closed
Bug 570158
Opened 15 years ago
Closed 15 years ago
Switch to Gearman (or all-Buildbot) for queued tasks from the web app?
Categories
(Websites Graveyard :: byob.mozilla.com, enhancement)
Websites Graveyard
byob.mozilla.com
Tracking
(Not tracked)
RESOLVED
FIXED
1.5
People
(Reporter: lorchard, Unassigned)
Details
Currently, the web app uses a task queue implemented in PHP and run via launchd/cron. It's kind of over-engineered and not necessarily the best system.
Buildbot should eventually take over most or all of the work needed to build repacks, but there may still be a need for a general work queue from the PHP app.
A better, simpler option for a job queue might be Gearman:
http://gearman.org/
| Reporter | ||
Comment 1•15 years ago
|
||
(Unless, of course, Buildbot can just handle all of it... I know Gearman but not Buildbot, so that's the hammer I've been hitting nails with)
Summary: Switch to Gearman for queued tasks from the web app → Switch to Gearman (or all-Buildbot) for queued tasks from the web app?
| Reporter | ||
Comment 3•15 years ago
|
||
r74310 has changes to switch to gearman.
Trying out gearman on byob staging, hopefully more reliable than the original message queue.
| Reporter | ||
Comment 4•15 years ago
|
||
This should be working on staging now, and it seems like I fixed the MySQL issues. If/when we go live with it on a prod OS X box, these launchd items become important:
/Library/LaunchDaemons/org.mozilla.gearmand.plist
/Library/LaunchDaemons/org.mozilla.byob_gearman_worker.plist
The first ensures gearman runs as a daemon and starts on reboot, and the second does the same for the BYOB repack worker.
The nice thing about this change is that the web app itself can be moved to a linux cluster sooner, as long as there's an OS X box somewhere that can run the worker.
And, we can even run multiple workers on multiple OS X boxes, since gearman will distribute tasks to any connected workers that support the appropriate jobs. Buildbot should obviate that, but it'll be nice to have in our back pocket
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 5•15 years ago
|
||
Oh, and in terms of QA: Nothing should change, really. If the build process continues working on staging, then this was a success.
| Assignee | ||
Updated•11 years ago
|
Product: Websites → Websites Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•