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

perf(clustering) conditional rebuilding of router, plugins iterator and balancer on dp (2.8) #8639

Merged
merged 1 commit into from Apr 5, 2022

Conversation

aboudreault
Copy link
Contributor

backport of #8519

Summary

Implements conditional rebuilding of router, plugins iterator and balancer on
data planes. This means that DPs will not rebuild router if there were no changes in
routes or services. Similarly, the plugins iterator will not be rebuild if there were
no changes to plugins, and finally balancer in not reinitialized if there are no
changes to upstreams or targets.

…nd balancer on dp (#8519)

### Summary

Implements conditional rebuilding of `router`, `plugins iterator` and `balancer` on
data planes. This means that DPs will not rebuild router if there were no changes in
routes or services. Similarly, the plugins iterator will not be rebuild if there were
no changes to plugins, and finally balancer in not reinitialized if there are no
changes to upstreams or targets.
@aboudreault aboudreault merged commit dc59bf2 into release/2.8.x Apr 5, 2022
@aboudreault aboudreault deleted the perf/dp-hashes branch April 5, 2022 21:50
@zffocussss
Copy link

Hi,if one target is updated,post a new target,then delete a old target,the whole upstreams and routes will be put.is it that expected behavior in kong?

locao pushed a commit that referenced this pull request Apr 24, 2024
… event_hooks in hybrid mode (#8639)

In hybrid mode, the privileged process of dp checks the enent_hooks as soon as it gets them from cp, but it fails to do so because the privileged process does not execute the init_worker phase of the plugin to register the event_hooks.

This fix avoids this problem by moving the event_hooks validation at the emit of event_hooks.

FTI-5712
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.

None yet

4 participants