Skip to content

Commit

Permalink
Include a full log of stats memory changes, and employ exact comparis…
Browse files Browse the repository at this point in the history
…ons. (#6688)

Per @ambuc's comment on #6161 I think it would be better to keep a log of the memory consumed by stats, and also use exact comparisons. That way we can get historical perspective into the relative impact of adding new stats or families of stats.

Risk Level: low, but could cause more changes to this one test.
Testing: just this one test.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Joshua Marantz <[email protected]>
  • Loading branch information
jmarantz authored and htuch committed Apr 24, 2019
1 parent 3f09359 commit b08cf35
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/integration/stats_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,22 @@ TEST_P(ClusterMemoryTestRunner, MemoryLargeClusterSizeWithStats) {

EXPECT_LT(start_mem, m1);
EXPECT_LT(start_mem, m1001);
// As of 2019/04/12, m_per_cluster = 59576 (libstdc++)
EXPECT_LT(m_per_cluster, 59600);

// Note: if you are increasing this golden value because you are adding a
// stat, please confirm that this will be generally useful to most Envoy
// users. Otherwise you are adding to the per-cluster memory overhead, which
// will be significant for Envoy installations that are massively
// multi-tenant.
//
// History of golden values:
//
// Date PR Bytes Per Cluster Notes
// ---------- ----- ----------------- -----
// 2019/03/20 6329 59015 Initial version
// 2019/04/12 6477 59576 Implementing Endpoint lease...
// 2019/04/23 6659 59512 Reintroduce dispatcher stats...

EXPECT_EQ(m_per_cluster, 59512);
}

} // namespace
Expand Down

0 comments on commit b08cf35

Please sign in to comment.