Skip to content
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

issue with update_empty stat on clusters #4241

Closed
ramaraochavali opened this issue Aug 24, 2018 · 2 comments
Closed

issue with update_empty stat on clusters #4241

ramaraochavali opened this issue Aug 24, 2018 · 2 comments
Assignees
Labels
question Questions that are neither investigations, bugs, nor enhancements

Comments

@ramaraochavali
Copy link
Contributor

Let us say we have 5 EDS clusters registered with Envoy. When an Endpoint for a particular cluster (cluster_1) changed, if a management server sends EDS update with resource list as (cluster_1), Envoy updates it stats correctly but it also increments update_empty stat for rest of the clusters.
It is because it fires an empty config update at this line
https://github.com/envoyproxy/envoy/blob/master/source/common/config/grpc_mux_impl.cc#L218
Is this intentional behaviour? If it is intentional, I think it is pretty confusing to update other clusters stats indicating that empty update has come where as the intention of management server is not that.

@lizan lizan added the question Questions that are neither investigations, bugs, nor enhancements label Aug 26, 2018
@htuch
Copy link
Member

htuch commented Aug 27, 2018

@ramaraochavali yeah, this behavior is a bit confusing. GrpcMuxImpl treats both CDS and EDS the same, where CDS subscribes with a single watch and EDS with many watches, one per cluster. You want this empty behavior for CDS but not EDS.

I'd consider this a bug, are you interested in taking a look at fixing? It should only be fixed for RDS/EDS, LDS/CDS should maintain their existing behaviors (there really are two classes of xDS effectively).

@ramaraochavali
Copy link
Contributor Author

Yes. I have a working fix for it. I will push a PR

htuch pushed a commit that referenced this issue Aug 29, 2018
Fixes incorrect increment of update_empty stat for EDS when resource list contain does contain a particular cluster
Risk Level: Low
Testing: Automated tests
Docs Changes: N/A
Release Notes: N/A
Fixes #4241

Signed-off-by: Rama <rama.rao@salesforce.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions that are neither investigations, bugs, nor enhancements
Projects
None yet
Development

No branches or pull requests

3 participants