tilt-dev / tilt-dev/tilt

rate-limited pod log stream

Open
#4,770 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
10.1k
Forks
413
Avg merge
1d 10h
Merged PRs (30d)
6

Description

Describe the Feature You Want

There should be a way to set a rate limit on PodLogStream.

e.g., if you get more than, X bytes per second or more than X lines per second, PodLogStream backs off

Current Behavior

If you're trying to develop a very chatty container, PodLogStream will try to live-stream all your logs from the APIServer, and send them down to the Tilt UI.

Why Do You Want This?

At some thresholds, this could not only overload the Tilt UI. it could also overload the apiserver and Docker log streamer.

In infra tooling in general (e.g., CI), it's pretty common to put limits on the amount of logs stored. But I've seen many different UI solutions for solving the problem:

  • Stream all the logs but do backoff, so we only stream them in chunks of every 15s
  • Add a notice that we've truncated the logs, and a link to how to get them from the command-line
  • Add a notice that we've stopped fetching logs, and a button to start streaming them again

Additional context
Related issues:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the PodLogStream entry point and tracing how logs move from the Kubernetes APIServer to the Tilt UI. Review the related issues 3814, 4579, 4220, and 3916, then clarify which rate-limit behavior and user-facing outcome should define done.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
backend, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.