Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU usage seems off #34

Open
savikko opened this issue Sep 25, 2024 · 10 comments
Open

CPU usage seems off #34

savikko opened this issue Sep 25, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@savikko
Copy link

savikko commented Sep 25, 2024

Hi!

Starting the container, it connects successfully to supabase instance but it seems that CPU usage is not telling what it should tell:

kuva

So it seems to spike to 100% but that does not really happen, comparing to load:
kuva

Also, sometimes "basic cpu" goes to minus something:
kuva

@savikko savikko added the bug Something isn't working label Sep 25, 2024
@riderx
Copy link
Contributor

riderx commented Nov 5, 2024

It's not at 100% it's idle, the problem is before on previous version the value where constant and not missing some point as you can see there is some 0 point

@begank
Copy link

begank commented Jan 14, 2025

It's not at 100% it's idle, the problem is before on previous version the value where constant and not missing some point as you can see there is some 0 point

@riderx I Got the same problem (sometimes "basic cpu" goes to minus something),can you tell me how to resolve it? thank you so much

@riderx
Copy link
Contributor

riderx commented Jan 14, 2025

I don’t have a way to resolve it yet, but maybe i can ask on X

@pcnc
Copy link
Member

pcnc commented Feb 11, 2025

Hi folks - just want to confirm some data points.

Is this running on Fly.io, or a dockerized setup? We have a theory that network latency might play a role in the discrepancies which are displayed - does reducing the scrape config to 45s down from 60s alleviate this?

@riderx
Copy link
Contributor

riderx commented Feb 12, 2025

@pcnc i changed it and did fly deploy and no better, updated at 13:04

Image

honestly i'm not sure the config was update properly, i just don't want to loose all past data by deleting all
Image

@riderx
Copy link
Contributor

riderx commented Feb 12, 2025

Image
After a while i realized it did improve a bit, now the chart almost not stay at 0

@pcnc
Copy link
Member

pcnc commented Feb 12, 2025

I see, thank you!
We've managed to reproduce the behaviour and are actively looking into this

@encima
Copy link
Member

encima commented Feb 13, 2025

Note that this does not happen when self-hosting/using via docker. I self host grafana and prometheus. Using the default dashboard, the metrics look good when querying with a 60s refresh:

Image

@riderx
Copy link
Contributor

riderx commented Feb 13, 2025

Also it was not happening in FLY.io last year, then with one update this started to happen

@encima
Copy link
Member

encima commented Feb 27, 2025

This could also be scraping options configured to scrape more often. Docs on the Supabase site have been updated, as well as the README in this repo.
Let us know if it is still causing issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants