forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
111533: roachprod: support managing shared process virtual clusters r=herkolategan a=renatolabs This PR adds support for shared process virtual clusters using `start-sql` and `stop-sql`; previously, these subcommands would always create separate process virtual clusters. After this PR, `start-sql` will create shared process tenants by default. Alternatively, the `--external-cluster` command line flag can be used to indicate where the separate processes should be deployed. Similarly, `stop-sql` may be used to stop separate process virtual clusters, as before, by killing the corresponding OS process; or shared process virtual clusters by using SQL (`STOP SERVICE`). A few other changes introduced in this PR, done to support this work: * Made `ExecSQL` more flexible; * Fixed a bug in `pgurl`, where we would include the virtual cluster name in the connection url returned by `roachprod pgurl`. This is not allowed since the URL pointed to the SQL server process, which does not handle that option. * Remove ability to create tenants by specifying a tenant ID. We are now creating tenants with `CREATE TENANT` instead of `crdb_internal.create_tenant`. The tenant ID is computed automatically and used when starting the cockroach process for separate process deployments. Epic: none Release note: None Co-authored-by: Renato Costa <[email protected]>
- Loading branch information
Showing
7 changed files
with
414 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.