-
Notifications
You must be signed in to change notification settings - Fork 545
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
Multiple informers for the same resource(NodeResourceTopologies) may be serving at the same time #656
Comments
This is a rough implementation to better state the solution. #657 @Huang-Wei PTAL, thanks. |
Yes, the issue is generic for plugins that are registered in multiple profiles but want to instantiate particular informers once in New(). |
Thank you for your speedy reply! It's always a pleasure to ask you questions. |
PR #655 will fix this. details: |
/close |
@NoicFank: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Area
Other components
No response
What happened?
Why could this happen?
Once we configure plugin
NodeResourceTopologyMatch
in multi profiles(must more than one), then informers about NodeResourceTopologies may start multi times with different ShardInformerFactory.Since informer about NodeResourceTopologies is created within this plugin's func New() here as following:
And, informer about NodeResourceTopologies created from the
brandNew Factory
within funcinitNodeTopologyInformer
here, as following:Then, When we create scheduler profile one bye one, The func
New()
would be called many times, since plugin NodeResourceTopologyMatch exists in multiple profiles. Then multiple informers about NodeResourceTopologies will be produced.What are the negative effects?
What did you expect to happen?
How to prevent it?
Creating NewSharedInformerFactory When we create Scheduler instead of creating plugins. And we pass the created Informers about CRD from NewSharedInformerFactory to those needed plugins while it started.
How can we reproduce it (as minimally and precisely as possible)?
No response
Anything else we need to know?
@Huang-Wei Please see if this issue makes sense, thanks.
Kubernetes version
Scheduler Plugins version
The text was updated successfully, but these errors were encountered: