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!