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

Peer discovery: disable consul health check helper when registration is disabled (backport #13210) #13213

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Feb 6, 2025

Proposed Changes

This is a follow-up PR for #13201. In that PR a new configuration option was added: cluster_formation.registration.enabled.

For Consul, this does work during boot, but the rabbitmq_peer_discovery_consul_health_check_helper keep querying Consul periodically to see whether the node is healthy. If it is not, it will register the node even though the registration was disabled. Since the periodic health check has no other function than to register the node if unhealthy, the periodic check needs to be disabled when registration is disabled.

I have tested this PR with Consul and Nomad.

Types of Changes

  • Bug fix (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause an observable behavior change in existing systems)
  • Documentation improvements (corrections, new content, etc)
  • Cosmetic change (whitespace, formatting, etc)
  • Build system and/or CI

Checklist

@michaelklishin michaelklishin added this to the 4.0.6 milestone Feb 6, 2025
@michaelklishin michaelklishin merged commit 49eeb5e into v4.0.x Feb 6, 2025
7 of 10 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.0.x/pr-13210 branch February 6, 2025 18:58
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.

2 participants