Closed
Bug 1363414
Opened 7 years ago
Closed 7 years ago
Update taskcluster-worker config to use watchdog, etc.
Categories
(Infrastructure & Operations :: RelOps: Puppet, task)
Infrastructure & Operations
RelOps: Puppet
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: dustin)
Details
Attachments
(1 file)
from bug 1359209: As for config see: https://docs.taskcluster.net/reference/workers/taskcluster-worker/docs/configur ation plugins: watchdog: {} # this is sane (if any step takes more than 30 min we shutdown; # except the running step which is limited by maxruntime) maxruntime: maxRunTime: '3 hours' # tasks can never take more than 3 hours perTaskLimit: allow # tasks may specify 'task.payload.maxRunTime' less than 3 hours, if not it defaults to 3 hours logprefix: # new plugin just landed on master, will prefix task log with taskId: ..., runId: ... hostname: {env: 'HOSTNAME'} # will prefix all tasks logs with: "hostname: $HOSTNAME" machineType: 'mac-mini-g4' # this is just free-form metadata to be inserted at the beginning of task logs # you can add more here, maybe there is something neat from puppet like machine name, etc that would be nice to have
Assignee | ||
Comment 1•7 years ago
|
||
logprefix is cool, but watchdog doesn't work yet - https://github.com/taskcluster/taskcluster-worker/issues/271
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•7 years ago
|
||
I'm figuring you're holding off on review here until watchdog is fixed -- which it is now? If so, let me know what version it's fixed in, and I'll make a new patch to update to that version :)
Flags: needinfo?(jopsen)
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8865900 [details] Bug 1363414: add log prefixing; https://reviewboard.mozilla.org/r/137486/#review145664 ::: modules/taskcluster_worker/templates/taskcluster-worker.yml.erb:32 (Diff revision 1) > maxruntime: > maxRunTime: '96 hours' > perTaskLimit: allow > + # if any step takes more than 30 min we shutdown, except the running step > + # which is limited by maxruntime (doesn't work - https://github.com/taskcluster/taskcluster-worker/issues/271) > + # watchdog: {} Fixed, feel free to create a new release :) ::: modules/taskcluster_worker/templates/taskcluster-worker.yml.erb:35 (Diff revision 1) > + # if any step takes more than 30 min we shutdown, except the running step > + # which is limited by maxruntime (doesn't work - https://github.com/taskcluster/taskcluster-worker/issues/271) > + # watchdog: {} > + logprefix: > + hostname: <%= scope.lookupvar('::fqdn') %> > + workerType: <%= @taskcluster_worker_type %> Are you sure you don't want workerId instead?
Attachment #8865900 -
Flags: review?(jopsen) → review+
Comment 5•7 years ago
|
||
@dustin, super sorry, I got logged out of bugzilla and didn't notice the request... It all looks fine :)
Flags: needinfo?(jopsen)
Assignee | ||
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8865900 [details] Bug 1363414: add log prefixing; https://reviewboard.mozilla.org/r/137486/#review146142 ::: modules/taskcluster_worker/templates/taskcluster-worker.yml.erb:35 (Diff revision 1) > + # if any step takes more than 30 min we shutdown, except the running step > + # which is limited by maxruntime (doesn't work - https://github.com/taskcluster/taskcluster-worker/issues/271) > + # watchdog: {} > + logprefix: > + hostname: <%= scope.lookupvar('::fqdn') %> > + workerType: <%= @taskcluster_worker_type %> The workerId is a substring of the hostname in this case.
Assignee | ||
Comment 7•7 years ago
|
||
I bumped the version to 0.1.2 and un-outcommented the watchdog config, and landed it.
Assignee | ||
Comment 8•7 years ago
|
||
https://hg.mozilla.org/build/puppet/rev/008027f47da7314d25b3ab8369f49457a03b2d5d
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•