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

Tweaking the current_connections metric #4820

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

riverszhang89
Copy link
Contributor

This patch excludes connections owned by either sockpool or the in-process cache from the current_connections metric. This is one of the metrics that we use internally to monitor database capacity. Since it is very little overhead for libevent based network to maintain idle connections, it makes sense to exclude pooled connections from the metric.

Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding style check: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 9/587 tests failed ⚠.

The first 10 failing tests are:
sc_lotsoftables [setup failure]
sc_inserts [setup failure]
basic_rowset_generated [setup failure]
phys_rep_tiered_nosource_generated
analyze_exit_immediately
snap_ha_retry_newsi_generated
union_parallel
dbcreate
disttxn

This patch excludes connections owned by either sockpool or the in-process cache from
the current_connections metric. This is one of the metrics that we use internally to
monitor database capacity. Since it is very little overhead for libevent based network
to maintain idle connections, it makes sense to exclude pooled connections from the metric.

Signed-off-by: Rivers Zhang <hzhang320@bloomberg.net>
@riverszhang89
Copy link
Contributor Author

cdb2test   Nov  5 23:02:47 2024  in-comdb2db appsockcount.R20241105.16

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.

3 participants