-
Notifications
You must be signed in to change notification settings - Fork 168
Watch gets dropped quite frequently for v1/services #352
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
Comments
Poke... We see this with some resources but not others. It's bizzare. Seems to be consistent with CRDs and v1/services |
I've noticed on https://github.com/Stono/kubeclient/blob/master/lib/kubeclient/watch_stream.rb#L25 when this happens, the chunk is empty, so it's like we're receiving a nil body (perhaps some sort of keep alive?) |
sounds like duplicate of #273. (see there and #275 for some discussion how to re-connect from last seen resourceVersion. not yet implemented in kubeclient itself. your "stopped, will restart from offset NNNN" log suggests you already implemented that?) The empty |
Hey, thanks for this. |
try adding logging for each received chunk, at least timestamp & the size of the chunk. it will let you confirm or refute:
|
There is exactly one chunk of length 0 before the body.read.each exits |
I'm not sure, it feels so odd.... check these logs which output all events: You can see I set up watchers for:
You can see the CRDs are the ones that drop more frequently, it doesn't seem to be anything to do with a rate of activity (because /apis/extensions/v1beta1/ingresses also doesn't have any activity, but doesn't drop)
|
Yeah, somewhat strange. https://github.com/kubernetes/apiserver/blob/2603dd2bc0e2/pkg/server/config.go#L157-L159
controlled by closing, let's continue on #273. |
Hey,
Noticing some really odd behaviour when watching services.
As you can see in this log, i'm watching three apis, nodes, ingresses and services. Services gets dropped really frequently and requires reconnection. When i say dropped, i mean the
watcher.each do |notice|
block returns and i have to reconnect the watch.No errors or anything as far as I can see?
Any ideas?
The text was updated successfully, but these errors were encountered: