-
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: unexport ServerMetrics, rename to tenantSpecificMetrics #92574
Conversation
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @knz)
pkg/sql/pgwire/server.go
line 215 at r1 (raw file):
// Server implements the server side of the PostgreSQL wire protocol for one // specific tenant (i.e. its configuration is specific to one tenant).
i don't follow why the "tenant specific" name is helpful here. it already seemed clear that this is a "per-connection object" which definitionally is finer-scoped than "tenant specific."
to take this PR's logic further, why not rename Server
to TenantSpecificServer
? (i don't think we should, just asking rhetorically)
Nope, that is not how I want to frame it.
Yes, once this PR and its subsequent PRs, up to and including #92579 are merged, this would make (rhetorically) sense. |
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
rafi, I will be willing to rename the various concepts in this code any time, for example in a followup PR. bors r=stevendanna |
Build failed: |
unrelated flake bors r=stevendanna |
Release note: None
Release note: None
b42b253
to
f6b1af7
Compare
Canceled. |
bors r=stevendanna |
Build succeeded: |
92580: server,pgwire: use a single SQL listener for multiple tenants r=rafiss a=knz Parent PRs: - [x] #84608 - [x] #91739 - [x] #91744 - [x] #92574 - [x] #92575 - [x] #92576 - [x] #92577 - [x] #92578 - [x] #92579 - [ ] #94901 Fixes #84585. Informs #94310. Epic: CRDB-14537 This commit implements tenant routing using a single SQL network listener. The tenant name can be specified: - via the client status param `options`, e.g. `options=-ccrdb:tenant=hello` - via the database name, e.g. `crdb:tenant-hello.defaultdb`. Release note (backward-incompatible change): If a SQL database is created with a name that starts with `crdb:tenant-` (e.g. `CREATE DATABASE "crdb:tenant-foo"`, clients will no longer be able to connect to it directly. Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net>
Parent PRs:
Epic: CRDB-14537