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

CA-395789: Add polling to cluster health state update #5871

Merged

Conversation

Vincent-lau
Copy link
Contributor

It was observed that the corosync-notifyd might send a notification when the data shown in corosync-quorumtool has not been updated. This causes xapi-clusterd to return the out-of-date cluster information to xapi. Xapi will not have a chance of updating these states again until there is a further change in the cluster (which may not happen for a long time).

Now add polling in xapi to update the cluster info every 5 minutes, making sure that in the worst case, we still get up-to-date information after a 5-minute delay.

ocaml/xapi/xapi_clustering.ml Outdated Show resolved Hide resolved
ocaml/xapi/xapi_clustering.ml Outdated Show resolved Hide resolved
It was observed that the corosync-notifyd might send a notification when
the data shown in corosync-quorumtool has not been updated. This causes
xapi-clusterd to return the out-of-date cluster information to xapi.
Xapi will not have a chance of updating these states again until there
is a further change in the cluster (which may not happen for a long
time).

Now add polling in xapi to update the cluster info every 5 minutes,
making sure that in the worst case, we still get up-to-date information
after a 5-minute delay.

Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
ocaml/xapi/xapi_clustering.ml Outdated Show resolved Hide resolved
@Vincent-lau Vincent-lau force-pushed the private/shul2/health-poll branch 2 times, most recently from 0debc2c to 58a1420 Compare August 2, 2024 11:02
Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
@Vincent-lau Vincent-lau merged commit 195f932 into xapi-project:master Aug 2, 2024
15 checks passed
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

Successfully merging this pull request may close these issues.

4 participants