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

Add a new STAT ENABLE/DISABLE feature to skip collecting per-source data #92

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

adamncasey
Copy link
Contributor

From looking at perf data, and also our internal timeseries usage, per-source metric data
is expensive to collect, store, and we rarely look at it.

Sometimes it might be useful to collect this, for example when there are few distinct sources,
but I suspect we'll disable these nearly all the time going forward.

This is slightly different from the existing filter feature because
enabling/disabling these applies to all stats output functions. The
filters also don't actually change what is internally collected - i.e.
the work for per-source metrics still shows up in perf with a filter
applied

Disabling these stats make a slight different to perf report - a 30 second sample of amqpprox with 5000 connections shows
Bloomberg::amqpprox::StatCollector::collect taking ~8% of samples instead of 10%. Several string allocation/free functions also drop further down the perf report.

From looking at perf data, and also our internal timeseries usage, per-source metric data
is expensive to collect, store, and we rarely look at it.

Sometimes it might be useful to collect this, for example when there are few distinct sources,
but I suspect we'll disable these nearly all the time going forward.

This is slightly different from the existing filter feature because
enabling/disabling these applies to all stats output functions. The
filters also don't actually change what is internally collected - i.e.
the work for per-source metrics still shows up in perf with a filter
applied
@adamncasey adamncasey merged commit 620af8b into bloomberg:main Jul 25, 2022
@adamncasey adamncasey deleted the disablesourcestats branch July 25, 2022 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants