Skip to content

Reindex is too slow in repos with thousands of charts #336

Description

@drewwells

We have 150k charts, 2.3gb size bucket, and a 40MB index file. I ran reindex in a k8s pod inside aws and it took a week to complete. I can suggest a few optimizations just from looking at the code.

Reindex is downloading each chart as it iterates through the index. Instead sync the entire s3 bucket locally then process or perhaps trusting the old index and only download objects that are missing from the index.
Optimize or expose client configuration options see https://stackoverflow.com/a/48114553

It takes me 5mins to download all the objects with the above optimizations. I'd guess it would take hours with default settings

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions