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

[QUESTION]: <Title>Urgent Technical Inquiry: CPU Usage Spike with Badger v4.4.0 #2129

Open
charlie103 opened this issue Nov 25, 2024 · 1 comment
Labels
kind/question Something requiring a response

Comments

@charlie103
Copy link

Question.

I am currently using the Badger database library version v4.4.0 for a project developed in Go, and I have encountered a significant issue regarding CPU usage that urgently requires your assistance and expertise.

In our application, all stored data is set to expire after 45 minutes. However, we have observed that every 30 minutes, the CPU usage spikes to more than double its normal rate. This phenomenon occurs regularly and each spike severely impacts the performance of our system.

We suspect that this issue may be related to how Badger handles expired data, but we have yet to pinpoint the exact cause or find a solution. We have attempted to consult the available documentation and community discussions, but have not found similar cases or clear guidance on how to resolve this issue.

Given this, we are in dire need of your professional advice and assistance to diagnose and address this problem. If possible, we would appreciate insights on:

Could Badger's mechanism for handling expired data potentially cause such spikes in CPU usage?
Are there recommended configurations or optimization strategies that could help mitigate or prevent these CPU usage spikes?
Have other users reported similar issues, and how were they resolved?
We look forward to your prompt response and hope to resolve this technical challenge as soon as possible. Thank you for your time and assistance!

@charlie103 charlie103 added the kind/question Something requiring a response label Nov 25, 2024
@harshil-goel
Copy link
Contributor

Could you try to take a CPU profile while you think the CPU spikes? Normally we have seen CPU spike when compaction is happening which is normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Something requiring a response
Development

No branches or pull requests

2 participants