Mittens should ingest from a file not args

Open
#360 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go, kubernetes

Research direction

Start with cmd/flags/target.go and trace how target data is currently passed through command arguments. Check how Viper could support file input while retaining the existing argument path. Done means large target data can be read from a file, both input modes are supported, and Kubernetes pod arguments no longer carry the full payload.

Written by the indexing model from the issue text.

Description

enhancement

Describe the feature
When running in kubernetes at scale, mittens makes the pod objects gigantic. This causes k8s clusters to fail/timeout/delay actions at high scale.

Here is one example of a use-case and how much data flows thru all cluster operators + api server itself.

kubectl -n my-namespace mypod -o yaml | yq .spec.containers[].args |wc -c
  133100

Even when not degrading clusters, this leads to high cpu use and in some cases memory use on operators adding cost to operating.

It looks like this: https://github.com/ExpediaGroup/mittens/blob/6446db67687f426805bd178db7b326c39d500116/cmd/flags/target.go#L47 could be dropped in favor of viper and allow both.

Rational

To keep clusters stable when running at high scale with a lot of churn.

Example Scenario

If it applies, use cases where the feature be used.

Dominant language
Go
Stars
66
Forks
28
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from ExpediaGroup/mittens

All issues in ExpediaGroup/mittens

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.