-
Notifications
You must be signed in to change notification settings - Fork 900
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
search always watch terminal #5946
Comments
Hi @niuyueyang1996 Is the watch request terminated early? Have you understood why the problem occurred in your analysis? I'm sorry I didn't understand it. |
when i watch some resource without resourceVersion. k8s.io/apiserver/pkg/storage/cacher/cacher.go will send all event to watcher
c.process will consumer c.input. this func will send event to watcher from child cluster event.then the watcher input only have producer,will blocked.
watcher.add will have 100ms timer. |
What happened:
when is use
https://xxxxxx:7559/apis/search.karmada.io/v1alpha1/proxying/karmada/proxy/api/v1/pods?timeoutSeconds=10000&watch=true
watcher will terminal
we have 100000 pods
i see kubernetes/kubernetes#13969
this param will return all pods event
(c *cacheWatcher) processInterval will exec process func when initEvents send to result success,but is took 5s-6s.
if process func not be exec,watcher input chan will not have comsumer.
then watcher will be blockedWatcher,when etcd have changed
the func watcher.add(event, timer) will timeout and kill my watcher.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: