sbd icon indicating copy to clipboard operation
sbd copied to clipboard

Fix 100% CPU usage when CMAP connection is lost

Open susnux opened this issue 3 years ago • 5 comments

When CMAP disconnects sbd results in 100% CPU usage.

This patch is currently used on SUSE, so upstreaming seem reasonable.

susnux avatar Jun 24 '21 10:06 susnux

Can one of the admins verify this patch?

knet-ci-bot avatar Jun 24 '21 10:06 knet-ci-bot

test this please

wenningerk avatar Jun 24 '21 11:06 wenningerk

I think this has been tracked with https://github.com/ClusterLabs/sbd/pull/80 . Of course it probably needs to be revisited when we get a chance ...

gao-yan avatar Jun 24 '21 12:06 gao-yan

Yep it is tracked there and was supposed to be solved together with corosync-graceful-shutdown detection/handling. At that time this wasn't easily possible but meanwhile corosync has added back an api that should allow easy detection of a graceful corosync shutdown. So this should be revisited asap. I'll take it on my list of urgent stuff ;-)

wenningerk avatar Jun 24 '21 12:06 wenningerk

But let me keep this open for now as the patch here is a bit more elaborate and takes care of how inquisitor should react. But as said without graceful-corosync-shutdown detection this is of limited use anyway.

wenningerk avatar Jun 24 '21 12:06 wenningerk