Skip to content

Helm ls performance degradation with many releases  #4821

Closed

Description

@Stono

Hey folks,
We're using helm quite extensively and some operations (primarily helm ls) are really starting to grind now.

GKE 1.10.7, helm 2.10.

With 122 releases, the ls takes around 15 seconds. We plan to be floating around the 500 mark on this particular cluster.

❯ time helm ls | wc -l
     122
helm ls  0.32s user 0.25s system 3% cpu 14.760 total
wc -l  0.00s user 0.00s system 0% cpu 14.759 total

Looking at the resource use, doesn't seem to be a CPU thing... so guessing it's just making a hell of a lot of calls to the kubernetes API.

screen shot 2018-10-22 at 19 55 17

Just wondering if I should be worrying about using this at scale? Are there any notable improvements in 2.11?

Activity

  1. bacongobbler commented on Oct 22, 2018

    @bacongobbler
    Member

    I don't think any patches were merged that changed how helm ls works internally. A check to confirm would never hurt.

    Are you able to identify what API calls are being made between Tiller and the Kubernetes API? That way it'd be easier to identify where we'd need to make changes.

  2. bacongobbler commented on Oct 22, 2018

    @bacongobbler
    Member

    another related issue is #4543, though I don't think anyone from the community has identified the root problem either.

  3. mortent commented on Oct 23, 2018

    @mortent

    @Stono Can you check how many ConfigMaps you actually have in etcd that belongs to Helm? This command should give you the count:

    kubectl -n kube-system get cm --no-headers -l OWNER=TILLER | wc -l
    

    Based on just a quick look at the code, it seems like pretty much all filtering, including the size limit, is enforced in Tiller and not in the ApiServer/etcd. So you could potentially be pulling in a large number of ConfigMaps from the ApiServer.

  4. added
    bug
    on Oct 23, 2018
  5. whereisaaron commented on Feb 13, 2019

    @whereisaaron
    Contributor

    We are seeing performance degradation over time on older clusters. Every execution of helm upgrade or helm list is churning the API servers and causes 1-2 GB additional RAM use. Chaining command just keeps allocating more RAM. Waiting a decent period of time allows some RAM to be released.

    This command a one cluster took a while and there are 3.5k ConfigMaps. Each is 1MB max, so up to 3.5GB data. The most frequently deployed application has >1000 revisions.

    $ kubectl -n kube-system get cm --no-headers -l OWNER=TILLER | wc -l
    3417
    

    How can we prune ConfigMaps for older revisions of deployments with out deleting deployed, in-production applications?

  6. bacongobbler commented on Feb 13, 2019

    @bacongobbler
    Member

    closing as a duplicate of #4543. Let's keep the discussion in the same ticket as they seem to be both pointing at the same issue @mortent is alluding to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions