Skip to content

feature: faster initial Pod log display #15881

@zregvart

Description

@zregvart

Currently the Pod logs are streamed from the top till the bottom of the log and then new log lines are streamed. This, especially on slower networks and for logs with large number of log lines can take a long time. Also, only the last 1000 lines of the log are shown in the log buffer.

When troubleshooting, most often I want to read the latest log lines, and follow the logs from there. To load the latest 1000 lines of logs and stream from there would help me get to the log lines I'm most interested in faster.

The getResourceLogURL function accepts tailLines parameter that could be set to 1000 instead of null for watchURL, which I think would load only the last 1000 lines and stream the logs from there.

Of course, this might not be the correct change, as it might be in the wrong place or affect other log views as well, so please take that into consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions