-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
Too many watch update events for endpoints object #41635
Comments
Those two endpoints specifically are used as shared lock objects by controllers. Agree that's a bad object to use because so many things watch them for updating iptables, etc |
dupe of #34627 |
concaf
added a commit
to concaf/teleproxy
that referenced
this issue
Feb 26, 2019
kube-scheduler and kube-controller-manager endpoints are updated almost every second, leading to terrible noise, and hence constant listener invokation. So, here we ignore endpoint updates from kube-system namespace. More: kubernetes/kubernetes#41635 kubernetes/kubernetes#34627
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Kubernetes version (use
kubectl version
): HEAD (latest)Environment: dind
What happened:
Enpoints object is constantly getting updated every 2 seconds, even though nothing has changed in the object. It will produce lot of traffic on any informer watching on endpoints. An update event is produced every 2 second per endpoint.
What you expected to happen:
Endpoints(any object) should be updated only when there is change in either spec or status.
How to reproduce it (as minimally and precisely as possible):
Just watch on endpoints
Also see the logs from federation controller manager, which is watching on endpoints updates from federated cluster
Anything else we need to know:
Looking at the endpoints controller code https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/endpoint/endpoints_controller.go#L433
. it looks like reflect.DeepEqual is not working for endpoints labels and Subsets (may be need sorting, just a guess).
I also see another issue raised by @justinsb some time back #37151, related but slightly different.
I think this is a bug and if fixed will reduce lot of traffic to etcd.
The text was updated successfully, but these errors were encountered: