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/sync): notify declarative:reconfigure events for full sync #13860

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

chobits
Copy link
Contributor

@chobits chobits commented Nov 12, 2024

Summary

With full sync (wipe = true in do_sync()), if we dont notify other workers with declarative:reconfigure, the registered callbacks in other workers will not be called, like updating kong.default_workerspace.

Note that when an empty-configured CP and DP start with incremental sync enabled, the DP will rebuild routers, plugins, and the balancer twice. This occurs because the DP currently calls do_sync() twice during a single sync operation. With incremental sync disabled, it rebuilds these components only once.

Checklist

  • The Pull Request has tests
  • A changelog file has been added to CHANGELOG/unreleased/kong or adding skip-changelog label on PR if unnecessary. README.md
  • The Pull Request has backports to all the versions it needs to cover
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix KAG-5812

@chobits chobits requested review from chronolaw, dndx, StarlightIbuki and bungle and removed request for chronolaw and dndx November 12, 2024 07:26
@github-actions github-actions bot added core/clustering cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Nov 12, 2024
@chobits chobits requested a review from dndx November 12, 2024 07:26
@chronolaw
Copy link
Contributor

Need a test case for this. we should create a ticket to track it.

@chobits
Copy link
Contributor Author

chobits commented Nov 12, 2024

Need a test case for this. we should create a ticket to track it.

https://konghq.atlassian.net/browse/KAG-5816

@chronolaw chronolaw changed the title fix(sync): notify declarative:reconfigure events for full sync fix(clustering/sync): notify declarative:reconfigure events for full sync Nov 13, 2024
@ADD-SP ADD-SP merged commit 945d333 into master Nov 13, 2024
38 checks passed
@ADD-SP ADD-SP deleted the fix/incr_sync_kag_5812 branch November 13, 2024 02:50
@team-gateway-bot
Copy link
Collaborator

Successfully created cherry-pick PR for master:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/clustering size/S skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants