supabase / supavisor

A cloud-native, multi-tenant Postgres connection pooler.
https://supabase.github.io/supavisor/
Apache License 2.0
1.73k stars 55 forks source link

ft: gather metrics with low priority #379

Closed hauleth closed 3 months ago

hauleth commented 3 months ago

What kind of change does this PR introduce?

Performance improvement.

What is the current behavior?

Metrics are gathered with normal priority. That can have performance impact on core of the application.

What is the new behavior?

Lower priority of the metrics gathering process to not interfere with core of the application. This may cause some irregularities in gathered metrics, but at the same time it should reduce performance fluctuations of Supabase core.