hot restart: send used stats only during hot restart#9121
hot restart: send used stats only during hot restart#9121mattklein123 merged 7 commits intoenvoyproxy:masterfrom
Conversation
…tats Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
|
@ramaraochavali thanks, this LGTM, but is this fixing a bug or is this just a perf improvement? /wait-any |
|
It originated as a bug - We are trying to look the cluster usage from stats i.e. whether a cluster has requests from another service (background : we want to filter unused cluster stats (by looking at stats of type |
|
@ramaraochavali the output was still 0, it just counted as "used." Is that right? |
|
@mattklein123 Yes. That is correct. We are checking for existence of the stats "upstream_rq_", "upstream_cx" - not the values actually. If a cluster is not used, we do not see any of those stats. |
For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description: During hot restart, when copying parent stats, we are not checking if stat is used or not. As a result of this, the gauges of type ACCUMULATED, are copied with zero values even though they are not used on the parent Envoy. Following are some of the example stats
Risk Level: low
Testing: Added
Docs Changes: N/A
Release Notes: N/A