java icon indicating copy to clipboard operation
java copied to clipboard

How many connections will cost when watching several resources?

Open fredalxin opened this issue 6 years ago • 2 comments

It seems like kubernetes-client use websocket for watch/informer. When i watch several resources,i will cost several connections.Is it right? client-go use http2 ,so is it always cost single connection?

fredalxin avatar Apr 26 '20 12:04 fredalxin

Yes, kubernetes uses one connection per watch. Watch actually doesn't happen over web sockets, it is a pure hanging GET.

brendandburns avatar Apr 28 '20 02:04 brendandburns

Closing as the question is answered. Please use the /reopen command if you need to reopen this issue for any reason.

brendandburns avatar Apr 28 '20 02:04 brendandburns