Project

General

Profile

Actions

Feature #20219

closed

Log panel on container view fetches live logs using periodic range request on new container log endpoint

Added by Peter Amstutz about 1 year ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench2
Target version:
Story points:
3.0
Release relationship:
Auto

Description

https://dev.arvados.org/projects/arvados/wiki/Efficient_live_access_to_container_logs

Stop getting things from the log table.

Get the list of files in the container log collection (via WebDAV):

/arvados/v1/containers/{uuid}/log

Then for the logs the user wants to view, get the data for the individual logs:

/arvados/v1/containers/{uuid}/log/{file}.txt

If the amount of data exceeds some limit (eg 128kb) then only fetch the first 64kb and last 64kb and include a message that some logs were omitted.

Periodically poll to see if the file sizes get bigger and request more data when it is available.


Subtasks 2 (0 open2 closed)

Task #20498: Review 20219-log-apiResolvedStephen Smith07/28/2023Actions
Task #20834: Review 20219-log-apiResolvedLucas Di Pentima07/28/2023Actions

Related issues

Related to Arvados Epics - Idea #16442: Scalable + reliable container loggingResolved03/15/202308/31/2023Actions
Related to Arvados - Bug #20036: Process view log component fetches process logs from Keep when the logs table logs have been purgedClosedActions
Blocked by Arvados - Feature #19889: access current container logs at /arvados/v1/containers/{uuid}/log/{filename}ResolvedTom Clegg03/23/2023Actions
Blocked by Arvados - Bug #20647: container_request/.../logs endpoint needs to handle CORS preflight (unauthenticated OPTIONS) requestsResolvedTom Clegg06/16/2023Actions
Actions

Also available in: Atom PDF