-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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(core) do not register event handlers on control planes #8452
Conversation
5d17f7c
to
f67c6c5
Compare
Just one question. If we skip the worker events registration in CP, will it cause the necessary cluster events to not be generated between CPs running in a cluster? e.g. if there are 2 CPs running inside the same cluster, will this cause the other CP (the one not receiving the Admin API call) to miss the event and not push out new configs to it's DP? |
f67c6c5
to
1c061e8
Compare
It does not. That's the test I adjusted. You see we have test for this. |
### Summary Control planes only enable Admin API and Admin API does not use cache, nor does it need to build router or plugins iterator based on events.
1c061e8
to
09204a8
Compare
🚀 Performance test resultTest Suite: 01-rps 02-flamegraph (baseline,single_route,simple) Click to expand
|
Do not reigister unnecessary event handlers on Hybrid mode Control Plane nodes
Do not register unnecessary event handlers on Hybrid mode Control Plane nodes Co-authored-by: Enrique García Cota <[email protected]>
Summary
Control planes only enable Admin API and Admin API does not use cache,
nor does it need to build router or plugins iterator based on events.