-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Informer extremely slow to learn about new events #2121
Comments
@lalithsuresh : to be honest, I didn't test @kolorful : Did you face any issue like this while trying out |
|
Hi @rohanKanojia , @kolorful, To measure this, I've enabled logging in the ReflectorWatcher class, and I'm also observing the rate at which the registered PodResourceEeventHandler is invoked. I've tried two approaches:
In both cases, the invoked handler immediately passes off the "Pod" instance to a threadpool with 10 threads to start my processing pipeline. I observe the number of currently active threads in that thread pool. With 1), events trickle in slowly as I mentioned, with an occupancy of 1 active thread almost all the time. With 2), I find that all 10 threads are constantly being exercised. |
Correction: I'm using v4.7.1 instead of v4.9.0. When using v4.9.0, sometimes it results in deleted objects lingering in the sharedinformer cache for an extended period of time, even hours. I'm not sure if it's correlated. Didn't have this issue with v4.7.1. This graph shows that right after upgrading to v4.9.0, the number of phantom pods the application finds spikes. @lalithsuresh are you using v4.9.0, have you tried v4.7.1? |
@kolorful Yes, I'm using 4.9.0. I'm also experiencing a bunch of issues with pod bindings not going through (Pod stays in pending), delayed calls etc. I'll downgrade to 4.7.1 and get back to you. Thanks! |
ah, I wonder #2022 introduced some kind of regression 😟 |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
Do we know if this is still an issue? |
I suspect not. The slow events trickling in my deployment may have had to do with the Deployment controller creating pods slowly. When I directly create a large number of pod objects, the informer was working just fine. I'll close this for now. |
I'm using a SharedIndexInformer to build a scheduler. I have a 500 node cluster, where I deploy a 1000 pods. I find that it takes roughly a minute for the informer to learn about every pod that was created, and worse, the information trickles in one pod at a time over the entire minute.
Is this normal? Am I missing some configuration? This is how I'm instantiating the informers:
The text was updated successfully, but these errors were encountered: