Last modified: 2012-08-28 07:56:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40455, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38455 - wikimedia-job-runner should be able to run a specific job type
wikimedia-job-runner should be able to run a specific job type
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Nobody - You can work on this!
: ops
Depends on:
Blocks: 27699 37470
  Show dependency treegraph
 
Reported: 2012-07-17 20:56 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-08-28 07:56 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2012-07-17 20:56:49 UTC
We need to be able to setup instances that will only run a specific kind of job such as video transcoding. The patch is at 

https://gerrit.wikimedia.org/r/#/c/11610/

Need the Debian package to be updated and deployed.
Comment 1 Antoine "hashar" Musso (WMF) 2012-07-17 20:57:38 UTC
https://rt.wikimedia.org/Ticket/Display.html?id=3284
Comment 2 Jan Gerber 2012-07-18 18:20:59 UTC
for jobs-loop.sh to work for transcoding, the hardcoded maxtime of 300 needs to be an option too.
Comment 3 Jan Gerber 2012-07-18 19:05:54 UTC
https://gerrit.wikimedia.org/r/#/c/15954/ makes jobs and maxtime
optional options that can be passed to jobs-loop.sh

video encoding nodes would have

JR_TYPE="-j webVideoTranscode -t 14400"

in  /etc/default/mw-job-runner

(Possibly JR_TYPE should be renamed to JR_ARGS in https://gerrit.wikimedia.org/r/#/c/11610/)
Comment 4 Antoine "hashar" Musso (WMF) 2012-07-18 20:26:54 UTC
Another JR_ can be added to operations/debs/wikimedia-job-runner.git 

Example:
https://gerrit.wikimedia.org/r/#/c/11610/

Then would need ops to update the package on apt.wikimedia.org.

Would be great to have JR_TIMEOUT.  We would then be able to generate or override /etc/default/mw-job-runner using puppet.
Comment 5 Jan Gerber 2012-07-18 21:08:37 UTC
without renaming JS_TYPES to JS_ARGS you can already just use puppet to set
JR_TYPE="-j webVideoTranscode -t 14400"

no need to have a new variable for each option, having one variable JR_ARGS to hold all arguments that are passed to the script seams more future proof. that way adding new arguments to the script does not require a new deb package.

a grep for _ARGS / _OPTS in /etc/defaults also suggest that this is a common pattern for ubuntu packages.
Comment 6 Antoine "hashar" Musso (WMF) 2012-07-20 20:32:57 UTC
https://gerrit.wikimedia.org/r/#/c/11610/ has not been merged in nor the package has been rebuild yet. So you could amend that change and add both JR_TIMEOUT and JR_EXTRA_ARGS arguments to it.  That would do it.
Comment 7 Jan Gerber 2012-07-20 21:01:53 UTC
sounds reasonable pushed a change to https://gerrit.wikimedia.org/r/#/c/11610/ please review.
Comment 8 Antoine "hashar" Musso (WMF) 2012-07-23 21:34:40 UTC
Following a discussion with Faidon and Mark on 23rd, we will probably move that Debian package to puppet and bring the loop shell script from WikimediaMaintenance with it. That would add consistency and let us write some nice puppet class to set up job workers.
Comment 9 Jan Gerber 2012-07-24 13:15:58 UTC
https://gerrit.wikimedia.org/r/#/c/16501/
adds the job-runner files to puppet
Comment 10 Antoine "hashar" Musso (WMF) 2012-08-28 07:56:18 UTC
That is merged in and migrated to puppet.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links