-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Conversation
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
There was a problem hiding this 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?
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. |
@tbg I just went looking for this metric and realized I hadn't merged this. May I? |
Yep!
…On Fri, May 24, 2019, 16:09 ajwerner ***@***.***> wrote:
@tbg <https://github.com/tbg> I just went looking for this metric and
realized I hadn't merged this. May I?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35547?email_source=notifications&email_token=ABGXPZCC3DOWVBF2MZDETR3PW7ZJBA5CNFSM4G4WTKD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWFPHYI#issuecomment-495645665>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABGXPZDMG7GKEPJLBJB5DP3PW7ZJBANCNFSM4G4WTKDQ>
.
|
bors r=tbg |
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>
Build succeeded |
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