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

worldping can get stuck in busy loop and max out cpu #62

Open
Dieterbe opened this issue Sep 20, 2016 · 0 comments
Open

worldping can get stuck in busy loop and max out cpu #62

Dieterbe opened this issue Sep 20, 2016 · 0 comments

Comments

@Dieterbe
Copy link
Contributor

Dieterbe commented Sep 20, 2016

in raintank-docker i accidentially triggered max cpu usage in worldping.
it was flooding the log with messages like:

2016/09/20 14:46:27 [pubsub.go:121 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:114 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:121 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:114 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:121 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:114 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:121 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:114 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:121 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:114 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:121 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:114 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:121 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:114 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:121 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:114 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:121 publish()] [E] nack message 0, body: ""
2016/09/20 14:46:27 [pubsub.go:114 publish()] [E] nack message 0, body: ""

I see ./pkg/alerting/jobqueue/pubsub.go and in ./pkg/events/pubsub.go are pretty similar.
perhaps the problem is the loop that reads from pending but also writes into pending can get stuck looping. and/or something with the confirm channel.

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