-
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.
roachprod: add virtual cluster support to the monitor
This makes the roachprod monitor aware of virtual clusters. This means that the monitor is able to identify scenarios where multiple instances are running on the same VM, and monitor the lifecycle of sql instance processes just like it does for non virtual cluster deployments. Under the covers, this is achieved by leveraging the "ROACHPROD_VIRTUAL_CLUSTER" environment variable that is set when starting cockroach. The monitor then looks for processes that have that environment variable set, and parses it to identify the virtual cluster name and instance corresponding to that cockroach process. This change should go unnoticed by all current monitor callers: tests that monitor cockroach processes will continue to be notified of events just like they did before. The only thing that changes is that, if a test uses roachprod to start and stop sql instances, these events will be available through the monitor. Epic: none Release note: None
- Loading branch information
1 parent
9a42878
commit c8d7695
Showing
11 changed files
with
378 additions
and
115 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
Oops, something went wrong.