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

smokeping.fcgi dies if an RRD cannot be locked #426

Open
themsley-voiceflex opened this issue Dec 18, 2024 · 0 comments
Open

smokeping.fcgi dies if an RRD cannot be locked #426

themsley-voiceflex opened this issue Dec 18, 2024 · 0 comments

Comments

@themsley-voiceflex
Copy link

If an RRD cannot be locked for RRD::info or RRD::fetch then the fcgid process dies with a 500 error and has to be respawned. The following patch changes the code to retry the info/fetch up to 20 times at 0.2s intervals (total 4s) to avoid an expensive respawn. This may not be the correct place to add this retry, it might be better in the RRD::info itself but it works and stops smokeping using 800% cpu!

smokeping-2.8.2-locking-retry.PATCH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant