-
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
ccl/sqlproxyccl: add connection migration-related metrics #77700
ccl/sqlproxyccl: add connection migration-related metrics #77700
Conversation
2f232a8
to
c1ddc64
Compare
c1ddc64
to
ba4c58e
Compare
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.
LGTM
ba4c58e
to
0e7266b
Compare
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.
TFTR!
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @jeffswenson)
pkg/ccl/sqlproxyccl/conn_migration.go, line 140 at r2 (raw file):
Previously, JeffSwenson (Jeff Swenson) wrote…
It would be nice to add the transfer latency to the log statements in the defer. That way we can dig into the source of unexpectedly high/low latency.
Done.
Previously, we added support for connection migration in cockroachdb#76805. This commit adds a new `proxy.conn_migration.attempted.latency` metric that tracks latency for attempted connection migrations. Having this metric would be beneficial as we can now know how long users were blocked during connection migrations. Release justification: Low-risk metric-only change within sqlproxy. Release note: None
…e size Informs cockroachdb#76000, and follow up to cockroachdb#76805. This commit adds a new proxy.conn_migration.transfer_response.message_size metric that will track the distribution of the transfer response message size. This will be used to tune a value for the SQL cluster setting: sql.session_transfer.max_session_size. Release justification: Low-risk metric-only change within sqlproxy. Release note: None
0e7266b
to
454b896
Compare
bors r=JeffSwenson |
Build succeeded: |
ccl/sqlproxyccl: add metric that measures connection migration latency
Previously, we added support for connection migration in #76805. This commit
adds a new
proxy.conn_migration.attempted.latency
metric that tracks latencyfor attempted connection migrations. Having this metric would be beneficial
as we can now know how long users were blocked during connection migrations.
Release justification: Low-risk metric-only change within sqlproxy.
Release note: None
ccl/sqlproxyccl: add metric that records the transfer response message size
Informs #76000, and follow up to #76805.
This commit adds a new proxy.conn_migration.transfer_response.message_size
metric that will track the distribution of the transfer response message size.
This will be used to tune a value for the SQL cluster setting:
sql.session_transfer.max_session_size.
Release justification: Low-risk metric-only change within sqlproxy.
Release note: None