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

pgwire: add counter metric to track number of incoming connections #35547

Merged
merged 1 commit into from
May 24, 2019

Conversation

ajwerner
Copy link
Contributor

@ajwerner ajwerner commented Mar 8, 2019

When clusters experience problems they can sometimes receive floods of new sql
connections. We currently don't have visibility in to the rate of new
connections. This metric can help understand whether traffic for things like
internal-get-hashed-pwd is due to faulty logic in that component or to
legitimate load due to an increase in connections.

Release note: None

When clusters experience problems they can sometimes receive floods of new sql
connections. We currently don't have visibility in to the rate of new
connections. This metric can help understand whether traffic for things like
internal-get-hashed-pwd is due to faulty logic in that component or to
legitimate load due to an increase in connections.

Release note: None
@ajwerner ajwerner requested a review from a team March 8, 2019 16:10
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

Nice, this is useful. Do you also want to create a health sorry if the rate good goes above a threshold?

@ajwerner
Copy link
Contributor Author

Nice, this is useful. Do you also want to create a health sorry if the rate good goes above a threshold?

I'm not sure this is a primary indicator of things being unhealthy. I wouldn't have a good intuition about the right value to set that to. Imagine a client who never reuses a connections as seeing a pretty high rate here but isn't necessarily in a bad state.

@ajwerner
Copy link
Contributor Author

@tbg I just went looking for this metric and realized I hadn't merged this. May I?

@tbg
Copy link
Member

tbg commented May 24, 2019 via email

@ajwerner
Copy link
Contributor Author

bors r=tbg

craig bot pushed a commit that referenced this pull request May 24, 2019
35547: pgwire: add counter metric to track number of incoming connections r=tbg a=ajwerner

When clusters experience problems they can sometimes receive floods of new sql
connections. We currently don't have visibility in to the rate of new
connections. This metric can help understand whether traffic for things like
internal-get-hashed-pwd is due to faulty logic in that component or to
legitimate load due to an increase in connections.

Release note: None

Co-authored-by: Andrew Werner <ajwerner@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented May 24, 2019

Build succeeded

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