-
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
distsql: does not work with multi-tenancy #47900
Labels
A-multitenancy
Related to multi-tenancy
T-sql-queries
SQL Queries Team
X-anchored-telemetry
The issue number is anchored by telemetry references.
Comments
tbg
added a commit
to tbg/cockroach
that referenced
this issue
May 5, 2020
Deprecated() calls are blocking phase 2, but the ones made optional here were not. Touches cockroachdb#47900. Touches cockroachdb#47925. Release note: None
tbg
added a commit
to tbg/cockroach
that referenced
this issue
May 7, 2020
Deprecated() calls are blocking phase 2, but the ones made optional here were not. Touches cockroachdb#47900. Touches cockroachdb#47925. Release note: None
knz
added
the
X-anchored-telemetry
The issue number is anchored by telemetry references.
label
Sep 11, 2020
craig bot
pushed a commit
that referenced
this issue
Sep 14, 2020
54256: sql: make multi-tenancy errors report to telemetry r=asubiotto a=knz Fixes #48164. Issues referenced, I also added the X-anchored-telemetry label to them on github (we keep those issues open on github until their reference in the code is removed): #54254 #54255 #54250 #54251 #54252 #49854 #48274 #47150 #47971 #47970 #47900 #47925 Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net>
rharding6373
added a commit
to rharding6373/cockroach
that referenced
this issue
Feb 16, 2022
Previously, distsql did not support distributed queries in multi-tenant environments. Queries were always planned using a single SQL pod, even if using multiple pods could yield better parallelism. This change adds an interface inside distsql that allows different implementations for functions that differ between single- and multi-tenant. Currently, it only has `SetupAllNodesPlanning`, which for single-tenant remains the same, but in multi-tenant returns all available SQL pods at the time it is invoked. This PR also fixes some places where SQL pods need to communicate with other SQL pods using the PodNodeDialer instead of the NodeDialer that handles SQL <-> KV communication in multi-tenant mode. Fixes cockroachdb#74548 References cockroachdb#47900 Release note (sql change): Adds support for distributed import queries in multi-tenant environments, which allows import queries to have improved parallelism by utilizing all available SQL pods in the tenant. review
rharding6373
added a commit
to rharding6373/cockroach
that referenced
this issue
Feb 17, 2022
Previously, distsql did not support distributed queries in multi-tenant environments. Queries were always planned using a single SQL pod, even if using multiple pods could yield better parallelism. This change adds an interface inside distsql that allows different implementations for functions that differ between single- and multi-tenant. Currently, it only has `SetupAllNodesPlanning`, which for single-tenant remains the same, but in multi-tenant returns all available SQL pods at the time it is invoked. This PR also fixes some places where SQL pods need to communicate with other SQL pods using the PodNodeDialer instead of the NodeDialer that handles SQL <-> KV communication in multi-tenant mode. Fixes cockroachdb#74548 References cockroachdb#47900 Release note (sql change): Adds support for distributed import queries in multi-tenant environments, which allows import queries to have improved parallelism by utilizing all available SQL pods in the tenant. review
rharding6373
added a commit
to rharding6373/cockroach
that referenced
this issue
Feb 23, 2022
Previously, distsql did not support distributed queries in multi-tenant environments. Queries were always planned using a single SQL pod, even if using multiple pods could yield better parallelism. This change adds an interface inside distsql that allows different implementations for functions that differ between single- and multi-tenant. Currently, it only has `SetupAllNodesPlanning`, which for single-tenant remains the same, but in multi-tenant returns all available SQL pods at the time it is invoked. This PR also fixes some places where SQL pods need to communicate with other SQL pods using the PodNodeDialer instead of the NodeDialer that handles SQL <-> KV communication in multi-tenant mode. Fixes cockroachdb#74548 References cockroachdb#47900 Release note (sql change): Adds support for distributed import queries in multi-tenant environments, which allows import queries to have improved parallelism by utilizing all available SQL pods in the tenant.
rharding6373
added a commit
to rharding6373/cockroach
that referenced
this issue
Feb 24, 2022
Previously, distsql did not support distributed queries in multi-tenant environments. Queries were always planned using a single SQL pod, even if using multiple pods could yield better parallelism. This change adds an interface inside distsql that allows different implementations for functions that differ between single- and multi-tenant. Currently, it only has `SetupAllNodesPlanning`, which for single-tenant remains the same, but in multi-tenant returns all available SQL pods at the time it is invoked. This PR also fixes some places where SQL pods need to communicate with other SQL pods using the PodNodeDialer instead of the NodeDialer that handles SQL <-> KV communication in multi-tenant mode. Fixes cockroachdb#74548 References cockroachdb#47900 Release note (sql change): Adds support for distributed import queries in multi-tenant environments, which allows import queries to have improved parallelism by utilizing all available SQL pods in the tenant.
rharding6373
added a commit
to rharding6373/cockroach
that referenced
this issue
Feb 24, 2022
Previously, distsql did not support distributed queries in multi-tenant environments. Queries were always planned using a single SQL pod, even if using multiple pods could yield better parallelism. This change adds an interface inside distsql that allows different implementations for functions that differ between single- and multi-tenant. Currently, it only has `SetupAllNodesPlanning`, which for single-tenant remains the same, but in multi-tenant returns all available SQL pods at the time it is invoked. This PR also fixes some places where SQL pods need to communicate with other SQL pods using the PodNodeDialer instead of the NodeDialer that handles SQL <-> KV communication in multi-tenant mode. Fixes cockroachdb#74548 References cockroachdb#47900 Release note (sql change): Adds support for distributed import queries in multi-tenant environments, which allows import queries to have improved parallelism by utilizing all available SQL pods in the tenant.
rharding6373
added a commit
to rharding6373/cockroach
that referenced
this issue
Feb 25, 2022
Previously, distsql did not support distributed queries in multi-tenant environments. Queries were always planned using a single SQL pod, even if using multiple pods could yield better parallelism. This change adds an interface inside distsql that allows different implementations for functions that differ between single- and multi-tenant. Currently, it only has `SetupAllNodesPlanning`, which for single-tenant remains the same, but in multi-tenant returns all available SQL pods at the time it is invoked. This PR also fixes some places where SQL pods need to communicate with other SQL pods using the PodNodeDialer instead of the NodeDialer that handles SQL <-> KV communication in multi-tenant mode. Fixes cockroachdb#74548 References cockroachdb#47900 Release note (sql change): Adds support for distributed import queries in multi-tenant environments, which allows import queries to have improved parallelism by utilizing all available SQL pods in the tenant.
rharding6373
added a commit
to rharding6373/cockroach
that referenced
this issue
Feb 25, 2022
Previously, distsql did not support distributed queries in multi-tenant environments. Queries were always planned using a single SQL pod, even if using multiple pods could yield better parallelism. This change adds an interface inside distsql that allows different implementations for functions that differ between single- and multi-tenant. Currently, it only has `SetupAllNodesPlanning`, which for single-tenant remains the same, but in multi-tenant returns all available SQL pods at the time it is invoked. This PR also fixes some places where SQL pods need to communicate with other SQL pods using the PodNodeDialer instead of the NodeDialer that handles SQL <-> KV communication in multi-tenant mode. Fixes cockroachdb#74548 References cockroachdb#47900 Release note (sql change): Adds support for distributed import queries in multi-tenant environments, which allows import queries to have improved parallelism by utilizing all available SQL pods in the tenant.
craig bot
pushed a commit
that referenced
this issue
Feb 25, 2022
76566: distsql: adds support for distributed bulk ops in multi-tenant r=rharding6373 a=rharding6373 distsql: adds support for distributed bulk ops in multi-tenant Previously, distsql did not support distributed queries in multi-tenant environments. Queries were always planned using a single SQL pod, even if using multiple pods could yield better parallelism. This change adds an interface inside distsql that allows different implementations for functions that differ between single- and multi-tenant. Currently, it only has `SetupAllNodesPlanning`, which for single-tenant remains the same, but in multi-tenant returns all available SQL pods at the time it is invoked. This PR also fixes some places where SQL pods need to communicate with other SQL pods using the PodNodeDialer instead of the NodeDialer that handles SQL <-> KV communication in multi-tenant mode. Fixes #74548 References #47900 Release note (sql change): Adds support for distributed import queries in multi-tenant environments, which allows import queries to have improved parallelism by utilizing all available SQL pods in the tenant. importccl, backupccl: add import and restore tenant tests with multiple SQL pods These tests validate that imports and restores can be distributed across multiple SQL pods in a single tenant. Release note: None 76958: ci: a couple tweaks to bazel CI r=rail a=rickystewart * Run `go mod tidy` in Bazel CI. * When running unit tests, write the profile file to `/artifacts` so it can be inspected later if necessary. Release note: None 77025: sql: fix error handling for AOST clause r=RichardJCai a=rafiss fixes #76979 fixes #76978 fixes #76977 fixes #76975 fixes #76787 The AOST clause logic would previously error for any bounded staleness query that was used in a prepared statement. This is because prepared statements use an implicit txn, so the same AOST clause has to be checked multiple times in the txn. A recent commit refactored the error handling and caused this bug. Release note: None 77044: schemachanger: bump size of test r=rail a=rickystewart Release note: None Co-authored-by: rharding6373 <rharding6373@users.noreply.github.com> Co-authored-by: Ricky Stewart <ricky@cockroachlabs.com> Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
RajivTS
pushed a commit
to RajivTS/cockroach
that referenced
this issue
Mar 6, 2022
Previously, distsql did not support distributed queries in multi-tenant environments. Queries were always planned using a single SQL pod, even if using multiple pods could yield better parallelism. This change adds an interface inside distsql that allows different implementations for functions that differ between single- and multi-tenant. Currently, it only has `SetupAllNodesPlanning`, which for single-tenant remains the same, but in multi-tenant returns all available SQL pods at the time it is invoked. This PR also fixes some places where SQL pods need to communicate with other SQL pods using the PodNodeDialer instead of the NodeDialer that handles SQL <-> KV communication in multi-tenant mode. Fixes cockroachdb#74548 References cockroachdb#47900 Release note (sql change): Adds support for distributed import queries in multi-tenant environments, which allows import queries to have improved parallelism by utilizing all available SQL pods in the tenant.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-multitenancy
Related to multi-tenancy
T-sql-queries
SQL Queries Team
X-anchored-telemetry
The issue number is anchored by telemetry references.
See here for background
Multi-tenancy Phase 2 will ship with DistSQL disabled, which makes a lot of sense since at most one SQL tenant server will be running on behalf of a given tenant at any time (i.e. there's nobody else to distribute to).
Sometime down the road, we may want to lift that restriction. This needs a few main ingredients:
Jira issue: CRDB-4378
The text was updated successfully, but these errors were encountered: