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

Fix cluster message routing for global zones #8473

Merged
merged 1 commit into from Nov 16, 2020

Conversation

julianbrost
Copy link
Contributor

RelayMessageOne used to relay the message only to one other endpoint for other zones, which is fine, as long as the target zone is a child/parent zone but breaks if the target zone is a global one. In this case, the message has to be forwarded within the local zone as well as to one node in each child zone.

The diff looks way worse than what got actually changed: instead of iterating over all endpoints combined from multiple zones, this now happens in nested loops for the zones and their endpoints and the relayed/log_needed/log_done logic is done separately for each zone.

backport of #8440 for support/2.11

RelayMessageOne used to relay the message only to one other endpoint for
other zones, which is fine, as long as the target zone is a child/parent
zone but breaks if the target zone is a global one. In this case, the
message has to be forwarded within the local zone as well as to one node
in each child zone.
@icinga-probot icinga-probot bot added this to the 2.11.7 milestone Nov 12, 2020
@icinga-probot icinga-probot bot added area/api REST API area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working ref/NC labels Nov 12, 2020
@N-o-X N-o-X merged commit cd819e3 into support/2.11 Nov 16, 2020
@icinga-probot icinga-probot bot deleted the bugfix/message-routing-for-global-zones-2.11 branch November 16, 2020 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api REST API area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working ref/NC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants