grafana/crossplane-provider-grafana

Super high CPU usage with many resources

patst opened this issue · 0 comments

patst commented

We use the provider to create Dashboards, Folders, etc.

What we observe is an incredible high amount of CPU usage.
We have around 100 - 400 different resources per cluster and the uses the cpu of a complete 8vCPU core node in our cluster the whole time. Changes to a single dashboard can take a long time until reconciled.

It feels connected to this: crossplane/upjet#116

We tried to configure the provider with --sync=24h but that did not change anything.

I would think it is related to the PollIntervall setting (

PollInterval: 1 * time.Minute,
).

The AWS provider allows a configuration of the interval (see https://github.com/upbound/provider-aws/pull/140/files ).

I would propose we make the interval configurable for this provider as well and try to provide a patch for that.