-
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.
roachtest: allow parallel execution of repeated runs
Before this patch, roachtest --paralleism is ignored when running a single test, and also the repeated runs of that test don't reuse clusters. This patch allows for parallel execution of different runs of a single test, and also reuses clusters for those runs. The structure of running tests is changed: the resources indicated by --parallelism are now fairly divided initially between top-level tests, and then each top-level test maintains a pool of clusters to be used by repeated runs of itself and its subtests. Clusters are created and managed at the top-level tests' level; it is top level tests that determine a cluster's spec, so clusters are not reused across them. E.g. roachtest run TestFoo TestBar --parallelism 10 --count 100 will result in the initial allocation of 5 clusters for each test. As TestBar finishes its 96th run, TestFoo is allowed to steal a "slot" and expand its pool. Release note: None
- Loading branch information
1 parent
6adae0e
commit 77ac0ec
Showing
1 changed file
with
153 additions
and
16 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