server: Implement 'gossip' endpoint in multitenant setup#141212
server: Implement 'gossip' endpoint in multitenant setup#141212craig[bot] merged 3 commits intocockroachdb:masterfrom
Conversation
cthumuluru-crdb
left a comment
There was a problem hiding this comment.
I left some comments, please take a look. Also, use the commit guidelines from here: https://cockroachlabs.atlassian.net/wiki/spaces/CRDB/pages/73072807/Git+Commit+Messages. I think you also need to title on the commit, not just the PR.
what was there before: previously, gossip endpoint wasn't accessible from secondary tenant why it needed to change: gossip endpoint provides crucial information for debugging and this should be accessible from secondary tenant for troubleshooting issues within gossip protocol of the cluster what you did about it: To address this, we created gossip endpoint in tenant status server. The implementation uses connector to redirect the call to the system tenant on the requested kv node. Access to this endpoint is guarded by `can_debug_process` capability as this is node's debugging information albeit gossip related one. Updated the gossip status unit test for both system tenant and application tenant. Epic: CRDB-38968 Fixes: cockroachdb#110022 Release note: None
02ef2a5 to
91571e5
Compare
Fixed the commit title. |
cthumuluru-crdb
left a comment
There was a problem hiding this comment.
Besides one comment on the capability we have to use, other changes look good to me. Please wait for the response from David or Steven before committing the changes.
cthumuluru-crdb
left a comment
There was a problem hiding this comment.
Besides one comment on the capability we have to use, other changes look good to me. Please wait for the response from David or Steven before committing the changes.
dhartunian
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @cthumuluru-crdb, @kyle-a-wong, @rharding6373, @shaikzakiriitm, @shubhamdhama, and @stevendanna)
f72394f to
3e93d0c
Compare
shubhamdhama
left a comment
There was a problem hiding this comment.
Great work!
LGTM!
small suggestions and don't let it block this PR: you can use this helper now: #141490
👍 got it. Will raise a followup pr to clean the usage. Thanks! |
⚪ Sysbench [SQL, 3node, oltp_read_write]
Reproducebenchdiff binaries: mkdir -p benchdiff/3e93d0c/bin/1058449141
gcloud storage cp gs://cockroach-microbench-ci/builds/3e93d0cffa0faf754a99d991dee62ad4a56b8233/bin/pkg_sql_tests benchdiff/3e93d0c/bin/1058449141/cockroachdb_cockroach_pkg_sql_tests
chmod +x benchdiff/3e93d0c/bin/1058449141/cockroachdb_cockroach_pkg_sql_tests
mkdir -p benchdiff/66bfa47/bin/1058449141
gcloud storage cp gs://cockroach-microbench-ci/builds/66bfa4733e3c016ea54f13f1104c395dd36bd25e/bin/pkg_sql_tests benchdiff/66bfa47/bin/1058449141/cockroachdb_cockroach_pkg_sql_tests
chmod +x benchdiff/66bfa47/bin/1058449141/cockroachdb_cockroach_pkg_sql_testsbenchdiff command: benchdiff --run=^BenchmarkSysbench/SQL/3node/oltp_read_write$ --old=66bfa47 --new=3e93d0c ./pkg/sql/tests⚪ Sysbench [KV, 1node, local, oltp_read_only]
Reproducebenchdiff binaries: mkdir -p benchdiff/3e93d0c/bin/1058449141
gcloud storage cp gs://cockroach-microbench-ci/builds/3e93d0cffa0faf754a99d991dee62ad4a56b8233/bin/pkg_sql_tests benchdiff/3e93d0c/bin/1058449141/cockroachdb_cockroach_pkg_sql_tests
chmod +x benchdiff/3e93d0c/bin/1058449141/cockroachdb_cockroach_pkg_sql_tests
mkdir -p benchdiff/66bfa47/bin/1058449141
gcloud storage cp gs://cockroach-microbench-ci/builds/66bfa4733e3c016ea54f13f1104c395dd36bd25e/bin/pkg_sql_tests benchdiff/66bfa47/bin/1058449141/cockroachdb_cockroach_pkg_sql_tests
chmod +x benchdiff/66bfa47/bin/1058449141/cockroachdb_cockroach_pkg_sql_testsbenchdiff command: benchdiff --run=^BenchmarkSysbench/KV/1node_local/oltp_read_only$ --old=66bfa47 --new=3e93d0c ./pkg/sql/tests⚪ Sysbench [KV, 1node, local, oltp_write_only]
Reproducebenchdiff binaries: mkdir -p benchdiff/3e93d0c/bin/1058449141
gcloud storage cp gs://cockroach-microbench-ci/builds/3e93d0cffa0faf754a99d991dee62ad4a56b8233/bin/pkg_sql_tests benchdiff/3e93d0c/bin/1058449141/cockroachdb_cockroach_pkg_sql_tests
chmod +x benchdiff/3e93d0c/bin/1058449141/cockroachdb_cockroach_pkg_sql_tests
mkdir -p benchdiff/66bfa47/bin/1058449141
gcloud storage cp gs://cockroach-microbench-ci/builds/66bfa4733e3c016ea54f13f1104c395dd36bd25e/bin/pkg_sql_tests benchdiff/66bfa47/bin/1058449141/cockroachdb_cockroach_pkg_sql_tests
chmod +x benchdiff/66bfa47/bin/1058449141/cockroachdb_cockroach_pkg_sql_testsbenchdiff command: benchdiff --run=^BenchmarkSysbench/KV/1node_local/oltp_write_only$ --old=66bfa47 --new=3e93d0c ./pkg/sql/testsArtifactsdownload: mkdir -p new
gcloud storage cp gs://cockroach-microbench-ci/artifacts/3e93d0cffa0faf754a99d991dee62ad4a56b8233/13456898448-1/\* new/
mkdir -p old
gcloud storage cp gs://cockroach-microbench-ci/artifacts/66bfa4733e3c016ea54f13f1104c395dd36bd25e/13456898448-1/\* old/Legend
No regressions detected! built with commit: 3e93d0cffa0faf754a99d991dee62ad4a56b8233 |
|
bors r=shubhamdhama,cthumuluru-crdb |
|
Build succeeded: |
|
@shaikzakiriitm please squash fixups before merging in the future |
@dhartunian My bad, squashing the fixup commits really slipped my mind. Thank you for pointing it out, will keep this in my mind from now on. Thanks! |
What was there before: previously, gossip endpoint wasn't accessible from secondary tenant why it needed to change: gossip endpoint provides crucial information for debugging and this should be accessible from secondary tenant for troubleshooting issues within gossip protocol of the cluster
What you did about it: To address this, we created gossip endpoint in tenant status server. The implementation uses connector to redirect the call to the system tenant on the requested kv node. Access to this endpoint is guarded by
can_debug_processcapability as this is node's debugging information albeit gossip related one. Updated the gossip status unit test for both system tenant and application tenant.Epic: CRDB-38968
Fixes: #110022
Release note: None