-
Notifications
You must be signed in to change notification settings - Fork 65
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
Bug: Is there any risks that more than one NewPodTopologyCache
running in one Scheduler App?
#53
Comments
NewPodTopologyCache
running is one Scheduler App?NewPodTopologyCache
running in one Scheduler App?
The nearly same thing is putting the creating And for this case, not only 「same plugin appears in multi profiles」 will trigger this, once resource is used in other plugins will also trigger this. It could bring many memory pressure when all the same informers to list same one resource, which may trigger OOM. And there is chance that indexer inconsistency for one resource
|
In my opinion, Bring initialization of |
Which situation will create more than one noderesourcetopology plugin? |
Func
NewPodTopologyCache
responses to build a common cache for pluginNodeResourceTopologyMatch
, and it will be called in plugin's New func as following:Then, once plugin
NodeResourceTopologyMatch
appears inmulti profiles
for one scheduler app, then the plugin will be initialized many times, which means the upper funcNew
will be triggered more than once.Then, the most important thing is multi PodTopologyCache shows in one scheduler app. Is there any potential risks in this situation(e.g. data race)?
@Garrybest @qmhu PTAL, thanks
The text was updated successfully, but these errors were encountered: