|
@@ -48,6 +48,7 @@ func main() {
|
|
|
schedCases := flag.String("schedule-cases", "", "test case schedule")
|
|
schedCases := flag.String("schedule-cases", "", "test case schedule")
|
|
|
consistencyCheck := flag.Bool("consistency-check", true, "true to check consistency (revision, hash)")
|
|
consistencyCheck := flag.Bool("consistency-check", true, "true to check consistency (revision, hash)")
|
|
|
isV2Only := flag.Bool("v2-only", false, "'true' to run V2 only tester.")
|
|
isV2Only := flag.Bool("v2-only", false, "'true' to run V2 only tester.")
|
|
|
|
|
+ stresserType := flag.String("stresser", "default", "specify stresser (\"default\" or \"nop\").")
|
|
|
flag.Parse()
|
|
flag.Parse()
|
|
|
|
|
|
|
|
eps := strings.Split(*endpointStr, ",")
|
|
eps := strings.Split(*endpointStr, ",")
|
|
@@ -63,13 +64,18 @@ func main() {
|
|
|
agents[i].datadir = *datadir
|
|
agents[i].datadir = *datadir
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ sConfig := &stressConfig{
|
|
|
|
|
+ qps: *stressQPS,
|
|
|
|
|
+ keyLargeSize: int(*stressKeyLargeSize),
|
|
|
|
|
+ keySize: int(*stressKeySize),
|
|
|
|
|
+ keySuffixRange: int(*stressKeySuffixRange),
|
|
|
|
|
+ v2: *isV2Only,
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
c := &cluster{
|
|
c := &cluster{
|
|
|
- agents: agents,
|
|
|
|
|
- v2Only: *isV2Only,
|
|
|
|
|
- stressQPS: *stressQPS,
|
|
|
|
|
- stressKeyLargeSize: int(*stressKeyLargeSize),
|
|
|
|
|
- stressKeySize: int(*stressKeySize),
|
|
|
|
|
- stressKeySuffixRange: int(*stressKeySuffixRange),
|
|
|
|
|
|
|
+ agents: agents,
|
|
|
|
|
+ v2Only: *isV2Only,
|
|
|
|
|
+ stressBuilder: newStressBuilder(*stresserType, sConfig),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if err := c.bootstrap(); err != nil {
|
|
if err := c.bootstrap(); err != nil {
|