gimlet-io / capacitor

A general purpose UI for FluxCD.
Apache License 2.0
476 stars 13 forks source link

Huge memory footprint #71

Open jgkirschbaum opened 3 months ago

jgkirschbaum commented 3 months ago

Thank you for this great product.

We tested capacitor on one of our k8s clusters and figured out, that capacitor uses a lot of memory. Our cluster has regarding to flux the following basic data:

We are using capacitor v0.3.2 with flux v2.2.3 and kubernetes v1.27.5

Grafana gives us the following memory related graph:

memory

The first and the last peak are single reload requests on the ui, the middle part are 3-times 3 parallel reload requests.

Normal behavior or bug?

laszlocph commented 3 months ago

We can certainly do better (https://github.com/gimlet-io/capacitor/issues/18) These numbers are not wanted for sure.

laszlocph commented 3 months ago

Measurement 1

image

Measurement 2

image

No conclusion yet. Slowness is an issue for these clusters. Next test: increase the number of helm charts and measure.

jgkirschbaum commented 3 months ago

Maybe it's the number of dependencies. We have a lot of dependencies between the helm releases.