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(clustering) do not register events multiple times #9082

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

bungle
Copy link
Member

@bungle bungle commented Jul 11, 2022

Summary

This reduces double event handling and event publishing on clustering.

On further PRs we can reduce double exporting, json decoding, calculate hashing etc. that are common between wrpc control plane and json control plane, but here I just fixed the double event handling.

### Summary

This reduces double event handling and event publishing on clustering.

On further PRs we can reduce double exporting, json decoding, calculate hashing
etc. that are common between wrpc control plane and json control plane, but here
I just fixed the double event handling.
@@ -22,6 +24,37 @@ local ngx_WARN = ngx.WARN
local _log_prefix = "[clustering] "


-- Sends "clustering", "push_config" to all workers in the same node, including self
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we put those config sync related codes into a separate file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be done on following refactoring PR.

@bungle bungle merged commit 8b6346f into master Jul 12, 2022
@bungle bungle deleted the fix/clustering-double-event-handling branch July 12, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants