-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a `roachprod stop-sql` command. It is similar to `roachprod stop` in the sense that it takes a similar set of flags: the signal to be sent to the processes, whether to wait for the process to finish, and for how long. However, one crucial difference is that `roachprod stop` stops *all* processes started by roachprod (cockroach or otherwise), whereas `stop-sql` was designed specifically for stopping tenant processes (SQL instances). To achieve that, we set a `ROACHPROD_VIRTUAL_CLUSTER` environment variable to the corresponding cockroach process when starting it. This label is then used to find the correct process to stop when requested. We also make use of the label to name the systemctl unit when starting cockroach processes on remote clusters. This allows multiple tenants to be co-located on the same VM. Epic: none Release note: None
- Loading branch information
1 parent
6787167
commit 4032b58
Showing
9 changed files
with
176 additions
and
63 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
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
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.