Closed Bug 1106429 Opened 10 years ago Closed 10 years ago

docker-worker: Refactor log support to handle multiple containers

Categories

(Taskcluster :: Workers, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jlal, Assigned: jlal)

Details

Attachments

(1 file)

Initially we only started one container per task now tasks can have at least 2 (and more soon once services land) currently we don't store logs of these tasks which means it is effectively impossible to debug them unless trying things out locally. A simple fix is to change the way we handle logs instead of a single stream we use a structure like this: task.logs = { 'task': { stream: stream, alias: 'live' } } Then the logging features will process all entries such as the above in log uploading.
Assignee: nobody → jlal
Status: NEW → ASSIGNED
Worth noting that using services is measurable amount of overhead 200ms-2000ms to start a service and 2s -> 10s to stop / upload logs (as measured so far on my local and very slow vm)
Comment on attachment 8530931 [details] [review] https://github.com/taskcluster/docker-worker/pull/62 Looks good but has changes made for the services PR included as well.
Attachment #8530931 - Flags: review?(garndt) → review+
Component: TaskCluster → Docker-Worker
Product: Testing → Taskcluster
No longer being worked on because "services" features were halted. Closing this for now until we decide if/when we want to handle multiple containers.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Component: Docker-Worker → Workers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: